/* =========================================================================
   SAN PANDAS ACADEMY — GLOBAL STYLES
   Fully responsive: desktop → tablet (1024) → mobile (768) → small (480)
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
    --primary-color:   #D32F2F;
    --primary-hover:   #B71C1C;
    --secondary-color: #1E3A8A;
    --secondary-hover: #172554;
    --bg-main:         #F4F7FB;
    --text-main:       #2D3748;
    --text-muted:      #718096;
    --card-bg:         #FFFFFF;
    --glass-bg:        rgba(255,255,255,0.72);
    --border-color:    rgba(226,232,240,0.7);

    /* Spacing */
    --gap-sm:  15px;
    --gap-md:  30px;
    --gap-lg:  60px;
    --max-width: 1400px;

    /* Elevation */
    --shadow-soft:  0 10px 30px rgba(0,0,0,0.05);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.10);

    /* Radii */
    --radius-sm:   12px;
    --radius-md:   20px;
    --radius-lg:   32px;
    --radius-pill: 100px;

    --transition: all 0.35s cubic-bezier(0.16,1,0.3,1);

    /* Header */
    --header-h: 70px;
}

/* ── Reset & Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img, video { max-width: 100%; height: auto; display: block; }

/* ── Typography ─────────────────────────────────────────────────────────────── */
/* Use clamp() for fluid scale instead of !important hacks */
h1 { font-size: clamp(1.6rem, 4.5vw, 2.6rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.3rem, 3.5vw, 2rem);   font-weight: 700; line-height: 1.25; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 700; line-height: 1.3; }
h4 { font-size: clamp(1rem,   2vw,   1.2rem); font-weight: 700; }
h5, h6 { font-size: 1rem; font-weight: 600; }

