body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    padding-top: 50px !important;
}

/* Navbar */
.navbar {
    z-index: 1030;
}

/* Hero Section */
.hero-section {
    padding-top: 5px !important;
    /* Hero section के ऊपरी गैप को कम किया */
    padding-bottom: 20px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

/* Search Box */
.search-box {
    max-width: 600px;
    background: white;
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    /* Padding thoda adjust kiya */
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    overflow: hidden;
    /* Button ko bahar nikalne se rokta hai */
}

.search-box:focus-within {
    box-shadow: 0 10px 30px -5px rgba(79, 70, 229, 0.2) !important;
    border-color: #4f46e5;
}

.search-box input:focus {
    box-shadow: none;
}

/* Quick Access Grid (Testbook Red/Pink Theme) */
.quick-access-grid {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.quick-card {
    background-color: #fff1f2;
    /* Light Pink */
    border: 1px solid #fecdd3;
    /* Light Red Border */
    border-radius: 12px;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #e11d48;
    /* Red Text */
    transition: all 0.2s ease;
    height: 100%;
}

.quick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.15);
    background-color: #ffe4e6;
}

.icon-wrapper {
    font-size: 1.5rem;
    color: #be123c;
    /* Darker Red Icon */
    flex-shrink: 0;
}

.quick-card h6 {
    font-size: 0.95rem;
    line-height: 1.3;
    color: #1e293b;
    /* Dark Text */
}

/* Stats Cards */
.stats-card {
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

/* Soft Colors Helper Classes */
.bg-success-soft {
    background-color: #dcfce7;
}

.text-success {
    color: #16a34a;
}

.bg-primary-soft {
    background-color: #e0e7ff;
}

.text-primary {
    color: #4f46e5;
}

/* Exam Cards */
.exam-card {
    display: block;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.exam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.1);
    border-color: #4f46e5;
}

.exam-icon {
    width: 64px;
    height: 64px;
    background-color: #f3f4f6;
    color: #4f46e5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto;
    transition: background 0.3s;
}

.exam-card:hover .exam-icon {
    background-color: #e0e7ff;
}

/* Custom Tabs */
.nav-pills .nav-link {
    color: #4b5563;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    padding: 8px 24px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-pills .nav-link.active {
    background-color: #4f46e5;
    color: white;
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.nav-pills .nav-link:hover:not(.active) {
    background-color: #f9fafb;
    border-color: #d1d5db;
}


/* --- Footer Social Icon Styles --- */
.social-icon {
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.social-icon:hover {
    color: var(--primary-color) !important;
    /* Uses your main brand color on hover */
    transform: scale(1.1);
}


/* --- Footer Styles --- */
.footer {
    width: 100%;
}

.founder-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #6c757d;
}

.founder-name {
    margin-top: 10px;
    font-weight: 500;
    font-size: 1rem;
}



/* --- Why Unictest Feature Cards --- */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
    /* Existing styles defined in older CSS for quick-card */
    width: 60px;
    /* थोड़ा बड़ा किया */
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    /* आइकॉन का साइज़ बढ़ाया */
    flex-shrink: 0;
}

/* New Colors for Why Unictest section */
.bg-soft-red {
    background-color: #fce7f3;
}

/* Pinkish Red */
.text-red {
    color: #db2777;
}

.bg-soft-green {
    background-color: #e0f2f1;
}

/* Light Teal */
.text-green {
    color: #0f766e;
}

/* नया नीला रंग */
.bg-soft-blue {
    background-color: #e0f2fe;
}

/* Light Blue */
.text-blue {
    color: #0284c7;
}


/* =========================================
   HERO BANNER CAROUSEL STYLES
   ========================================= */
#heroBannerCarousel {
    border-radius: 16px;
    overflow: hidden;
}

#heroBannerCarousel .carousel-inner {
    border-radius: 16px;
}

#heroBannerCarousel .carousel-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

#heroBannerCarousel .carousel-item a:hover img {
    transform: scale(1.02);
}

#heroBannerCarousel .carousel-indicators {
    bottom: -18px;
    gap: 6px;
}

#heroBannerCarousel .carousel-indicators button {
    transition: all 0.3s ease;
}

#heroBannerCarousel .carousel-indicators button.active {
    opacity: 1 !important;
    transform: scale(1.3);
    box-shadow: 0 0 6px rgba(79, 70, 229, 0.5);
}

