  /* ========================================
   YELLOW THEME - CARE INDIA
   3D YouTube + Testimonial Carousels
   Mobile-optimized: full-width cards + working nav buttons
   ======================================== */

:root {
    /* Dark royal theme — bright yellow accents */
    --brand-yellow: #FFD700;
    --brand-yellow-dark: #e6c200;
    --brand-yellow-light: #2A2410;
    --brand-yellow-glow: #FFED8A;
    --brand-dark: #0A0E1C;
    --brand-dark-2: #0E1428;
    --brand-dark-3: #060912;
    --brand-navy: #0D1B4A;
    --brand-red: #EF5350;
    --brand-white: #ffffff;
    --brand-light: #0B0E16;
    --brand-gray: #9AA0AC;
    --font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.35);
    --shadow-md: 0 6px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.5);
    --shadow-yellow: 0 8px 24px rgba(255, 215, 0, 0.25);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --container-max: 1320px;
    --surface: #0F1629;
    --surface-2: #141C32;
    --surface-3: #1A2440;
    --page-bg: #070B16;
    --text-primary: #E8EAED;
    --text-muted: #9AA0AC;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Cap growth so laptops (1366-1920) stay readable and not oversized */
    font-size: clamp(14px, 0.55vw + 10px, 17px);
}
@media (min-width: 1600px) {
    html { font-size: clamp(15px, 0.45vw + 10px, 18px); }
}
@media (min-width: 2200px) {
    html { font-size: clamp(16px, 0.4vw + 10px, 20px); }
}

/* Laptop-friendly containers (prevent oversized look on 14-17 inch screens) */
@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm,
    .container-xl, .container-xxl { max-width: 1140px; }
}
@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm,
    .container-xl, .container-xxl { max-width: 1280px; }
}
@media (min-width: 1600px) {
    .container, .container-lg, .container-md, .container-sm,
    .container-xl, .container-xxl { max-width: 1400px; }
}
/* Only expand further on very large / TV-like displays */
@media (min-width: 2000px) {
    :root { --container-max: 1600px; }
    .container, .container-lg, .container-md, .container-sm,
    .container-xl, .container-xxl { max-width: 1520px; }
    .navbar { max-width: 1520px; }
}
@media (min-width: 2400px) {
    :root { --container-max: 1800px; }
    .container, .container-lg, .container-md, .container-sm,
    .container-xl, .container-xxl { max-width: 1700px; }
    .navbar { max-width: 1700px; }
}
@media (min-width: 3000px) {
    :root { --container-max: 2400px; }
    .container, .container-lg, .container-md, .container-sm,
    .container-xl, .container-xxl { max-width: 2200px; }
    .navbar { max-width: 2200px; }
}
@media (min-width: 3800px) {
    :root { --container-max: 3000px; }
    .container, .container-lg, .container-md, .container-sm,
    .container-xl, .container-xxl { max-width: 2800px; }
    .navbar { max-width: 2800px; }
}

/* Only scale up on very large displays (TVs / 4K+), keep laptops normal */
@media (min-width: 2000px) {
    .section-title { font-size: clamp(1.9rem, 1.4vw, 2.6rem); }
    .hero-carousel .carousel-caption h1,
    .hero-carousel .carousel-caption h2 { font-size: clamp(1.2rem, 1.2vw, 1.7rem); }
    .hero-carousel .carousel-caption { padding: 1rem 2rem; }
    .hero-carousel .carousel-item img { max-height: 78vh; }
}
@media (min-width: 2800px) {
    .section-title { font-size: clamp(2.2rem, 1.3vw, 3.2rem); }
    .hero-carousel .carousel-caption { padding: 1.1rem 2.4rem; }
    .hero-carousel .carousel-caption h1,
    .hero-carousel .carousel-caption h2 { font-size: clamp(1.3rem, 1.1vw, 1.85rem); }
    .yt-slide { flex: 0 0 25%; }
    .t-slide { flex: 0 0 25%; }
}
@media (min-width: 3600px) {
    .yt-slide { flex: 0 0 20%; }
    .t-slide { flex: 0 0 20%; }
}

/* ===== MOBILE SCROLL FIX =====
   Do NOT set overflow-x on html (iOS Safari scroll bug).
   Only body clips horizontal overflow. Vertical scroll stays free. */
html {
    height: auto;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-family);
    color: var(--text-primary);
    line-height: 1.7;
    background-color: #070B16;
    padding-top: 88px;
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    height: auto;
    position: static;
    overflow-x: clip;          /* modern; falls back harmlessly */
    overflow-y: visible;       /* never lock vertical scroll */
    -webkit-overflow-scrolling: touch;
}
@supports not (overflow-x: clip) {
    body { overflow-x: hidden; }
}
img, video, iframe {
    max-width: 100%;
    height: auto;
}
.hero-carousel,
.youtube-section,
.testimonials-section,
.gallery-section,
.container,
.container-fluid,
.row {
    max-width: 100%;
}
/* Course panel: lock scroll only while open */
body.course-open {
    overflow: hidden;
    touch-action: none;
}
body:not(.course-open) {
    overflow-y: visible !important;
    touch-action: auto !important;
}

@media (max-width: 991.98px) {
    html, body {
        height: auto !important;
        min-height: 100% !important;
        position: static !important;
    }
    body:not(.course-open) {
        overflow-x: hidden;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y pinch-zoom;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-title {
    position: relative;
    margin-bottom: 3.5rem;
    text-align: center;
    font-weight: 800;
    color: var(--text-primary);
    font-size: clamp(1.6rem, 1.2vw + 0.8rem, 2.4rem);
}

.section-title::after {
    content: '';
    display: block;
    width: 72px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-yellow), var(--brand-yellow-dark));
    margin: 16px auto 0;
    border-radius: 2px;
    transition: width 0.4s ease;
}
.section-title:hover::after { width: 110px; }

#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--brand-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none !important;
}
.loader {
    width: 70px; height: 70px;
    border: 6px solid rgba(255, 215, 0, 0.2);
    border-top: 6px solid var(--brand-yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 94%;
    max-width: var(--container-max);
    padding: 0.7rem 1.4rem;
    background: rgba(10, 14, 28, 0.94) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 60px;
    border: 1px solid rgba(255, 215, 0, 0.22);
    box-shadow:
        0 10px 36px rgba(0, 0, 0, 0.45),
        0 4px 12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 215, 0, 0.1);
    z-index: 1050;
    transition: all 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.navbar:hover {
    box-shadow:
        0 14px 44px rgba(0, 0, 0, 0.5),
        0 6px 16px rgba(255, 215, 0, 0.2),
        0 0 0 1px rgba(255, 215, 0, 0.28);
}
.navbar.scrolled {
    top: 4px;
    width: 90%;
    padding: 0.55rem 1.4rem;
    box-shadow:
        0 12px 40px rgba(255, 215, 0, 0.18),
        0 6px 18px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 215, 0, 0.2);
    background: rgba(8, 11, 22, 0.97) !important;
}
.navbar-brand .site-logo {
    max-height: 58px;
    width: auto;
    transition: var(--transition);
}
.navbar-brand:hover .site-logo { transform: scale(1.05); }

.nav-link {
    font-weight: 600;
    color: #E8EAED !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 50px;
    position: relative;
    transition: var(--transition);
    margin: 0 2px;
    font-size: 0.92rem;
}
.navbar-nav .nav-link i,
.navbar-nav .nav-course-btn i {
    color: #FFD700 !important;
}
.navbar-nav .nav-link:hover i,
.navbar-nav .nav-link.active i,
.navbar-nav .nav-course-btn:hover i {
    color: #12151F !important;
}
.nav-link::after { display: none; }
.nav-link:hover, .nav-link.active {
    color: #12151F !important;
    background: var(--brand-yellow);
    box-shadow: var(--shadow-yellow);
}
.navbar .btn-primary {
    border-radius: 50px !important;
    padding: 0.45rem 1.25rem !important;
    background: var(--brand-yellow);
    border: none;
    font-weight: 700;
    color: #12151F !important;
    transition: var(--transition);
    font-size: 0.9rem;
}

