/* ================================================
   header.css — ScienceUtsav Header Component Styles
   Extracted from assets/style.css (Section 2)
   Included by: loader.js or directly in <head>
   ================================================ */

/* ============================================== 
   HEADER SECTION 
   ============================================== */
.site-header { 
    background: #fff; 
    padding: 10px 0; 
    position: fixed; /* Pinned to top */
    top: 0; 
    left: 0;
    width: 100%; 
    z-index: 1000; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); 
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    
    /* Defines exact height: 50px logo + 20px padding = 70px total */
    height: 70px; 
}

.site-header .container {
    max-width: 1250px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.header-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 100%; /* Ensures alignment */
}

.logo img { 
    height: 50px; 
    display: block; 
}

/* Navigation */
.nav-menu { 
    display: flex; 
    list-style: none; 
    gap: 25px; /* Slightly reduced gap to accommodate the extra Home tab */
    align-items: center;
}

.nav-link { 
    text-decoration: none; 
    color: #0d3c75; 
    font-weight: 600; 
    font-size: 15px; 
    transition: color 0.3s; 
    padding: 10px 0; 
    display: flex;
    align-items: center; /* Keeps text and icons perfectly aligned */
}

.nav-link:hover { 
    color: #f7941d; 
}

/* Icons Logic */
.nav-link i { 
    font-size: 11px; 
    margin-left: 5px; /* This is for the arrows on the right */
}

/* SPECIFIC STYLE FOR HOME ICON */
.nav-link i.fa-home {
    font-size: 16px;     /* Makes home icon slightly larger than arrows */
    margin-left: 0;      /* Removes left margin */
    margin-right: 8px;   /* Adds space between house icon and "Home" text */
    color: inherit;      /* Keeps the same color as the text */
}

/* Dropdown */
.nav-item { 
    position: relative; 
}

.dropdown { 
    position: absolute; 
    top: 100%; 
    left: 0; 
    background: white; 
    width: 200px; 
    list-style: none; 
    padding: 0; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
    border-radius: 6px; 
    display: none; 
    z-index: 1000; 
    border-top: 3px solid #f7941d; 
}

.dropdown li a { 
    text-decoration: none; 
    color: #0d3c75; 
    display: block; 
    padding: 12px 20px; 
    font-size: 14px; 
    font-weight: 500; 
    border-bottom: 1px solid #f0f0f0; 
    transition: 0.3s; 
}

.dropdown li a:hover { 
    background-color: #f9f9f9; 
    color: #f7941d; 
    padding-left: 25px; 
}

.nav-item:hover .dropdown { 
    display: block; 
}

/* Shop Button */
.header-btn .btn-shop { 
    background: #003366; 
    color: white; 
    text-decoration: none; 
    padding: 10px 25px; 
    border-radius: 50px; 
    font-weight: bold; 
    font-size: 14px; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    transition: 0.3s; 
    box-shadow: 0 4px 10px rgba(0,51,102,0.2); 
}

.btn-shop:hover { 
    background: #f7941d; 
}

/* Mobile Menu Icon */
.hamburger { 
    display: none; 
    cursor: pointer; 
} 
.bar { 
    display: block; 
    width: 25px; 
    height: 3px; 
    margin: 5px auto; 
    background-color: #0d3c75; 
    transition: 0.3s;
}

/* --- Phone Number Styling --- */
.header-btn {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between phone and button */
}