/* Smooth crossfade */
#heroBannerCarousel .carousel-item {
    transition: opacity 0.8s ease-in-out;
}



/* =========================================
   MOBILE RESPONSIVE FIXES (Max Width 768px)
   ========================================= */

@media (max-width: 768px) {

    /* 1. Fix Global Horizontal Overflow */
    html,
    body {
        overflow-x: hidden;
        /* Prevents side-scrolling */
        width: 100%;
    }

    /* 2. Resize Big Headings (Hero Section) */
    .hero-section {
        padding: 20px 0 30px 0 !important;
        /* पहले 60px-80px था, अब बहुत कम कर दिया */
    }

    /* 2. मुख्य हेडिंग (Crack any government exam) को छोटा करें */
    .hero-section h1.display-4 {
        margin-top: 10px !important;
        font-size: 1.6rem !important;
        /* साइज़ छोटा किया */
        line-height: 1.1 !important;
        /* लाइनों के बीच का गैप कम किया */
        margin-bottom: 8px !important;
        /* नीचे का गैप कम किया */
    }

    /* 3. सब-टेक्स्ट (Get exam-ready...) को छोटा करें */
    .hero-section p.lead {
        font-size: 0.85rem !important;
        /* टेक्स्ट छोटा किया */
        margin-bottom: 15px !important;
        /* सर्च बॉक्स को और करीब लाएं */
        line-height: 1.3 !important;
    }

    .display-4 {
        font-size: 2rem !important;
        /* Reduce from 3.5rem to 2rem */
        word-wrap: break-word;
        /* Break long words if necessary */
        line-height: 1.2;
    }

    .lead {
        font-size: 1rem;
        padding: 0 15px;
        /* Add breathing room for text */
    }

    /* 3. Search Box Adjustment */
    .search-box {
        /* 1. बॉक्स की चौड़ाई और मार्जिन सेट करें */
        width: 92% !important;
        /* स्क्रीन के किनारों से थोड़ा दूर */
        margin: 0 auto 30px auto !important;
        /* सेंटर में लाएं */
        padding: 4px 4px 4px 15px !important;
        /* अंदर की जगह कम करें */
        height: 50px;
        /* फिक्स हाइट ताकि पिचके नहीं */
    }

    .search-box input {
        /* 2. लिखने वाली जगह (Input) को एडजस्ट करें */
        font-size: 0.9rem !important;
        /* टेक्स्ट थोड़ा छोटा */
        padding: 0 5px !important;
        /* पैडिंग कम करें */
        min-width: 0;
        /* यह Flexbox को टूटने से बचाएगा */
    }

    .search-box button {
        /* 3. 'Get Started' बटन को छोटा और कॉम्पैक्ट बनाएं */
        padding: 6px 14px !important;
        font-size: 0.8rem !important;
        white-space: nowrap;
        /* टेक्स्ट को टूटने से रोके */
        height: 40px;
        /* इनपुट के बराबर हाइट */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .search-box i {
        /* 4. सर्च आइकन (Lens) को एडजस्ट करें */
        font-size: 1rem !important;
        margin-right: 5px !important;
    }

    /* 4. Fix Quick Access Cards (The Main Culprit) */
    .quick-card {
        padding: 0.8rem;
        /* Reduce padding inside card */
        gap: 8px;
        /* Reduce gap between icon and text */
        align-items: flex-start;
        /* Align text to top */
    }

    .quick-card .icon-wrapper {
        width: 40px;
        /* Smaller icon container */
        height: 40px;
        font-size: 1.2rem;
        /* Smaller icon */
    }

    .quick-card h6 {
        font-size: 0.75rem;
        /* Smaller text size */
        line-height: 1.2;
        word-break: break-word;
        /* Prevent text overflow */
    }

    /* 5. Footer Adjustments */
    .founder-img {
        width: 60px;
        /* Smaller founder images */
        height: 60px;
    }

    /* 6. Modal / Auth Popup Fixes */
    .modal-dialog {
        margin: 10px;
        /* Add margin so modal doesn't touch screen edges */
    }

    /* नेविगेशन बार को नीचे खिसकाएं */
    .navbar.fixed-top {
        padding-top: 40px !important;
        /* ऊपर से जगह छोड़ी */
        padding-bottom: 15px !important;
        height: auto !important;
    }

    /* 1. Navbar के अंदर ऊपर से थोड़ी जगह (Padding) दें */
    .navbar {
        padding-top: 15px !important;
        /* टेक्स्ट को नीचे धकेलने के लिए */
        padding-bottom: 10px !important;
        min-height: 80px;
        /* हेडर की ऊंचाई थोड़ी बढ़ाएं */
    }

    /* 2. Body को भी नीचे खिसकाएं ताकि हेडर के पीछे कंटेंट न छिपे */
    body {
        padding-top: 100px !important;
        /* पुराना 70px था, अब 100px कर दिया */
    }

    /* 3. लोगो और बटन को थोड़ा एडजस्ट करें */
    .navbar-brand img {
        width: 30px;
        /* लोगो थोड़ा छोटा ताकि फिट रहे */
        height: 30px;
    }

    .navbar-brand {
        font-size: 1.2rem !important;
        /* फोंट थोड़ा छोटा */
    }

    .navbar-brand,
    .btn {
        position: relative;
        top: 5px;
    }

    .navbar .btn {
        padding: 5px 12px !important;
        /* Login बटन का साइज़ एडजस्ट */
        font-size: 0.85rem !important;
    }

    body {
        font-size: 13px !important;
    }

    h1,
    .display-4 {
        font-size: 1.8rem !important;
    }

    h2 {
        font-size: 1.4rem !important;
    }

    h3 {
        font-size: 1.2rem !important;
    }

    .lead {
        font-size: 0.95rem !important;
    }

    .hero-section {
        padding-top: 5px !important;
        /* Hero section ka space kam kiya */
    }

    .card-body {
        padding: 1rem !important;
    }

    .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem !important;
    }

    /* मुख्य हेडिंग के ऊपर का स्पेस भी कम किया */
    .hero-section h1.display-4 {
        margin-top: 10px !important;
    }

}




