:root {
    --vedantu-blue: #3a7bd5;
    --vedantu-dark-blue: #1a56a8;
    --vedantu-light-blue: #e8f1fc;
    --vedantu-orange: #cc0f0f;
    --vedantu-gray: #f5f7fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Navigation Bar - EXACT replica */
/* --- Updated Navbar (Orange Theme) --- */
/* Navbar ki fixed height wapas tere purane wale style mein */
/* Layout Restore */
.navbar-vedantu {
    background-color: white !important;
    padding: 10px 0 !important;
    min-height: 70px !important;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    z-index: 1050;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: white !important;
        padding: 20px !important;
        border-radius: 0 0 20px 20px !important;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
        position: absolute !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        border: 1px solid #eee !important;
        border-top: none !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
    }

    .navbar-nav {
        margin-bottom: 20px;
    }

    .dropdown-menu {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        padding: 12px !important;
        border-radius: 12px !important;
        border: 1px solid #f0f0f0 !important;
        margin-top: 10px !important;
        box-shadow: none !important;
        background: #fbfcfd !important;
    }

    .dropdown-item {
        font-size: 11px !important;
        background: white !important;
        border: 1px solid #eee !important;
        border-radius: 8px !important;
        padding: 8px 10px !important;
        white-space: normal !important;
        color: #1a365d !important;
        font-weight: 500 !important;
    }

    .dropdown-item:active,
    .dropdown-item:hover {
        background: #fff5f0 !important;
        color: #cc0f0f !important;
        border-color: #ff6a00 !important;
    }
}

.navbar-brand img {
    height: 40px !important;
    /* Logo size fixed */
    width: auto;
}

.nav-link {
    color: #333 !important;
    font-weight: 500;
    font-size: 14px;
    padding: 5px 8px !important;
    white-space: nowrap;
}

.nav-link i {
    font-size: 9px;
    color: #888;
}

/* --- PREMIUM NAV POPUP STYLING --- */

/* Modal General Styles */
.modal-content {
    border-radius: 24px !important;
    overflow: hidden;
    border: none !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2) !important;
}

.modal-backdrop.show {
    opacity: 0.7;
    backdrop-filter: blur(8px);
}

/* Nav Popup Card Items */
.nav-popup-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #1a365d !important;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.nav-popup-item:hover {
    background: #ffffff;
    border-color: #cc0f0f;
    box-shadow: 0 10px 25px rgba(204, 15, 15, 0.1);
    transform: translateY(-3px);
    color: #cc0f0f !important;
}

/* Leading Icon Styling */
.nav-popup-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 12px;
    margin-right: 15px;
    font-size: 16px;
    color: #cc0f0f;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-popup-item:hover .nav-popup-icon {
    background: #cc0f0f;
    color: #ffffff;
    transform: rotate(-10deg) scale(1.1);
}

.nav-popup-item .arrow-icon {
    margin-left: auto;
    font-size: 12px;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.nav-popup-item:hover .arrow-icon {
    opacity: 1;
    transform: translateX(5px);
    color: #cc0f0f;
}

@media (max-width: 576px) {
    .nav-popup-item {
        padding: 10px 12px !important;
        font-size: 11px !important;
        border-radius: 12px;
    }

    .nav-popup-icon {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px;
        margin-right: 8px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
    }

    .modal-body.p-4 {
        padding: 15px !important;
    }
}

/* --- NESTED POPUP STYLING (Premium Selection) --- */
.sub-selection-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    color: #1a365d;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.sub-selection-icon {
    width: 24px;
    height: 24px;
    background: #f8fafc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #cc0f0f;
    font-size: 11px;
    transition: all 0.3s ease;
}