/* Laptop: smaller pill top-bar fonts */
@media (min-width: 992px) and (max-width: 1599px) {
    .nav-link {
        font-size: 0.82rem !important;
        padding: 0.4rem 0.85rem !important;
        margin: 0 1px;
    }
    .navbar .btn-primary {
        font-size: 0.8rem !important;
        padding: 0.38rem 1rem !important;
    }
    .navbar-brand .site-logo {
        max-height: 48px;
    }
    .navbar {
        padding: 0.5rem 1.1rem;
    }
}
@media (min-width: 1600px) {
    .nav-link { font-size: 0.9rem; }
}
.navbar .btn-primary:hover {
    background: #fff;
    color: #12151F !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-yellow);
}
.navbar-toggler {
    border: none;
    padding: 0.4rem 0.7rem;
    border-radius: 50px;
    background: transparent;
    color: #FFD700;
    border: 1.5px solid #FFD700;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.25); }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FFD700' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Island label only on mobile */
.nav-island-label {
    display: none;
}

/* ============================================
   MOBILE NAVBAR — compact closed pill, expands when menu opens
   ============================================ */
@media (max-width: 991.98px) {
    body {
        padding-top: 82px;
    }

    .navbar {
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        /* Closed pill: wide enough for logo + section label + hamburger */
        width: 88%;
        min-width: 280px;
        max-width: 420px;
        padding: 0.5rem 0.85rem;
        border-radius: 50px;
        background: #0A0E1C !important;
        border: 1px solid rgba(255, 215, 0, 0.35);
        box-shadow:
            0 10px 28px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(255, 215, 0, 0.12),
            0 0 24px rgba(255, 215, 0, 0.15);
        transition: width 0.35s ease, max-width 0.35s ease, padding 0.35s ease, border-radius 0.35s ease, box-shadow 0.35s ease;
    }
    /* When menu is open: expand wider */
    .navbar:has(.navbar-collapse.show),
    .navbar.menu-open {
        width: 94%;
        max-width: 480px;
        padding: 0.55rem 1rem 0.85rem;
        border-radius: 28px;
        background: #0A0E1C !important;
        box-shadow:
            0 16px 40px rgba(0, 0, 0, 0.55),
            0 0 0 1px rgba(255, 215, 0, 0.25),
            0 0 30px rgba(255, 215, 0, 0.2);
    }
    .navbar.scrolled {
        top: 6px;
        background: #070B16 !important;
        box-shadow:
            0 12px 32px rgba(0, 0, 0, 0.55),
            0 0 0 1px rgba(255, 215, 0, 0.2),
            0 0 28px rgba(255, 215, 0, 0.18);
    }
    .navbar-brand .site-logo {
        max-height: 42px;
        filter: brightness(1) drop-shadow(0 0 6px rgba(255, 215, 0, 0.4));
    }
    .navbar-brand span { color: var(--brand-yellow) !important; font-size: 1.05rem; }
    /* Dynamic island center: current section icon + name */
    .nav-island-label {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
        padding: 0 0.5rem;
        margin: 0 auto;
        text-align: center;
        color: var(--brand-yellow);
        font-weight: 700;
        font-size: 0.95rem;
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }
    .nav-island-label i {
        font-size: 1.1rem;
        flex-shrink: 0;
    }
    .nav-island-label span {
        overflow: hidden;
        text-overflow: ellipsis;
        color: var(--brand-yellow) !important;
        font-size: 0.95rem !important;
        font-weight: 700;
        letter-spacing: 0.01em;
    }
    .navbar.menu-open .nav-island-label,
    .navbar:has(.navbar-collapse.show) .nav-island-label {
        display: none !important;
    }
    .navbar .container-fluid {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        width: 100%;
    }
    .navbar .navbar-brand {
        flex: 0 0 auto;
        max-width: 28%;
    }
    .navbar .nav-island-label {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        max-width: 46%;
        flex: none;
        pointer-events: none;
        z-index: 1;
    }
    .navbar {
        position: fixed; /* already fixed */
    }
    .navbar-toggler {
        background: transparent;
        color: #FFD700 !important;
        border: 1.5px solid #FFD700;
        border-radius: 40px;
        padding: 0.5rem 0.85rem;
        font-size: 1.15rem;
        line-height: 1;
        margin-left: auto;
    }
    .navbar-toggler-icon {
        width: 1.35em;
        height: 1.35em;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FFD700' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
    .navbar-collapse {
        background: transparent;
        padding: 0.6rem 0 0.2rem;
        margin-top: 0.35rem;
        border: none;
        box-shadow: none;
        border-radius: 0;
    }
    .nav-link {
        color: #fff !important;
        border-radius: 40px;
        padding: 0.7rem 1.2rem !important;
        margin: 4px 0;
        background: transparent;
        transition: var(--transition);
        font-size: 1rem;
    }
    .nav-link i {
        color: #FFD700 !important;
    }
    .nav-link:hover, .nav-link.active {
        background: var(--brand-yellow);
        color: #12151F !important;
        box-shadow: 0 4px 14px rgba(255, 215, 0, 0.3);
    }
    .nav-link:hover i, .nav-link.active i {
        color: #12151F !important;
    }
    .navbar .btn-primary {
        background: var(--brand-yellow);
        color: #12151F !important;
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
        font-weight: 700;
        font-size: 1rem;
        padding: 0.55rem 1.3rem !important;
    }
    .navbar .btn-primary:hover {
        background: #fff;
        color: #12151F !important;
    }
}

@media (max-width: 575.98px) {
    body { padding-top: 76px; }
    .navbar {
        top: 6px;
        width: 72%;
        max-width: 300px;
        padding: 0.5rem 0.9rem;
    }
    .navbar:has(.navbar-collapse.show),
    .navbar.menu-open {
        width: 96%;
        max-width: 100%;
        padding: 0.5rem 0.85rem 0.75rem;
    }
    .navbar-brand .site-logo { max-height: 44px; }
    .navbar-toggler {
        padding: 0.45rem 0.75rem;
        font-size: 1.1rem;
    }
}


/* Mobile: ALL nav icons yellow; dark only on yellow-pill hover/active */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link i,
    .navbar-nav .nav-course-btn i,
    .navbar-nav a[href="#emagazines"] i,
    .navbar-nav a[href="#books"] i,
    #openCoursePanel i,
    #openEmagPanel i,
    #openBooksPanel i {
        color: #FFD700 !important;
    }
    .navbar-nav .nav-link:hover i,
    .navbar-nav .nav-link.active i,
    .navbar-nav .nav-course-btn:hover i,
    .navbar-nav .nav-course-btn.active i,
    .navbar-nav a[href="#emagazines"]:hover i,
    .navbar-nav a[href="#emagazines"].active i,
    .navbar-nav a[href="#books"]:hover i,
    .navbar-nav a[href="#books"].active i {
        color: #12151F !important;
    }
}


/* Mobile island label swipe transition */
@media (max-width: 991.98px) {
    .nav-island-label {
        overflow: hidden !important;
    }
    .nav-island-label .island-slide {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        white-space: nowrap;
        transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.35s ease;
        will-change: transform, opacity;
    }
    .nav-island-label .island-slide.out-left {
        transform: translateX(-130%);
        opacity: 0;
    }
    .nav-island-label .island-slide.in-from-right {
        transform: translateX(130%);
        opacity: 0;
    }
    .nav-island-label .island-slide.center {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
}
.hero-carousel .carousel-item {
    height: auto;
    min-height: 280px;
    max-height: none;
    background: #0B0E1A;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-carousel .carousel-item img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    object-position: center;
    display: block;
    animation: none;
}
@keyframes kenburns {
    0% { transform: scale(1); }
    100% { transform: scale(1.12); }
}
.hero-carousel .carousel-caption {
    /* Bottom ribbon overlapping image */
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-width: none;
    margin: 0;
    background: linear-gradient(90deg, rgba(15, 18, 30, 0.92) 0%, rgba(26, 31, 47, 0.88) 100%);
    padding: 0.9rem 1.5rem;
    border-radius: 0;
    backdrop-filter: blur(12px);
    border-left: none;
    border-top: 3px solid var(--brand-yellow);
    box-shadow: 0 -8px 24px rgba(0,0,0,0.25);
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    z-index: 5;
}
.hero-carousel .carousel-caption h1,
.hero-carousel .carousel-caption h1,
    .hero-carousel .carousel-caption h2 {
    font-size: clamp(1.1rem, 1.2vw + 0.7rem, 1.65rem);
    font-weight: 800;
    color: var(--brand-yellow);
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
    margin: 0;
    line-height: 1.3;
    flex: 1 1 auto;
    min-width: 0;
}
.hero-carousel .carousel-caption p {
    display: none; /* subtitle hidden in ribbon layout */
}
.hero-carousel .carousel-caption .btn {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 0.45rem 1.2rem;
    margin: 0;
}
.carousel-control-prev, .carousel-control-next {
    width: 6%;
    opacity: 0.8;
    transition: var(--transition);
}
.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 1;
    background: rgba(0,0,0,0.2);
}
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--brand-yellow);
    opacity: 0.5;
    transition: var(--transition);
}
.carousel-indicators .active { opacity: 1; transform: scale(1.3); }

/* ===== Mobile: full image fit + bottom-centered overlapping caption & controls ===== */
@media (max-width: 767.98px) {
    .hero-carousel {
        border-radius: 0 0 24px 24px;
    }
    .hero-carousel .carousel-item {
        height: auto;
        min-height: 0;
        max-height: none;
        background: #0B0E1A;
    }
    .hero-carousel .carousel-item img {
        width: 100%;
        height: auto;
        max-height: 70vh;
        object-fit: contain;
        object-position: center;
        animation: none;
    }
    .hero-carousel .carousel-caption {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 0.65rem 0.85rem;
        gap: 0.65rem;
        border-radius: 0 0 24px 24px;
        border-top: 2px solid var(--brand-yellow);
    }
    .hero-carousel .carousel-caption h1,
    .hero-carousel .carousel-caption h2 {
        font-size: 0.95rem;
        margin: 0;
        line-height: 1.25;
    }
    .hero-carousel .carousel-caption .btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.85rem;
    }
    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 40px;
        height: 40px;
        top: auto;
        bottom: 58px;
        opacity: 1;
        background: rgba(20, 25, 40, 0.75);
        border-radius: 50%;
        border: 1.5px solid var(--brand-yellow);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .hero-carousel .carousel-control-prev {
        left: 12px;
        right: auto;
    }
    .hero-carousel .carousel-control-next {
        right: 12px;
        left: auto;
    }
    .hero-carousel .carousel-control-prev-icon,
    .hero-carousel .carousel-control-next-icon {
        width: 1.1rem;
        height: 1.1rem;
    }
    .hero-carousel .carousel-indicators {
        bottom: 52px;
        margin-bottom: 0;
    }
    .hero-carousel .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
    }
    .hero-carousel .carousel-indicators .active {
        transform: scale(1.2);
    }
}

@media (max-width: 420px) {
    .hero-carousel .carousel-caption {
        padding: 0.55rem 0.7rem;
        gap: 0.5rem;
    }
    .hero-carousel .carousel-caption h1,
    .hero-carousel .carousel-caption h2 {
        font-size: 0.88rem;
    }
    .hero-carousel .carousel-caption .btn {
        font-size: 0.7rem;
        padding: 0.28rem 0.7rem;
    }
    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        bottom: 52px;
        width: 36px;
        height: 36px;
    }
    .hero-carousel .carousel-indicators {
        bottom: 48px;
    }
}