/* --- Final Pro Banner Styles --- */

.lekhpal-banner,
.police-constable-banner,
.police-si-banner {
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(238, 9, 121, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-height: 260px;
    margin-top: 5px;
    position: relative;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.lekhpal-banner {
    background: linear-gradient(135deg, #ff6a00 0%, #ee0979 100%);
}

.police-constable-banner {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    /* Blue Gradient */
    box-shadow: 0 20px 40px -10px rgba(0, 114, 255, 0.4);
}

.police-si-banner {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    /* Green/Teal Gradient */
    box-shadow: 0 20px 40px -10px rgba(56, 239, 125, 0.4);
}

/* --- 1. Background Pattern (खाली जगह भरने के लिए जादू) --- */
.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: 0;
    /* यह CSS से एक डॉटेड पैटर्न बनाएगा */
    background-image: radial-gradient(#ffffff 1.5px, transparent 1.5px), radial-gradient(#ffffff 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

/* --- 2. Middle Coupon Section Styles --- */
.coupon-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    transform: rotate(-2deg);
    /* थोड़ा सा तिरछा स्टाइलिश लुक के लिए */
    transition: transform 0.3s;
}

.lekhpal-banner:hover .coupon-card,
.police-constable-banner:hover .coupon-card,
.police-si-banner:hover .coupon-card {
    transform: rotate(0deg) scale(1.05);
    /* होवर पर सीधा हो जाएगा */
}

.coupon-box {
    letter-spacing: 2px;
    border-style: dashed !important;
    cursor: pointer;
}

/* कूपन के साइड वाले कट (Design Element) */
.c-circle {
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background-color: #f73648;
    /* बैनर के बैकग्राउंड जैसा रंग */
    border-radius: 50%;
    transform: translateY(-50%);
}

.c-left {
    left: -10px;
}

.c-right {
    right: -10px;
}

/* Blinking Text for Urgency */
.blink-text {
    animation: blink 1.5s infinite;
}

@keyframes blink {
    50% {
        opacity: 0.5;
    }
}


/* --- 3. Image Styling Fixes --- */
.student-hero-img {
    height: 290px;
    /* फोटो बड़ी की */
    width: auto;
    object-fit: contain;
    margin-bottom: -35px;
    /* नीचे से चिपकी रहे */
    margin-right: -20px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

/* --- Mobile Banner Fix (Compact Layout) --- */
@media (max-width: 768px) {

    .lekhpal-banner,
    .police-constable-banner,
    .police-si-banner {
        flex-direction: row !important;
        /* Row layout (Side-by-Side) */
        flex-wrap: wrap;
        /* Allow items to wrap */
        height: auto !important;
        min-height: auto !important;
        padding: 15px 10px 15px 15px !important;
        align-items: flex-end !important;
        /* Align content to bottom */
        text-align: left !important;
        margin-top: 0 !important;
    }

    /* 1. Text Content (Left Side - 60%) */
    .banner-content {
        width: 60% !important;
        flex: none !important;
        order: 1;
        /* सबसे पहले */
        padding: 0 !important;
        z-index: 5;
    }

    .banner-content h3 {
        font-size: 1.1rem !important;
        /* हेडिंग छोटी की */
        margin-bottom: 5px !important;
        line-height: 1.2;
    }

    .banner-content .badge {
        font-size: 0.6rem !important;
        padding: 3px 6px !important;
    }

    /* बुलेट पॉइंट्स को छोटा करें */
    .banner-content .d-flex.flex-column {
        margin-bottom: 8px !important;
        gap: 0 !important;
    }

    .banner-content .d-flex.flex-column span {
        font-size: 0.6rem !important;
        /* फॉन्ट बहुत छोटा */
        white-space: nowrap;
        /* एक लाइन में */
    }

    .banner-content .d-flex.flex-column span i {
        font-size: 0.6rem !important;
    }

    /* Price Box */
    .banner-content .bg-black {
        padding: 2px 8px !important;
    }

    .banner-content .fs-5 {
        font-size: 0.9rem !important;
    }

    .banner-content .small {
        font-size: 0.7rem !important;
    }

    /* 2. Image (Right Side - 40%) */
    .banner-image-container {
        width: 40% !important;
        flex: none !important;
        order: 2;
        /* दूसरे नंबर पर */
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: flex-end !important;
    }

    .student-hero-img {
        height: 120px !important;
        /* फोटो छोटी की */
        width: auto;
        margin-bottom: -15px !important;
        margin-right: -10px !important;
    }

    /* 3. Coupon Section (Bottom - Full Width) */
    .banner-middle {
        display: block !important;
        /* ✅ यह लाइन सबसे जरूरी है (Bootstrap d-none को ओवरराइड करेगी) */
        width: 100% !important;
        flex: none !important;
        order: 3;
        /* सबसे नीचे */
        margin: 10px 0 0 0 !important;
        padding: 0 !important;
    }

    .coupon-card {
        padding: 6px 12px !important;
        display: flex !important;
        flex-direction: row !important;
        /* क्षैतिज (Side-by-Side) */
        justify-content: space-between !important;
        align-items: center !important;
        background: rgba(255, 255, 255, 0.15) !important;
        /* थोड़ा ब्राइट */
        border: 1px dashed rgba(255, 255, 255, 0.4) !important;
        gap: 10px;
    }

    .coupon-card p {
        display: block !important;
        font-size: 0.6rem !important;
        margin: 0 !important;
        color: rgba(255, 255, 255, 0.9);
        white-space: nowrap;
    }

    .coupon-box {
        font-size: 0.9rem !important;
        padding: 2px 8px !important;
        margin: 0 !important;
        background: #fff;
        color: #d32f2f;
        border-radius: 4px;
    }

    .coupon-card .mt-2 {
        display: none !important;
        /* "Offer Ends Soon" को मोबाइल पर हटा दें ताकि जगह बचे */
    }

    .c-circle {
        display: none !important;
    }

    .coupon-card small {
        font-size: 0.7rem !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }
}






/* --- CHATBOT STYLES --- */
.chatbot-toggler {
    position: fixed;
    bottom: 30px;
    right: 30px;
    /* Right side me rakhne ke liye */
    outline: none;
    border: none;
    height: 50px;
    width: 50px;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #4f46e5;
    /* Primary Color */
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.2s ease;
    z-index: 9999;
    /* Sabse upar dikhega */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.chatbot-toggler:hover {
    transform: scale(1.1);
}

body.show-chatbot .chatbot-toggler {
    transform: rotate(90deg);
}

.chatbot-toggler i:last-child,
body.show-chatbot .chatbot-toggler i:first-child {
    display: none;
}

body.show-chatbot .chatbot-toggler i:last-child {
    display: block;
}

.chatbot-container {
    position: fixed;
    right: 35px;
    bottom: 90px;
    width: 350px;
    /* Chat window width */
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
    transform-origin: bottom right;
    box-shadow: 0 0 128px 0 rgba(0, 0, 0, 0.1),
        0 32px 64px -48px rgba(0, 0, 0, 0.5);
    transition: all 0.1s ease;
    z-index: 9998;
}

body.show-chatbot .chatbot-container {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.chatbot-container header {
    padding: 12px 15px;
    background: #4f46e5;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chatbot-container .chatbox {
    overflow-y: auto;
    height: 300px;
    /* Messages Area Height */
    padding: 15px 15px 70px;
    list-style: none;
    margin-bottom: 0;
}

.chatbox .chat {
    display: flex;
    list-style: none;
}

.chatbox .incoming span {
    width: 32px;
    height: 32px;
    color: #fff;
    align-self: flex-end;
    background: #4f46e5;
    text-align: center;
    line-height: 32px;
    border-radius: 4px;
    margin: 0 10px 7px 0;
}

.chatbox .outgoing {
    margin: 20px 0;
    justify-content: flex-end;
}

.chatbox .chat p {
    white-space: pre-wrap;
    padding: 10px 14px;
    border-radius: 10px 10px 0 10px;
    max-width: 75%;
    color: #fff;
    font-size: 0.9rem;
    background: #4f46e5;
    margin-bottom: 0;
}

.chatbox .incoming p {
    border-radius: 10px 10px 10px 0;
    color: #000;
    background: #f2f2f2;
}

.chatbot-container .chat-input {
    display: flex;
    gap: 5px;
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #fff;
    padding: 3px 20px;
    border-top: 1px solid #ddd;
}

.chat-input textarea {
    height: 55px;
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    max-height: 180px;
    padding: 15px 15px 15px 0;
    font-size: 0.95rem;
}

.chat-input span {
    align-self: flex-end;
    color: #4f46e5;
    cursor: pointer;
    height: 55px;
    display: flex;
    align-items: center;
    visibility: hidden;
    font-size: 1.3rem;
}

.chat-input textarea:valid~span {
    visibility: visible;
}

/* Mobile Responsive */
@media (max-width: 490px) {
    .chatbot-container {
        right: 0;
        bottom: 0;
        height: 100%;
        border-radius: 0;
        width: 100%;
    }

    .chatbot-container .chatbox {
        height: 90%;
        padding: 25px 15px 100px;
    }
}






/* --- WHATSAPP FLOATING BUTTON --- */
.whatsapp-float {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 30px;
    left: 30px;
    /* AI Bot Right me hai, isliye isko Left me rakha */
    background-color: #25d366;
    /* WhatsApp Official Color */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 10000;
    /* Sabse upar */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    /* Darker Green on Hover */
    transform: scale(1.1);
    color: #fff;
    /* Icon color white hi rahe */
}

.whatsapp-float i {
    margin-top: 2px;
    /* Icon ko thoda center karne ke liye */
}

/* Pulse Animation (Dhak-Dhak Effect) */
@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Mobile Adjustment (Taaki mobile me jyada jagah na le) */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
        font-size: 28px;
    }
}



/* --- NEW OFFER CARD STYLES --- */

.offer-card {
    background: rgba(0, 0, 0, 0.25);
    /* थोड़ा डार्क बैकग्राउंड ताकि टेक्स्ट उभरे */
    border: 1px solid rgba(255, 193, 7, 0.4);
    /* गोल्ड बॉर्डर */
    backdrop-filter: blur(5px);
}

.offer-icon-box {
    width: 45px;
    height: 45px;
    /* गोल्ड और ऑरेंज का ग्रेडिएंट */
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #000;
    /* आइकॉन का रंग काला */
    font-size: 1.4rem;
}

/* Letter Spacing for uppercase text */
.ls-1 {
    letter-spacing: 1px;
}

/* Price को चमकदार बनाने के लिए */
.price-highlight {
    text-shadow: 0 0 20px rgba(255, 193, 7, 0.6);
    /* गोल्ड ग्लो */
}

/* Pulse Animation (हल्का धड़कने वाला इफेक्ट) */
.animate-pulse {
    animation: pulse-fire 1.5s infinite;
}

@keyframes pulse-fire {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* --- Mobile Adjustments for New Offer Card --- */
@media (max-width: 768px) {

    /* मोबाइल पर आइकॉन थोड़ा छोटा */
    .offer-icon-box {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    /* टेक्स्ट साइज एडजस्टमेंट */
    .banner-middle h6 {
        font-size: 0.85rem !important;
    }

    .banner-middle h2.price-highlight {
        font-size: 1.6rem !important;
    }

    /* यह सुनिश्चित करें कि मोबाइल पर भी यह बॉक्स दिखे (अगर पहले d-none था) */
    .banner-middle {
        display: block !important;
        margin-top: 15px !important;
    }

    .offer-card {
        padding: 12px !important;
    }
}




/* --- Talk to Expert FAB Style --- */
.expert-fab-container {
    position: fixed;
    bottom: 90px;
    /* Chatbot button ke upar jagah dene ke liye */
    right: 20px;
    z-index: 999;
}

.expert-fab {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #25d366;
    /* WhatsApp Green */
    padding: 8px 15px;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.expert-icon {
    background: #25d366;
    color: white;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    margin-right: 10px;
}

.expert-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.expert-text span {
    color: #111827;
    font-weight: 700;
    font-size: 0.85rem;
}

.expert-text small {
    color: #6b7280;
    font-size: 0.7rem;
}

.expert-fab:hover {
    transform: scale(1.05);
    background: #f0fff4;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.2);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .expert-fab-container {
        bottom: 100px;
        right: 15px;
    }

    .expert-text span {
        font-size: 0.75rem;
    }
}

@media (min-width: 992px) {

    /* Navbar mein number ko highlight karne ke liye */
    .expert-nav-link {
        background: #f0fff4;
        /* Light Green */
        padding: 6px 15px !important;
        border-radius: 50px;
        border: 1px solid #dcfce7;
        transition: all 0.3s ease;
    }

    .expert-nav-link:hover {
        background: #dcfce7;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(22, 163, 74, 0.1);
    }
}

/* Mobile par spacing theek karne ke liye */
@media (max-width: 991px) {
    .expert-nav-link {
        padding: 10px 0 !important;
        border-top: 1px solid #f3f4f6;
        margin-top: 5px;
    }
}



/* --- Search Box Overlap Fix --- */
.search-box {
    max-width: 600px;
    background: white;
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    /* Padding thoda adjust kiya */
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    overflow: hidden;
    /* Button ko bahar nikalne se rokta hai */
}

.search-box input {
    flex: 1;
    /* Input puri bachi hui jagah lega */
    min-width: 0;
    /* Flexbox overlap rokne ke liye zaroori */
    border: none;
    outline: none;
    padding-right: 10px;
}

.search-box button {
    flex-shrink: 0;
    /* Button ko pichakne se rokta hai */
    white-space: nowrap;
    /* Text ko wrap hone se rokta hai */
    border-radius: 50px !important;
}

/* --- Space Reduction Logic --- */
.hero-section {
    padding-bottom: 30px !important;
    /* Hero section ke niche ki jagah kam ki */
}

.exams-section {
    padding-top: 10px !important;
    /* Popular Exams heading ko upar khichha */
}

/* Mobile Fixes */
@media (max-width: 768px) {
    .search-box {
        width: 95% !important;
        margin-bottom: 20px !important;
        /* Mobile par gap aur kam kiya */
    }

    .search-box button {
        padding: 8px 15px !important;
        font-size: 0.8rem !important;
    }
}


/* Hero Section ki bottom padding kam karein */
.hero-section {
    padding: 60px 0 30px 0 !important;
    /* Pehle 80px bottom tha, ab 30px kiya */
}

/* Exams section ki top padding kam karein */
.exams-section {
    padding-top: 10px !important;
    /* Isse heading bilkul search box ke niche aa jayegi */
}


@media (max-width: 768px) {
    .hero-section {
        padding: 30px 0 20px 0 !important;
        /* Mobile gap aur bhi kam kiya */
    }

    .search-box {
        width: 95% !important;
        margin-bottom: 15px !important;
        height: 45px;
        /* Mobile par compact height */
    }

    .search-box button {
        padding: 4px 12px !important;
        font-size: 0.75rem !important;
    }

    /* ⚡ SEARCH OVERLAP FIX */
    .search-box {
        width: 95% !important;
        height: 48px !important;
        margin: 0 auto 15px auto !important;
    }

    .search-box input {
        font-size: 0.85rem !important;
    }

    .search-box button {
        height: 38px !important;
        padding: 0 12px !important;
        font-size: 0.75rem !important;
    }

    /* ⚡ EXAM CARDS: RECTANGULAR SHAPE (ICON LEFT, TEXT RIGHT) */
    #exams-container .col-6 {
        padding: 0 6px !important;
        /* Column spacing kam kiya */
    }

    .exam-card {
        display: flex !important;
        /* ⚡ Layout change: Row */
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        padding: 10px !important;
        border-radius: 12px !important;
        min-height: 65px !important;
        gap: 12px !important;
        margin-bottom: 8px !important;
    }

    .exam-icon {
        width: 42px !important;
        height: 42px !important;
        margin: 0 !important;
        /* Center se hatakar left kiya */
        font-size: 1.1rem !important;
        background-color: #eef2ff;
        flex-shrink: 0;
    }

    .exam-card h6 {
        font-size: 0.85rem !important;
        margin-bottom: 0 !important;
        line-height: 1.2;
        color: #1e293b;
    }

    /* Description aur 'View Details' ko hide kiya taaki rectangle shape maintain rahe */
    .exam-card small,
    .exam-card .mt-3 {
        display: none !important;
    }

}


/* --- Premium App Download Banner Styles --- */
.app-download-card {
    background-color: #ff9966;
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 0.5) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 0.5) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 0.5) 0, transparent 50%),
        linear-gradient(135deg, #ff6a00 0%, #ee0979 100%);
    border-radius: 24px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden !important;
    /* Contain the overflow */
}

/* Glass Background Overlay */
.glass-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
    pointer-events: none;
}

/* Grain Noise Texture */
.grain-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.07;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opactiy='1'/%3E%3C/svg%3E");
}