.sub-selection-arrow {
    margin-left: auto;
    font-size: 10px;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.sub-selection-item:hover {
    background: #f8fafc;
    border-color: #cc0f0f;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.sub-selection-item:hover .sub-selection-icon {
    background: #cc0f0f;
    color: #ffffff;
}

.sub-selection-item:hover .sub-selection-arrow {
    opacity: 1;
    color: #cc0f0f;
    transform: translateX(3px);
}

/* Custom Popup Tabs */
.custom-popup-tabs {
    background: #f1f5f9;
    padding: 5px;
    border-radius: 15px;
    gap: 5px;
}

.custom-popup-tabs .nav-link {
    border-radius: 12px !important;
    font-weight: 700;
    font-size: 12px;
    color: #475569;
    padding: 10px;
    border: none;
    transition: all 0.3s ease;
}

.custom-popup-tabs .nav-link.active {
    background: #003060 !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(0, 48, 96, 0.2);
}

@media (max-width: 576px) {
    .nav-popup-item span {
        font-size: 9px !important;
    }
}

/* Expert Box & Signin (Original) */
.expert-nav-box {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 50px;
    margin-right: 15px;
}

.expert-nav-box i {
    background: white;
    padding: 7px;
    border-radius: 50%;
    margin-right: 8px;
    font-size: 12px;
}

.expert-info .title {
    font-size: 10px;
    color: #666;
    display: block;
    line-height: 1;
}

.expert-info .phone {
    font-size: 13px;
    font-weight: 700;
    color: #000;
}

.signin-btn {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 6px 22px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.scrollable-menu {
    max-height: none !important;
    overflow: visible !important;
}

/* Main Hero Sli/* --- Hero Slider Base --- */
.main-hero-section {
    position: relative;
    width: 100%;
    margin-top: 15px;
    padding: 0 15px;
}

.hero-slider-container {
    width: 100%;
    height: 420px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-item {
    height: 420px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform 0.6s ease-in-out;
}

.slide-1 {
    background-image: url('../photos/slider/s1.png');
}

.slide-2 {
    background-image: url('../photos/slider/s2.png');
}

.slide-3 {
    background-image: url('../photos/slider/s3.png');
}

.slide-4 {
    background-image: url('../photos/slider/s2.png');
}

/* --- Programs Tab Section (Premium Redesign) --- */
.programs-tab-section {
    background: #ffffff;
    padding: 80px 0;
}

.programs-tab-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 10px;
}

.p-tab {
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 100px;
    padding: 12px 25px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    min-width: 180px;
}

.p-tab-inner {
    display: flex;
    align-items: center;
    gap: 15px;
}

.p-icon-box {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.4s ease;
}

.p-tab-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.p-main-text {
    display: block;
    color: #1a1a1a;
    font-weight: 800;
    font-size: 16px;
    line-height: 1.2;
}

.p-sub-text {
    display: block;
    color: #666;
    font-size: 11px;
    font-weight: 500;
}

/* Hover Effects */
.p-tab:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 48, 96, 0.12);
    border-color: rgba(204, 15, 15, 0.2);
}

.p-tab:hover .p-icon-box {
    transform: scale(1.1) rotate(10deg);
}

.p-tab:hover .p-main-text {
    color: #cc0f0f;
}

/* Specific Tab Accents (Optional) */
.tab-jee:hover {
    border-color: #6f42c1;
}

.tab-neet:hover {
    border-color: #ff69b4;
}

.tab-olympiad:hover {
    border-color: #28a745;
}

.tab-boards:hover {
    border-color: #cc0f0f;
}

.tab-onetoone:hover {
    border-color: #00aeef;
}

.tab-foreign:hover {
    border-color: #ff9800;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .p-tab {
        min-width: 160px;
        padding: 10px 20px;
    }
}

@media (max-width: 768px) {
    .programs-tab-section {
        padding: 50px 0;
    }

    .programs-header-content h2 {
        font-size: 28px !important;
    }

    .p-tab {
        width: calc(50% - 10px);
        min-width: unset;
    }
}

@media (max-width: 576px) {
    .p-tab {
        width: 100%;
    }

    .programs-tab-bar {
        gap: 12px;
    }
}

/* Badge ki CSS delete kar sakte ho agar ab use nahi karni */
.popular-courses-badge {
    display: none;
}

/*Discover start */
/* Custom Styles for Discovery Section */
.career-discovery-section {
    background-color: #ffffff;
    overflow: hidden;
}

.discover-title {
    font-weight: 700;
    font-size: 2.5rem;
    color: #1a1a1a;
}

.boxes-wrapper {
    gap: 20px;
}

