/* =========================================
   1. Global Variables & Typography
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary-blue: #0f172a; 
    --secondary-blue: #2563eb; 
    --hover-blue: #eff6ff;
    --bg-color: #f8fafc; 
    --text-main: #334155;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased; 
}

/* --- Fixed App-Style Layout --- */
.fixed-layout {
    margin: 0;
    height: 100vh;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
}

/* =========================================
   2. Main Header
   ========================================= */
.main-header {
    background-color: #0f172a; 
    color: white;
    padding: 12px 4%; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    border-bottom: 4px solid #fbbf24; 
    z-index: 200;
}

.header-logo img {
    height: 80px; 
    width: auto;
    background-color: white; 
    padding: 3px;
    border-radius: 8px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.3); 
}

.header-brand {
    text-align: center; 
    flex: 1; 
    padding: 0 20px;
}

.header-brand h1 {
    font-size: 2.3rem; 
    font-weight: 800; 
    margin: 0 0 4px 0; 
    letter-spacing: 0.8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6); 
}

.header-brand .iso-cert {
    font-size: 0.9rem; 
    color: #fbbf24; 
    font-weight: 700;
    margin: 0 0 2px 0; 
}

.header-brand .contact-info {
    font-size: 0.85rem;
    color: #cbd5e1; 
    margin: 0;
}

/* =========================================
   3. Top Navigation Bar & Search
   ========================================= */
.top-navbar {
    padding: 0 4%; 
    height: 50px; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-bottom: 2px solid #f1f5f9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    z-index: 150;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.dropbtn {
    display: flex !important;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #1e293b;
    font-size: 0.92rem;
    font-weight: 600; 
    white-space: nowrap;
    padding: 6px 12px; 
    border-radius: 6px; 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.dropbtn::after {
    content: '';
    position: absolute;
    bottom: -6px; 
    left: 10px;
    right: 10px;
    height: 3px;
    background-color: #2563eb;
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-item:hover .dropbtn::after {
    transform: scaleX(1);
}

.nav-item:hover .dropbtn {
    background-color: #f1f5f9;
    color: #2563eb;
}

.dropbtn .material-symbols-outlined {
    font-size: 18px !important;
    color: #64748b;
    transition: transform 0.3s ease, color 0.3s ease;
}

.nav-item:hover .material-symbols-outlined {
    transform: rotate(180deg);
    color: #2563eb;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px); 
    min-width: 280px;
    max-height: 65vh; 
    overflow-y: auto; 
    box-shadow: 0px 15px 35px rgba(0,0,0,0.1);
    border-radius: 0 0 12px 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-top: none;
    padding: 8px 0;
    margin-top: 2px; 
}

.Zonal-dropdown { left: auto; right: 0; }

.dropdown-content a {
    color: #334155;
    padding: 10px 24px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-color: #eff6ff;
    color: #2563eb;
    padding-left: 28px;
}

.nav-item:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

/* Mega Menu */
.mega-menu {
    min-width: 550px !important;
    column-count: 2;
    column-gap: 10px;
    padding: 12px 10px !important;
}

.mega-menu.zonal-mega {
    min-width: 750px !important;
    column-count: 3;
}

.mega-menu a {
    border-bottom: none !important;
    border-radius: 6px;
    margin: 2px 0;
    break-inside: avoid-column;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Nav Search Bar */
.nav-search {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 6px 16px;
    width: 280px;
    transition: all 0.3s ease;
}

.nav-search:focus-within {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    width: 320px;
}

.nav-search input {
    border: none;
    background: transparent;
    outline: none;
    margin-left: 10px;
    flex: 1; 
    font-size: 0.9rem;
    font-weight: 400;
    color: #0f172a;
}

.nav-search .material-symbols-outlined {
    font-size: 22px !important;
    color: #94a3b8;
}

/* =========================================
   4. Main Image Slider
   ========================================= */
.fixed-main {
    flex: 1; 
    position: relative;
    overflow: hidden;
    background: #000; 
}

.flex-slider, .slider-wrapper {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
}

.slider-image {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover; 
    object-position: center; 
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.slider-image.active { opacity: 1; z-index: 10; }

.slider-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0) 40%);
    z-index: 15; 
    pointer-events: none;
}

.slider-arrow {
    position: absolute; top: 50%;
    transform: translateY(-50%);
    z-index: 50 !important;
    cursor: pointer;
    background: transparent; 
    border: none;
    color: rgba(255, 255, 255, 0.5); 
    width: 80px; height: 100px; 
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
}

.slider-arrow span { 
    font-size: 4rem; 
    font-weight: 200;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6); 
}

.slider-arrow:hover { 
    color: #ffffff; 
    transform: translateY(-50%) scale(1.1); 
}

.slider-arrow.prev { left: 10px; } 
.slider-arrow.next { right: 10px; }

.slider-dots {
    position: absolute;
    bottom: 25px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 100;
}

.dot {
    width: 35px; height: 6px; 
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px; cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.3); 
}

.dot:hover { background: rgba(255, 255, 255, 0.6); }

.dot.active { 
    width: 70px; 
    background: #facc15; 
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.5); 
}

/* =========================================
   5. Sun-Kissed Traditional Marquee
   ========================================= */
