


/* 2. Mobile Menu ko Navbar ke niche set karein */
#mobile-menu {
    display: none; 
    position: fixed; 
    top: 70px; /* Ye Navbar ki height ke barabar hona chahiye */
    left: 0; 
    right: 0;
    background: #fff; /* Menu ka background white */
    z-index: 999;  /* Navbar se kam taaki niche dikhe */
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    
    /* Smooth slide animation ke liye */
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

/* 3. Jab menu open ho tab wo apni jagah par aa jaye */
#mobile-menu.open {
    display: block;
    transform: translateY(0); /* Niche slide hokar aayega */
}

/* 4. Logo aur Hamburger ka z-index manage karein */
.logo-container, .hamburger {
    position: relative;
    z-index: 1001; /* Taki ye menu ke upar na dabein */
}

/* Navbar ko hamesha top par rakhein */
#main-nav {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999 !important; /* Isse sabse upar rakhein */
    height: 70px; /* Ek fix height dein */
    background: #0a3d62; /* Transparent na rakhein mobile par */
}

@media (max-width: 900px) {
    /* Home page par bhi desktop links ko hide karein */
    .nav-links, .nav-cta {
        display: none !important;
    }
    
    .hamburger {
        display: flex !important;
    }
}
/* Mobile Menu ko Navbar ke theek niche se start karein */
#mobile-menu {
    position: fixed !important;
    top: 70px !important; /* Navbar ki height jitna niche */
    left: 0;
    right: 0;
    z-index: 9998 !important; /* Navbar se just niche */
    background: #fdfaf5; /* Cream background jaisa photo mein hai */
    display: none;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

#mobile-menu.open {
    display: block !important;
}
/* ─── NAVBAR ─── */
nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 5%;
    background:rgba(10, 61, 98, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212,168,67,0.2);
    transition: box-shadow 0.3s;
    box-sizing: border-box;
}
nav.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ─── LOGO ─── */
.logo-container {
    display: flex;
    align-items: center; /* Vertical center alignment */
    background-color: #ffffff; /* White background */
    padding: 2px 15px;
    border-radius: 8px; /* Optional: corners round karne ke liye */
    gap: 12px; /* Image aur text ke beech ka gap */
    width: fit-content; /* Jitna content hai utni hi width lega */
}

.logo-img-wrapper img {
    height: 50px; /* Image height */
    display: block;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column; /* Text upar aur link niche karne ke liye */
    justify-content: center;
}

.brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: #0a3d62; /* Dark color for text */
    line-height: 1.2;
}

.brand-link {
    font-size: 0.8rem;
    color: #e8651a; /* Saffron color for link */
    text-decoration: none;
    font-weight: 500;
}

.brand-link:hover {
    text-decoration: underline;
}
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem; font-weight: 900;
    color: var(--ink);
    letter-spacing: -0.5px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo span { color: var(--saffron); }

/* ─── DESKTOP NAV LINKS ─── */
.nav-links {
    display: flex; gap: 1.5rem; list-style: none;
}
.nav-links a {
    font-size: 0.9rem; font-weight: 500;
    color: rgba(255, 255, 255, 0.85); text-decoration: none;
    letter-spacing: 0.02em; transition: color 0.2s;
    white-space: nowrap;
    margin-right: 6px;
}
.nav-links a:hover { color: var(--saffron); }

/* ─── CTA BUTTONS (desktop) ─── */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

/* Free Test button */
.btn-test-nav {
    background: linear-gradient(135deg, #e8651a, #c0501a);
    color: #fff !important;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: opacity 0.2s;
    letter-spacing: 0.3px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-test-nav:hover { opacity: 0.88; }

/* ─── HAMBURGER ─── */
.hamburger {
    display: none;
    flex-direction: column; gap: 5px;
    background: none; border: none;
    cursor: pointer; padding: 4px;
    flex-shrink: 0;
    z-index: 101;
}
.hamburger span {
    display: block; width: 24px; height: 2px;
    background: var(--ink);
    transition: all 0.3s;
    border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE MENU ─── */
#mobile-menu {
    display: none;
    position: fixed; top: 65px; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(212,168,67,0.2);
    z-index: 99;
    padding: 1.2rem 5% 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        margin-right: 5px;
        
}
#mobile-menu.open { display: block; }
#mobile-menu ul {
    list-style: none;
    display: flex; flex-direction: column; gap: 0.2rem;
    margin-bottom: 1rem;
}
#mobile-menu li a {
    display: block;
    font-size: 1rem; font-weight: 500;
    color: var(--ink); text-decoration: none;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(212,168,67,0.1);
    transition: color 0.2s;
}
#mobile-menu li:last-child a { border-bottom: none; }
#mobile-menu a:hover { color: var(--saffron); }