/* Floating Box Design */
.floating-box {
    width: 280px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.box-header.yellow-bg {
    background-color: #d10300;
    /* Bright Yellow */
    padding: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.box-header h3 {
    margin: 0;
    font-weight: 800;
    color: #ffffff;
    font-size: 2.2rem;
}

.box-body {
    padding: 20px;
    background-color: #f8f9ff;
}

.box-body .v-text {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.box-body hr {
    width: 40px;
    margin: 10px auto;
    border-top: 2px solid #333;
    opacity: 1;
}

.class-info {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.ampersand {
    font-size: 2.5rem;
    font-weight: 300;
    color: #333;
}

/* Discover Now Button */
.btn-discover {
    background-color: #2c2e4e;
    /* Dark Navy Blue */
    color: white;
    padding: 12px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid #2c2e4e;
}

.btn-discover:hover {
    background-color: transparent;
    color: #2c2e4e;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(44, 46, 78, 0.3);
}

/* --- Movable Animations (Floating Effect) --- */
@keyframes floatUpDown {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes floatDownUp {
    0% {
        transform: translateY(-15px);
    }

    50% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-15px);
    }
}

.animate-up-down {
    animation: floatUpDown 4s ease-in-out infinite;
}

.animate-down-up {
    animation: floatDownUp 4s ease-in-out infinite;
}

/* Illustration Hover Effect */
.discovery-illustration {
    max-width: 100%;
    height: auto;
    /* Image ko halka sa upar-niche move karne ke liye */
    animation: imageFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

@keyframes imageFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Mobile pe animation thodi slow ya kam karne ke liye */
@media (max-width: 768px) {
    .discovery-illustration {
        max-height: 300px;
        margin-bottom: 30px;
    }
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .floating-box {
        width: 100%;
        margin-bottom: 20px;
    }

    .ampersand {
        width: 100%;
        margin: 10px 0;
    }

    .discover-title {
        font-size: 1.8rem;
    }
}

/*Discover end*/

/*Explore start*/
.explore-courses-section {
    background-color: #fdfdff;
    position: relative;
}

.explore-bg-decor-1 {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(204, 15, 15, 0.05) 0%, rgba(204, 15, 15, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.explore-bg-decor-2 {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 48, 96, 0.05) 0%, rgba(0, 48, 96, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.section-header-box .section-main-title {
    font-size: 2.5rem;
    letter-spacing: -1px;
}

/* --- Card Background Gradients (Half Photo Effect) --- */
/* --- Background Gradients (Half Photo Effect - 65/35 Split) --- */
/* --- New Card Design --- */
/* --- Updated Premium Cards (Full Photo Background Style) --- */
.explore-card-new {
    position: relative;
    border-radius: 30px;
    background: #ffffff;
    overflow: hidden;
    height: 520px;
    display: flex;
    flex-direction: column;
    padding: 35px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 15px 40px rgba(0, 48, 96, 0.08);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

.explore-card-new:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(204, 15, 15, 0.15);
}

/* Background Shape (Unique Wave/Blob) */
.card-bg-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    z-index: -1;
    transition: all 0.5s ease;
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.theme-competitive .card-bg-shape {
    background: linear-gradient(135deg, #eef5ff 0%, #d8e8ff 100%);
}

.theme-school .card-bg-shape {
    background: linear-gradient(135deg, #fff2f2 0%, #ffe8e8 100%);
}

.theme-mentor .card-bg-shape {
    background: linear-gradient(135deg, #f3f0ff 0%, #eaddff 100%);
}

.explore-card-new:hover .card-bg-shape {
    width: 100%;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    opacity: 0.15;
}

/* Large Teacher Image */
.teacher-bg-img-wrapper {
    position: absolute;
    bottom: 0;
    right: -20px;
    height: 90%;
    width: 60%;
    z-index: 0;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

/* Accent Glow behind teacher */
.teacher-bg-img-wrapper::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 70%);
    top: 20%;
    right: 10%;
    z-index: -1;
    border-radius: 50%;
}

.teacher-bg-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(-10px 5px 20px rgba(0, 0, 0, 0.1));
    transition: all 0.5s ease;
}

.explore-card-new:hover .teacher-bg-img {
    transform: scale(1.08) translateX(-10px);
    filter: drop-shadow(-15px 10px 30px rgba(0, 0, 0, 0.2));
}

/* Content Layout */
.card-body-content {
    position: relative;
    z-index: 5;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 65%;
    /* Push text to the left */
}

.class-tag-new {
    font-size: 14px;
    font-weight: 700;
    color: #3a7bd5;
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.theme-school .class-tag-new {
    color: #cc0f0f;
}

.theme-mentor .class-tag-new {
    color: #6f42c1;
}

.card-main-title {
    font-size: 28px;
    font-weight: 800;
    color: #003060;
    line-height: 1.2;
    margin-bottom: 30px;
}

.tag-container-new {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.course-pill {
    background: #ffffff;
    color: #444 !important;
    padding: 12px 18px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.course-pill:hover {
    background: #cc0f0f !important;
    color: #fff !important;
    border-color: #cc0f0f;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(204, 15, 15, 0.2);
}

/* Redesigned Button */
.explore-cta-btn {
    background: #cc0f0f;
    color: white !important;
    font-weight: 800;
    border-radius: 15px;
    padding: 15px 30px;
    border: none;
    width: fit-content;
    box-shadow: 0 10px 20px rgba(204, 15, 15, 0.2);
    transition: all 0.3s ease;
}

.explore-cta-btn:hover {
    background: #003060;
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 48, 96, 0.2);
}

@media (max-width: 992px) {
    .card-body-content {
        width: 100%;
    }

    .teacher-bg-img-wrapper {
        opacity: 0.3;
        width: 80%;
    }

    .explore-card-new {
        height: auto;
        min-height: 480px;
    }
}

@media (max-width: 768px) {
    .explore-card-new {
        min-height: auto;
    }

    .card-top {
        height: 140px;
    }

    .img-wrapper {
        height: 85%;
    }
}




/*toppers speaks start */
/* Modal Glassmorphism Effect */
.video-modal-bg {
    background: transparent !important;
    border: none !important;
}

.video-modal-bg .modal-body {
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Close Button Styling */
.custom-close {
    position: absolute;
    top: -40px;
    right: 0;
    opacity: 1 !important;
    filter: invert(1);
    /* White color ke liye */
}

/* Background Blur when modal is open */
.modal-backdrop.show {
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.8);
}

/* Teri Purani Video Card CSS as it is rahegi bas hover effect mast kar diya */
.video-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/*Topper's speak end*/



/*Student's testomonials start */
/* Unique Review Section Styles */
.review-expert-section {
    background-color: #ffffff;
    padding: 60px 0;
}

.underline-divider {
    width: 50px;
    height: 3px;
    background: #2c3e50;
    margin-top: 10px;
}

/* --- Students Review Section Enhancements --- */
.review-expert-section {
    position: relative;
    padding-bottom: 80px !important;
}

.reviewExpertSwiper .swiper-slide {
    height: auto !important;
}

.review-premium-card {
    background: #ffffff;
    border-radius: 30px;
    padding: 35px;
    height: 100% !important;
    border: 1px solid #f0f0f0;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-premium-card:hover {
    box-shadow: 0 25px 50px rgba(0, 48, 96, 0.08);
    transform: translateY(-5px);
}

.quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.quote-icon {
    width: 45px;
    height: 45px;
    background: #fff1f1;
    color: #cc0f0f;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.stars i {
    color: #ffc107;
    margin-left: 2px;
    font-size: 14px;
}

.review-text {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
    font-style: italic;
    flex-grow: 1;
}

.student-profile-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #f9f9f9;
    padding-top: 20px;
}

.student-avatar {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
}

.student-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
    color: #003060;
}

.student-tag {
    font-size: 12px;
    color: #cc0f0f;
    font-weight: 600;
    margin: 0;
}

/* Custom Swiper Nav for Students Review */
.custom-review-nav {
    width: 50px !important;
    height: 50px !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    color: #cc0f0f !important;
}

.custom-review-nav::after {
    font-size: 18px !important;
    font-weight: 900 !important;
}

.reviewExpertSwiper .swiper-button-next {
    right: -25px;
}

.reviewExpertSwiper .swiper-button-prev {
    left: -25px;
}

@media (max-width: 1200px) {

    .reviewExpertSwiper .swiper-button-next,
    .reviewExpertSwiper .swiper-button-prev {
        display: none !important;
        /* Hide on small screens to avoid overflow */
    }
}

/* --- Parents Voice Section Modern --- */
.testimonials-modern {
    background: #fffafa;
    overflow: hidden !important;
    /* Mask sides */
}

#parentTestimonialCarousel {
    overflow: hidden !important;
}

#parentTestimonialCarousel .carousel-inner {
    overflow: visible !important;
    padding: 40px 0 !important;
    margin-top: -40px !important;
    margin-bottom: -40px !important;
}

.p-review-card {
    background: #ffffff;
    border-radius: 40px;
    padding: 60px;
    box-shadow: 0 20px 40px rgba(0, 48, 96, 0.04);
    border: 1px solid #f5f5f5;
    margin: 20px 10px;
    text-align: center;
    transition: all 0.4s ease;
}

.p-review-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 48, 96, 0.1);
    border-color: #d10300;
}

.p-review-content {
    max-width: 800px;
    margin: 0 auto;
}

.p-quote {
    font-size: 22px;
    line-height: 1.8;
    color: #444 !important;
    font-style: italic;
    font-weight: 500;
    margin-bottom: 0;
}

.p-nav-btn {
    width: 60px;
    height: 60px;
    background: #ffffff !important;
    border-radius: 50% !important;
    border: none !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    color: #cc0f0f !important;
    font-size: 20px !important;
    opacity: 1 !important;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev.p-nav-btn {
    left: 5%;
}

.carousel-control-next.p-nav-btn {
    right: 5%;
}

.carousel-indicators-modern {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.carousel-indicators-modern button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    transition: all 0.3s ease;
}

.carousel-indicators-modern button.active {
    background: #cc0f0f;
    width: 30px;
    border-radius: 10px;
}

@media (max-width: 991px) {
    .p-review-card {
        padding: 40px 30px;
    }

    .p-review-flex {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .p-quote {
        font-size: 18px;
    }

    .p-nav-btn {
        display: none !important;
    }
}



/* --- Video Card Styling --- */
.video-card {
    position: relative;
    width: 100%;
    height: 300px;
    background: #000;
    border-radius: 25px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.video-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.video-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #cc0f0f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 5;
    font-size: 20px;
    box-shadow: 0 0 20px rgba(204, 15, 15, 0.4);
    transition: 0.3s;
}

.video-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: #ffffff;
    color: #cc0f0f;
}

.video-card iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
    border-radius: 25px;
}

/* testominal end */







/* --- SECTION BLOCK SEPARATION --- */

section {
    position: relative;
    width: 100%;
    clear: both;
    display: block;
    margin: 0 !important;
}

#student-reviews {
    background: #ffffff !important;
    padding: 100px 0 !important;
    border-top: 1px solid #f0f0f0;
}

#parent-videos {
    background: #f8fafc !important;
    /* Soft Slate/Blue */
    padding: 100px 0 !important;
    border-top: 1px solid #e1e8ed;
    border-bottom: 1px solid #e1e8ed;
}

#parent-testimonials {
    background: #fffafa !important;
    /* Soft warm red tint */
    padding: 100px 0 !important;
}

#expert-team {
    background: #fdfdfd !important;
    padding: 100px 0 !important;
    border-top: 1px solid #f0f0f0;
}

