:root {
    --primary-purple: #7c4fdc;
    --light-purple: #f6f2ff;
    --dark-purple: #51259e;
    --accent-purple: #956ee9;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --gray-bg: #f9f9fb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header / Navbar */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.logo-icon-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(124, 79, 220, 0.2);
    flex-shrink: 0;
}

.logo-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.logo-text h2 {
    font-size: 16px;
    color: var(--primary-purple);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.logo-text span {
    font-size: 9px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-dark);
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-purple);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover,
nav a.active {
    color: var(--primary-purple);
}

.btn-primary {
    background-color: var(--primary-purple);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(124, 79, 220, 0.2);
}

.btn-primary:hover {
    background-color: var(--dark-purple);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(124, 79, 220, 0.35);
}

/* Hamburger Menu Toggle Icon (Initially Hidden on Desktop) */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--dark-purple);
    cursor: pointer;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 5%;
    background: linear-gradient(135deg, #fcfbff 0%, var(--light-purple) 100%);
    min-height: 80vh;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 580px;
}

.welcome-badge {
    display: inline-block;
    background: rgba(124, 79, 220, 0.1);
    color: var(--primary-purple);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 40px;
    line-height: 1.2;
    color: var(--dark-purple);
    margin-bottom: 20px;
}

.hero-content p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-outline {
    background: transparent;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--primary-purple);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(124, 79, 220, 0.2);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-instructor-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(124, 79, 220, 0.18);
    animation: floatHero 4s ease-in-out infinite;
}

@keyframes floatHero {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Why Choose Us Section */
.features-section {
    padding: 70px 5%;
    text-align: center;
}

.section-title {
    font-size: 30px;
    color: var(--dark-purple);
    margin-bottom: 40px;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--white);
    border: 1px solid #eee;
    padding: 35px 20px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(124, 79, 220, 0.12);
    border-color: rgba(124, 79, 220, 0.2);
}

.feature-icon {
    width: 65px;
    height: 65px;
    background: var(--light-purple);
    color: var(--primary-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 26px;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary-purple);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 17px;
    margin-bottom: 10px;
    color: var(--dark-purple);
}

.feature-card p {
    font-size: 13px;
    color: var(--text-light);
}

/* Popular Subjects Section */
.subjects-section {
    padding: 70px 5%;
    background-color: var(--gray-bg);
    text-align: center;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 35px;
}

.subject-card {
    background: var(--white);
    padding: 25px 15px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #eaeaea;
}

.subject-card:hover {
    background: var(--primary-purple);
    color: var(--white);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(124, 79, 220, 0.25);
}

.subject-card:hover i {
    color: var(--white);
    transform: scale(1.2);
}

.subject-card i {
    font-size: 30px;
    color: var(--primary-purple);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.subject-card h4 {
    font-size: 14px;
    font-weight: 600;
}

/* Call to Action Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--dark-purple) 0%, var(--primary-purple) 100%);
    color: var(--white);
    padding: 50px 5%;
    text-align: center;
    border-radius: 20px;
    margin: 50px 5%;
    box-shadow: 0 10px 30px rgba(124, 79, 220, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    transform: rotate(30deg);
    pointer-events: none;
    animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
    0% {
        transform: translateY(-30%) rotate(0deg);
    }

    100% {
        transform: translateY(30%) rotate(360deg);
    }
}

.cta-banner h2 {
    font-size: 30px;
    margin-bottom: 12px;
}

.cta-banner p {
    font-size: 15px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.btn-white {
    background: var(--white);
    color: var(--primary-purple);
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background: var(--light-purple);
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background-color: var(--dark-purple);
    color: var(--white);
    padding: 50px 5% 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 35px;
    margin-bottom: 35px;
}

.footer-col h3 {
    font-size: 15px;
    margin-bottom: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-col p {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 18px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-size: 13px;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--light-purple);
    transform: translateX(5px);
}

.footer-col .contact-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    opacity: 0.8;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.social-icons a {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-purple);
    transform: translateY(-3px) scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    opacity: 0.7;
}

/* ================= ABOUT PAGE STYLING ================= */
.about-main-section {
    padding: 60px 5%;
    background: linear-gradient(135deg, #fcfbff 0%, var(--light-purple) 100%);
}

.about-hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 60px;
}

.about-hero-text {
    flex: 1.2;
}

.about-hero-text h1 {
    font-size: 38px;
    color: var(--dark-purple);
    margin-bottom: 20px;
    font-weight: 700;
}

.about-hero-text p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.about-hero-image {
    flex: 0.8;
    display: flex;
    justify-content: center;
    position: relative;
}

.about-hero-image img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(124, 79, 220, 0.2);
    animation: floatHeroImage 4s ease-in-out infinite;
}

@keyframes floatHeroImage {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Mission Box */
.mission-box {
    background: var(--white);
    border: 1px solid #eaeaea;
    padding: 25px 30px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
    margin-top: 20px;
    transition: all 0.4s ease;
}

.mission-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(124, 79, 220, 0.15);
    border-color: var(--primary-purple);
}

