/* ============================================================================
   LAYOUT 3 — "GCC Modern"
   Global Care Campus brand system: green #2CB742 + navy #2B4C8E on light paper.
   Editorial rhythm, hairline borders, soft elevation. No glass/orb effects —
   this layout is deliberately crisper than layout_2.
   ========================================================================== */

/* ── TOKENS ───────────────────────────────────────────────────────────────── */
:root {
    /* Global Care Campus brand, as the live site currently runs it.
       Admin → Site Content → Site Settings overrides --green / --navy, and
       _head.php derives the -dark / -soft shades from whatever is picked. */
    --green:        #1f7a35;
    --green-dark:   #19622a;
    --green-soft:   #e9f2eb;
    --navy:         #103f8c;
    --navy-deep:    #09234d;
    --navy-soft:    #ecf0f6;

    --ink:          #0f1b2d;
    --ink-2:        #35455c;
    --muted:        #64748b;
    --faint:        #94a3b8;

    --paper:        #ffffff;
    --canvas:       #f5f7fb;
    --line:         #e5eaf2;
    --line-soft:    #eef1f7;

    --gold:         #f59e0b;

    --sh-xs:  0 1px 2px rgba(15,27,45,.05);
    --sh-sm:  0 2px 10px rgba(15,27,45,.06);
    --sh-md:  0 10px 30px rgba(15,27,45,.09);
    --sh-lg:  0 24px 60px rgba(15,27,45,.14);
    --sh-green: 0 12px 28px rgba(44,183,66,.32);

    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --r-xl: 30px;

    --topbar-h: 38px;
    --nav-h:    72px;
    --pad:      clamp(72px, 8vw, 118px);

    --font: 'Inter', 'Noto Sans Sinhala', -apple-system, 'Segoe UI', sans-serif;
    --ease: cubic-bezier(.16,1,.3,1);
}

/* ── BASE ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video, iframe { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; }
::selection { background: var(--green); color: #fff; }

.l3-wrap { max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.l3-sec { padding: var(--pad) 0; }
.l3-sec.canvas { background: var(--canvas); }
.l3-sec.tight { padding-top: clamp(48px, 5vw, 70px); }

/* ── SECTION HEADINGS ─────────────────────────────────────────────────────── */
.l3-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 11.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
    color: var(--green-dark); margin-bottom: 14px;
}
.l3-eyebrow::before { content: ''; width: 26px; height: 3px; border-radius: 3px; background: var(--green); }
.l3-title {
    font-size: clamp(28px, 4.2vw, 46px);
    font-weight: 800; letter-spacing: -.03em; line-height: 1.12; color: var(--ink);
}
.l3-title em { font-style: normal; color: var(--navy); }
.l3-lead { margin-top: 16px; max-width: 62ch; font-size: 15.5px; color: var(--muted); line-height: 1.8; }
.l3-head { margin-bottom: clamp(38px, 4vw, 58px); }
.l3-head.center { text-align: center; }
.l3-head.center .l3-lead { margin-left: auto; margin-right: auto; }
.l3-head.center .l3-eyebrow::before { display: none; }
.l3-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

/* ── BUTTONS ──────────────────────────────────────────────────────────────── */
.l3-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 26px; border-radius: 50px; border: 1.5px solid transparent;
    font-size: 14px; font-weight: 700; letter-spacing: .01em; cursor: pointer;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s, color .25s, border-color .25s;
    white-space: nowrap;
}
.l3-btn i { font-size: 13px; }
.l3-btn:hover { transform: translateY(-2px); }
.l3-btn-green { background: var(--green); color: #fff; box-shadow: var(--sh-green); }
.l3-btn-green:hover { background: var(--green-dark); box-shadow: 0 16px 34px rgba(44,183,66,.4); }
.l3-btn-navy { background: var(--navy); color: #fff; box-shadow: 0 12px 28px rgba(43,76,142,.3); }
.l3-btn-navy:hover { background: var(--navy-deep); }
.l3-btn-line { border-color: var(--line); background: var(--paper); color: var(--ink); box-shadow: var(--sh-xs); }
.l3-btn-line:hover { border-color: var(--green); color: var(--green-dark); box-shadow: var(--sh-sm); }
.l3-btn-ghost-light { border-color: rgba(255,255,255,.45); color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(6px); }
.l3-btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.l3-btn-sm { padding: 10px 20px; font-size: 13px; }

/* The nav's Login / Dashboard button, matching the one on the home page.
   The class section used to show a green pill here while home showed a square
   blue button, which made the two look like different websites. These are the
   home button's own measurements — solid blue, 4px corners, uppercase 12px —
   written out rather than inherited, because home gets them from an external
   brand stylesheet that the rest of the site does not load. */
.l3-btn-login {
    background: var(--login-blue, #1267C4);
    color: #fff;
    border-radius: 4px;
    padding: 13px 22px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    box-shadow: none;
}
.l3-btn-login:hover {
    background: var(--login-blue-dark, #0d4f99);
    box-shadow: none;
}
.l3-btn-login.l3-btn-sm { padding: 11px 20px; font-size: 12px; }

.l3-arrow {
    width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--green-soft); color: var(--green-dark); font-size: 14px;
    transition: .35s var(--ease);
}

/* ── REVEAL ANIMATION ─────────────────────────────────────────────────────── */
/* Gated on .l3-js (set by an inline script in the head): if scripting or the
   CDN is unavailable, nothing is hidden and the page still reads normally. */
.l3-js .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.l3-js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .rv { opacity: 1 !important; transform: none !important; }
    html { scroll-behavior: auto; }
}

/* ── TOP UTILITY BAR ──────────────────────────────────────────────────────── */
.l3-topbar {
    height: var(--topbar-h); background: var(--navy-deep); color: rgba(255,255,255,.82);
    font-size: 12.5px; display: flex; align-items: center;
}
.l3-topbar .l3-wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; }
.l3-tb-left { display: flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: .02em; min-width: 0; }
.l3-tb-left i { color: var(--green); }
.l3-tb-left span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l3-tb-right { display: flex; align-items: center; gap: 20px; }
.l3-tb-right a { display: inline-flex; align-items: center; gap: 7px; transition: color .25s; white-space: nowrap; }
.l3-tb-right a:hover { color: #fff; }
.l3-tb-right i { color: var(--green); font-size: 12px; }
.l3-tb-social { display: flex; gap: 12px; padding-left: 20px; border-left: 1px solid rgba(255,255,255,.16); }
.l3-tb-social a i { color: rgba(255,255,255,.7); font-size: 13px; }
.l3-tb-social a:hover i { color: var(--green); }

/* ── HEADER / NAV ─────────────────────────────────────────────────────────── */
.l3-header {
    position: sticky; top: 0; z-index: 900; background: rgba(255,255,255,.92);
    backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line-soft); transition: box-shadow .3s, background .3s;
}
.l3-header.stuck { box-shadow: 0 6px 24px rgba(15,27,45,.08); }
.l3-nav { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.l3-brand { display: flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; flex-shrink: 0; }
.l3-brand img { height: 46px; width: auto; object-fit: contain; }
.l3-brand .l3-brand-mark {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--green), var(--navy)); color: #fff; font-size: 18px;
}
.l3-menu { display: flex; align-items: center; gap: 4px; }
.l3-menu > li > a {
    display: block; padding: 10px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 600;
    color: var(--ink-2); position: relative; transition: color .25s, background .25s;
}
.l3-menu > li > a::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
    background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.l3-menu > li > a:hover { color: var(--ink); }