.teacherSwiper,
.mySwiper,
.reviewExpertSwiper {
    overflow: hidden !important;
    /* Hide slides on the sides */
    padding: 60px 10px !important;
    /* Vertical room for hover effects */
    margin-top: -60px !important;
    margin-bottom: -60px !important;
}

.teacherSwiper .swiper-slide,
.mySwiper .swiper-slide,
.reviewExpertSwiper .swiper-slide {
    overflow: visible !important;
    /* Allow internal card expansion */
}

/* Fix Parent Reviews side-peek */
#parentTestimonialCarousel {
    overflow: hidden !important;
}

#parentTestimonialCarousel .carousel-inner {
    overflow: visible !important;
    padding: 40px 0 !important;
    margin-top: -40px !important;
    margin-bottom: -40px !important;
}

.stats-section {
    background: #ffffff !important;
    padding: 100px 0 !important;
}

.faq-section {
    background: #f9f9f9 !important;
    padding: 100px 0 !important;
    border-top: 1px solid #eee;
}

.gradient-text {
    background: linear-gradient(135deg, #0d6efd, #cc0f0f);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Card Design */
.t-card {
    background: #fff;
    border-radius: 25px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 20px;
}

.t-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border-color: #d10300;
}

/* Image Glow Effect */
.t-image-area {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 25px;
}

.t-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(81, 3, 3, 0.1), rgba(255, 77, 77, 0.1));
    border-radius: 50%;
    transform: scale(1.2);
}