.mission-icon {
    width: 55px;
    height: 55px;
    background: var(--light-purple);
    color: var(--primary-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.mission-box:hover .mission-icon {
    background: var(--primary-purple);
    color: var(--white);
    transform: scale(1.1) rotate(10deg);
}

.mission-content h3 {
    font-size: 17px;
    color: var(--dark-purple);
    margin-bottom: 6px;
}

.mission-content p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* Founder Section */
.founder-section {
    background: var(--white);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(124, 79, 220, 0.08);
    border: 1px solid rgba(124, 79, 220, 0.1);
    margin-bottom: 60px;
    transition: all 0.4s ease;
}

.founder-section:hover {
    box-shadow: 0 15px 50px rgba(124, 79, 220, 0.15);
}

.founder-grid {
    display: flex;
    align-items: center;
    gap: 40px;
}

.founder-img-box {
    flex: 0.8;
    display: flex;
    justify-content: center;
}

.founder-zoom-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    transform: scale(1.15);
    border: 5px solid var(--light-purple);
    box-shadow: 0 10px 25px rgba(124, 79, 220, 0.2);
    transition: all 0.5s ease;
}

.founder-zoom-img:hover {
    transform: scale(1.22) rotate(3deg);
}

.founder-details {
    flex: 1.5;
}

.founder-details h2 {
    font-size: 28px;
    color: var(--dark-purple);
    margin-bottom: 4px;
}

.founder-tag {
    font-size: 13px;
    color: var(--primary-purple);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
}

.founder-details p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.founder-points {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.founder-point-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
    transition: transform 0.3s ease;
}

.founder-point-item:hover {
    transform: translateX(8px);
    color: var(--primary-purple);
}

.founder-point-item i {
    color: var(--primary-purple);
    font-size: 15px;
}

/* Stats Bar inside About */
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: linear-gradient(135deg, var(--dark-purple) 0%, var(--primary-purple) 100%);
    color: var(--white);
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(81, 37, 158, 0.3);
}

.about-stat-item {
    transition: transform 0.3s ease;
}

.about-stat-item:hover {
    transform: translateY(-5px) scale(1.05);
}

.about-stat-item h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 5px;
}

.about-stat-item p {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
}

/* ================= SUBJECTS PAGE STYLING ================= */
.subjects-hero-section {
    background: linear-gradient(135deg, var(--dark-purple) 0%, var(--primary-purple) 100%);
    color: var(--white);
    padding: 60px 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.subjects-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    transform: rotate(30deg);
    pointer-events: none;
    animation: shimmerSubjects 8s linear infinite;
}

@keyframes shimmerSubjects {
    0% {
        transform: translateY(-30%) rotate(0deg);
    }

    100% {
        transform: translateY(30%) rotate(360deg);
    }
}

.subjects-hero-content h1 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 10px;
}

.subjects-hero-content p {
    font-size: 15px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.subjects-main-section {
    padding: 60px 5%;
    background-color: var(--gray-bg);
}

.subjects-container-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.subject-page-card {
    background: var(--white);
    border: 1px solid #eaeaea;
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.subject-page-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-purple);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.subject-page-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(124, 79, 220, 0.18);
    border-color: rgba(124, 79, 220, 0.3);
}

.subject-page-card:hover::after {
    transform: scaleX(1);
}

.subject-page-icon {
    width: 75px;
    height: 75px;
    background: var(--light-purple);
    color: var(--primary-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    transition: all 0.4s ease;
}

.subject-page-card:hover .subject-page-icon {
    background: var(--primary-purple);
    color: var(--white);
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 8px 20px rgba(124, 79, 220, 0.3);
}

.subject-page-card h3 {
    font-size: 18px;
    color: var(--dark-purple);
    margin-bottom: 12px;
    font-weight: 600;
}

.subject-page-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-subject-action {
    background: transparent;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
    padding: 8px 22px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subject-page-card:hover .btn-subject-action {
    background: var(--primary-purple);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 79, 220, 0.25);
}

/* ================= ADMISSION FORM PAGE ================= */
.admission-hero-section {
    background: linear-gradient(135deg, var(--dark-purple) 0%, var(--primary-purple) 100%);
    color: var(--white);
    padding: 60px 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.admission-hero-content h1 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 10px;
}

.admission-hero-content p {
    font-size: 14px;
    opacity: 0.9;
}

.admission-main-section {
    padding: 60px 5%;
    background-color: var(--gray-bg);
    display: flex;
    justify-content: center;
}

.admission-form-container {
    background: var(--white);
    width: 100%;
    max-width: 800px;
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(124, 79, 220, 0.08);
    border: 1px solid rgba(124, 79, 220, 0.1);
}

.form-section-title {
    margin-bottom: 30px;
    border-bottom: 2px solid var(--light-purple);
    padding-bottom: 12px;
}

.form-section-title h2 {
    font-size: 20px;
    color: var(--dark-purple);
    font-weight: 600;
}

.admission-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    outline: none;
    background-color: #fcfcfc;
}