/* About — dark royal blue */
.about-section {
    padding: 90px 0;
    background: var(--page-bg, #070B16);
    position: relative;
    overflow: hidden;
}
.about-section::before {
    content: none;
    display: none;
}
/* Force title + yellow line centered on ALL screen sizes */
.about-section .section-title,
.about-content .section-title,
.about-content h2.section-title {
    text-align: center !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff !important;
}
.about-section .section-title::after {
    margin-left: auto !important;
    margin-right: auto !important;
}
.about-content {
    text-align: center;
}
.about-content .about-text {
    text-align: left;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.about-content .d-flex {
    justify-content: center !important;
    width: 100%;
}

.about-img-wrap {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
    perspective: none;
    padding: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    filter: none;
}
/* sun rays removed */
.about-img-wrap::before {
    content: none !important;
    display: none !important;
}
/* aboutSunRays removed */
/* Animated sun disc — center matches rays */
.about-img-wrap::after {
    content: none !important;
    display: none !important;
}
/* aboutSunPulse removed */
.about-img {
    position: relative;
    z-index: 1;
    border-radius: 16px;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    filter: none !important;
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 320px;
    background: transparent !important;
    background-color: transparent !important;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transform: none;
    transform-style: flat;
    display: block;
}
.about-img-wrap:hover .about-img {
    transform: translateY(-4px) scale(1.02);
    box-shadow: none !important;
    filter: none !important;
}
.about-content h2 {
    font-weight: 800;
    margin-bottom: 1.35rem;
    letter-spacing: -0.03em;
    text-align: center !important;
}
.about-content p {
    color: rgba(232, 234, 237, 0.88);
    margin-bottom: 1.05rem;
    font-size: 1.04rem;
    line-height: 1.8;
}
.about-text {
    max-height: 9.5em;
    overflow: hidden;
    position: relative;
}
.about-text.about-text-full {
    max-height: none;
}
.about-text::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2.6em;
    background: linear-gradient(to bottom, transparent, #070B16 90%);
    pointer-events: none;
}
.about-text.about-text-full::after { display: none; }
.about-content .btn-brand {
    background: var(--brand-yellow);
    color: #12151F;
    border: none;
    padding: 0.8rem 2.1rem;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 12px 28px rgba(255, 215, 0, 0.25);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.about-content .btn-brand:hover {
    background: #fff;
    color: #12151F;
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(255, 215, 0, 0.35);
}
.about-content .btn-readmore {
    background: transparent;
    color: #FFD700;
    border: 2px solid rgba(255, 215, 0, 0.55);
    padding: 0.72rem 1.9rem;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 0.65rem;
}
.about-content .btn-readmore:hover {
    background: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: #12151F;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(255, 215, 0, 0.3);
}
@media (max-width: 991.98px) {
    .about-img-wrap { max-width: 260px; padding: 1.1rem 1rem 1.4rem; }
    .about-img { max-height: 250px; transform: none; border-radius: 18px; }
    .about-img-wrap:hover .about-img { transform: translateY(-5px) scale(1.02); }
    .about-section .section-title,
    .about-content .section-title,
    .about-content h2 {
        text-align: center !important;
    }
    .about-content .d-flex {
        justify-content: center !important;
    }
}
@media (max-width: 575.98px) {
    .about-img-wrap { max-width: 210px; padding: 0.9rem 0.8rem 1.2rem; }
    .about-img { max-height: 210px; border-radius: 16px; }
    .about-section { padding: 60px 0; }
    .about-section .section-title,
    .about-content h2.section-title {
        text-align: center !important;
        display: block;
        width: 100%;
    }
    .about-content .d-flex {
        justify-content: center !important;
        flex-wrap: wrap;
    }
}

/* ========================================
   3D YOUTUBE CAROUSEL
   ======================================== */
.youtube-section {
    padding: 80px 0;
    background: var(--page-bg);
    position: relative;
    overflow: hidden;
    perspective: 1500px;
}
.youtube-section::before {
    content: '';
    position: absolute;
    top: -100px; left: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBlob 8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 30px) scale(1.1); }
}

.yt-carousel-wrapper {
    position: relative;
    padding: 0 50px;
}
.yt-swiper {
    overflow: hidden;
    padding: 40px 0 60px;
    perspective: 1800px;
}
.yt-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
    will-change: transform;
}
.yt-slide {
    flex: 0 0 33.3333%;
    padding: 0 15px;
    transform-style: preserve-3d;
    transition: transform 0.7s ease, opacity 0.7s ease, filter 0.7s ease;
    transform: scale(0.85) translateZ(-60px);
    opacity: 0.55;
    filter: blur(1px);
}
.yt-slide.active {
    transform: scale(1) translateZ(0);
    opacity: 1;
    filter: blur(0);
    z-index: 2;
}
.yt-slide.prev-slide,
.yt-slide.next-slide {
    transform: scale(0.9) translateZ(-30px);
    opacity: 0.85;
    filter: blur(0);
}
.yt-card-3d {
    position: relative;
    background: linear-gradient(145deg, #1A1F2F 0%, #151925 100%);
    border-radius: 24px;
    padding: 18px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 215, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
    height: 100%;
}
.yt-card-3d:hover {
    transform: translateY(-10px) rotateX(4deg);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.25),
        0 0 0 2px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.yt-card-3d .ratio {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateZ(20px);
    transition: transform 0.6s ease;
}
.yt-card-3d:hover .ratio { transform: translateZ(35px); }
.yt-card-3d .yt-card-body {
    padding: 1rem 0.5rem 0.3rem;
    transform: translateZ(15px);
    transition: transform 0.6s ease;
}
.yt-card-3d:hover .yt-card-body { transform: translateZ(30px); }
.yt-card-3d .yt-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.yt-card-3d .yt-card-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 22px;
    background: linear-gradient(180deg, var(--brand-yellow), var(--brand-yellow-dark));
    border-radius: 4px;
    flex-shrink: 0;
}
.yt-play-badge {
    position: absolute;
    top: 30px; right: 30px;
    width: 50px; height: 50px;
    background: linear-gradient(135deg, #FF0000, #cc0000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.5);
    transform: translateZ(40px);
    transition: transform 0.6s ease;
    z-index: 3;
    pointer-events: none;
}
.yt-card-3d:hover .yt-play-badge { transform: translateZ(60px) scale(1.15); }

.yt-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px; height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-dark-2));
    color: var(--brand-yellow);
    border: 2px solid var(--brand-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 50;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    /* CRITICAL: ensure buttons are always tappable */
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.yt-nav-btn:hover {
    background: var(--brand-yellow);
    color: var(--brand-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.5);
}
.yt-nav-btn.yt-prev { left: 0; }
.yt-nav-btn.yt-next { right: 0; }

.yt-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}
.yt-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(26, 31, 47, 0.2);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}
.yt-dot.active {
    background: var(--brand-yellow);
    width: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

/* ========================================
   3D GALLERY — responsive 53" → laptop → mobile
   ======================================== */
.gallery-section {
    padding: 80px 0;
    background: var(--page-bg, #070B16);
    position: relative;
    overflow: hidden;
}
.gallery-3d-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    perspective: 1600px;
}
.gallery-3d-card {
    cursor: pointer;
    outline: none;
    transform-style: preserve-3d;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-3d-card:focus-visible {
    outline: 2px solid var(--brand-yellow);
    outline-offset: 4px;
    border-radius: 18px;
}
.gallery-3d-inner {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--surface-2, #141C32);
    border: 1px solid rgba(255, 215, 0, 0.12);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.03);
    transform: rotateX(2deg) rotateY(-2deg) translateZ(0);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.35s ease;
    transform-style: preserve-3d;
}
.gallery-3d-card:hover .gallery-3d-inner,
.gallery-3d-card:focus-visible .gallery-3d-inner {
    transform: rotateX(0deg) rotateY(0deg) translateY(-10px) translateZ(24px) scale(1.03);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow:
        0 28px 50px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 215, 0, 0.2),
        0 0 30px rgba(255, 215, 0, 0.12);
}
.gallery-3d-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}
.gallery-3d-card:hover .gallery-3d-inner img {
    transform: scale(1.08);
}
.gallery-3d-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(255,255,255,0.12) 0%, transparent 42%, transparent 58%, rgba(255,215,0,0.06) 100%);
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.4s ease;
}
.gallery-3d-card:hover .gallery-3d-shine { opacity: 1; }
.gallery-3d-cap {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(to top, rgba(7, 11, 22, 0.92), transparent);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.gallery-3d-card:hover .gallery-3d-cap,
.gallery-3d-card:focus-visible .gallery-3d-cap {
    opacity: 1;
    transform: translateY(0);
}
.gallery-3d-cap span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gallery-3d-cap i {
    color: var(--brand-yellow);
    flex-shrink: 0;
    font-size: 1.05rem;
}

/* Gallery responsive breakpoints — mobile → 53"+ */
@media (max-width: 575.98px) {
    .gallery-3d-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
    .gallery-3d-inner { border-radius: 12px; transform: none; }
    .gallery-3d-card:hover .gallery-3d-inner { transform: translateY(-4px) scale(1.02); }
    .gallery-3d-cap { font-size: 0.75rem; padding: 0.5rem 0.65rem; opacity: 1; transform: none; }
}
@media (min-width: 576px) and (max-width: 991.98px) {
    .gallery-3d-grid { grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
}
@media (min-width: 992px) and (max-width: 1399.98px) {
    .gallery-3d-grid { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
}
@media (min-width: 1400px) and (max-width: 1999.98px) {
    .gallery-3d-grid { grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }
}
@media (min-width: 2000px) and (max-width: 2799.98px) {
    .gallery-3d-grid { grid-template-columns: repeat(6, 1fr); gap: 1.35rem; }
}
@media (min-width: 2800px) {
    .gallery-3d-grid { grid-template-columns: repeat(7, 1fr); gap: 1.5rem; }
    .gallery-3d-inner { border-radius: 22px; }
}

/* Fullscreen lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(4, 6, 12, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.gallery-lightbox.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.glb-stage {
    max-width: min(96vw, 1400px);
    max-height: 90vh;
    text-align: center;
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-lightbox.open .glb-stage { transform: scale(1); }
.glb-stage img {
    max-width: 100%;
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 215, 0, 0.15);
}
.glb-title {
    margin: 0.85rem 0 0;
    color: #E8EAED;
    font-weight: 600;
    font-size: 1rem;
}
.glb-close, .glb-nav {
    position: absolute;
    border: 1.5px solid rgba(255, 215, 0, 0.45);
    background: rgba(18, 22, 34, 0.85);
    color: #FFD700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
}
.glb-close {
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    font-size: 1.25rem;
}
.glb-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
}
.glb-prev { left: 16px; }
.glb-next { right: 16px; }
.glb-close:hover, .glb-nav:hover {
    background: #FFD700;
    color: #0A0E1C;
    transform: translateY(-50%) scale(1.06);
}
.glb-close:hover { transform: scale(1.06); }
@media (max-width: 575.98px) {
    .glb-nav { width: 40px; height: 40px; font-size: 1.15rem; }
    .glb-prev { left: 8px; }
    .glb-next { right: 8px; }
    .glb-close { top: 12px; right: 12px; width: 40px; height: 40px; }
    .glb-stage img { max-height: 75vh; border-radius: 8px; }
}

/* ========================================
   3D TESTIMONIAL CAROUSEL
   ======================================== */
.testimonials-section {
    padding: 90px 0;
    background: linear-gradient(160deg, #12151F 0%, #0A0C12 100%);
    position: relative;
    overflow: hidden;
    perspective: 1500px;
}
.testimonials-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.04) 0%, transparent 65%);
    animation: rotateBg 40s linear infinite;
}
.testimonials-section::after {
    content: '';
    position: absolute;
    bottom: -150px; right: -150px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.07) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBlob 8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.testimonials-section .section-title { color: #fff; }
.testimonials-section .section-title::after {
    background: linear-gradient(90deg, var(--brand-yellow), #fff);
}
.t-carousel-wrapper {
    position: relative;
    padding: 0 50px;
}
.t-swiper {
    overflow: hidden;
    padding: 40px 0 60px;
    perspective: 1800px;
}
.t-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
    will-change: transform;
}
.t-slide {
    flex: 0 0 33.3333%;
    padding: 0 15px;
    transform-style: preserve-3d;
    transition: transform 0.7s ease, opacity 0.7s ease, filter 0.7s ease;
    transform: scale(0.85) translateZ(-60px);
    opacity: 0.55;
    filter: blur(1px);
}
.t-slide.active {
    transform: scale(1) translateZ(0);
    opacity: 1;
    filter: blur(0);
    z-index: 2;
}
.t-slide.prev-slide,
.t-slide.next-slide {
    transform: scale(0.9) translateZ(-30px);
    opacity: 0.85;
    filter: blur(0);
}
.t-card-3d {
    position: relative;
    transform-style: preserve-3d;
    height: 100%;
    z-index: 1;
}
.t-card-inner {
    background:
        linear-gradient(155deg, rgba(255, 215, 0, 0.06) 0%, transparent 40%),
        linear-gradient(145deg, #1A2240 0%, #10182C 55%, #0C1220 100%);
    border-radius: 28px;
    padding: 2.5rem 2rem 2rem;
    box-shadow:
        0 28px 55px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 215, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    height: 100%;
    position: relative;
    overflow: visible;
    transition: box-shadow 0.6s ease, transform 0.6s ease, border-color 0.4s ease;
    transform-style: preserve-3d;
    border: 1px solid rgba(255, 215, 0, 0.12);
}
.t-slide.active .t-card-3d:hover .t-card-inner {
    box-shadow:
        0 45px 90px rgba(0, 0, 0, 0.45),
        0 0 0 2px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.t-card-inner .quote-mark {
    position: absolute;
    top: -25px; right: 30px;
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--brand-yellow), var(--brand-yellow-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--brand-dark);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.5);
    transform: translateZ(30px);
    transition: transform 0.6s ease;
    pointer-events: none;
}
.t-slide.active .t-card-3d:hover .quote-mark {
    transform: translateZ(50px) rotate(15deg) scale(1.1);
}
.t-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 1.2rem;
    color: var(--brand-yellow);
    font-size: 1.15rem;
}
.t-stars i {
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.4));
    transition: transform 0.3s ease;
}
.t-slide.active .t-card-3d:hover .t-stars i { animation: starPop 0.5s ease forwards; }
.t-slide.active .t-card-3d:hover .t-stars i:nth-child(1) { animation-delay: 0s; }
.t-slide.active .t-card-3d:hover .t-stars i:nth-child(2) { animation-delay: 0.05s; }
.t-slide.active .t-card-3d:hover .t-stars i:nth-child(3) { animation-delay: 0.1s; }
.t-slide.active .t-card-3d:hover .t-stars i:nth-child(4) { animation-delay: 0.15s; }
.t-slide.active .t-card-3d:hover .t-stars i:nth-child(5) { animation-delay: 0.2s; }
@keyframes starPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
.t-quote {
    font-style: italic;
    color: #C5C9D1;
    margin-bottom: 2rem;
    font-size: 1.02rem;
    line-height: 1.85;
    position: relative;
    padding-left: 8px;
    border-left: 3px solid rgba(255, 215, 0, 0.4);
}
.t-author {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(255, 215, 0, 0.15);
    position: relative;
}
.t-avatar-3d {
    width: 70px; height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    position: relative;
    flex-shrink: 0;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    box-shadow:
        0 12px 25px rgba(0, 0, 0, 0.35),
        inset 0 -3px 8px rgba(0, 0, 0, 0.2),
        inset 0 3px 8px rgba(255, 255, 255, 0.15);
}
.t-slide.active .t-card-3d:hover .t-avatar-3d {
    transform: translateZ(40px) rotateY(12deg) scale(1.08);
}
.t-avatar-user {
    background: linear-gradient(145deg, #1A2440 0%, #0F1629 100%);
    color: #FFD700;
    border: 2px solid rgba(255, 215, 0, 0.45);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.4),
        0 0 0 3px rgba(255, 215, 0, 0.12),
        inset 0 2px 8px rgba(255, 255, 255, 0.08);
}
.t-user-badge {
    position: absolute;
    bottom: -2px; right: -2px;
    width: 22px; height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #0A0E1C;
    background: #FFD700;
    border: 2px solid #141C32;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    transform: translateZ(10px);
}
.t-author-info h6 {
    margin-bottom: 2px;
    font-weight: 700;
    color: #E8EAED;
    font-size: 1.05rem;
}
.t-author-info small {
    color: #9AA0AC;
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}
.t-slide.active .t-card-3d::after {
    content: '';
    position: absolute;
    bottom: -20px; left: 10%;
    width: 80%; height: 20px;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: scaleX(0.8);
    z-index: -1;
}
.t-slide.active .t-card-3d:hover::after {
    opacity: 1;
    transform: scaleX(1);
}
.t-card-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100px; height: 100px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, transparent 60%);
    border-radius: 30px 0 0 0;
    pointer-events: none;
}
.t-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px; height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.9), rgba(168, 134, 28, 0.9));
    backdrop-filter: blur(10px);
    color: var(--brand-dark);
    border: 2px solid var(--brand-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 50;
    transition: var(--transition);
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
.t-nav-btn:hover {
    background: var(--brand-yellow);
    color: var(--brand-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.6);
}
.t-nav-btn.t-prev { left: 0; }
.t-nav-btn.t-next { right: 0; }
.t-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}
.t-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}
.t-dot.active {
    background: var(--brand-yellow);
    width: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

/* ========================================
   MOBILE OPTIMIZATION
   Full-width slides + OVERLAPPING tappable buttons
   + disable iframe pointer-capture so taps hit the buttons
   ======================================== */
@media (max-width: 991.98px) {
    .yt-slide { flex: 0 0 50%; }
    .t-slide { flex: 0 0 50%; }
    .testimonials-section { padding: 80px 0; }
}

@media (max-width: 767.98px) {
    /* Full-width slides so card fills screen cleanly */
    .yt-slide { flex: 0 0 100%; }
    .t-slide { flex: 0 0 100%; }

    /* Balanced padding so card + buttons look neat */
    .yt-carousel-wrapper,
    .t-carousel-wrapper {
        padding: 0 12px;
    }

    .yt-slide, .t-slide {
        padding: 0 8px;
    }

    /* Compact but clean cards */
    .yt-card-3d { padding: 12px; border-radius: 18px; }
    .t-card-inner { padding: 2rem 1.3rem 1.3rem; border-radius: 22px; }

    /* Allow YouTube play on active slide — keep absolute iframe so 16:9 fills card */
    .yt-slide:not(.active) .yt-card-3d .ratio iframe {
        pointer-events: none !important;
    }
    .yt-slide.active .yt-card-3d .ratio iframe {
        pointer-events: auto !important;
        touch-action: manipulation;
    }
    .yt-card-3d {
        height: auto !important;
        padding: 10px !important;
    }
    /* Full 16:9 video area — no blank gap inside card */
    .yt-card-3d .ratio.ratio-16x9,
    .yt-card-3d .ratio {
        width: 100% !important;
        position: relative !important;
        transform: none !important;
        overflow: hidden;
        border-radius: 14px;
        /* Bootstrap ratio uses ::before for height; keep that, don't force height:0 twice */
    }
    .yt-card-3d .ratio iframe {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        border: 0;
    }
    .yt-play-badge {
        pointer-events: none !important;
        top: 18px !important;
        right: 18px !important;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    /* Nav buttons stay above video and remain tappable */
    .yt-nav-btn,
    .t-nav-btn {
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
        z-index: 100;
        pointer-events: auto !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        display: flex !important;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    }
    .yt-nav-btn.yt-prev { left: 16px; }
    .yt-nav-btn.yt-next { right: 16px; }
    .t-nav-btn.t-prev { left: 16px; }
    .t-nav-btn.t-next { right: 16px; }

    /* Dots neat and centered */
    .yt-dots, .t-dots { gap: 8px; margin-top: 10px; }
    .yt-dot, .t-dot { width: 8px; height: 8px; }
    .yt-dot.active, .t-dot.active { width: 22px; }

    .yt-swiper, .t-swiper { padding: 20px 0 36px; }

    .youtube-section, .testimonials-section { padding: 60px 0; }

    .t-author { gap: 0.85rem; }
    .t-avatar-3d { width: 54px; height: 54px; font-size: 1.4rem; }
    .t-quote { font-size: 0.92rem; margin-bottom: 1.3rem; }
    .quote-mark {
        width: 42px; height: 42px;
        font-size: 1.35rem;
        top: -16px; right: 16px;
    }

    /* Hide side slides cleanly on mobile (no partial peek) */
    .yt-slide.prev-slide,
    .yt-slide.next-slide,
    .t-slide.prev-slide,
    .t-slide.next-slide {
        opacity: 0;
        filter: none;
        pointer-events: none;
    }
    .yt-slide:not(.active),
    .t-slide:not(.active) {
        opacity: 0;
        pointer-events: none;
    }
    .yt-slide.active,
    .t-slide.active {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 420px) {
    .yt-carousel-wrapper,
    .t-carousel-wrapper { padding: 0 4px; }
    .yt-slide, .t-slide { padding: 0 4px; }
    .yt-card-3d { padding: 12px; border-radius: 18px; }
    .t-card-inner { padding: 2rem 1.2rem 1.2rem; }

    .yt-nav-btn,
    .t-nav-btn { width: 42px; height: 42px; font-size: 1.1rem; }
    .yt-nav-btn.yt-prev { left: 8px; }
    .yt-nav-btn.yt-next { right: 8px; }
    .t-nav-btn.t-prev { left: 8px; }
    .t-nav-btn.t-next { right: 8px; }
}

/* Footer */
.footer {
    background: #0A0C12 !important;
    border-top: 4px solid var(--brand-yellow);
    position: relative;
    padding-bottom: 2rem;
}
.footer h5 { color: var(--brand-yellow); font-weight: 700; font-size: 1.05rem; }
.footer p,
.footer li,
.footer a,
.footer .text-white-50 {
    font-size: 0.9rem;
}
.footer a {
    transition: var(--transition);
    color: #B0B5C5 !important;
}
@media (min-width: 992px) {
    .footer h5 { font-size: 1rem; }
    .footer p,
    .footer li,
    .footer a,
    .footer .text-white-50 {
        font-size: 0.85rem;
    }
    .footer .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }
}
.footer a:hover {
    color: var(--brand-yellow) !important;
    padding-left: 5px;
}
.footer .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    transition: var(--transition);
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
}
.footer .social-icon:hover {
    background: var(--brand-yellow);
    color: var(--brand-dark) !important;
    transform: translateY(-5px) rotate(360deg);
    padding-left: 0;
}

/* Utility */
.btn-primary {
    background-color: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: #12151F;
    font-weight: 700;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    transition: var(--transition);
}
.btn-primary:hover {
    background-color: #fff;
    border-color: #fff;
    color: #12151F;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 215, 0, 0.25);
}

/* Social: vertical sticky side bar on laptop/desktop */
.social-pill {
    position: fixed;
    top: 50%;
    right: 14px;
    left: auto;
    bottom: auto;
    transform: translateY(-50%);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    background: rgba(20, 25, 40, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem 0.55rem;
    border-radius: 40px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 215, 0, 0.15),
        0 0 20px rgba(255, 215, 0, 0.12);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s, box-shadow 0.35s ease;
}
.social-pill:hover {
    box-shadow:
        0 16px 42px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 215, 0, 0.25),
        0 0 28px rgba(255, 215, 0, 0.2);
}
.social-pill.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(20px);
    pointer-events: none;
}
.social-pill .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}
.social-pill .social-icon:hover {
    transform: scale(1.12);
    filter: brightness(1.12);
}
.social-pill .social-icon.ig-icon,
.footer .social-icon.ig-icon {
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
    color: #fff !important;
}
.social-pill .social-icon.tg-icon,
.footer .social-icon.tg-icon {
    background: #2AABEE;
    color: #fff !important;
}
.social-pill .social-icon.yt-icon,
.footer .social-icon.yt-icon {
    background: #FF0000;
    color: #fff !important;
}
.social-pill .social-icon.wa-icon,
.footer .social-icon.wa-icon {
    background: #25D366;
    color: #fff !important;
}
.social-pill .social-icon.x-icon,
.footer .social-icon.x-icon {
    background: #000;
    color: #fff !important;
}
.social-pill .social-icon.in-icon,
.footer .social-icon.in-icon {
    background: #0A66C2;
    color: #fff !important;
}
.footer .social-icon.ig-icon:hover,
.footer .social-icon.tg-icon:hover,
.footer .social-icon.yt-icon:hover,
.footer .social-icon.wa-icon:hover,
.footer .social-icon.x-icon:hover,
.footer .social-icon.in-icon:hover {
    color: #fff !important;
}