/* Glass Badge */
.glass-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Button Styling */
.google-play-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.google-play-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    background: #ffffff;
}

.google-play-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: gloss-anim 3s infinite;
}

@keyframes gloss-anim {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

/* --- 3D Phone Mockup CSS --- */
.phone-mockup-3d {
    width: 200px;
    height: 400px;
    background: #111;
    border-radius: 30px;
    position: relative;
    border: 6px solid #333;
    /* Dark Bezel */
    box-shadow:
        0 0 0 2px #555,
        /* Outer metallic ring */
        0 20px 50px -10px rgba(0, 0, 0, 0.5);
    /* Deep Shadow */
    transform: perspective(1000px) rotateY(-15deg) rotateX(10deg) rotateZ(-5deg);
    transition: transform 0.5s ease;
    z-index: 10;
    margin-right: -20px;
    /* Slight overlap for pop-out feel */
    margin-bottom: -80px;
    /* Push down to show top half more */
}

/* Pop-out effect on hover */
.app-download-card:hover .phone-mockup-3d {
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg) rotateZ(0deg) translateY(-10px);
}

.phone-frame {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.app-screen-content {
    width: 80%;
    height: auto;
    object-fit: contain;
}

.screen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 40%, rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 25px;
    background: #111;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 5;
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    background: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    z-index: 20;
    transform: translateZ(20px);
    /* 3D pop */
    animation: float-badge 4s ease-in-out infinite;
}