/* ================= MOBILE RESPONSIVE MEDIA QUERIES (FIXED HEADER & MENU) ================= */
@media (max-width: 992px) {
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        position: relative;
        width: 100%;
    }

    /* Logo area ko fix karein taaki wo apni jagah par theek rahay */
    .logo-container {
        flex-shrink: 0;
    }

    /* Hamburger icon ko forcefully right side par show karein */
    .menu-toggle {
        display: block !important;
        font-size: 22px;
        color: var(--dark-purple);
        cursor: pointer;
    }

    /* Navbar ko initially bilkul hide kar dein taaki wo header mein na phailay */
    nav#nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.35s ease-in-out;
        z-index: 999;
        border-bottom: 1px solid #eaeaea;
    }

    /* Jab JS se 'active' class lage gi toh menu smoothly drop-down ho kar khul jayega */
    nav#nav-menu.active {
        max-height: 400px;
    }

    /* Links ko proper vertical list mein stack karein */
    nav#nav-menu ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 5px 0;
        width: 100%;
        list-style: none;
    }

    nav#nav-menu ul li {
        width: 100%;
        text-align: left;
    }

    nav#nav-menu ul li a {
        display: block;
        padding: 12px 20px;
        border-bottom: 1px solid #f4f4f4;
        font-size: 15px;
        color: var(--text-dark);
    }

    nav#nav-menu ul li a::after {
        display: none;
    }

    /* Header ke andar ka primary button mobile mein hide kar dein */
    header>.btn-primary {
        display: none !important;
    }
}

/* General Mobile Layout Adjustments (max-width: 768px) */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
        min-height: auto;
        gap: 30px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 30px !important;
        line-height: 1.25;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .features-grid,
    .subjects-grid,
    .subjects-container-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .about-hero-grid,
    .founder-grid {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .mission-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
        padding: 25px 15px;
    }

    .admission-form-container {
        padding: 25px 20px !important;
        margin: 0;
    }

    .form-row {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
        text-align: center;
    }

    .footer-col .logo-container {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }
}

/* ================= ULTIMATE MOBILE HEADER FIX ================= */
@media (max-width: 992px) {
    header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 15px !important;
        position: relative !important;
        width: 100% !important;
    }

    /* Logo ko theek rakhne ke liye */
    .logo-container {
        flex-shrink: 0 !important;
    }

    /* Hamburger icon ko lazmi show karein aur right side par karein */
    .menu-toggle {
        display: block !important;
        font-size: 24px !important;
        color: var(--dark-purple) !important;
        cursor: pointer !important;
        order: 3;
    }

    /* Chahe id 'nav-menu' ho ya na ho, header ke andar ke <nav> ko hide kar do */
    header nav,
    nav#nav-menu,
    .nav-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background: var(--white) !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
        overflow: hidden !important;
        max-height: 0 !important;
        transition: max-height 0.35s ease-in-out !important;
        z-index: 9999 !important;
        border-bottom: 1px solid #eaeaea !important;
    }

    /* Jab JavaScript se 'active' class add ho toh menu khul jaye */
    header nav.active,
    nav#nav-menu.active,
    .nav-menu.active {
        max-height: 400px !important;
    }

    /* Menu ke andar ki list items ko vertical stack karein */
    header nav ul,
    nav#nav-menu ul,
    .nav-menu ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 5px 0 !important;
        width: 100% !important;
        list-style: none !important;
    }

    header nav ul li,
    nav#nav-menu ul li,
    .nav-menu ul li {
        width: 100% !important;
        text-align: left !important;
    }

    header nav ul li a,
    nav#nav-menu ul li a,
    .nav-menu ul li a {
        display: block !important;
        padding: 12px 20px !important;
        border-bottom: 1px solid #f4f4f4 !important;
        font-size: 15px !important;
        color: var(--text-dark) !important;
    }

    header nav ul li a::after,
    nav#nav-menu ul li a::after {
        display: none !important;
    }

    /* Header ke bar (jaise Contact Us button) ko mobile mein hide karne ke liye */
    header>.btn-primary,
    header>a.btn-primary,
    header>button {
        display: none !important;
    }
}

/* ================= ADDITIONAL FIX FOR MOBILE HEADER OVERLAP ================= */
@media (max-width: 992px) {

    /* Header ke right side wale container ko flex alignment dena */
    header>div:last-child {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
    }

    /* Header ke andar jo direct Contact Us button hai usko mobile mein hide karna */
    header>div:last-child .btn-primary,
    header>a>.btn-primary {
        display: none !important;
    }

    /* Menu toggle icon ko mobile par lazmi show karna */
    header .menu-toggle {
        display: block !important;
    }
}