/* Chatbot inside social pill — desktop: hidden (uses floating button) */
.social-pill .chatbot-in-pill {
    display: none;
    position: relative;
}
.chatbot-hi-bubble {
    display: none;
}

/* Mobile: horizontal bottom big pill + chatbot centered inside */
@media (max-width: 991.98px) {
    .social-pill {
        top: auto;
        bottom: 16px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 0.55rem 0.9rem;
        gap: 0.4rem;
        border-radius: 60px;
        max-width: calc(100% - 24px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    }
    .social-pill.hidden {
        transform: translateX(-50%) translateY(24px);
    }
    .social-pill .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
    }
    /* Show chatbot in the middle of the pill */
    .social-pill .chatbot-in-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: linear-gradient(145deg, #FFD700, #e6c200);
        color: #0A0E1C !important;
        font-size: 1.35rem;
        border: 2px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 4px 14px rgba(255, 215, 0, 0.4);
        margin: 0 0.15rem;
        flex-shrink: 0;
        text-decoration: none;
        position: relative;
        z-index: 2;
    }
    .social-pill .chatbot-in-pill:hover {
        background: #0A0E1C;
        color: #FFD700 !important;
        border-color: #FFD700;
        transform: scale(1.08);
    }
    .social-pill .chatbot-in-pill .pulse-ring {
        position: absolute;
        inset: -5px;
        border-radius: 50%;
        border: 2px solid var(--brand-yellow);
        animation: chatbotPulse 2s ease-out infinite;
        pointer-events: none;
    }
    /* "Hi" popup bubble on phone */
    .chatbot-hi-bubble {
        display: block;
        position: absolute;
        bottom: calc(100% + 10px);
        left: 50%;
        transform: translateX(-50%);
        background: #FFD700;
        color: #0A0E1C;
        font-size: 0.78rem;
        font-weight: 800;
        padding: 0.28rem 0.65rem;
        border-radius: 12px 12px 12px 4px;
        white-space: nowrap;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
        pointer-events: none;
        animation: hiPop 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both,
                   hiBob 2.5s ease-in-out 1.4s infinite;
        z-index: 5;
    }
    .chatbot-hi-bubble::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 50%;
        transform: translateX(-50%);
        border: 5px solid transparent;
        border-top-color: #FFD700;
        border-bottom: 0;
    }
    @keyframes hiPop {
        from { opacity: 0; transform: translateX(-50%) translateY(8px) scale(0.7); }
        to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
    }
    @keyframes hiBob {
        0%, 100% { transform: translateX(-50%) translateY(0); }
        50% { transform: translateX(-50%) translateY(-4px); }
    }
    /* Hide standalone floating chatbot on mobile — lives in the pill */
    .chatbot-float {
        display: none !important;
    }
}
@media (max-width: 575.98px) {
    .social-pill {
        bottom: 12px;
        padding: 0.45rem 0.75rem;
        gap: 0.3rem;
    }
    .social-pill .social-icon {
        width: 38px;
        height: 38px;
        font-size: 1.05rem;
    }
    .social-pill .chatbot-in-pill {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
    .chatbot-hi-bubble {
        font-size: 0.72rem;
        padding: 0.24rem 0.55rem;
    }
}

/* AOS — do not disable pointer events (can interfere with mobile scroll feel) */
[data-aos] { /* pointer-events left default */ }


/* ===== Laptop screens (typical 1280–1600px) — keep layout balanced ===== */
@media (min-width: 992px) and (max-width: 1599px) {
    .hero-carousel .carousel-item {
        height: auto;
        min-height: 320px;
        max-height: none;
    }
    .hero-carousel .carousel-item img {
        max-height: 72vh;
    }
    .hero-carousel .carousel-caption {
        bottom: 0;
        padding: 0.85rem 1.4rem;
        max-width: none;
    }
    .hero-carousel .carousel-caption h1,
    .hero-carousel .carousel-caption h2 {
        font-size: clamp(1.05rem, 1.4vw, 1.4rem);
    }
    .hero-carousel .carousel-caption .btn {
        font-size: 0.85rem;
        padding: 0.4rem 1.1rem;
    }
    .section-title {
        font-size: clamp(1.5rem, 1.6vw, 2rem);
        margin-bottom: 2.5rem;
    }
    .about-section,
    .youtube-section,
    .gallery-section,
    .ads-section {
        padding: 70px 0;
    }
    .testimonials-section {
        padding: 80px 0;
    }
    .navbar {
        width: 94%;
        max-width: 1200px;
    }
    body { padding-top: 82px; }
}

/* Tablet + mobile responsive spacing + smaller text */
@media (max-width: 991.98px) {
    .about-section, .youtube-section, .gallery-section { padding: 70px 0; }
    .section-title { font-size: clamp(1.35rem, 4vw, 1.75rem); margin-bottom: 2.2rem; }
    .about-content p { font-size: 0.95rem; }
    body { font-size: 0.95rem; }
    .yt-card-3d .yt-card-title { font-size: 0.95rem; }
    .t-quote { font-size: 0.92rem; }
    .t-author-info h6 { font-size: 0.95rem; }
}
@media (max-width: 575.98px) {
    body { font-size: 0.9rem; }
    .section-title { font-size: 1.3rem; margin-bottom: 1.6rem; }
    .about-section, .youtube-section, .gallery-section, .testimonials-section { padding: 48px 0; }
    .about-content p { font-size: 0.88rem; }
    .about-content .btn-brand { padding: 0.6rem 1.4rem; font-size: 0.88rem; }
    .yt-card-3d .yt-card-title { font-size: 0.9rem; }
    .t-quote { font-size: 0.88rem; }
    .t-author-info h6 { font-size: 0.9rem; }
    .t-author-info small { font-size: 0.78rem; }
    .ad-card .ad-title { font-size: 0.85rem; padding: 0.7rem 0.9rem; }
    .footer h5 { font-size: 1rem; }
    .footer p, .footer li, .footer a { font-size: 0.88rem; }
}

html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; }

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-yellow);
    color: var(--brand-dark);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 1035;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.35s ease;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--brand-dark);
    color: var(--brand-yellow);
    transform: translateY(-4px);
}
@media (max-width: 991.98px) {
    .back-to-top {
        bottom: 78px;
        right: 16px;
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
}
@media (max-width: 575.98px) {
    .back-to-top {
        bottom: 72px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }
}

/* Separate WhatsApp float disabled — lives inside the social pill */
.whatsapp-float {
    display: none !important;
}

/* Contact Form in Footer */
.contact-form .form-control {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    border-radius: 12px;
    padding: 0.75rem 1rem;
}
.contact-form .form-control::placeholder {
    color: rgba(255,255,255,0.45);
}
.contact-form .form-control:focus {
    background: rgba(255,255,255,0.1);
    border-color: var(--brand-yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
    color: #fff;
}
.contact-form .btn-send {
    background: var(--brand-yellow);
    color: var(--brand-dark);
    border: none;
    border-radius: 50px;
    padding: 0.7rem 1.8rem;
    font-weight: 700;
    transition: var(--transition);
}
.contact-form .btn-send:hover {
    background: #fff;
    color: var(--brand-dark);
    transform: translateY(-2px);
}


/* Advertisements / Posters - Yellow theme */
.ads-section {
    padding: 80px 0;
    background: var(--page-bg);
}
.ad-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--surface-2);
    border: 2px solid rgba(255, 215, 0, 0.12);
}
.ad-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-yellow);
    border-color: var(--brand-yellow);
}
.ad-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.ad-card .ad-title {
    padding: 0.9rem 1.1rem;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
    background: var(--surface-2);
    color: var(--text-primary);
}

