/* ------------------- RESET ------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ------------------- TOP HEADER ------------------- */
.top-header {
    width: 100%;
    background: #faf9ea;
    color: #e45e22;
    font-size: 15px;
    padding: 6px 0;
    z-index: 10;
}

.top-container {
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    font-weight: bold;
}

.top-header i {
    font-size: 18px;
    color: #e45e22;
    transition: 0.3s;
}
.top-header i:hover { color: #257ad2; }

/* ------------------- MAIN HEADER ------------------- */
header {
    position: fixed;
    top: 35px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 0 10px #e45e22;
    z-index: 500;
    transition: top 0.3s ease;
}
header.sticky { top: 0 !important; }

.header-container {
    max-width: 1400px;
    margin: auto;
    height: 95px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.logo img {
    display: block;
    max-height: 90px;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #000;
    text-decoration: none;
    font-size: 17px;
    font-weight: bold;
    padding: 8px 12px;
    transition: 0.4s;
}
nav ul li a:hover {
    color: #e45e22;
    transform: scale(1.05);
}

/* Button */
.btn {
    background: #e45e22;
    color: #fff;
    font-weight: bold;
    border: none;
    padding: 12px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(228, 94, 34, 0.9);
}
.btn:hover {
    background: #257ad2;
    transform: scale(1.1);
}

/* ------------------- RESPONSIVE ------------------- */
@media (max-width: 992px) {
    header { top: 55px !important; }
    .top-container {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 90px;
        padding: 10px 20px;
    }

    nav {
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background: #fff;
        overflow-y: auto !important;   /* SCROLL FIX */
        max-height: 100vh !important;
        transition: max-height 0.4s ease;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        display: none;      /* Hide by default */
        flex-direction: column;
    }
     body.nav-open {
        overflow: hidden;
    }
    nav.open { 
        display: block;
        max-height: 900px; 
    }

    nav ul {
        flex-direction: column;
        text-align: center;
    }
      nav ul li {
        position: relative;
        z-index: 1;
    }
    nav ul li a {
        padding: 12px 20px;
        display: block;
    }
   
    .btn { display: none; }
}


/* ------------------- HAMBURGER ------------------- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
}
.hamburger span {
    height: 3px;
    background: #e45e22;
    border-radius: 2px;
    transition: 0.3s;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
}

/* ------------------- MEGA MENU ------------------- */
.has-mega { position: static ; }

.has-mega .mega-dropdown {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    width: 90%;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    display: flex;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    transition: all 0.4s ease;
    z-index: 999 !important;
    overflow-y: auto;
}

.has-mega:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    max-height: 600px;
}

/* Split */
.mega-left {
    width: 100%;
    max-height: 450px;
    overflow-y: auto;
}


/* Tabs */
.mega-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}
.mega-tabs .tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: transparent;
    border: 1px solid #e45e22;
    cursor: pointer;
    font-weight: 400;
    border-radius: 6px;
    transition: 0.3s;
    font-size: 15px;
}

.mega-tabs .tab-btn i {
    font-size: 18px;
    color: #e45e22;
    transition: 0.3s;
}

.mega-tabs .tab-btn.active {
    color: #000;
    font-weight: 600;
    border: 1px solid #e45e22;
    box-shadow: 0 4px 10px rgba(228, 94, 34, 0.9);
}

.mega-tabs .tab-btn.active i {
    background: #e45e22;
    color: #fff;
    padding: 6px;
    border-radius: 50%;
    font-size: 16px;
}

/* Tab Content */
.tab-heading {
    margin-bottom: 15px;
    font-size: 22px;
    color: #e45e22;
}

.tab-content {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    animation: fadeIn 0.3s;
}
.tab-content.active {
    display: grid !important;
}

/* Cards */
.mega-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #eee;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: 0.3s;
    cursor: pointer;
}
.mega-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}
.mega-card h3 {
    font-size: 18px;
    color: #e45e22;
    margin-bottom: 10px;
}

/* Hidden text inside card */


/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {

    /* Disable hover behavior on mobile */
    .has-mega:hover .mega-dropdown {
        opacity: 0;
        visibility: hidden;
        max-height: 0;
    }

    /* Mega dropdown behaves like accordion */
    .has-mega .mega-dropdown {
        position: static !important;
        transform: none;
        width: 100% !important;
        padding: 15px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: 0.4s ease;
        box-shadow: none;
        border-radius: 0;
        z-index: 999 !important;
    }

    .has-mega.open .mega-dropdown {
        opacity: 1;
        visibility: visible;
        max-height: 1500px;
        display: flex !important;
        flex-direction: row;
        gap: 12px;
    }

    /* Left Column — Tabs */
    .mega-tabs {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    
    /* Right Column — Tab Content */
    .mega-left {
        width: 100%;
        overflow-y: auto !important;   /* SCROLL FIX */
        max-height: 70vh; 
    }

    /* Make tab content single-column */
    .tab-content {
        display: none;
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .tab-content.active {
        display: grid !important;
    }

}
@media (max-width: 768px) {

    html, body {
        overflow-x: hidden !important;  /* PREVENT right-side white gap */
    }

    nav {
        width: 100vw !important;        /* Fix overflow caused by flex children */
    }

    .mega-dropdown {
        overflow-x: hidden !important;  /* Prevent horizontal mega menu overflow */
    }
}