.heading-xl { font-size: clamp(1.8rem, 5.5vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.heading-lg { font-size: clamp(1.4rem, 3.5vw, 2.2rem); font-weight: 700; line-height: 1.2;  margin-bottom: 15px; }

.text-lead  { color: var(--text-muted); margin-bottom: 24px; font-size: 1.05rem; }
.text-muted { color: var(--text-muted); }

/* ── Layout Utilities ───────────────────────────────────────────────────────── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: var(--gap-lg) 0; }

/* ── Floating Card ──────────────────────────────────────────────────────────── */
.floating-container {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 40px;
    margin-bottom: var(--gap-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.floating-container:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }

/* ── Glassmorphism ──────────────────────────────────────────────────────────── */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

/* ── Media Placeholders ─────────────────────────────────────────────────────── */
.media-placeholder {
    width: 100%; height: 100%;
    min-height: 260px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg,#FF9A9E 0%,#FECFEF 100%);
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 600; font-size: 1.1rem;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
}
.media-placeholder.blue   { background: linear-gradient(120deg,#e0c3fc 0%,#8ec5fc 100%); }
.media-placeholder.red    { background: linear-gradient(120deg,#f093fb 0%,#f5576c 100%); }
.media-placeholder.yellow { background: linear-gradient(to top,#fddb92 0%,#d1fdff 100%); }
.media-placeholder.green  { background: linear-gradient(120deg,#d4fc79 0%,#96e6a1 100%); }
.media-placeholder.purple { background: linear-gradient(120deg,#a18cd1 0%,#fbc2eb 100%); }
.media-placeholder.orange { background: linear-gradient(120deg,#f7971e 0%,#ffd200 100%); }
.media-placeholder::after {
    content: 'Media Space';
    background: rgba(0,0,0,0.18);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(4px);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.media-placeholder.video::after { content: '▶ Video Clip'; }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 26px;
    border-radius: var(--radius-pill);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 8px 20px rgba(211,47,47,0.28);
}
.btn-primary:hover  { background-color: var(--primary-hover); transform: translateY(-2px); }
.btn-secondary      { background-color: var(--secondary-color); color: white; box-shadow: 0 8px 20px rgba(30,58,138,0.28); }
.btn-secondary:hover{ background-color: var(--secondary-hover); transform: translateY(-2px); }
.btn-outline        { background-color: transparent; color: var(--text-main); border: 2px solid var(--border-color); }
.btn-outline:hover  { border-color: var(--text-main); }

/* ── Header & Navigation ────────────────────────────────────────────────────── */
.main-header {
    position: sticky;
    top: 16px;
    z-index: 1000;
    margin: 0 auto 40px auto;
    max-width: var(--max-width);
    padding: 0 20px;
    /* Smooth slide transition */
    transition: transform 0.3s ease, opacity 0.3s ease;
    will-change: transform;
}

/* Fired by JS when scrolling down */
.main-header.header-hidden {
    transform: translateY(calc(-100% - 24px));
    opacity: 0;
    pointer-events: none;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}
.logo-text span { color: var(--primary-color); }

/* Desktop nav */
.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    align-items: center;
}
.nav-link {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.97rem;
    white-space: nowrap;
}
.nav-link:hover { color: var(--primary-color); }
.nav-link.active { color: var(--primary-color); font-weight: 700; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    padding: 12px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    list-style: none;
    border: 1px solid var(--border-color);
    z-index: 50;
}
.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(18px);
}
.dropdown-menu li a {
    display: block;
    padding: 9px 14px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
}
.dropdown-menu li a:hover { background: var(--bg-main); color: var(--primary-color); }

/* Hamburger button — hidden on desktop */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
    padding: 4px 8px;
    border-radius: 8px;
    transition: var(--transition);
    line-height: 1;
}
.nav-toggle:hover { background: var(--bg-main); }

/* Mobile nav drawer */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
}
.mobile-nav-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.mobile-nav-panel {
    position: absolute;
    top: 0; right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: var(--card-bg);
    padding: 24px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: -4px 0 30px rgba(0,0,0,0.12);
    animation: slideInRight 0.25s ease;
}
@keyframes slideInRight {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}
.mobile-nav-panel.closing { animation: slideOutRight 0.2s ease forwards; }
@keyframes slideOutRight {
    from { transform: translateX(0); }
    to   { transform: translateX(100%); }
}
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}
.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
}
.mobile-nav-links { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-links a {
    display: block;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition);
}
.mobile-nav-links a:hover { background: var(--bg-main); color: var(--primary-color); }
.mobile-nav-links .nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}
.mobile-nav-links .sub-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-muted);
    padding: 4px 14px;
}
.mobile-nav-drawer.open { display: block; }

/* ── Grids ──────────────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-md); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap-md); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--gap-md); }

/* ── Carousel ───────────────────────────────────────────────────────────────── */
.carousel-wrapper {
    position: relative;
    width: 100%;
    /* Let arrows overflow the sides */
    overflow: visible;
}
.carousel-container {
    display: flex;
    overflow-x: auto;
    /* mandatory: must snap on every scroll stop */
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    /* NO scroll-behavior here — JS passes behavior:'smooth' per call */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.carousel-container::-webkit-scrollbar { display: none; }

/* Cards inside a carousel must NOT lift on hover —
   it causes visual jitter during scrolling */
.carousel-container .floating-container:hover {
    transform: none;
    box-shadow: var(--shadow-soft);
}

.carousel-card {
    min-width: 42%;
    flex: 0 0 42%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;   /* video pinned to top */
    align-items: stretch;
    gap: 16px;
    margin-bottom: 0 !important;
    overflow: hidden;
}

.card-flag { font-size: 3rem; text-align: center; margin-bottom: 12px; line-height: 1; }

/* ── Language Carousel Cards ────────────────────────────────────────────────── */
/* Gradient flag cards — shown when no video, or non-YouTube video */
.lang-flag-card {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    background: linear-gradient(135deg, #e0c3fc, #8ec5fc);
    overflow: hidden;
    position: relative;
}
.lang-flag-card.blue   { background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%); }
.lang-flag-card.red    { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.lang-flag-card.yellow { background: linear-gradient(135deg, #fddb92 0%, #d1fdff 100%); }
.lang-flag-card.green  { background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%); }
.lang-flag-card.purple { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.lang-flag-card.orange { background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%); }

.lang-flag-emoji {
    font-size: 4rem;
    line-height: 1;
    text-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: block;
}
.lang-video-badge {
    background: rgba(0,0,0,0.35);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* YouTube thumbnail card */
.lang-video-thumb {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
}
.lang-video-thumb img,
.lang-video-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-md);
    transition: transform 0.35s ease;
}
.lang-video-thumb:hover img,
.lang-video-thumb:hover video { transform: scale(1.04); }

/* iframe (YouTube embed) variant — same size, no scale jitter */
.lang-video-iframe-wrap {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    pointer-events: none;   /* prevent iframe from stealing carousel touch events */
}
/* Allow hover-click on desktop to open full video */
@media (hover: hover) {
    .lang-video-iframe-wrap { pointer-events: auto; }
}

.lang-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.28);
    border-radius: var(--radius-md);
    font-size: 2.4rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}
.lang-video-thumb:hover .lang-video-play { opacity: 1; }

.lang-card-name {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 4px 0 0;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--card-bg);
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
}
.carousel-arrow:hover { background: var(--primary-color); color: white; }
.carousel-arrow.left { left: -20px; }
.carousel-arrow.right { right: -20px; }

/* ── Timeline ───────────────────────────────────────────────────────────────── */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0; left: 20px;
    height: 100%;
    width: 4px;
    background: var(--border-color);
    border-radius: 2px;
}
.timeline-step { position: relative; padding-left: 60px; margin-bottom: 36px; }
.timeline-step:last-child { margin-bottom: 0; }
.timeline-icon {
    position: absolute;
    left: 0; top: 0;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    box-shadow: 0 0 0 6px var(--bg-main), var(--shadow-soft);
    z-index: 2;
}
.timeline-step:nth-child(even) .timeline-icon { background: var(--secondary-color); }
.timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}
.timeline-content:hover { transform: translateX(8px); box-shadow: var(--shadow-hover); border-color: var(--primary-color); }
.timeline-content h4 { margin-bottom: 8px; color: var(--primary-color); font-size: 1rem; }
.timeline-challenge {
    background: var(--bg-main);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-top: 12px;
    color: var(--text-main);
    font-size: 0.92rem;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--gap-md);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Tablet (≤1024px) ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    :root { --gap-lg: 48px; }

    .floating-container { padding: 32px; }

    .carousel-card { min-width: 55%; flex: 0 0 55%; }

    .main-header { top: 12px; }
    .header-inner { padding: 10px 22px; }

    .nav-links { gap: 20px; }
}

/* ── Mobile (≤768px) ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    :root { --gap-lg: 40px; --gap-md: 20px; }
    body { font-size: 0.97rem; }

    /* Header: full-width bar, no pill rounding */
    .main-header {
        top: 0;
        padding: 0;
        margin-bottom: 24px;
        max-width: 100%;
        position: sticky;
    }
    .header-inner {
        border-radius: 0;
        padding: 12px 16px;
    }

    /* Hide desktop nav, show hamburger */
    .nav-links { display: none; }
    .nav-toggle { display: flex; align-items: center; justify-content: center; }

    /* Floating container: reduce padding */
    .floating-container { padding: 20px 18px; border-radius: var(--radius-md); margin-bottom: 20px; }
    .floating-container:hover { transform: none; } /* disable hover lift on touch */

    /* Grid: single column */
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 16px; }

    /* Section padding */
    .section { padding: 32px 0; }

    /* Hero image: don't force tall height inline, let it be natural */
    .media-placeholder { min-height: 200px; }

    /* Carousel: near-full-width cards */
    .carousel-card { min-width: 85%; flex: 0 0 85%; }
    .carousel-arrow.left  { left: 6px; }
    .carousel-arrow.right { right: 6px; }
    .carousel-arrow { width: 36px; height: 36px; font-size: 1.1rem; }

    /* Buttons: full width when stacked */
    .btn-group-stack { flex-direction: column; }

    /* Timeline: smaller icon */
    .timeline::before { left: 14px; }
    .timeline-step { padding-left: 46px; }
    .timeline-icon { width: 32px; height: 32px; font-size: 0.9rem; }

    /* Footer: stack */
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ── Small mobile (≤480px) ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
    body { font-size: 0.93rem; }

    .container { padding: 0 14px; }

    .floating-container { padding: 16px 14px; border-radius: var(--radius-sm); }

    .section { padding: 24px 0; }

    .carousel-card { min-width: 92%; flex: 0 0 92%; }

    /* Buttons: make sure they don't clip */
    .btn { padding: 10px 20px; font-size: 0.88rem; }

    /* Hero button row: wrap */
    [style*="display: flex"][style*="gap: 15px"] {
        flex-wrap: wrap;
    }
}
/* ═══════════════════════════════════════════════════════════════════════════
   Video Player Modal
   ═══════════════════════════════════════════════════════════════════════════ */
#videoPlayerModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    background: rgba(5, 7, 20, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 20px;
}
#videoPlayerModal.open {
    display: flex;
    animation: vModalIn 0.28s cubic-bezier(0.34, 1.3, 0.64, 1) both;
}
@keyframes vModalIn {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}
.vmodal-inner {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: #0e0f1a;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.07);
}
.vmodal-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}
.vmodal-player iframe,
.vmodal-player video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.vmodal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #0e0f1a;
    gap: 12px;
}
.vmodal-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vmodal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, transform 0.18s;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10;
}
.vmodal-close:hover { background: rgba(255,255,255,0.22); transform: scale(1.1) rotate(90deg); }
.vmodal-backdrop { position: absolute; inset: 0; z-index: -1; cursor: pointer; }

/* Thumbnail trigger button */
.lang-video-thumb-trigger {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: none;
    padding: 0;
    background: #000;
}
.lang-video-thumb-trigger video,
.lang-video-thumb-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.lang-video-thumb-trigger:hover video,
.lang-video-thumb-trigger:hover img { transform: scale(1.04); }
.lang-video-thumb-trigger .lang-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    font-size: 2.4rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.lang-video-thumb-trigger:hover .lang-video-play { opacity: 1; }

@media (max-width: 600px) {
    .vmodal-inner { border-radius: 12px; }
    .vmodal-bar   { padding: 10px 14px; }
    .vmodal-title { font-size: 0.9rem; }
}