/* Google Map */
.map-section {
    padding: 0;
    line-height: 0;
}
.map-section iframe {
    width: 100%;
    height: 380px;
    border: 0;
    display: block;
}
@media (max-width: 767px) {
    .map-section iframe { height: 260px; }
}




/* ===== iOS / Duo-like smooth motion ===== */
:root {
    --ease-ios: cubic-bezier(0.32, 0.72, 0, 1);
    --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}
a, button, .nav-link, .btn, .social-icon, .gallery-item, .yt-nav-btn, .t-nav-btn {
    transition: transform 0.35s var(--ease-ios), background 0.35s var(--ease-ios),
                color 0.3s ease, box-shadow 0.35s var(--ease-ios), opacity 0.3s ease !important;
}
.section-title, .gallery-item img {
    transition: transform 0.5s var(--ease-spring), box-shadow 0.45s var(--ease-ios);
}
.about-img {
    box-shadow: none !important;
    filter: none !important;
}

/* ===== Courses bottom panel (3D slide-up from course table) ===== */
.course-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 20, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.course-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.course-panel {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) translateY(110%) rotateX(14deg);
    transform-origin: center bottom;
    width: min(1100px, 96vw);
    max-height: 90vh;
    z-index: 2010;
    background: linear-gradient(165deg, #1A1F2F 0%, #0B0E1A 100%);
    border-radius: 28px 28px 16px 16px;
    border: 1px solid rgba(255, 215, 0, 0.35);
    box-shadow:
        0 -20px 60px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 215, 0, 0.1),
        0 0 40px rgba(255, 215, 0, 0.15);
    padding: 1.1rem 1.15rem 1.35rem;
    opacity: 0;
    visibility: hidden;
    transition:
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.4s ease,
        visibility 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.course-panel.open {
    transform: translateX(-50%) translateY(0) rotateX(0deg);
    opacity: 1;
    visibility: visible;
}
.course-panel.closing {
    transform: translateX(-50%) translateY(110%) rotateX(12deg);
    opacity: 0;
}

.course-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    padding: 0 0.25rem;
    flex-shrink: 0;
}
.course-panel-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-yellow);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
/* Search bar inside resource panels */
.panel-search-wrap {
    position: relative;
    margin: 0 0.25rem 0.85rem;
    flex-shrink: 0;
}
.panel-search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 215, 0, 0.7);
    font-size: 1rem;
    pointer-events: none;
}
.panel-search-input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    border-radius: 50px;
    border: 1.5px solid rgba(255, 215, 0, 0.35);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.panel-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