/* Mobile CTA buttons row */
#mobile-menu .mobile-cta {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}
#mobile-menu .mobile-cta a,
#mobile-menu .mobile-cta button {
    flex: 1;
    text-align: center;
    justify-content: center;
    min-width: 0;
    padding: 10px 12px;
    font-size: 0.88rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
#mobile-menu .mobile-cta .btn-test-mobile {
    background: linear-gradient(135deg, #e8651a, #c0501a);
    color: #fff;
}
#mobile-menu .mobile-cta .btn-outline-mobile {
    border: 1.5px solid var(--ink);
    background: transparent;
    color: var(--ink);
    display: inline-block;
}
#mobile-menu .mobile-cta .btn-fill-mobile {
    background: var(--ink);
    color: var(--cream);
    display: inline-block;
}

/* ─── FLASH ALERTS ─── */
.alert {
    position: fixed; top: 80px; right: 1.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 0.88rem; font-weight: 500;
    z-index: 999;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    max-width: calc(100vw - 3rem);
}
.alert-success { background: #e6f9f1; color: #1a7a4a; border: 1px solid #b2e8cf; }
.alert-error   { background: #fef0ed; color: #b83c1e; border: 1px solid #f5bfb0; }

/* ─── FOOTER ─── */
footer {
    background: var(--ink);
    color: rgba(245,240,232,0.5);
    padding: 2.5rem 5%;
    display: flex; align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    flex-wrap: wrap; gap: 1rem;
}
footer .logo { color: var(--cream); font-size: 1.2rem; }
footer p { margin: 0; }
.footer-links { display: flex; align-items: center; gap: 0.6rem; }
.footer-links a {
    color: rgba(245,240,232,0.5);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

/* ─── RESPONSIVE FIX ─── */

/* Tablet & below */
@media (max-width: 900px) {

    /* Hide desktop nav */
    .nav-links { 
        display: none; 
    }

    .nav-cta { 
        display: none; 
    }

    /* Show hamburger */
    .hamburger { 
        display: flex; 
    }

    /* Adjust navbar padding */
    nav { 
        padding: 0.9rem 5%; 
    }

    /* Mobile menu spacing fix */
    #mobile-menu {
        padding: 1rem 5% 1.5rem;
    }
}

/* Small devices (mobile) */
@media (max-width: 600px) {

    nav {
        padding: 0.8rem 4%;
    }

    .logo {
        font-size: 1.4rem;
    }

    #mobile-menu {
        top: 60px;
    }

    #mobile-menu li a {
        font-size: 0.95rem;
        padding: 0.55rem 0;
    }

    #mobile-menu .mobile-cta a,
    #mobile-menu .mobile-cta button {
        font-size: 0.85rem;
        padding: 9px 10px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {

    .logo { 
        font-size: 1.3rem; 
    }

    nav {
        padding: 0.7rem 4%;
    }

    #mobile-menu { 
        top: 58px; 
    }

    #mobile-menu ul {
        gap: 0.1rem;
    }

    #mobile-menu .mobile-cta {
        flex-direction: column;
    }

    #mobile-menu .mobile-cta a,
    #mobile-menu .mobile-cta button {
        width: 100%;
    }
}

.hamburger span {
    background: #ffffff; /* Isse white karke dekhein agar nav dark hai */
}

/* Is portion ko check karein */
#mobile-menu {
    display: none !important; /* Shuruat mein hide karne ke liye */
    position: fixed; 
    /* ... baki code ... */
}

#mobile-menu.open {
    display: block !important; /* Jab class 'open' add ho tabhi dikhe */
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    /* Hide desktop nav links and cta*/
    .nav-links { display: none; }
    .nav-cta   { display: none; } 

    /* Show hamburger   */
    .hamburger { display: flex; }

    /* Nav stays tight on mobile */
    nav { padding: 0.9rem 5%; } 

    footer { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}
@media (max-width: 600px) {
    /* Logo container ko chhota karein */
    .logo-container {
        padding: 4px 8px; /* Desktop par 5px 15px tha */
        gap: 6px; 
        border-radius: 6px;
    }

    /* Logo image ki height kam karein */
    .logo-img-wrapper img {
        height: 35px; /* Desktop par 50px tha */
    }

    /* Text ka size bhi chhota karein */
    .brand-name {
        font-size: 0.85rem;
    }

    .brand-link {
        font-size: 0.65rem;
    }
}
#mobile-menu {
    top: 70px; /* Isko thoda badhayein taaki logo ke niche se start ho */
    height: calc(100vh - 70px); /* Taki menu screen ke bahar na jaye */
    overflow-y: auto; /* Agar links zyada hain toh scroll ho sakein */
}

@media (max-width: 480px) {
    .logo { font-size: 1.3rem; }
    #mobile-menu { top: 58px; }
}