.t-img-crop {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 2;
    border: 4px solid #fff;
    background: #f8faff;
}

.t-image-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    /* Focus on the face/shoulders */
    transform: scale(1.3);
    /* Reduced zoom for better framing */
    position: relative;
    transition: all 0.5s ease;
    transform-origin: center 15%;
    /* Keeps the face centered during zoom */
}

.t-card:hover .t-image-area img {
    transform: scale(1.4);
}

/* Exp Badge */
.t-exp {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    font-size: 10px;
    padding: 5px 15px;
    border-radius: 50px;
    z-index: 3;
    white-space: nowrap;
    font-weight: 600;
}

/* Info Styling */
.t-info h4 {
    font-weight: 800;
    margin-bottom: 5px;
    color: #333;
}

.t-subject {
    color: #0d6efd;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 14px;
}

.t-edu {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* Slider Buttons */
.custom-nav {
    background: #fff !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    color: #0d6efd !important;
}

.custom-nav::after {
    font-size: 20px !important;
    font-weight: bold;
}








/* Stats Styling */
.stat-box {
    border: 1px solid #f0f0f0 !important;
    transition: 0.3s ease-in-out;
}

.stat-box:hover {
    border-color: #cc0f0f !important;
    background-color: #fff9f6;
}

.x-small {
    font-size: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Color Accents */
.bg-blue-light {
    background: #eef4ff;
}

.bg-red-light {
    background: #fff1f1;
}

.bg-yellow-light {
    background: #fffbeb;
}

.stars {
    font-size: 14px;
}

@media (max-width: 576px) {
    .stat-box h4 {
        font-size: 1.1rem;
    }

    .x-small {
        font-size: 8px;
    }
}



/* FAQ Section Styling */
.faq-section {
    background-color: #fef9f9;
    /* Light Pink Matching background */
}

.custom-faq .accordion-item {
    border: none !important;
    overflow: hidden;
}

.custom-faq .accordion-button {
    background-color: #ffffff;
    color: #1b3139;
    padding: 20px;
    font-size: 17px;
}

.custom-faq .accordion-button:not(.collapsed) {
    background-color: #cc0f0f;
    /* Orange color when open */
    color: white;
    box-shadow: none;
}

.custom-faq .accordion-button:after {
    background-size: 15px;
}

.custom-faq .accordion-button:not(.collapsed):after {
    filter: brightness(0) invert(1);
    /* Arrow turns white when open */
}

.custom-faq .accordion-body {
    background-color: #ffffff;
    padding: 20px;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #0f172a 0%, #1a1a2e 100%);
    color: #cbd5e1;
    padding: 40px 0 20px;
    margin-top: 0;
    position: relative;
    border-top: 3px solid #cc0f0f;
}

.footer-logo {
    font-weight: 800;
    font-size: 24px;
    color: white;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.footer-about {
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 13.5px;
}

.footer-heading {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 25px;
    height: 2px;
    background: #cc0f0f;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(3px);
}

.footer-contact-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 15px;
    border-radius: 12px;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.expert-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.expert-number {
    font-size: 18px;
    font-weight: 800;
    color: white;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: #cc0f0f;
    transform: translateY(-3px);
    border-color: #cc0f0f;
    box-shadow: 0 5px 15px rgba(204, 15, 15, 0.2);
}

.app-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-badge {
    display: flex;
    align-items: center;
    background: #000;
    color: white;
    padding: 8px 15px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.app-badge i {
    font-size: 20px;
    margin-right: 10px;
}

.app-badge span {
    font-size: 13px;
    font-weight: 600;
}

.app-badge:hover {
    transform: translateY(-2px);
    background: #111;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .slider-main-heading {
        font-size: 34px;
    }

    .slider-sub-heading {
        font-size: 26px;
    }

    .slider-tagline {
        font-size: 20px;
    }

    .stat-number {
        font-size: 46px;
    }

    .stat-text {
        font-size: 18px;
    }

    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .slider-content-wrapper {
        padding: 0 40px;
    }

    .slider-left {
        padding-right: 20px;
    }

    .slider-main-heading {
        font-size: 30px;
    }

    .slider-sub-heading {
        font-size: 24px;
    }

    .slider-tagline {
        font-size: 18px;
    }

    .ai-mentor-heading {
        font-size: 36px;
    }

    .ai-mentor-subheading {
        font-size: 24px;
    }

    .expert-contact-box {
        display: none;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ai-mentor-content {
        flex-direction: column;
        text-align: center;
    }

    .ai-mentor-text {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .ai-mentor-image {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-slider-container {
        height: 500px;
    }

    .carousel-item {
        height: 500px;
    }

    .slider-content-wrapper {
        flex-direction: column;
        padding: 40px 30px;
        text-align: center;
    }

    .slider-left,
    .slider-right {
        width: 100%;
    }

    .slider-left {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }

    .carousel-control-prev {
        left: 15px;
    }

    .carousel-control-next {
        right: 15px;
    }

    .courses-overlay-container {
        margin-top: -40px;
    }

    .courses-overlay-box {
        width: 98%;
        padding: 20px 15px;
    }

    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .course-card {
        padding: 15px 10px;
    }

    .course-icon-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 12px;
    }

    .course-icon {
        font-size: 24px;
    }

    .course-name {
        font-size: 15px;
    }

    .navbar-brand {
        font-size: 28px;
    }

    .nav-link {
        font-size: 14px;
        padding: 6px 10px !important;
    }
}

@media (max-width: 768px) {

    .hero-slider-container,
    .carousel-item {
        height: 250px !important;
    }

    .carousel-item {
        background-size: contain !important;
        background-color: #f8fafc;
    }

    .programs-tab-bar {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 15px !important;
    }

    .p-tab {
        min-width: 0 !important;
        width: 100% !important;
        padding: 12px !important;
        border-radius: 12px !important;
    }

    .p-main-text {
        font-size: 14px !important;
    }

    .p-sub-text {
        font-size: 10px !important;
    }

    .p-icon-box {
        width: 38px !important;
        height: 38px !important;
        font-size: 15px !important;
    }

    .programs-tab-section {
        padding: 50px 0 !important;
    }

    /* Parent Testimonials Response - Fixing Clipping */
    #parentTestimonialCarousel {
        overflow: visible !important;
    }

    .p-review-card {
        padding: 40px 25px !important;
        margin: 10px 5px !important;
        height: auto !important;
        min-height: initial !important;
    }

    .p-quote {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    .p-nav-btn {
        display: none !important;
        /* Hide arrows on mobile to save space */
    }

    /* Footer Response */
    .footer {
        padding: 60px 0 30px !important;
        text-align: center;
    }

    .footer-logo {
        font-size: 24px !important;
    }

    .footer-heading {
        margin-top: 20px;
        margin-bottom: 20px !important;
    }

    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links li {
        margin-bottom: 10px !important;
    }

    .social-icons {
        justify-content: center !important;
        margin-bottom: 30px;
    }

    .footer-contact-box {
        margin: 20px auto;
        max-width: 300px;
    }

    .app-badges {
        align-items: center;
    }

    .app-badge {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

@media (max-width: 576px) {

    .hero-slider-container,
    .carousel-item {
        height: 180px !important;
    }

    .carousel-item {
        background-size: contain !important;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .ai-mentor-heading {
        font-size: 32px;
    }

    .ai-mentor-subheading {
        font-size: 22px;
    }

    .ai-mentor-img {
        width: 220px;
        height: 220px;
    }

    .app-badges {
        gap: 10px;
    }

    .app-badge {
        max-width: 220px;
    }

    /* Extra Small Devices - Fix Clipping */
    .p-review-card {
        padding: 25px 15px !important;
        border-radius: 20px !important;
    }

    .p-quote {
        font-size: 14px !important;
    }

    .section-main-title {
        font-size: 24px !important;
    }

    .copyright {
        font-size: 11px !important;
        padding-top: 20px !important;
        line-height: 1.6;
    }
}








.selection-option-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: 0.2s ease-in-out;
}

.selection-option-btn:hover {
    background: #fff8f5;
    border-color: #cc0f0f;
    color: #cc0f0f !important;
    transform: translateX(5px);
}