.panel-search-input:focus {
    border-color: var(--brand-yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
}
.course-card-3d.panel-hidden {
    display: none !important;
}
.panel-no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(255,255,255,0.55);
    padding: 2rem 1rem;
    font-size: 0.95rem;
    display: none;
}
.panel-no-results.show {
    display: block;
}
.course-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.5);
    background: rgba(255, 215, 0, 0.15);
    color: var(--brand-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.course-close:hover {
    background: var(--brand-yellow);
    color: var(--brand-dark);
    transform: rotate(90deg) scale(1.05);
}

/* Scrollable grid body */
.course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0.35rem 0.5rem;
    max-height: calc(90vh - 5.5rem);
    overscroll-behavior: contain;
}
.course-grid::-webkit-scrollbar { width: 8px; }
.course-grid::-webkit-scrollbar-track { background: rgba(255,255,255,0.06); border-radius: 8px; }
.course-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FFD700, #e6c200);
    border-radius: 8px;
}

/* 1 card: centered single column */
.course-grid.count-1 {
    grid-template-columns: minmax(280px, 520px);
    justify-content: center;
}
/* 2 cards: 2 columns on desktop */
.course-grid.count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}
/* 3 cards: 3 columns */
.course-grid.count-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.course-card-3d {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #111;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform-style: preserve-3d;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}
.course-card-3d:hover {
    transform: translateY(-4px);
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 215, 0, 0.25);
}
.course-card-3d img {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain; /* show FULL image, no cropping */
    object-position: center;
    display: block;
    background: #0a0c12;
}
.course-cta {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.15rem;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--brand-yellow), #e6c200);
    color: var(--brand-dark) !important;
    font-weight: 800;
    font-size: 0.85rem;
    text-decoration: none;
    border: none;
    box-shadow:
        0 8px 20px rgba(255, 215, 0, 0.4),
        0 3px 10px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
    white-space: nowrap;
}
.course-cta:hover {
    transform: translateX(-50%) translateY(-3px) scale(1.04);
    color: var(--brand-dark) !important;
}
.course-title-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: rgba(20, 25, 40, 0.88);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 40px;
    border: 1px solid rgba(255, 215, 0, 0.35);
    backdrop-filter: blur(8px);
    max-width: calc(100% - 20px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.course-empty {
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.95rem;
    grid-column: 1 / -1;
}

.nav-course-btn {
    position: relative;
}
.nav-course-btn i {
    color: var(--brand-dark) !important;
}

/* Tablet: 2 per row */
@media (max-width: 991.98px) {
    .nav-course-btn i { color: inherit; }
    .course-panel {
        width: 96vw;
        max-height: 88vh;
        border-radius: 22px 22px 12px 12px;
        padding: 0.85rem 0.75rem 1rem;
    }
    .course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        max-height: calc(88vh - 5rem);
    }
    .course-grid.count-1 {
        grid-template-columns: 1fr;
    }
    .course-grid.count-2,
    .course-grid.count-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }
    .course-cta {
        bottom: 10px;
        padding: 0.45rem 0.9rem;
        font-size: 0.75rem;
    }
    .course-title-tag {
        font-size: 0.68rem;
        padding: 0.25rem 0.55rem;
    }
}

/* Small phones: still 2 per row, tighter */
@media (max-width: 420px) {
    .course-grid {
        gap: 0.55rem;
    }
    .course-card-3d {
        border-radius: 14px;
    }
    .course-cta {
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem;
    }
}

/* Large desktop keep 4 cols default already set */
@media (min-width: 992px) {
    .course-grid:not(.count-1):not(.count-2):not(.count-3) {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}




/* Course detail (single enlarged card) */
.course-detail {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: calc(90vh - 5.5rem);
    padding: 0.25rem 0.35rem 0.75rem;
    animation: courseDetailIn 0.45s var(--ease-spring) both;
}
.course-panel.is-detail .course-grid {
    display: none;
}
.course-panel.is-detail .panel-search-wrap {
    display: none;
}
.course-panel.is-detail .course-detail {
    display: flex;
}
.course-panel.is-detail .course-panel-header h3 .course-header-default {
    display: none;
}
.course-panel.is-detail .course-panel-header h3 .course-header-detail {
    display: inline;
}
.course-header-detail { display: none; }

@keyframes courseDetailIn {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.course-detail-card {
    position: relative;
    width: min(720px, 100%);
    border-radius: 22px;
    overflow: hidden;
    background: #0a0c12;
    box-shadow:
        0 24px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 215, 0, 0.2);
    animation: courseDetailCard 0.5s var(--ease-spring) both;
}
@keyframes courseDetailCard {
    from { transform: scale(0.9); opacity: 0.6; }
    to { transform: scale(1); opacity: 1; }
}
.course-detail-card img {
    width: 100%;
    height: auto;
    max-height: 72vh;
    object-fit: contain;
    display: block;
    background: #0a0c12;
}
.course-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
    width: 100%;
    max-width: 720px;
}
.course-detail-back,
.course-detail-cta {
    border-radius: 50px;
    font-weight: 700;
    padding: 0.65rem 1.35rem;
    font-size: 0.9rem;
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: transform 0.35s var(--ease-ios), background 0.35s var(--ease-ios), color 0.3s ease;
}
.course-detail-back {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}
.course-detail-back:hover {
    background: rgba(255,255,255,0.15);
    color: #FFD700;
    border-color: #FFD700;
}
.course-detail-cta {
    background: linear-gradient(135deg, #FFD700, #e6c200);
    color: #1A1F2F !important;
    border-color: #FFD700;
}
.course-detail-cta:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 24px rgba(255, 215, 0, 0.4);
    color: #1A1F2F !important;
}
.course-card-3d {
    cursor: pointer;
}
.course-card-3d img {
    cursor: zoom-in;
    transition: transform 0.45s var(--ease-spring);
}
.course-card-3d:hover img {
    transform: scale(1.03);
}
.course-panel {
    transition:
        transform 0.55s var(--ease-spring),
        opacity 0.4s var(--ease-ios),
        visibility 0.4s ease;
}
.course-backdrop {
    transition: opacity 0.45s var(--ease-ios), visibility 0.45s ease;
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

@media (max-width: 767.98px) {
    .course-detail-card {
        width: 100%;
        border-radius: 16px;
    }
    .course-detail-card img {
        max-height: 62vh;
    }
    .course-detail-actions {
        flex-direction: column;
    }
    .course-detail-back,
    .course-detail-cta {
        width: 100%;
        justify-content: center;
    }
}

/* Footer CTA buttons */
.footer-btn-courses,
.footer-btn-whatsapp {
    width: 100%;
    border-radius: 50px !important;
    font-weight: 700;
    padding: 0.6rem 1.1rem !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: all 0.35s ease;
    border: 2px solid transparent;
}
.footer-btn-courses {
    background: transparent !important;
    color: #FFD700 !important;
    border-color: #FFD700 !important;
}
.footer-btn-courses:hover {
    background: #FFD700 !important;
    color: #1A1F2F !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.35);
}
.footer-btn-whatsapp {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}
.footer-btn-whatsapp:hover {
    background: rgba(255, 215, 0, 0.15) !important;
    color: #FFD700 !important;
    border-color: #FFD700 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

/* ========================================
   PRODUCT CARD CAROUSELS — E-Magazines & Books
   Responsive: mobile 1 → tablet 2 → desktop 3/4 → large 5
   ======================================== */
.product-section {
    padding: 80px 0;
    background: var(--page-bg);
    position: relative;
    overflow: hidden;
}
.product-section.emag-section {
    background: var(--surface);
}
.product-section.books-section {
    background: var(--page-bg);
}
.product-section.courses-section {
    background: var(--surface);
}
.product-carousel-wrapper {
    position: relative;
    padding: 0 50px;
}
.product-swiper {
    overflow: hidden;
    padding: 30px 0 50px;
}
.product-track {
    display: flex;
    transition: transform 0.65s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}
.product-slide {
    flex: 0 0 33.3333%;
    padding: 0 14px;
    transition: transform 0.55s ease, opacity 0.55s ease;
}
.product-card {
    background: var(--surface-2);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(255, 215, 0, 0.12);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-yellow);
    border-color: var(--brand-yellow);
}
.product-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #0B0E1A;
    overflow: hidden;
}
.product-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}
.product-card:hover .product-card-img-wrap img {
    transform: scale(1.06);
}
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--brand-yellow), var(--brand-yellow-dark));
    color: var(--brand-dark);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.28rem 0.7rem;
    border-radius: 40px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
    z-index: 2;
}
.product-card-body {
    padding: 1.1rem 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.65rem;
}
.product-card-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-meta {
    font-size: 0.8rem;
    color: var(--brand-gray);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.product-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 50px;
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700 !important;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 215, 0, 0.35);
    width: 100%;
}
.product-card:hover .product-cta {
    background: var(--brand-yellow);
    color: #12151F !important;
}
.product-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-dark-2));
    color: var(--brand-yellow);
    border: 2px solid var(--brand-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    cursor: pointer;
    z-index: 50;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.product-nav-btn:hover {
    background: var(--brand-yellow);
    color: var(--brand-dark);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 14px 32px rgba(255, 215, 0, 0.45);
}
.product-nav-btn.p-prev { left: 0; }
.product-nav-btn.p-next { right: 0; }
.product-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
}
.product-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(26, 31, 47, 0.2);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}
.product-dot.active {
    background: var(--brand-yellow);
    width: 28px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.45);
}

/* Responsive product carousels */
@media (min-width: 1200px) {
    .product-slide { flex: 0 0 25%; }
}
@media (min-width: 1600px) {
    .product-slide { flex: 0 0 20%; }
}
@media (min-width: 2200px) {
    .product-slide { flex: 0 0 16.666%; }
}
@media (min-width: 2800px) {
    .product-slide { flex: 0 0 14.28%; }
}
@media (max-width: 991.98px) {
    .product-slide { flex: 0 0 50%; }
    .product-section { padding: 70px 0; }
}
@media (max-width: 767.98px) {
    /* 2 cards per row on mobile */
    .product-slide { flex: 0 0 50%; }
    .product-carousel-wrapper { padding: 0 10px; }
    .product-slide { padding: 0 5px; }
    .product-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        z-index: 100;
    }
    .product-nav-btn.p-prev { left: 4px; }
    .product-nav-btn.p-next { right: 4px; }
    .product-swiper { padding: 14px 0 32px; }
    .product-section { padding: 48px 0; }
    .product-card {
        border-radius: 14px;
    }
    .product-card-img-wrap {
        aspect-ratio: 3 / 4;
    }
    .product-card-body {
        padding: 0.65rem 0.55rem 0.75rem;
        gap: 0.4rem;
    }
    .product-card-title {
        font-size: 0.72rem;
        -webkit-line-clamp: 2;
        line-height: 1.3;
    }
    .product-meta { font-size: 0.65rem; }
    .product-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.45rem;
        top: 8px;
        left: 8px;
    }
    .product-cta {
        font-size: 0.68rem;
        padding: 0.38rem 0.5rem;
        gap: 0.25rem;
    }
    .product-dots { gap: 6px; }
    .product-dot { width: 7px; height: 7px; }
    .product-dot.active { width: 18px; }
}
@media (max-width: 420px) {
    .product-carousel-wrapper { padding: 0 4px; }
    .product-slide { padding: 0 3px; }
    .product-nav-btn { width: 34px; height: 34px; font-size: 0.95rem; }
    .product-nav-btn.p-prev { left: 2px; }
    .product-nav-btn.p-next { right: 2px; }
    .product-card-title { font-size: 0.68rem; }
    .product-cta { font-size: 0.62rem; padding: 0.32rem 0.4rem; }
}

