/* ============================================
   Header Styles - Custom Header Design
   ============================================ */

/* Override external CSS - Force display top header icons */
.top-green { display: flex !important; }
.top-links { display: flex !important; }
.top-phones { display: flex !important; }
.top-social-icons { display: flex !important; }
.top-social-icons a { display: inline-flex !important; }

@media (max-width: 992px) {
    .top-green, .top-links, .top-phones { display: none !important; }
}

/* Custom Header Root Styles */
.custom-header-root * { 
    box-sizing: border-box; 
    font-family: "Segoe UI", sans-serif; 
}

/* Fix Font Awesome icons - exclude from font-family override */
.custom-header-root i, 
.custom-header-root .fa, 
.custom-header-root .fas, 
.custom-header-root .far, 
.custom-header-root .fab { 
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important; 
}

.custom-header-root .fab { 
    font-family: "Font Awesome 6 Brands" !important; 
    font-weight: 400; 
}

/* Top Wrapper */
.custom-header-root .top-wrapper { 
    display: flex; 
    width: 100%; 
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.custom-header-root .logo-box { 
    background: #fff; 
    padding: 12px 30px; 
    display: flex; 
    align-items: center; 
}

.custom-header-root .logo-box img { 
    height: 65px; 
}

/* Top Green Section */
.custom-header-root .top-green { 
    flex: 1; 
    background: #608f4a; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 40px 0 60px; 
    clip-path: polygon(40px 0, 100% 0, 100% 100%, 0 100%); 
}

.custom-header-root .top-links a { 
    color: #fff; 
    text-decoration: none; 
    margin-right: 18px; 
    font-size: 16px; 
    transition: color 0.2s; 
}

.custom-header-root .top-links a:hover { 
    color: #103779; 
}

.custom-header-root .top-phones { 
    color: #fff; 
    display: flex;
    align-items: center;
    gap: 18px;
}

.custom-header-root .top-phones span { 
    color: #fff; 
    font-size: 16px; 
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Social Icons */
.top-social-icons { 
    display: flex; 
    gap: 12px; 
    align-items: center; 
}

.top-social-icons a { 
    color: #fff; 
    background: rgba(255, 255, 255, 0.15);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 16px;
    text-decoration: none;
}

.top-social-icons a:hover { 
    background: #103779;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(16, 55, 121, 0.3);
}

.top-social-icons a i { 
    font-size: 16px;
    line-height: 1;
}

/* Menu Header */
.custom-header-root .menu-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 18px 40px 18px 30px; 
    background: #fff; 
    border-bottom: 1px solid #eee; 
    position: relative; 
    z-index: 10; 
    width: 100%; 
}

.custom-header-root .menu { 
    display: flex; 
    align-items: center; 
    position: relative; 
}

.custom-header-root .menu a { 
    text-decoration: none; 
    color: #103779; 
    margin-right: 25px; 
    font-weight: 500; 
    position: relative; 
    padding: 8px; 
    transition: color 0.2s; 
}

.custom-header-root .menu a:hover { 
    color: #84b535; 
}

/* Enquiry Button */
.custom-header-root .enquiry-btn {
    background: linear-gradient(145deg, #0e2a5a 60%, #1451a3 100%);
    color: #fff;
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    margin-left: 20px;
    box-shadow: 0 6px 18px 0 rgba(16,55,121,0.18), 0 2px 4px 0 #0e2a5a;
    border: none;
    outline: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
    position: relative;
}

.custom-header-root .enquiry-btn:hover {
    background: linear-gradient(145deg, #84b535 60%, #b6e35a 100%);
    color: #103779;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 24px 0 rgba(132,181,53,0.18), 0 4px 8px 0 #84b535;
}

/* WhatsApp Button */
.custom-header-root .whatsapp-btn {
    background: linear-gradient(145deg, #1fa855 60%, #25d366 100%);
    color: #fff;
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 18px 0 rgba(37,211,102,0.18), 0 2px 4px 0 #1fa855;
    border: none;
    outline: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.custom-header-root .whatsapp-btn:hover {
    background: linear-gradient(145deg, #103779 60%, #1451a3 100%);
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 24px 0 rgba(16,55,121,0.18), 0 4px 8px 0 #103779;
}

/* ============================================
   Mega Menu Styles
   ============================================ */
.menu-item-with-mega { 
    position: relative; 
}

.menu-item-with-mega .mega-menu {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%) translateY(-50px) scale(0.92);
    width: 1200px;
    max-width: 95vw;
    background: #fff;
    box-shadow: 0 4px 20px rgba(16,55,121,0.08);
    border-radius: 18px;
    padding: 38px 38px 32px 38px;
    z-index: 10000;
    border: 1.5px solid #e5e7eb;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 1s,
                box-shadow 1s ease-out;
    pointer-events: none;
    transform-origin: top center;
}

.menu-item-with-mega .mega-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

.menu-item-with-mega:hover .mega-menu,
.menu-item-with-mega:focus-within .mega-menu,
.mega-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(15px) scale(1);
    pointer-events: auto;
    box-shadow: 0 12px 48px rgba(16,55,121,0.16);
}

.mega-menu-content {
    display: flex;
    flex-wrap: wrap;
    gap: 36px 32px;
    justify-content: flex-start;
}

.mega-menu-col {
    min-width: 210px;
    flex: 1 1 210px;
    margin-bottom: 18px;
}

.mega-menu-col h4 {
    font-size: 1.13em;
    color: #103779;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.mega-menu-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-col ul li {
    margin-bottom: 7px;
}

.mega-menu-col ul li:last-child {
    margin-bottom: 0;
}

.mega-menu-col a {
    display: block;
    color: #222;
    padding: 10px 12px;
    font-size: 15.2px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
}

.mega-menu-col a:hover {
    color: #fff;
    background: linear-gradient(90deg, #103779 60%, #84b535 100%);
    padding-left: 18px;
    box-shadow: 0 2px 8px rgba(16, 55, 121, 0.15);
}

/* Remove old animation keyframes - no longer needed */

/* ============================================
   Mobile Drawer Menu
   ============================================ */
.mobile-drawer-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #103779 70%, #84b535 100%);
    box-shadow: 2px 0 32px rgba(16,55,121,0.18);
    z-index: 12000;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(.77,0,.18,1);
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
    overflow-y: auto;
}

.mobile-drawer-menu.open { 
    transform: translateX(0); 
}

.mobile-drawer-header { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 18px 22px 16px 22px; 
    border-bottom: 1px solid #e5e7eb33;
    background: #fff;
}

.mobile-menu-close { 
    background: none; 
    border: none; 
    font-size: 2rem; 
    color: #103779; 
    cursor: pointer; 
}

.mobile-menu-list { 
    display: flex; 
    flex-direction: column;
    overflow-y: auto;
    flex: 1;
}

.mobile-menu-list > a { 
    color: #fff; 
    font-size: 1.05rem; 
    padding: 15px 22px; 
    text-decoration: none; 
    border: none; 
    background: none; 
    border-bottom: 1px solid #e5e7eb22; 
    transition: all 0.25s ease;
    /* display: flex; */
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.mobile-menu-list > a i {
    font-size: 1rem;
    min-width: 18px;
    text-align: left;
}

.mobile-menu-link { 
    color: #fff; 
    font-size: 1.1rem; 
    padding: 16px 22px; 
    text-decoration: none; 
    border: none; 
    background: none; 
    border-bottom: 1px solid #e5e7eb22; 
    transition: all 0.25s ease;
    width: 100%;
    text-align: left;
    font-weight: 500;
}

.mobile-menu-list > a:hover, 
.mobile-menu-link:hover { 
    background: rgba(255, 255, 255, 0.1); 
    color: #84b535;
    padding-left: 28px;
}

.mobile-menu-list > a.whatsapp-btn {
    background: linear-gradient(145deg, #25d366 60%, #1fa855 100%);
    color: #fff;
    margin: 16px 22px;
    border-radius: 12px;
    padding: 16px 24px;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    justify-content: center;
    font-size: 1.15rem;
}

.mobile-menu-list > a.whatsapp-btn:hover {
    background: linear-gradient(145deg, #1fa855 60%, #25d366 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
    padding-left: 24px;
}

.mobile-menu-item-with-mega { 
    display: flex; 
    flex-direction: column; 
}

.mobile-menu-link.has-mega { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    cursor: pointer;
    gap: 10px;
}

.mobile-menu-link.has-mega span:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-link.has-mega span:first-child i {
    font-size: 1rem;
    min-width: 18px;
    text-align: left;
}

.mobile-mega-toggle { 
    margin-left: 12px; 
    color: #fbbf24; 
    font-size: 1.2em; 
    display: flex; 
    align-items: center; 
}

.mobile-mega-menu { 
    display: none; 
    flex-direction: column; 
    background: #fff1; 
    padding-left: 18px; 
}

.mobile-menu-item-with-mega.open .mobile-mega-menu { 
    display: flex; 
    animation: fadeInMenu 0.25s; 
}

.mobile-mega-menu a { 
    color: #fff; 
    font-size: 1rem; 
    padding: 10px 0 10px 10px; 
    border: none; 
    border-radius: 0; 
    background: none; 
    border-bottom: 1px solid #e5e7eb11; 
    transition: background 0.18s, color 0.18s; 
}

.mobile-mega-menu a:hover { 
    background: #fff2; 
    color: #84b535; 
}

@keyframes fadeInMenu { 
    from { opacity: 0; transform: translateY(16px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* ============================================
   Mobile Responsive Styles
   ============================================ */
@media (max-width: 992px) {
    .custom-header-root .menu { 
        display: none !important; 
    }
    
    /* Hide entire menu-header on mobile */
    .custom-header-root .menu-header { 
        display: none !important;
    }
    
    .top-wrapper { 
        justify-content: space-between; 
        align-items: center; 
        padding: 0 12px; 
        background: #fff; 
        border-bottom: 1px solid #e5e7eb; 
        min-height: 60px; 
    }
    
    .top-wrapper .logo-box { 
        padding: 0; 
    }
    
    .top-wrapper .logo-box img { 
        height: 65px; 
    }
    
    .top-wrapper .mobile-menu-toggle { 
        display: block; 
        background: none; 
        border: none; 
        font-size: 2rem; 
        color: #103779; 
        margin-left: 8px; 
        cursor: pointer; 
    }
    
    .top-wrapper .top-green, 
    .top-wrapper .top-links, 
    .top-wrapper .top-phones { 
        display: none !important; 
    }
}

@media (min-width: 993px) { 
    .mobile-drawer-menu, 
    .mobile-menu-toggle { 
        display: none !important; 
    }
    
    /* Force display icons on desktop */
    .custom-header-root .top-green { 
        display: flex !important; 
    }
    
    .custom-header-root .top-links { 
        display: flex !important; 
    }
    
    .custom-header-root .top-phones { 
        display: flex !important; 
    }
    
    .custom-header-root .top-social-icons { 
        display: flex !important; 
    }
    
    .custom-header-root .top-social-icons a { 
        display: inline-flex !important; 
    }
}