.l3-menu > li > a:hover::after, .l3-menu > li > a.on::after { transform: scaleX(1); }
.l3-menu > li > a.on { color: var(--green-dark); }
.l3-nav-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.l3-burger {
    display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
    background: var(--paper); color: var(--ink); font-size: 17px; cursor: pointer; align-items: center; justify-content: center;
}

/* Mobile drawer */
.l3-scrim { position: fixed; inset: 0; background: rgba(15,27,45,.55); backdrop-filter: blur(3px); z-index: 940; opacity: 0; pointer-events: none; transition: opacity .3s; }
.l3-scrim.open { opacity: 1; pointer-events: auto; }
.l3-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(88vw, 340px); z-index: 950;
    background: var(--paper); box-shadow: -20px 0 60px rgba(15,27,45,.28);
    transform: translateX(102%); transition: transform .4s var(--ease);
    display: flex; flex-direction: column; overflow-y: auto;
}
.l3-drawer.open { transform: none; }
.l3-drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.l3-drawer-close { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 16px; }
.l3-drawer nav { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.l3-drawer nav a {
    padding: 14px 16px; border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--ink-2);
    display: flex; align-items: center; justify-content: space-between; transition: .25s;
}
.l3-drawer nav a:hover { background: var(--green-soft); color: var(--green-dark); }
.l3-drawer nav a i { font-size: 12px; color: var(--faint); }
.l3-drawer-foot { margin-top: auto; padding: 20px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 10px; }
.l3-drawer-foot .l3-btn { width: 100%; }
.l3-drawer-meta { font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.l3-drawer-meta i { color: var(--green); width: 15px; }

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.l3-hero { position: relative; background: var(--navy-deep); }
.l3-hero .swiper { height: clamp(520px, 78vh, 760px); }
.l3-hero-slide { position: relative; overflow: hidden; }
.l3-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.swiper-slide-active .l3-hero-media { animation: l3Zoom 9s ease-out forwards; }
@keyframes l3Zoom { from { transform: scale(1.001); } to { transform: scale(1.09); } }
.l3-hero-veil {
    position: absolute; inset: 0;
    background:
        linear-gradient(100deg, rgba(10,22,44,.94) 0%, rgba(13,30,58,.82) 38%, rgba(16,38,70,.42) 66%, rgba(16,38,70,.22) 100%),
        linear-gradient(to top, rgba(8,18,36,.72), transparent 42%);
}
.l3-hero-body { position: relative; height: 100%; display: flex; align-items: center; }
.l3-hero-body .l3-wrap { width: 100%; }
.l3-hero-inner { max-width: 660px; color: #fff; padding: 40px 0 92px; }
.l3-hero-chip {
    display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 10px; border-radius: 50px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px);
    font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
}
.l3-hero-chip i { color: var(--green); font-size: 12px; }
.l3-hero-inner h1 {
    margin: 22px 0 0; font-size: clamp(31px, 5.4vw, 62px); font-weight: 800;
    letter-spacing: -.035em; line-height: 1.07;
}
.l3-hero-rule { width: 64px; height: 4px; border-radius: 4px; background: var(--green); margin: 24px 0 20px; }
.l3-hero-inner p { font-size: clamp(14.5px, 1.6vw, 17px); color: rgba(255,255,255,.84); line-height: 1.75; max-width: 54ch; }
.l3-hero-acts { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.l3-hero-fx { animation: l3Up .9s var(--ease) both; }
.swiper-slide-active .l3-hero-fx:nth-child(1) { animation-delay: .1s; }
.swiper-slide-active .l3-hero-fx:nth-child(2) { animation-delay: .22s; }
.swiper-slide-active .l3-hero-fx:nth-child(3) { animation-delay: .3s; }
.swiper-slide-active .l3-hero-fx:nth-child(4) { animation-delay: .38s; }
.swiper-slide-active .l3-hero-fx:nth-child(5) { animation-delay: .48s; }
@keyframes l3Up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.l3-hero-sound {
    position: absolute; right: 22px; top: 22px; z-index: 6; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.3); background: rgba(10,22,44,.45); color: #fff; cursor: pointer;
    backdrop-filter: blur(6px);
}
.l3-hero .swiper-pagination {
    position: absolute; left: 0; right: 0; bottom: 34px; z-index: 6;
    display: flex; gap: 9px; justify-content: center;
}
.l3-hero .swiper-pagination-bullet {
    width: 30px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.34); opacity: 1;
    transition: background .3s, width .3s;
}
.l3-hero .swiper-pagination-bullet-active { background: var(--green); width: 54px; }