.bottom-marquee {
    overflow: hidden;
    white-space: nowrap;
    background: linear-gradient(to bottom, #f7df66 0%, #e4dd67 100%); 
    padding: 1px 0;
    border-top: 2px solid #ca8a04;
    z-index: 200;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee-loop 25s linear infinite;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b; 
    letter-spacing: 0.5px;
}

.marquee-content .highlight {
    color: #854d0e; 
    text-shadow: 0.5px 0.5px 0px rgba(255,255,255,0.4);
}

@keyframes marquee-loop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* =========================================
   6. Emergency Modal
   ========================================= */
.modal-overlay {
    position: fixed; 
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8); 
    display: flex; justify-content: center; align-items: center;
    z-index: 9999; 
    opacity: 0; 
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.modal-overlay.show { opacity: 1; visibility: visible; }

.modal-content {
    background: transparent; 
    position: relative; 
    max-width: 650px; 
    width: max-content; 
    margin: 0 20px; 
}

.modal-content img {
    max-width: 100%; max-height: 80vh; 
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); 
}

.close-modal {
    position: absolute; top: -15px; right: -15px; 
    background: #dc2626; color: white;
    width: 36px; height: 36px; 
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; 
    font-size: 1.5rem; font-weight: bold;
    border: 3px solid white; 
    z-index: 10;
}

.close-modal:hover { background: #991b1b; transform: scale(1.1); }

/* =========================================
   7. RESPONSIVE MEDIA QUERIES
   ========================================= */

/* MacBooks & Smaller Laptops (1024px - 1440px) */
@media (max-width: 1200px) {
    .header-brand h1 { font-size: 1.8rem; }
    .nav-search { width: 220px; }
    .nav-search:focus-within { width: 260px; }
}

/* Tablets & iPads (768px - 1024px) */
@media (max-width: 1024px) {
    .header-logo img { height: 60px; }
    .header-brand h1 { font-size: 1.5rem; }
    .header-brand .contact-info { font-size: 0.75rem; }
    
    .mega-menu, .mega-menu.zonal-mega {
        min-width: 100% !important; 
        column-count: 2; 
        left: 0; right: 0;
    }
}

/* Smartphones (Less than 768px) */
@media (max-width: 768px) {
    /* Header Stacks Vertically */
    .main-header {
        flex-direction: column;
        gap: 12px;
        padding: 15px 4%;
    }
    .header-brand h1 { font-size: 1.3rem; }
    .header-brand .iso-cert { font-size: 0.75rem; }
    .header-brand .contact-info { display: none; /* Hide to save vertical space */ }
    
    /* Navbar becomes a swipeable row */
    .top-navbar {
        height: auto;
        flex-direction: column;
        padding: 10px 4%;
        gap: 12px;
    }
    
    .nav-menu {
        width: 100%;
        overflow-x: auto; /* Enables horizontal scrolling */
        padding-bottom: 5px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scrollbar-width: none; /* Hide scrollbar Firefox */
    }
    
    .nav-menu::-webkit-scrollbar { display: none; /* Hide scrollbar Chrome/Safari */ }
    
    .nav-search { width: 100%; }
    .nav-search:focus-within { width: 100%; }

    /* Fix Dropdowns for Mobile */
    .dropdown-content, .mega-menu, .mega-menu.zonal-mega {
        position: fixed;
        top: 190px; /* Sit right below the stacked header */
        left: 5%;
        right: 5%;
        width: 90%;
        min-width: 0 !important;
        column-count: 1; /* Drop to single column */
        max-height: 50vh;
    }

    /* Shrink Slider Elements */
    .slider-arrow { width: 40px; }
    .slider-arrow span { font-size: 2.5rem; }
    .slider-arrow.prev { left: 5px; } 
    .slider-arrow.next { right: 5px; }
    
    .dot { width: 25px; height: 5px; }
    .dot.active { width: 45px; }

    /* Adjust Modal */
    .modal-content { width: 90%; margin: 0 auto; }
    .close-modal { 
        top: -10px; right: -10px; 
        width: 30px; height: 30px; 
        font-size: 1.2rem; 
    }
}
/* =========================================
   📱 MOBILE RESPONSIVE TWEAKS (Under 768px)
   ========================================= */
@media screen and (max-width: 768px) {
    
    /* 1. Shrink the Header & Text */
    .header { /* Change to your actual header class */
        padding: 10px !important;
    }
    .header h1 {
        font-size: 1.4rem !important; /* Shrinks the massive BLW title */
        margin: 5px 0;
    }
    .header p { /* The ISO text */
        font-size: 0.7rem !important;
        line-height: 1.2;
    }

    /* 2. Make the Logos Smaller and Side-by-Side */
    .header-logos { /* Change to the div holding your logos */
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
        margin-bottom: 5px;
    }
    .header-logos img {
        height: 45px !important; /* Stops them from being huge */
        width: auto;
    }

    /* 3. The "Swipeable" Navigation Bar Fix */
    /* This stops the menus from wrapping and breaking the layout */
    .top-navbar ul {
        display: flex;
        flex-wrap: nowrap; /* Forces them onto one line */
        overflow-x: auto;  /* Adds a horizontal scroll */
        padding: 10px 5px;
        -webkit-overflow-scrolling: touch; /* Smooth swiping on iPhones */
        white-space: nowrap;
    }
    
    /* Hide the scrollbar for a cleaner look but keep it swipeable */
    .top-navbar ul::-webkit-scrollbar {
        display: none;
    }

    /* 4. Tighten up the Search Bar */
    .search-container {
        padding: 5px 15px;
        margin-bottom: 10px;
    }
}