.header-phone {
    text-decoration: none;
    color: #0d3c75; /* Matching your nav color */
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.header-phone i {
    color: #f7941d; /* Using your orange accent color for the icon */
    font-size: 14px;
}

.header-phone:hover {
    color: #f7941d;
    transform: translateY(-1px);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .header-btn {
        display: none; 
    }
}

/* Desktop defaults for the new Flex Wrapper */
.hamburger { display: none; }
.mobile-shop-li { display: none; }
.menu-item-flex { display: flex; align-items: center; }
.dropdown-arrow { margin-left: 6px; cursor: pointer; transition: transform 0.3s; }

/* ==============================================
   MOBILE HEADER
   ============================================== */
@media (max-width: 992px) {
    .header-container { justify-content: space-between; padding: 0 15px; display: flex; align-items: center; }
    .logo img { height: 40px; }
    
    .header-btn { display: flex !important; align-items: center; gap: 10px; margin-left: auto; margin-right: 15px; }
    .btn-shop { display: none !important; }
    
    /* Phone Button */
    .header-phone {
        background-color: #F97316 !important; color: #fff !important; font-weight: 700;
        font-size: 13px !important; padding: 8px 15px; border-radius: 50px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.15); display: flex; align-items: center; gap: 6px; text-decoration: none;
    }
    .header-phone:before { display: none !important; }
    .header-phone i { font-size: 13px; color: #fff !important; margin: 0; }
    
    /* Hamburger Styles */
    .hamburger { display: flex; flex-direction: column; cursor: pointer; z-index: 1001; }
    .bar { background-color: #000; height: 3px; width: 28px; margin: 5px 0; transition: 0.3s; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    /* Main Sliding Menu */
    .nav-menu {
        position: fixed; right: -100%; top: 65px;
        flex-direction: column; background-color: #fff;
        width: 100%; height: calc(100vh - 65px);
        text-align: left; padding: 0; margin: 0;
        transition: 0.4s ease-in-out; overflow-y: auto; z-index: 1000;
        justify-content: flex-start !important; /* Forces items to top */
    }
    .nav-menu.active { right: 0; }
    
    /* MOBILE SHOP BUTTON (Top center) */
    .mobile-shop-li { display: block; padding: 20px; text-align: center; border-bottom: 1px solid #eee; background: #fafafa; }
    .btn-shop-mobile {
        display: inline-flex; align-items: center; justify-content: center; gap: 8px;
        background: #F97316; color: #fff; padding: 12px 30px; border-radius: 50px;
        text-decoration: none; font-weight: bold; font-size: 15px; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    /* --- FIX: List Items & Links Structure --- */
    .nav-item { width: 100%; list-style: none; border-bottom: none !important; } 
    .menu-item-flex { display: flex; justify-content: space-between; align-items: center; width: 100%; border-bottom: 1px solid #f0f0f0; } 
    
    /* Let the link navigate, and the arrow toggle */
    .nav-link { 
        padding: 15px 20px; font-size: 16px; flex-grow: 1; display: flex; align-items: center; gap: 10px; color: #333; text-decoration: none; 
        border: none !important; /* Kills the unwanted orange line */
        box-shadow: none !important; /* Kills the unwanted orange line */
    }
    .dropdown-arrow { padding: 15px 25px; cursor: pointer; color: #777; border-left: 1px solid #eee; }
    
    /* --- FIX: Active State --- */
    .nav-item.active-dropdown .nav-link, 
    .nav-item.active-dropdown .dropdown-arrow,
    .nav-item.active-dropdown .dropdown-arrow i { 
        color: #F97316 !important; /* Turns Text and Arrow Orange */
    }
    
    /* Prevents the orange line from showing under the wrapper */
    .nav-item.active-dropdown .menu-item-flex {
        border-bottom: 1px solid #f0f0f0 !important; 
    }
    
    /* SMOOTH DROPDOWN ANIMATION */
    .dropdown {
        position: static; box-shadow: none; padding: 0; margin: 0;
        max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; display: block !important;
        background: #f9f9f9 !important; /* Very light gray background */
        border-top: none !important; /* Removes desktop orange top-border */
    }
    .dropdown li { list-style: none; }
    .dropdown li a { 
        padding: 12px 20px 12px 40px !important; /* Indents the sub-menu items */
        font-size: 14px; color: #555 !important; display: block; text-decoration: none; 
        border-bottom: 1px solid #eaeaea !important; 
    }
    .dropdown li:last-child a { border-bottom: none !important; }
    
    /* Opens the accordion smoothly */
    .nav-item.active-dropdown .dropdown { max-height: 600px; transition: max-height 0.4s ease-in; }
    
    /* Rotate Arrow visually */
    .nav-item.active-dropdown .dropdown-arrow i { transform: rotate(180deg); }
}