/* ── STATS BAR (overlaps hero) ────────────────────────────────────────────── */
.l3-stats-hold { position: relative; z-index: 20; margin-top: -58px; }
/* auto-fit + a 1px gap over a line-coloured backdrop: the hairlines land
   between however many tiles there are, and keep working when they wrap
   (the number of tiles depends on which counts actually have data). */
.l3-stats {
    background: var(--line-soft); border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--sh-lg); overflow: hidden;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 1px;
}
.l3-stat { padding: 30px 22px; text-align: center; background: var(--paper); }
.l3-stat-n { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.03em; color: var(--navy); line-height: 1; }
.l3-stat-n span { color: var(--green); }
.l3-stat-l { margin-top: 9px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ── FEATURE CARDS ────────────────────────────────────────────────────────── */
.l3-feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.l3-feat {
    position: relative; overflow: hidden; padding: 38px 32px 34px;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.l3-feat::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--green);
    transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.l3-feat:hover { transform: translateY(-7px); box-shadow: var(--sh-md); border-color: transparent; }
.l3-feat:hover::before { transform: scaleX(1); }
.l3-feat-num {
    position: absolute; right: 18px; top: 6px; font-size: 76px; font-weight: 800; letter-spacing: -.05em;
    color: var(--navy); opacity: .055; line-height: 1; pointer-events: none;
}
.l3-feat-ico {
    width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; font-size: 22px;
    background: var(--green-soft); color: var(--green-dark); margin-bottom: 22px;
    transition: transform .45s var(--ease), background .3s, color .3s;
}
.l3-feat:hover .l3-feat-ico { background: var(--green); color: #fff; transform: rotate(-6deg) scale(1.06); }
.l3-feat h3 { font-size: 18.5px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 10px; }
.l3-feat p { font-size: 14.5px; color: var(--muted); line-height: 1.75; }

/* ── ABOUT / TEACHER ──────────────────────────────────────────────────────── */
.l3-about { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(32px, 5vw, 76px); align-items: center; }
.l3-about-media { position: relative; }
.l3-about-media::after {
    content: ''; position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--green);
    border-radius: var(--r-lg); z-index: -1;
}
/* Portrait framing: object-position keeps the face when the photo is taller
   than the box, and the tinted ground stops a cut-out PNG (transparent
   background) from floating on bare white. */
.l3-about-media img {
    width: 100%; aspect-ratio: 4/4.7; object-fit: cover; object-position: center top;
    border-radius: var(--r-lg); box-shadow: var(--sh-md);
    background: linear-gradient(160deg, var(--navy-soft), var(--green-soft));
}
.l3-about-tag {
    position: absolute; left: -18px; bottom: 34px; background: var(--navy); color: #fff;
    padding: 18px 24px; border-radius: var(--r-md); box-shadow: var(--sh-lg); max-width: 220px;
}
.l3-about-tag b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.l3-about-tag span { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.l3-about-body .l3-badge {
    display: inline-block; padding: 7px 16px; border-radius: 50px; background: var(--navy-soft); color: var(--navy);
    font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px;
}
.l3-about-body h2 { font-size: clamp(26px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1.14; }
.l3-about-body p { margin-top: 20px; font-size: 15.5px; color: var(--muted); line-height: 1.85; }
.l3-quote {
    margin-top: 28px; padding: 22px 26px; border-left: 4px solid var(--green); background: var(--green-soft);
    border-radius: 0 var(--r-md) var(--r-md) 0; font-size: 15.5px; font-weight: 600; color: var(--ink-2); font-style: italic;
}

/* ── LOCATION CARDS ───────────────────────────────────────────────────────── */
.l3-loc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.l3-loc {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
    cursor: pointer; transition: transform .45s var(--ease), box-shadow .45s var(--ease);
    display: flex; flex-direction: column; text-align: left;
}
.l3-loc:hover { transform: translateY(-7px); box-shadow: var(--sh-md); }
.l3-loc-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--navy-soft); }
.l3-loc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.l3-loc:hover .l3-loc-thumb img { transform: scale(1.07); }
.l3-loc-pin {
    position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 14px; border-radius: 50px; background: rgba(255,255,255,.94); color: var(--navy);
    font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; box-shadow: var(--sh-sm);
}
.l3-loc-pin i { color: var(--green); }
.l3-loc-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.l3-loc-body h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.l3-loc-addr { margin-top: 8px; font-size: 13.5px; color: var(--muted); display: flex; align-items: flex-start; gap: 8px; }
.l3-loc-addr i { color: var(--green); margin-top: 4px; }
.l3-loc-body p { margin-top: 14px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.l3-loc-link {
    margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    font-size: 13.5px; font-weight: 700; color: var(--green-dark);
}
.l3-loc:hover .l3-arrow { background: var(--green); color: #fff; transform: translateX(4px); }

/* ── COURSE / CLASS LIST ──────────────────────────────────────────────────── */
.l3-class-list { border-top: 1px solid var(--line); }
.l3-class {
    display: grid; grid-template-columns: 62px 1fr auto; gap: clamp(16px, 3vw, 40px); align-items: center;
    padding: 30px 8px; border-bottom: 1px solid var(--line); transition: background .35s, padding-left .35s var(--ease);
}
.l3-class:hover { background: var(--canvas); padding-left: 20px; }
.l3-class-idx { font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--faint); }
.l3-class-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 50px;
    font-size: 10.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 11px;
}
.chip-green  { background: var(--green-soft);  color: var(--green-dark); }
.chip-blue   { background: var(--navy-soft);   color: var(--navy); }
.chip-orange { background: #fff4e3;            color: #b45309; }
.chip-purple { background: #f1ecfe;            color: #6d28d9; }
.l3-class h3 { font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.l3-class p { margin-top: 10px; font-size: 14.5px; color: var(--muted); line-height: 1.75; max-width: 78ch; }
.l3-class:hover .l3-arrow { background: var(--green); color: #fff; transform: translateX(4px); }

/* ── VIDEO CARDS ──────────────────────────────────────────────────────────── */
.l3-vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 26px; }
.l3-vid {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease); display: flex; flex-direction: column;
}
.l3-vid:hover { transform: translateY(-7px); box-shadow: var(--sh-md); }
.l3-vid-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--navy-deep); }
.l3-vid-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.l3-vid:hover .l3-vid-thumb img { transform: scale(1.06); }
.l3-vid.locked .l3-vid-thumb img { filter: brightness(.55) saturate(.7); }
.l3-vid-play {
    position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center; font-size: 17px;
    background: rgba(255,255,255,.94); color: var(--green-dark); box-shadow: var(--sh-md);
    transition: transform .4s var(--ease), background .3s, color .3s;
}
.l3-vid:hover .l3-vid-play { transform: scale(1.12); background: var(--green); color: #fff; }
.l3-vid.locked .l3-vid-play { color: var(--gold); }
.l3-vid.locked:hover .l3-vid-play { background: var(--gold); color: #fff; }
.l3-vid-flag {
    position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 50px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em;
    text-transform: uppercase; color: #fff; background: var(--green); box-shadow: var(--sh-sm);
}
.l3-vid-flag.paid { background: var(--gold); }
.l3-vid-grade {
    position: absolute; right: 14px; top: 14px; padding: 6px 12px; border-radius: 50px;
    background: rgba(15,27,45,.72); color: #fff; font-size: 11px; font-weight: 700; backdrop-filter: blur(4px);
}
.l3-vid-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.l3-vid-body h3 { font-size: 16px; font-weight: 700; line-height: 1.45; letter-spacing: -.01em; }
.l3-vid-meta { margin-top: 10px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.l3-vid-meta i { color: var(--green); font-size: 11px; }
.l3-vid-cta { margin-top: 18px; }
.l3-vid-hidden { display: none; }
/* opacity/transform are restated so a card that was never scrolled into view
   (and therefore never got .rv.in) is still visible once it is revealed */
.l3-vid-hidden.shown { display: flex; opacity: 1; transform: none; animation: l3Up .6s var(--ease) both; }

/* ── RESULTS MARQUEE ──────────────────────────────────────────────────────── */
.l3-marquee { position: relative; overflow: hidden; padding: 6px 0; }
.l3-marquee::before, .l3-marquee::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 3; pointer-events: none;
}
.l3-marquee::before { left: 0; background: linear-gradient(to right, var(--canvas), transparent); }
.l3-marquee::after { right: 0; background: linear-gradient(to left, var(--canvas), transparent); }
.l3-marquee-track { display: flex; gap: 18px; width: max-content; animation: l3Slide 42s linear infinite; }
.l3-marquee:hover .l3-marquee-track { animation-play-state: paused; }
@keyframes l3Slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.l3-result {
    width: 286px; flex-shrink: 0; background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 26px 24px; text-align: center;
}
.l3-result-ico {
    width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--gold), #fbbf24); color: #fff; font-size: 20px;
    box-shadow: 0 10px 22px rgba(245,158,11,.3);
}
.l3-result b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.l3-result-rank {
    display: inline-block; margin-top: 10px; padding: 5px 14px; border-radius: 50px;
    background: var(--green-soft); color: var(--green-dark); font-size: 11.5px; font-weight: 800; letter-spacing: .08em;
}
.l3-result span.sub { display: block; margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ── GALLERY ──────────────────────────────────────────────────────────────── */
.l3-gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.l3-gal-item {
    position: relative; overflow: hidden; border-radius: var(--r-md); cursor: pointer;
    aspect-ratio: 1/1; background: var(--navy-soft);
}
.l3-gal-item:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.l3-gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.l3-gal-item:hover img { transform: scale(1.08); }
.l3-gal-cap {
    position: absolute; inset: 0; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end;
    background: linear-gradient(to top, rgba(8,18,36,.88), rgba(8,18,36,.1) 55%, transparent);
    opacity: 0; transition: opacity .4s; color: #fff;
}
.l3-gal-item:hover .l3-gal-cap { opacity: 1; }
.l3-gal-cap b { font-size: 16px; font-weight: 700; }
.l3-gal-cap span { margin-top: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.7); }

/* ── COMMUNITY ────────────────────────────────────────────────────────────── */
.l3-comm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.l3-comm {
    position: relative; overflow: hidden; padding: 40px 34px; border-radius: var(--r-lg); color: #fff;
    cursor: pointer; border: 0; text-align: left; width: 100%;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.l3-comm:hover { transform: translateY(-7px); box-shadow: var(--sh-lg); }
.l3-comm.wa { background: linear-gradient(135deg, #25D366, #0f8f5f); }
.l3-comm.tg { background: linear-gradient(135deg, #34b4f1, #0369a1); }
.l3-comm-ico { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; background: rgba(255,255,255,.18); margin-bottom: 22px; }
.l3-comm h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.l3-comm p { margin-top: 10px; font-size: 14.5px; color: rgba(255,255,255,.88); line-height: 1.7; max-width: 42ch; }
.l3-comm-go { margin-top: 24px; display: inline-flex; align-items: center; gap: 9px; padding: 11px 22px; border-radius: 50px; background: rgba(255,255,255,.96); color: var(--ink); font-size: 13.5px; font-weight: 700; }
.l3-comm-bg { position: absolute; right: -22px; bottom: -34px; font-size: 150px; opacity: .13; pointer-events: none; }

/* ── TESTIMONIALS ─────────────────────────────────────────────────────────── */
.l3-testi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 30px; height: auto; }
.l3-testi-mark { font-size: 42px; font-weight: 800; color: var(--green); line-height: .8; }
.l3-testi p { margin-top: 18px; font-size: 15px; color: var(--ink-2); line-height: 1.85; font-style: italic; }
.l3-testi-who { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; gap: 14px; }
.l3-testi-who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.l3-testi-who b { display: block; font-size: 15px; font-weight: 700; }
.l3-testi-who span { font-size: 12.5px; color: var(--muted); }
.l3-testi-stars { color: var(--gold); font-size: 12px; letter-spacing: 2px; margin-top: 4px; }
.l3-slider-pag { display: flex; gap: 8px; justify-content: center; margin-top: 34px; }
.l3-slider-pag .swiper-pagination-bullet { width: 9px; height: 9px; background: var(--faint); opacity: .45; transition: .3s; }
.l3-slider-pag .swiper-pagination-bullet-active { background: var(--green); opacity: 1; width: 28px; border-radius: 50px; }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.l3-faq { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.l3-faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.l3-faq-item.open { border-color: var(--green); box-shadow: 0 10px 26px rgba(44,183,66,.12); }
.l3-faq-q {
    width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
    padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
    font-size: 16px; font-weight: 650;
}
.l3-faq-sign { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; background: var(--green-soft); color: var(--green-dark); display: grid; place-items: center; font-size: 13px; transition: .35s var(--ease); }
.l3-faq-item.open .l3-faq-sign { background: var(--green); color: #fff; transform: rotate(180deg); }
.l3-faq-a { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.l3-faq-item.open .l3-faq-a { max-height: 700px; }
.l3-faq-a div { padding: 0 24px 24px; font-size: 14.5px; color: var(--muted); line-height: 1.85; }

/* ── CONTACT ──────────────────────────────────────────────────────────────── */
.l3-contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(26px, 4vw, 56px); align-items: start; }
.l3-contact-side { background: var(--navy-deep); color: #fff; border-radius: var(--r-lg); padding: 40px 34px; }
.l3-contact-side h3 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.l3-contact-side > p { margin-top: 14px; font-size: 14.5px; color: rgba(255,255,255,.76); line-height: 1.8; }
.l3-cinfo { margin-top: 30px; display: flex; flex-direction: column; gap: 8px; }
.l3-cinfo a, .l3-cinfo div.item {
    display: flex; align-items: center; gap: 15px; padding: 14px; border-radius: var(--r-md);
    background: rgba(255,255,255,.06); transition: background .3s, transform .3s;
}
.l3-cinfo a:hover { background: rgba(255,255,255,.13); transform: translateX(4px); }
.l3-cinfo i { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: var(--green); display: grid; place-items: center; font-size: 15px; }
.l3-cinfo b { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.l3-cinfo span { font-size: 14.5px; font-weight: 600; word-break: break-word; }
.l3-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); padding: clamp(26px, 3.5vw, 42px); }
.l3-form h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 26px; }
.l3-frow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.l3-field { margin-bottom: 16px; }
.l3-field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; }
.l3-input {
    width: 100%; padding: 14px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--line);
    background: var(--canvas); font-size: 14.5px; outline: none;
    transition: border-color .25s, box-shadow .25s, background .25s;
}
.l3-input:focus { border-color: var(--green); background: var(--paper); box-shadow: 0 0 0 4px rgba(44,183,66,.12); }
.l3-input::placeholder { color: var(--faint); }
textarea.l3-input { min-height: 130px; resize: vertical; }
.l3-alert { padding: 15px 18px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.l3-alert.ok { background: #e7f8ec; color: #15803d; border: 1px solid #a7e3b8; }
.l3-alert.bad { background: #fee9e9; color: #b91c1c; border: 1px solid #f7b6b6; }

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.l3-footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: clamp(52px, 6vw, 78px) 0 0; }
.l3-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 42px; }
.l3-footer-brand .l3-brand { color: #fff; margin-bottom: 18px; }
.l3-footer-brand img { height: 52px; background: #fff; padding: 6px 10px; border-radius: 10px; }
.l3-footer-brand p { font-size: 14px; line-height: 1.8; max-width: 38ch; }
.l3-fsoc { display: flex; gap: 10px; margin-top: 22px; }
.l3-fsoc a {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 15px;
    background: rgba(255,255,255,.08); color: #fff; transition: .3s var(--ease);
}
.l3-fsoc a:hover { background: var(--green); transform: translateY(-3px); }
.l3-footer h4 { color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 20px; }
.l3-footer ul { display: flex; flex-direction: column; gap: 11px; }
.l3-footer ul a, .l3-footer ul span { font-size: 14px; display: inline-flex; align-items: flex-start; gap: 9px; transition: color .25s, transform .25s; }
.l3-footer ul a:hover { color: var(--green); transform: translateX(3px); }
.l3-footer ul i { color: var(--green); font-size: 12px; margin-top: 4px; width: 14px; }
.l3-footer-bar {
    margin-top: clamp(40px, 5vw, 62px); border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0;
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    font-size: 13px; color: rgba(255,255,255,.55);
}
.l3-footer-bar a:hover { color: var(--green); }

/* ── FLOATING WHATSAPP ────────────────────────────────────────────────────── */
.l3-wa-float {
    position: fixed; right: 20px; bottom: 22px; z-index: 880; width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center; font-size: 26px; color: #fff; background: #25D366;
    box-shadow: 0 14px 30px rgba(37,211,102,.45); transition: transform .35s var(--ease);
}
.l3-wa-float:hover { transform: scale(1.09) translateY(-2px); }

/* ── MODALS ───────────────────────────────────────────────────────────────── */
.l3-modal {
    position: fixed; inset: 0; z-index: 990; display: none; align-items: center; justify-content: center;
    padding: 20px; background: rgba(8,18,36,.72); backdrop-filter: blur(6px);
}
.l3-modal.open { display: flex; animation: l3Fade .25s ease; }
@keyframes l3Fade { from { opacity: 0; } to { opacity: 1; } }
.l3-modal-box {
    width: 100%; max-width: 620px; max-height: 88vh; background: var(--paper); border-radius: var(--r-lg);
    overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sh-lg);
    animation: l3Up .38s var(--ease) both;
}
.l3-modal-box.wide { max-width: 940px; }
.l3-modal-head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 24px; border-bottom: 1px solid var(--line-soft);
}
.l3-modal-head h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.l3-modal-head.wa { background: linear-gradient(135deg,#25D366,#0f8f5f); color: #fff; border: 0; }
.l3-modal-head.tg { background: linear-gradient(135deg,#34b4f1,#0369a1); color: #fff; border: 0; }
.l3-modal-x { width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; border: 0; background: rgba(15,27,45,.07); cursor: pointer; font-size: 15px; transition: .25s; }
.l3-modal-head.wa .l3-modal-x, .l3-modal-head.tg .l3-modal-x { background: rgba(255,255,255,.2); color: #fff; }
.l3-modal-x:hover { background: rgba(15,27,45,.14); }
.l3-modal-body { padding: 22px 24px 26px; overflow-y: auto; }
.l3-modal-body.flush { padding: 0; }
.l3-map { aspect-ratio: 16/10; background: var(--canvas); }
.l3-map iframe { width: 100%; height: 100%; border: 0; }
.l3-modal-note { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.l3-modal-note i { color: var(--green); }

.l3-grp { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); transition: .3s var(--ease); }
.l3-grp + .l3-grp { margin-top: 12px; }
.l3-grp:hover { box-shadow: var(--sh-sm); transform: translateY(-2px); }
.l3-grp-ico { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 22px; overflow: hidden; }
.l3-grp-ico img { width: 100%; height: 100%; object-fit: cover; }
.l3-grp-ico.wa { background: linear-gradient(135deg,#25D366,#0f8f5f); }
.l3-grp-ico.tg { background: linear-gradient(135deg,#34b4f1,#0369a1); }
.l3-grp-info { flex: 1; min-width: 0; }
.l3-grp-info b { font-size: 15px; font-weight: 700; }
.l3-grp-info p { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-top: 3px; }
.l3-empty-sm { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 14px; }
.l3-empty-sm i { display: block; font-size: 30px; opacity: .35; margin-bottom: 12px; }

.l3-lightbox { position: fixed; inset: 0; z-index: 995; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(6,14,28,.92); }
.l3-lightbox.open { display: flex; animation: l3Fade .25s ease; }
.l3-lightbox img { max-width: 100%; max-height: 82vh; border-radius: var(--r-md); box-shadow: var(--sh-lg); }
.l3-lightbox-cap { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; color: #fff; font-size: 14.5px; font-weight: 600; }
.l3-lightbox-x { position: absolute; right: 22px; top: 22px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #fff; font-size: 18px; cursor: pointer; }

.l3-frame { aspect-ratio: 16/9; background: #000; }
.l3-frame iframe { width: 100%; height: 100%; border: 0; }

/* ── INNER PAGE HERO ──────────────────────────────────────────────────────── */
.l3-phero { position: relative; background: var(--navy-deep); color: #fff; padding: clamp(56px, 7vw, 92px) 0 clamp(52px, 6vw, 82px); overflow: hidden; }
.l3-phero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(900px 340px at 12% 0%, rgba(44,183,66,.26), transparent 62%),
                radial-gradient(700px 300px at 88% 100%, rgba(43,76,142,.55), transparent 60%);
}
.l3-phero .l3-wrap { position: relative; }
.l3-crumb { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: rgba(255,255,255,.62); margin-bottom: 16px; }
.l3-crumb a:hover { color: var(--green); }
.l3-phero h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.l3-phero p { margin-top: 16px; max-width: 64ch; font-size: 15.5px; color: rgba(255,255,255,.78); line-height: 1.8; }
.l3-phero-stats { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.l3-phero-stats div b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.l3-phero-stats div span { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* ── FILTER BAR ───────────────────────────────────────────────────────────── */
.l3-filter { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 36px; }
.l3-search { display: flex; align-items: center; gap: 0; background: var(--paper); border: 1.5px solid var(--line); border-radius: 50px; overflow: hidden; min-width: 280px; flex: 1; max-width: 420px; }
.l3-search input { flex: 1; min-width: 0; padding: 13px 20px; border: 0; background: none; outline: none; font-size: 14.5px; }
.l3-search button { width: 48px; height: 46px; border: 0; background: var(--green); color: #fff; cursor: pointer; font-size: 14px; transition: background .25s; }
.l3-search button:hover { background: var(--green-dark); }
.l3-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.l3-tab {
    padding: 10px 18px; border-radius: 50px; border: 1.5px solid var(--line); background: var(--paper);
    font-size: 13.5px; font-weight: 650; color: var(--ink-2); transition: .28s var(--ease); white-space: nowrap;
}
.l3-tab:hover { border-color: var(--green); color: var(--green-dark); }
.l3-tab.on { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(43,76,142,.25); }

/* ── EMPTY STATE ──────────────────────────────────────────────────────────── */
.l3-empty {
    grid-column: 1/-1; text-align: center; padding: clamp(48px, 7vw, 86px) 24px;
    border: 1.5px dashed var(--line); border-radius: var(--r-lg); background: var(--paper);
}
.l3-empty i { font-size: 38px; color: var(--faint); opacity: .6; }
.l3-empty h3 { margin-top: 18px; font-size: 19px; font-weight: 700; }
.l3-empty p { margin-top: 9px; font-size: 14.5px; color: var(--muted); }

/* ── TEACHER CARDS ────────────────────────────────────────────────────────── */
.l3-staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 26px; }
.l3-staff {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
    text-align: center; transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.l3-staff:hover { transform: translateY(-7px); box-shadow: var(--sh-md); }
.l3-staff-photo { aspect-ratio: 1/1; overflow: hidden; background: var(--navy-soft); }
.l3-staff-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.l3-staff:hover .l3-staff-photo img { transform: scale(1.06); }
.l3-staff-body { padding: 24px 22px 26px; }
.l3-staff-sub { display: inline-block; padding: 5px 14px; border-radius: 50px; background: var(--green-soft); color: var(--green-dark); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.l3-staff-body h3 { margin-top: 13px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.l3-staff-tel { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.l3-staff-tel i { color: var(--green); }

/* ── EVENT CARDS ──────────────────────────────────────────────────────────── */
.l3-ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.l3-ev {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
    display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s var(--ease); cursor: pointer;
}
.l3-ev:hover { transform: translateY(-7px); box-shadow: var(--sh-md); }
.l3-ev.past { opacity: .72; }
.l3-ev-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--navy-soft); }
.l3-ev-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.l3-ev:hover .l3-ev-thumb img { transform: scale(1.06); }
.l3-ev-date {
    position: absolute; left: 16px; bottom: 16px; width: 62px; padding: 9px 0; text-align: center;
    background: linear-gradient(135deg, var(--green), var(--navy)); color: #fff; border-radius: var(--r-sm);
    box-shadow: var(--sh-md);
}
.l3-ev-date b { display: block; font-size: 22px; font-weight: 800; line-height: 1; }
.l3-ev-date span { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.l3-ev-date.flat { position: static; margin-bottom: 18px; }
.l3-ev-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.l3-ev-body h3 { font-size: 17.5px; font-weight: 700; line-height: 1.4; letter-spacing: -.01em; }
.l3-ev-body p { margin-top: 11px; font-size: 14px; color: var(--muted); line-height: 1.72; flex: 1; }
.l3-ev-state { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.l3-ev-state.up { color: var(--green-dark); }
.l3-ev-state.done { color: var(--muted); }

/* ══════════════════════════════════════════════════════════════════════════
   SUBJECTS → GRADE → TEACHER → TIMETABLE  (subjects.php)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── step 1: the big subject cards ────────────────────────────────────────── */
.l3-subj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.l3-subj {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
    min-height: 260px; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.l3-subj::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--green);
    transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); z-index: 3;
}
.l3-subj:hover { transform: translateY(-8px); box-shadow: var(--sh-md); border-color: transparent; }
.l3-subj:hover::before { transform: scaleX(1); }
.l3-subj-photo { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--navy-soft); }
.l3-subj-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.l3-subj:hover .l3-subj-photo img { transform: scale(1.06); }
.l3-subj-ico {
    display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; flex-shrink: 0;
    background: var(--green-soft); color: var(--green-dark); font-size: 24px;
    margin: 28px 28px 0; transition: transform .45s var(--ease), background .3s, color .3s;
}
.l3-subj-photo + .l3-subj-ico { margin-top: -31px; margin-left: 24px; background: var(--paper); box-shadow: var(--sh-sm); position: relative; z-index: 2; }
.l3-subj:hover .l3-subj-ico { background: var(--green); color: #fff; transform: rotate(-6deg) scale(1.05); }
.l3-subj-ico.big { width: 66px; height: 66px; font-size: 26px; margin: 0; }
.l3-subj-body { display: flex; flex-direction: column; flex: 1; padding: 20px 28px 26px; }
.l3-subj-body > b { font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.l3-subj-tag { margin-top: 9px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.l3-subj-foot {
    margin-top: auto; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.l3-subj-count { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--navy); }
.l3-subj-count i { color: var(--green); }
.l3-subj:hover .l3-arrow { background: var(--green); color: #fff; transform: translateX(4px); }

.l3-subj-intro {
    display: flex; gap: 22px; align-items: flex-start; margin-bottom: 34px; padding: 26px 28px;
    background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.l3-subj-intro p { font-size: 15px; color: var(--muted); line-height: 1.85; }

/* ── step 2: the class detail panel ───────────────────────────────────────── */
.l3-class-panel { display: grid; grid-template-columns: 1fr 350px; gap: clamp(24px, 3vw, 40px); align-items: start; }
.l3-class-main { min-width: 0; }
.l3-class-head { margin-bottom: 24px; }
.l3-class-head h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.l3-class-sub {
    display: inline-block; margin-top: 12px; padding: 6px 15px; border-radius: 50px;
    background: var(--navy-soft); color: var(--navy); font-size: 12.5px; font-weight: 700;
}

.l3-meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 30px; }
.l3-meta { padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); }
.l3-meta-k { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--faint); }
.l3-meta-v { display: block; margin-top: 8px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.l3-meta-v i { color: var(--green); font-size: 14px; margin-right: 5px; }

.l3-block {
    padding: 26px 28px; background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--r-lg); margin-bottom: 20px;
}
.l3-block h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.l3-block h3 i { color: var(--green); font-size: 15px; }
.l3-block-empty { font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.l3-block-text { font-size: 14.5px; color: var(--muted); line-height: 1.85; }

.l3-tt-wrap { overflow-x: auto; margin: 0 -4px; }
.l3-tt { width: 100%; border-collapse: collapse; min-width: 480px; }
.l3-tt th {
    text-align: left; padding: 10px 14px; font-size: 10.5px; font-weight: 800; letter-spacing: .14em;
    text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line);
}
.l3-tt td { padding: 15px 14px; font-size: 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.l3-tt tr:last-child td { border-bottom: 0; }
.l3-tt-day {
    display: inline-block; min-width: 42px; margin-right: 8px; padding: 3px 9px; border-radius: 7px;
    background: var(--green-soft); color: var(--green-dark); font-size: 11px; font-weight: 800; text-align: center;
}
.l3-tt-note { margin-top: 5px; font-size: 12.5px; color: var(--muted); }

.l3-next { display: flex; flex-direction: column; gap: 12px; }
.l3-next li { display: flex; align-items: center; gap: 16px; padding: 13px; border: 1px solid var(--line); border-radius: var(--r-md); }
.l3-next-date {
    flex-shrink: 0; width: 54px; padding: 8px 0; text-align: center; border-radius: var(--r-sm);
    background: linear-gradient(135deg, var(--green), var(--navy)); color: #fff;
}
.l3-next-date b { display: block; font-size: 19px; font-weight: 800; line-height: 1; }
.l3-next-date span { font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.l3-next-body { display: flex; flex-direction: column; min-width: 0; }
.l3-next-body b { font-size: 14.5px; font-weight: 700; }
.l3-next-body span { margin-top: 3px; font-size: 12.5px; color: var(--muted); }

/* ── teacher card + join box (sticky column) ──────────────────────────────── */
.l3-class-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--nav-h) + 20px); }
.l3-tcard { padding: 26px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.l3-tcard-k { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.l3-tcard-top { display: flex; align-items: center; gap: 15px; }
.l3-tcard-top img { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--green-soft); }
.l3-tcard-top b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.l3-tcard-top span { font-size: 13px; color: var(--green-dark); font-weight: 600; }
.l3-tcard-facts { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.l3-tcard-facts li { display: flex; gap: 11px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.l3-tcard-facts i { color: var(--green); margin-top: 3px; flex-shrink: 0; }
.l3-tcard-bio { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.l3-tcard-links { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.l3-tcard-links a { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.l3-tcard-links a:hover { color: var(--green-dark); }
.l3-tcard-links i { color: var(--green); width: 15px; }

.l3-join { padding: 28px 24px; border-radius: var(--r-lg); background: var(--navy-deep); color: #fff; box-shadow: var(--sh-md); }
.l3-join-fee { display: block; font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.l3-join-fee small { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.6); margin-left: 6px; letter-spacing: 0; }
.l3-join-for { display: block; margin: 10px 0 22px; font-size: 13px; color: rgba(255,255,255,.7); }
.l3-join-done {
    display: flex; align-items: center; gap: 9px; margin-bottom: 14px; padding: 12px 15px; border-radius: var(--r-sm);
    background: rgba(44,183,66,.18); color: #7ee89a; font-size: 13.5px; font-weight: 700;
}
.l3-join-ask {
    display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 16px;
    font-size: 13px; font-weight: 600; color: rgba(255,255,255,.78);
}
.l3-join-ask:hover { color: #fff; }
.l3-join-ask i { color: var(--green); }

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
    .l3-footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
    .l3-gal { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
    .l3-menu { display: none; }
    .l3-burger { display: inline-flex; }
    .l3-about { grid-template-columns: 1fr; }
    .l3-about-media { max-width: 460px; }
    .l3-about-media::after { inset: 18px -18px -18px 18px; }
    .l3-contact { grid-template-columns: 1fr; }
    .l3-class-panel { grid-template-columns: 1fr; }
    .l3-class-side { position: static; }
}
@media (max-width: 760px) {
    :root { --nav-h: 64px; }
    .l3-topbar { font-size: 11.5px; }
    .l3-tb-right a span { display: none; }
    .l3-tb-social { padding-left: 14px; }
    .l3-brand img { height: 38px; }
    .l3-brand { font-size: 16px; }
    .l3-nav-cta .l3-btn { display: none; }
    .l3-stats-hold { margin-top: -38px; }
    .l3-hero .swiper { height: clamp(460px, 74vh, 620px); }
    .l3-hero-inner { padding-bottom: 76px; }
    .l3-hero-acts .l3-btn { flex: 1; min-width: 150px; }
    .l3-class { grid-template-columns: 1fr auto; gap: 18px; padding: 24px 4px; }
    .l3-class-idx { display: none; }
    .l3-gal { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .l3-gal-item:nth-child(6n+1) { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/10; }
    .l3-frow { grid-template-columns: 1fr; gap: 0; }
    .l3-footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .l3-about-tag { left: 0; padding: 14px 18px; }
    .l3-search { max-width: none; }
    .l3-filter { flex-direction: column; align-items: stretch; }
    .l3-tabs { overflow-x: auto; padding-bottom: 4px; flex-wrap: nowrap; }
    .l3-marquee::before, .l3-marquee::after { width: 40px; }
    .l3-wa-float { width: 50px; height: 50px; font-size: 23px; right: 14px; bottom: 16px; }
    .l3-subj-ico { margin: 22px 22px 0; width: 54px; height: 54px; font-size: 21px; }
    .l3-subj-body { padding: 18px 22px 22px; }
    .l3-subj-intro { flex-direction: column; gap: 16px; padding: 22px; }
    .l3-block { padding: 22px 20px; }
    .l3-join-fee { font-size: 28px; }
}
@media (max-width: 460px) {
    .l3-wrap { padding: 0 18px; }
    .l3-feat { padding: 30px 24px; }
    .l3-comm { padding: 32px 26px; }
    .l3-contact-side { padding: 30px 24px; }
}