.badge-1 {
    top: 15%;
    left: -60px;
}

.badge-2 {
    bottom: 40%;
    right: -40px;
    animation-delay: 2s;
}

@keyframes float-badge {

    0%,
    100% {
        transform: translateY(0) translateZ(20px);
    }

    50% {
        transform: translateY(-10px) translateZ(20px);
    }
}

/* Decorative Orbs */
.light-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
    opacity: 0.6;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.2);
    top: -50px;
    right: 0;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: rgba(255, 230, 0, 0.15);
    bottom: -50px;
    left: -50px;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .phone-mockup-3d {
        transform: none;
        /* No 3D on tablet/mobile to save space */
        width: 180px;
        height: 360px;
        margin: 0 auto;
        margin-bottom: -100px;
        margin-top: 40px;
    }

    .app-download-card {
        text-align: center;
        overflow: hidden;
        /* Ensure clipped */
    }

    .badge-1 {
        left: -20px;
    }

    .badge-2 {
        right: -20px;
    }
}

@media (max-width: 768px) {
    .app-download-card {
        padding: 2rem 1rem !important;
    }

    .phone-mockup-3d {
        /* On small mobile, hide the phone or make it very subtle behind text */
        display: none;
    }

    .badge-1,
    .badge-2 {
        display: none;
    }

    .banner-title {
        font-size: 1.8rem;
    }

    .google-play-btn {
        width: 80%;
        /* Wider button on mobile */
        justify-content: center;
    }
}

