/* Basic Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f4f4f4;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 2px solid #0056b3;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.logo img {
    max-height: 135px;
    width: auto;
}

/* Navigation - Top Right Position */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 16px;
    padding: 10px 15px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #0056b3;
    background-color: #f0f8ff;
    border-radius: 4px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: #0056b3;
}

/* Hero Section */
.hero {
    background-color: #fff;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 30px;
}

.hero h1 {
    color: #0056b3;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
    color: #666;
}

.hero-contact {
    margin-top: 20px;
    font-weight: bold;
    font-size: 1.2em;
    color: #d9534f;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 4px;
}

.product-card h3 {
    color: #0056b3;
    margin-bottom: 10px;
}

.product-card p {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #0056b3;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #004494;
}

/* Quality Policy */
.policy-section {
    text-align: center;
    background-color: #fff;
    padding: 40px 0;
    margin-bottom: 30px;
    border-top: 5px solid #ff9800;
}

.policy-section img {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
    font-size: 0.9em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 20px;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
}

.footer-col p,
.footer-col li {
    color: #bdc3c7;
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #777;
    margin-top: 20px;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
        margin-left: auto;
        /* Push to the right */
        padding-right: 15px;
        /* Requested padding */
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #fff;
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        border-top: 1px solid #eee;
    }

    .main-nav ul.active {
        display: flex;
    }

    .main-nav a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Mobile Dropdown */
    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
        /* Hidden by default on mobile */
        padding-left: 20px;
        background-color: #f9f9f9;
        width: 100%;
    }

    .dropdown-content a {
        padding: 10px 20px;
        font-size: 14px;
        border-bottom: 1px solid #eee;
    }

    /* Show dropdown on hover/focus in mobile usually requires JS click, 
       but for simplicity we keep it consistently styled. 
       We will add a class 'open' via JS or CSS hover if supported.
    */
    .dropdown:hover .dropdown-content {
        display: flex;
        flex-direction: column;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.8em;
    }

    .header-inner {
        flex-wrap: wrap;
    }
}

/* Dropdown Menu (Desktop) */
@media (min-width: 1025px) {
    .dropdown {
        position: relative;
    }

    .dropdown-content {
        display: none;
        position: absolute;
        background-color: #fff;
        min-width: 280px;
        /* Increased from 200px */
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        z-index: 1001;
        top: 100%;
        left: 0;
        flex-direction: column;
    }

    .dropdown-content a {
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        border-bottom: 1px solid #eee;
        white-space: nowrap;
        /* Prevent wrapping */
    }

    .dropdown:hover .dropdown-content {
        display: flex;
    }

    .dropdown-arrow::after {
        content: ' \25BC';
        font-size: 10px;
        margin-left: 5px;
    }
}

/* Home Page Scroller / Slider */
.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    /* Limit height on large screens */
    object-fit: cover;
}

/* Optional Caption Styling if needed */
.text-overlay {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    color: #333;
    padding: 15px;
    /* Reduced from 30px */
    border-radius: 8px;
    max-width: 500px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.text-overlay h2 {
    color: #0056b3;
    font-size: 1.8em;
    margin-bottom: 5px;
    line-height: 1.2;
}

.text-overlay p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #555;
    font-weight: bold;
}

.overlay-contact h3 {
    color: #d9534f;
    font-size: 1.6em;
    margin-bottom: 5px;
}

.overlay-contact p {
    margin-bottom: 0;
    color: #333;
}

/* Mobile adjustments for overlay */
@media (max-width: 768px) {
    .text-overlay {
        position: relative;
        transform: none;
        top: auto;
        left: auto;
        width: 100%;
        max-width: none;
        background: #fff;
        box-shadow: none;
        padding: 20px;
        text-align: center;
        border-radius: 0 0 8px 8px;
    }
}