/* Floating Chatbot button */
.chatbot-float {
    position: fixed;
    bottom: 100px;
    left: 22px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(145deg, #FFD700, #e6c200);
    color: #0A0E1C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    box-shadow:
        0 10px 28px rgba(255, 215, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.35);
    z-index: 1045;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid rgba(255, 255, 255, 0.25);
}
.chatbot-float:hover {
    transform: scale(1.1) translateY(-4px);
    background: #0A0E1C;
    color: #FFD700;
    border-color: #FFD700;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}
.chatbot-float .pulse-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--brand-yellow);
    animation: chatbotPulse 2s ease-out infinite;
    pointer-events: none;
}
@keyframes chatbotPulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.45); opacity: 0; }
}
@media (max-width: 991.98px) {
    .chatbot-float {
        bottom: 80px;
        left: 14px;
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }
}
@media (max-width: 575.98px) {
    .chatbot-float {
        bottom: 74px;
        left: 12px;
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
}

/* ===== Lighter animated ambient background + logo watermark ===== */
.bg-ambient {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
/* Soft color washes */
.bg-ambient .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.22;
    will-change: transform, opacity;
}
.bg-ambient .blob-1 {
    width: min(60vw, 560px);
    height: min(60vw, 560px);
    background: radial-gradient(circle, rgba(255, 215, 0, 0.18) 0%, transparent 72%);
    top: -15%;
    left: -10%;
    animation: ambientFloat1 24s ease-in-out infinite;
}
.bg-ambient .blob-2 {
    width: min(50vw, 460px);
    height: min(50vw, 460px);
    background: radial-gradient(circle, rgba(100, 140, 255, 0.12) 0%, transparent 70%);
    bottom: 0%;
    right: -8%;
    animation: ambientFloat2 30s ease-in-out infinite;
}
.bg-ambient .blob-3 {
    width: min(42vw, 400px);
    height: min(42vw, 400px);
    background: radial-gradient(circle, rgba(255, 215, 0, 0.10) 0%, transparent 70%);
    top: 38%;
    left: 52%;
    animation: ambientFloat3 26s ease-in-out infinite;
}
.bg-ambient .blob-4 {
    width: min(35vw, 320px);
    height: min(35vw, 320px);
    background: radial-gradient(circle, rgba(255, 237, 138, 0.10) 0%, transparent 70%);
    top: 18%;
    right: 12%;
    animation: ambientFloat4 20s ease-in-out infinite;
}
@keyframes ambientFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.22; }
    33% { transform: translate(50px, 45px) scale(1.1); opacity: 0.28; }
    66% { transform: translate(-30px, 25px) scale(0.94); opacity: 0.18; }
}
@keyframes ambientFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
    40% { transform: translate(-55px, -40px) scale(1.12); opacity: 0.26; }
    70% { transform: translate(25px, -15px) scale(0.9); opacity: 0.16; }
}
@keyframes ambientFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.18; }
    50% { transform: translate(-40px, 35px) scale(1.14); opacity: 0.24; }
}
@keyframes ambientFloat4 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.16; }
    50% { transform: translate(30px, -45px) scale(1.08); opacity: 0.22; }
}

/* Soft floating light particles */
.bg-ambient .spark {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.45);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.35), 0 0 20px rgba(255, 215, 0, 0.15);
    opacity: 0;
    animation: sparkDrift linear infinite;
}
.bg-ambient .spark:nth-child(5)  { left: 12%; top: 78%; animation-duration: 18s; animation-delay: 0s; }
.bg-ambient .spark:nth-child(6)  { left: 28%; top: 62%; animation-duration: 22s; animation-delay: -4s; width: 3px; height: 3px; }
.bg-ambient .spark:nth-child(7)  { left: 48%; top: 85%; animation-duration: 16s; animation-delay: -8s; }
.bg-ambient .spark:nth-child(8)  { left: 65%; top: 55%; animation-duration: 24s; animation-delay: -2s; width: 3px; height: 3px; }
.bg-ambient .spark:nth-child(9)  { left: 78%; top: 70%; animation-duration: 20s; animation-delay: -10s; }
.bg-ambient .spark:nth-child(10) { left: 88%; top: 40%; animation-duration: 26s; animation-delay: -6s; width: 2px; height: 2px; }
.bg-ambient .spark:nth-child(11) { left: 8%;  top: 35%; animation-duration: 19s; animation-delay: -12s; width: 3px; height: 3px; }
.bg-ambient .spark:nth-child(12) { left: 55%; top: 20%; animation-duration: 21s; animation-delay: -3s; }
@keyframes sparkDrift {
    0%   { transform: translateY(0) translateX(0) scale(0.6); opacity: 0; }
    15%  { opacity: 0.55; }
    50%  { transform: translateY(-45vh) translateX(18px) scale(1); opacity: 0.35; }
    85%  { opacity: 0.2; }
    100% { transform: translateY(-90vh) translateX(-12px) scale(0.5); opacity: 0; }
}

/* Soft shimmer veil */
.bg-ambient .shimmer {
    position: absolute;
    inset: -20%;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255, 215, 0, 0.03) 45%,
        rgba(255, 255, 255, 0.04) 50%,
        rgba(255, 215, 0, 0.03) 55%,
        transparent 70%
    );
    animation: shimmerSweep 14s ease-in-out infinite;
}
@keyframes shimmerSweep {
    0%   { transform: translateX(-30%) rotate(0deg); opacity: 0.4; }
    50%  { transform: translateX(20%) rotate(2deg); opacity: 0.7; }
    100% { transform: translateX(40%) rotate(0deg); opacity: 0.4; }
}

.bg-logo-watermark {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bg-logo-watermark img {
    width: min(60vw, 560px);
    max-width: 85%;
    height: auto;
    opacity: 0.015;
    filter: grayscale(20%) brightness(1.25);
    user-select: none;
    -webkit-user-drag: none;
    transform: translateZ(0);
    animation: logoBreathe 14s ease-in-out infinite;
}
@keyframes logoBreathe {
    0%, 100% { opacity: 0.012; transform: scale(1); }
    50% { opacity: 0.022; transform: scale(1.02); }
}
@media (max-width: 767.98px) {
    .bg-logo-watermark img {
        width: min(75vw, 360px);
        opacity: 0.012;
    }
    .bg-ambient .blob { filter: blur(70px); opacity: 0.18; }
    .bg-ambient .spark { display: none; } /* lighter on mobile */
}
@media (prefers-reduced-motion: reduce) {
    .bg-ambient .blob,
    .bg-ambient .spark,
    .bg-ambient .shimmer,
    .bg-logo-watermark img {
        animation: none !important;
    }
}

/* ========================================
   INTERACTIVE SITE TOUR (inlined)
   ======================================== */
/* ========================================
   INTERACTIVE SITE TOUR – CARE INDIA
   Target stays SHARP, rest of page is dimmed
   ======================================== */

.tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: rgba(4, 6, 14, 0.78);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    pointer-events: none;
}
.tour-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tour-highlight {
    position: fixed;
    z-index: 9992;
    border-radius: 16px;
    border: 3px solid #FFD700;
    box-shadow:
        0 0 0 5px rgba(255, 215, 0, 0.22),
        0 0 24px 6px rgba(255, 215, 0, 0.4),
        0 10px 32px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    transition: top 0.38s cubic-bezier(0.22, 1, 0.36, 1),
                left 0.38s cubic-bezier(0.22, 1, 0.36, 1),
                width 0.38s cubic-bezier(0.22, 1, 0.36, 1),
                height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
                border-radius 0.3s ease,
                opacity 0.28s ease;
    opacity: 0;
    background: transparent;
}
.tour-highlight.visible {
    opacity: 1;
}
.tour-highlight::after {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: inherit;
    border: 2px solid rgba(255, 215, 0, 0.4);
    animation: tourPulse 1.7s ease-out infinite;
    pointer-events: none;
}
@keyframes tourPulse {
    0% { transform: scale(1); opacity: 0.65; }
    70% { transform: scale(1.07); opacity: 0; }
    100% { transform: scale(1.09); opacity: 0; }
}

/* Elevated target — works for fixed, sticky, relative, absolute */
.tour-target-active {
    z-index: 9993 !important;
    pointer-events: auto !important;
    filter: none !important;
    -webkit-filter: none !important;
}

.tour-tooltip {
    position: fixed;
    z-index: 9995;
    width: min(360px, calc(100vw - 28px));
    background: linear-gradient(165deg, #1A2240 0%, #0F1629 100%);
    border: 1.5px solid rgba(255, 215, 0, 0.45);
    border-radius: 18px;
    padding: 1.15rem 1.2rem 1rem;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 215, 0, 0.12),
        0 0 36px rgba(255, 215, 0, 0.1);
    color: #E8EAED;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.97);
    transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s;
    pointer-events: auto;
}
.tour-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.tour-tooltip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    margin-bottom: 0.5rem;
}
.tour-tooltip-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #FFD700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.tour-tooltip-title i { font-size: 1.05rem; }
.tour-step-badge {
    flex-shrink: 0;
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.18rem 0.48rem;
    border-radius: 40px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.tour-tooltip-body {
    font-size: 0.86rem;
    line-height: 1.6;
    color: rgba(232, 234, 237, 0.92);
    margin-bottom: 1rem;
}

.tour-tooltip-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.tour-progress {
    display: flex;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.tour-progress-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.25s ease;
}
.tour-progress-dot.active {
    background: #FFD700;
    width: 16px;
    border-radius: 5px;
}
.tour-progress-dot.done {
    background: rgba(255, 215, 0, 0.5);
}

.tour-btns {
    display: flex;
    gap: 0.3rem;
    flex-shrink: 0;
}
.tour-btn {
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.4rem 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
}
.tour-btn-skip {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.tour-btn-skip:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}
.tour-btn-prev {
    background: rgba(255, 255, 255, 0.08);
    color: #E8EAED;
    border: 1px solid rgba(255, 255, 255, 0.18);
}
.tour-btn-prev:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #FFD700;
}
.tour-btn-next,
.tour-btn-done {
    background: linear-gradient(135deg, #FFD700, #e6c200);
    color: #0A0E1C;
    border: none;
    box-shadow: 0 5px 14px rgba(255, 215, 0, 0.35);
}
.tour-btn-next:hover,
.tour-btn-done:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(255, 215, 0, 0.45);
}