/* --- English Speaking Course Spotlight Styles --- */
.english-course-section {
    background-color: #f8f9fa;
}

.english-bg-blob {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.feature-item {
    border-left: 4px solid transparent;
}

.feature-item:hover {
    background: white !important;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .05) !important;
    border-left: 4px solid #0d6efd;
    transform: translateX(5px);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.gradient-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
}

.pulse-anim {
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(13, 110, 253, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

.text-gradient-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* --- Light App Download Card --- */
.app-download-card-light {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-download-card-light:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.light-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    z-index: 1;
}

/* --- Small 3D Phone Mockup --- */
.phone-mockup-3d-small {
    width: 100px;
    height: 200px;
    background: #111;
    border-radius: 15px;
    position: relative;
    border: 3px solid #333;
    box-shadow:
        0 0 0 1px #555,
        0 10px 25px -5px rgba(0, 0, 0, 0.4);
    transform: perspective(600px) rotateY(-15deg) rotateX(10deg) rotateZ(-5deg);
    transition: transform 0.3s ease;
    z-index: 10;
}

.app-download-card-light:hover .phone-mockup-3d-small {
    transform: perspective(600px) rotateY(0deg) rotateX(0deg) rotateZ(0deg) scale(1.05);
}

/* --- Light YouTube Card --- */
.youtube-card-light {
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.youtube-card-light:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.2) !important;
}

/* --- English Course Image Adjustment --- */
.english-course-card img {
    width: 100%;
    display: block;
}

.english-course-card {
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 2rem;
    max-width: 320px;
    /* Restrict contents width to make frame hug image */
    margin: 0 auto;
    /* Center in column */
}

/* =========================================
   MEGA MENU STYLES
   ========================================= */

@media (min-width: 992px) {
    .mega-menu-item {
        position: static;
    }
    .mega-menu-item:hover .mega-menu-content {
        display: block;
        opacity: 1;
        visibility: visible;
        margin-top: 0;
    }
    .mega-menu-content {
        display: none;
        position: absolute;
        width: 100%;
        left: 0;
        right: 0;
        top: 100%;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 0;
        border: 1px solid #e9ecef;
        background: #fff;
    }
}

.custom-mega-pills .nav-link {
    color: #495057;
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.2s ease-in-out;
}
.custom-mega-pills .nav-link:hover {
    background: #f8f9fa;
    color: #4f46e5;
}
.custom-mega-pills .nav-link.active {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    border-left: 4px solid #4f46e5;
}

.mega-exam-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}
.mega-exam-card:hover {
    border-color: #4f46e5;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

.hover-primary:hover {
    color: #4f46e5 !important;
}

.custom-hover-link {
    transition: color 0.2s;
}
.custom-hover-link:hover {
    color: #4f46e5 !important;
    text-decoration: underline !important;
}

.custom-hover-btn {
    transition: all 0.2s;
}
.custom-hover-btn:hover {
    background: #4f46e5 !important;
    color: #fff !important;
}

/* ========= MEGA MENU v2 - Exam Rows & PSEO Links ========= */
.mega-exam-row:hover {
    background: #eef2ff !important;
    border-color: #c7d2fe !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.08);
}

.mega-spoke-badge:hover {
    background: #4f46e5 !important;
    color: #fff !important;
    border-color: #4f46e5 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.2);
}

.mega-spoke-link:hover {
    color: #4f46e5 !important;
    border-color: #4f46e5 !important;
    background: #f5f3ff;
    padding-left: 12px !important;
}