.tour-arrow {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #1A2240;
    border: 1.5px solid rgba(255, 215, 0, 0.45);
    transform: rotate(45deg);
    z-index: -1;
}
.tour-arrow.top { bottom: -7px; left: 50%; margin-left: -6px; border-top: none; border-left: none; }
.tour-arrow.bottom { top: -7px; left: 50%; margin-left: -6px; border-bottom: none; border-right: none; }
.tour-arrow.left { right: -7px; top: 50%; margin-top: -6px; border-left: none; border-bottom: none; }
.tour-arrow.right { left: -7px; top: 50%; margin-top: -6px; border-right: none; border-top: none; }

/* Tour restart button INSIDE social pill */
#tourRestartBtn,
.tour-restart-in-pill {
    display: none; /* hidden until tour completed */
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #FFD700 !important;
    border: 1.5px solid rgba(255, 215, 0, 0.45);
    font-size: 1.15rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}
#tourRestartBtn.visible,
.tour-restart-in-pill.visible {
    display: inline-flex !important;
}
#tourRestartBtn:hover,
.tour-restart-in-pill:hover {
    background: var(--brand-yellow, #FFD700);
    color: #0A0E1C !important;
    border-color: #FFD700;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}
@media (max-width: 991.98px) {
    #tourRestartBtn,
    .tour-restart-in-pill {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}
@media (max-width: 575.98px) {
    #tourRestartBtn,
    .tour-restart-in-pill {
        width: 38px;
        height: 38px;
        font-size: 1.05rem;
    }
}

body.tour-active {
    overflow: hidden !important;
    touch-action: none;
}

/* During tour, keep social pill visible even near footer */
body.tour-active #socialPill {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
body.tour-active #socialPill.hidden {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(-50%) !important;
}
@media (max-width: 991.98px) {
    body.tour-active #socialPill.hidden {
        transform: translateX(-50%) !important;
    }
}

@media (max-width: 575.98px) {
    .tour-tooltip {
        width: calc(100vw - 20px);
        padding: 1rem 0.9rem 0.9rem;
        border-radius: 14px;
    }
    .tour-tooltip-title { font-size: 0.94rem; }
    .tour-tooltip-body { font-size: 0.8rem; margin-bottom: 0.85rem; }
    .tour-btn { font-size: 0.74rem; padding: 0.36rem 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
    .tour-highlight,
    .tour-tooltip,
    .tour-overlay { transition: none !important; }
    .tour-highlight::after { animation: none !important; }
}


/* ===== RECENT LAUNCHES ===== */
.launches-section {
    padding: 78px 0 70px;
    background: var(--page-bg);
    position: relative;
    overflow: hidden;
}
.launches-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255,215,0,0.12);
    border: 1px solid rgba(255,215,0,0.35);
    color: var(--brand-yellow);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.38rem 0.9rem;
    border-radius: 40px;
    margin: 0 auto 1rem;
}
.launches-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}
.launch-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(165deg, #1A2240 0%, #0C1220 100%);
    border: 1px solid rgba(255,215,0,0.18);
    box-shadow: 0 18px 40px rgba(0,0,0,0.4);
    cursor: pointer;
    text-align: left;
    color: inherit;
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), box-shadow 0.45s ease, border-color 0.35s ease;
}
.launch-card:hover,
.launch-card:focus-visible {
    transform: translateY(-10px);
    border-color: rgba(255,215,0,0.5);
    box-shadow: 0 28px 56px rgba(0,0,0,0.5), 0 0 28px rgba(255,215,0,0.16);
    outline: none;
}
.launch-media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #0B0E1A;
}
.launch-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}
.launch-card:hover .launch-media img { transform: scale(1.08); }
.launch-ribbon {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: linear-gradient(135deg, #FFD700, #e6c200);
    color: #12151F;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.32rem 0.7rem;
    border-radius: 40px;
    box-shadow: 0 6px 16px rgba(255,215,0,0.4);
}
.launch-type {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    background: rgba(10,14,28,0.78);
    color: #FFD700;
    border: 1px solid rgba(255,215,0,0.35);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.28rem 0.65rem;
    border-radius: 40px;
    backdrop-filter: blur(8px);
}
.launch-body {
    padding: 1.05rem 1.15rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}
.launch-body h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.launch-meta {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.launch-cta {
    margin-top: 0.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.62rem 1rem;
    border-radius: 50px;
    background: rgba(255,215,0,0.14);
    color: #FFD700;
    font-weight: 800;
    font-size: 0.86rem;
    border: 1px solid rgba(255,215,0,0.35);
    transition: var(--transition);
}
.launch-card:hover .launch-cta {
    background: var(--brand-yellow);
    color: #12151F;
}
.launch-empty {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9AA0AC;
    padding: 2rem 1rem;
    text-align: center;
}
.launches-cluster {
    position: relative;
    border: none;
    padding: 0;
    background: transparent;
}
.launch-slide { min-width: 0; }
.launch-nav-btn,
.launch-dots { display: none; }

@media (max-width: 991.98px) {
    .launches-section { padding: 28px 0 22px; }
    .launches-cluster { padding: 0; }
    .launches-swiper {
        overflow: hidden;
        touch-action: pan-y pinch-zoom;
        padding: 8px 0 6px;
    }
    .launches-grid {
        display: flex;
        align-items: stretch;
        gap: 0;
        transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
        will-change: transform;
    }
    .launch-slide {
        flex: 0 0 58%;
        max-width: 58%;
        padding: 0 5px;
        box-sizing: border-box;
        position: relative;
        z-index: 3;
        opacity: 0.62;
        filter: saturate(0.8);
        transition: opacity 0.45s ease, filter 0.45s ease;
    }
    .launch-slide.is-center {
        z-index: 1;
        opacity: 1;
        filter: none;
    }
    .launch-card {
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 14px;
        box-shadow: 0 8px 18px rgba(0,0,0,0.28);
        transform: scale(0.92);
        transform-origin: center center;
    }
    .launch-slide.is-center .launch-card {
        transform: scale(1);
        border-color: rgba(255,215,0,0.45);
        box-shadow: 0 12px 26px rgba(255,215,0,0.16), 0 8px 18px rgba(0,0,0,0.3);
    }
    .launch-card:hover,
    .launch-card:focus-visible { transform: scale(0.92); }
    .launch-slide.is-center .launch-card:hover,
    .launch-slide.is-center .launch-card:focus-visible { transform: scale(1); }
    .launch-media {
        width: 100%;
        aspect-ratio: 3 / 4;
        max-height: none;
        background: #070B16;
    }
    .launch-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transform: none !important;
    }
    .launch-body {
        padding: 0.5rem 0.5rem 0.55rem;
        gap: 0.18rem;
    }
    .launch-body h3 { font-size: 0.72rem; line-height: 1.25; }
    .launch-meta { display: none; }
    .launch-cta {
        margin-top: 0.12rem;
        font-size: 0.62rem;
        padding: 0.32rem 0.4rem;
        white-space: nowrap;
    }
    .launch-cta i { display: none; }
    .launch-ribbon {
        top: 7px; left: 7px;
        font-size: 0.52rem;
        padding: 0.14rem 0.38rem;
    }
    .launch-type {
        top: 7px; right: 7px; left: auto;
        font-size: 0.52rem;
        padding: 0.12rem 0.34rem;
    }
    .launch-type i { display: none; }
    .launch-nav-btn { display: none !important; }
    .launch-dots {
        display: flex;
        justify-content: center;
        gap: 7px;
        margin-top: 8px;
    }
    .launch-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        border: none;
        background: rgba(255,255,255,0.22);
        padding: 0;
        cursor: pointer;
    }
    .launch-dot.active {
        width: 18px;
        border-radius: 10px;
        background: var(--brand-yellow);
    }
    .launch-empty { min-height: 140px; font-size: 0.72rem; }
}
@media (max-width: 575.98px) {
    .launches-section { padding: 24px 0 18px; }
    .launch-slide { flex-basis: 62%; max-width: 62%; padding: 0 4px; }
    .launch-media { aspect-ratio: 3 / 4; }
    .launch-body h3 { font-size: 0.66rem; }
    .launch-cta { font-size: 0.58rem; padding: 0.28rem 0.32rem; }
}

/* ===== NUMBERS SPEAK ===== */
.stats-section {
    padding: 90px 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255,215,0,0.08), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(100,140,255,0.08), transparent 42%),
        linear-gradient(165deg, #0B1020 0%, #070B16 100%);
    position: relative;
    overflow: hidden;
}
.stats-trust {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(255,215,0,0.18), rgba(255,215,0,0.06));
    border: 1px solid rgba(255,215,0,0.4);
    color: #FFD700;
    font-weight: 800;
    font-size: clamp(0.8rem, 1.6vw, 1.02rem);
    padding: 0.55rem 1.15rem;
    border-radius: 50px;
    margin: 0 auto 1.1rem;
    text-align: center;
    max-width: 100%;
    box-shadow: 0 8px 24px rgba(255,215,0,0.12);
}
.stats-sub {
    text-align: center;
    color: #9AA0AC;
    max-width: 640px;
    margin: 0 auto 2.4rem;
    font-size: 0.98rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}
.stat-card {
    background: linear-gradient(160deg, rgba(255,215,0,0.07) 0%, transparent 42%),
                linear-gradient(165deg, #151C32 0%, #0D1324 100%);
    border: 1px solid rgba(255,215,0,0.16);
    border-radius: 22px;
    padding: 1.8rem 1.2rem 1.5rem;
    text-align: center;
    box-shadow: 0 16px 36px rgba(0,0,0,0.35);
    transition: transform 0.4s ease, border-color 0.35s ease;
}
.stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,215,0,0.4);
}
.stat-icon {
    width: 58px; height: 58px;
    margin: 0 auto 0.9rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,215,0,0.12);
    color: #FFD700;
    font-size: 1.45rem;
    border: 1px solid rgba(255,215,0,0.25);
}
.stat-number {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 800;
    color: #FFD700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.stat-suffix { font-size: 0.55em; font-weight: 700; margin-left: 2px; }
.stat-label {
    margin-top: 0.55rem;
    color: #E8EAED;
    font-weight: 700;
    font-size: 1rem;
}
.stat-hint {
    color: #9AA0AC;
    font-size: 0.82rem;
    margin-top: 0.2rem;
}
@media (max-width: 991.98px) {
    .stats-section { padding: 58px 0; }
    .stats-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

/* Contact map inside footer */
.footer-map-wrap {
    margin-top: 1.6rem;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,215,0,0.18);
    line-height: 0;
}
.footer-map-wrap iframe {
    width: 100%;
    height: 280px;
    border: 0;
    display: block;
}
@media (max-width: 767px) {
    .footer-map-wrap iframe { height: 220px; }
}
