/* ==========================================================================
   Learning + speaking-country pages v2 (3 Dec 2026)
   .lv2 : /online-courses (catalog) and /online-courses/{slug} (course detail)
          views: resources/views/user/learning/{catalog,show}.blade.php
   .sv2 : /{speaking}-speaking-countries/study-in-{country} (e.g. study-in-dubai)
          view : resources/views/user/speaking/detail.blade.php

   Same language as the consultant pages: a navy hero (white heading, one gold keyword, one line of
   text) and white cards that overlap it. Colours and font come ONLY from gateway-theme.css variables.
   No grey text. Page JS, ids and form classes are unchanged; only the markup around them is new.
   ========================================================================== */

.lv2, .sv2 {
    font-family: var(--gw-font);
    color: var(--gw-slate);
    background: var(--gw-ice);
    overflow-x: clip;
    padding-bottom: 80px;
}
.lv2 h1, .lv2 h2, .lv2 h3, .lv2 h4, .lv2 h5,
.sv2 h1, .sv2 h2, .sv2 h3, .sv2 h4, .sv2 h5 { font-family: var(--gw-font); background: none; letter-spacing: -.01em; }
.lv2 a, .sv2 a { text-decoration: none; }

/* ---------- Hero ---------- */
.pv2-hero {
    position: relative;
    isolation: isolate;
    padding: 22px 0 128px;
    color: var(--gw-white);
    background:
        radial-gradient(60% 90% at 85% 0%, rgba(var(--gw-gold-rgb), .20) 0%, rgba(var(--gw-gold-rgb), 0) 70%),
        linear-gradient(135deg, var(--gw-navy) 0%, var(--gw-navy-light) 140%);
}
.pv2-hero::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 340px;
    height: 200px;
    z-index: -1;
    opacity: .5;
    background-image: radial-gradient(rgba(var(--gw-gold-rgb), .4) 1.2px, transparent 1.4px);
    background-size: 18px 18px;
    -webkit-mask-image: radial-gradient(circle at 0 100%, #000 0%, transparent 70%);
    mask-image: radial-gradient(circle at 0 100%, #000 0%, transparent 70%);
}
.pv2-hero--center { text-align: center; }

.pv2-crumbs { justify-content: flex-start; gap: 8px; font-size: 13px; margin: 0 0 26px !important; padding: 0; background: none; color: rgba(255, 255, 255, .85); }
.pv2-crumbs a { color: rgba(255, 255, 255, .85); }
.pv2-crumbs a:hover { color: var(--gw-white); }
.pv2-crumbs i { font-size: 14px; color: rgba(255, 255, 255, .85); }
.pv2-crumbs .breadcrumb-active { color: var(--gw-gold); font-weight: 600; }
.pv2-hero--center .pv2-crumbs { justify-content: center; }

.pv2-h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 3.6vw, 46px);
    line-height: 1.12;
    font-weight: 700;
    color: var(--gw-white);
    -webkit-text-fill-color: var(--gw-white);
    text-wrap: balance;
}
.pv2-h1 span { color: var(--gw-gold); -webkit-text-fill-color: var(--gw-gold); }
.pv2-sub { margin: 0; max-width: 64ch; font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, .9); text-wrap: pretty; }
.pv2-hero--center .pv2-sub { margin-inline: auto; }

.pv2-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.pv2-hero--center .pv2-chips { justify-content: center; }
.pv2-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gw-white);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
}
.pv2-chip i { color: var(--gw-gold); font-size: 13px; }
.pv2-chip--gold { color: var(--gw-gold); background: rgba(var(--gw-gold-rgb), .14); border-color: rgba(var(--gw-gold-rgb), .55); }

.pv2-ghost {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    border-radius: 999px;
    border: 1.5px solid rgba(var(--gw-gold-rgb), .6);
    color: var(--gw-white);
    font-size: 14px;
    font-weight: 600;
    transition: background .2s ease, border-color .2s ease;
}
.pv2-ghost:hover { color: var(--gw-white); background: rgba(var(--gw-gold-rgb), .16); border-color: var(--gw-gold); }

/* ---------- Cards that overlap the hero ---------- */
.pv2-card {
    background: var(--gw-white);
    border: 1px solid rgba(var(--gw-navy-rgb), .06);
    border-radius: 24px;
    box-shadow: 0 34px 70px -34px rgba(var(--gw-navy-rgb), .45), 0 2px 8px rgba(var(--gw-navy-rgb), .05);
}
.pv2-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; margin-top: -80px; position: relative; z-index: 1; }
.pv2-col { display: grid; gap: 28px; min-width: 0; }
.pv2-side { position: sticky; top: 96px; display: grid; gap: 20px; }
.pv2-block { padding: 36px 40px; }
.pv2-h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font-size: 22px; font-weight: 700; color: var(--gw-navy); -webkit-text-fill-color: var(--gw-navy); }
.pv2-h2::before { content: ""; flex: 0 0 5px; align-self: stretch; min-height: 24px; border-radius: 3px; background: var(--gw-gold-shine); }

/* ---------- Rich text from the admin (description / country details) ---------- */
.pv2-prose { font-size: 16px; line-height: 1.8; color: var(--gw-slate); overflow-wrap: anywhere; }
.pv2-prose > :first-child { margin-top: 0; }
.pv2-prose > :last-child { margin-bottom: 0; }
.pv2-prose p { margin: 0 0 16px; }
.pv2-prose strong, .pv2-prose b { color: var(--gw-navy); font-weight: 600; }
.pv2-prose h1, .pv2-prose h2, .pv2-prose h3, .pv2-prose h4, .pv2-prose h5, .pv2-prose h6 {
    margin: 34px 0 14px; padding-left: 14px; border-left: 4px solid var(--gw-gold);
    font-size: 21px; line-height: 1.35; font-weight: 700; color: var(--gw-navy); -webkit-text-fill-color: var(--gw-navy);
}
.pv2-prose h1 { font-size: 24px; }
.pv2-prose h4, .pv2-prose h5, .pv2-prose h6 { font-size: 18px; }
.pv2-prose ul, .pv2-prose ol { margin: 0 0 18px; padding: 0; list-style: none; }
.pv2-prose ul li, .pv2-prose ol li { position: relative; margin: 0 0 8px; padding-left: 32px; }
.pv2-prose ul li::before {
    content: "";
    position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--gw-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%230B1F4B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.pv2-prose ol { counter-reset: pv2o; }
.pv2-prose ol li { counter-increment: pv2o; }
.pv2-prose ol li::before {
    content: counter(pv2o);
    position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
    display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--gw-navy); background: var(--gw-gold-shine);
}
.pv2-prose a { color: var(--gw-gold-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pv2-prose a:hover { color: var(--gw-navy); }
.pv2-prose blockquote { margin: 0 0 18px; padding: 16px 20px; border-radius: 14px; border-left: 4px solid var(--gw-gold); background: var(--gw-ice); color: var(--gw-navy); }
.pv2-prose img { max-width: 100%; height: auto !important; border-radius: 14px; }
.pv2-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 18px; }
.pv2-prose th, .pv2-prose td { padding: 10px 14px; border: 1px solid rgba(var(--gw-navy-rgb), .14); }
.pv2-prose th { background: var(--gw-ice); color: var(--gw-navy); }
.pv2-prose sub { line-height: normal; }

/* ==========================================================================
   .lv2 : online courses
   ========================================================================== */

/* catalog */
.lv2-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 380px)); justify-content: center; gap: 28px; margin-top: -76px; position: relative; z-index: 1; }
.lv2-course {
    display: flex; flex-direction: column; overflow: hidden; border-radius: 22px;
    background: var(--gw-white); border: 1px solid rgba(var(--gw-navy-rgb), .06);
    box-shadow: 0 24px 50px -30px rgba(var(--gw-navy-rgb), .5), 0 2px 6px rgba(var(--gw-navy-rgb), .05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.lv2-course:hover { transform: translateY(-5px); border-color: rgba(var(--gw-gold-rgb), .7); box-shadow: 0 30px 56px -28px rgba(var(--gw-navy-rgb), .55), 0 0 0 4px rgba(var(--gw-gold-rgb), .22); }
.lv2-course__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--gw-ice); }
.lv2-course__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.lv2-course:hover .lv2-course__thumb img { transform: scale(1.04); }
.lv2-course__flag { position: absolute; left: 14px; top: 14px; padding: 5px 13px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--gw-navy); background: var(--gw-gold-shine); box-shadow: 0 4px 12px rgba(var(--gw-navy-rgb), .25); }
.lv2-course__flag--ok { color: var(--gw-white); background: var(--gw-success); }
.lv2-course__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.lv2-course__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.lv2-tag { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--gw-navy); background: var(--gw-ice); }
.lv2-tag--free { color: var(--gw-success); background: rgba(var(--gw-success-rgb), .12); }
.lv2-course__title { margin: 0 0 10px; font-size: 19px; line-height: 1.35; font-weight: 700; color: var(--gw-navy); -webkit-text-fill-color: var(--gw-navy); }
.lv2-course__title a { color: inherit; }
.lv2-course__desc { margin: 0 0 20px; font-size: 14.5px; line-height: 1.65; color: var(--gw-slate); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lv2-course__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(var(--gw-navy-rgb), .08); }
.lv2-price { font-size: 24px; line-height: 1; font-weight: 700; color: var(--gw-navy); }
.lv2-price small { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gw-gold-dark); }
.lv2-price--free { color: var(--gw-success); }
.lv2-empty { grid-column: 1 / -1; padding: 64px 24px; text-align: center; border-radius: 24px; background: var(--gw-white); box-shadow: 0 24px 50px -30px rgba(var(--gw-navy-rgb), .5); }
.lv2-empty strong { display: block; margin-bottom: 6px; font-size: 20px; color: var(--gw-navy); }

/* course detail: curriculum */
.lv2-chapter { margin: 0 0 22px; border: 1px solid rgba(var(--gw-navy-rgb), .1); border-radius: 18px; overflow: hidden; }
.lv2-chapter:last-child { margin-bottom: 0; }
.lv2-chapter__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; font-size: 15px; font-weight: 700; color: var(--gw-white); background: var(--gw-navy); }
.lv2-chapter__head i { color: var(--gw-gold); }
.lv2-chapter__head em { margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .85); white-space: nowrap; }
.lv2-lessons { margin: 0; padding: 0; list-style: none; }
.lv2-lesson { border-top: 1px solid rgba(var(--gw-navy-rgb), .08); }
.lv2-lesson:first-child { border-top: 0; }
.lv2-lesson__row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; color: var(--gw-navy); transition: background-color .18s ease; }
a.lv2-lesson__row:hover { background: var(--gw-ice); color: var(--gw-navy); }
.lv2-lesson__icon { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; font-size: 15px; color: var(--gw-navy); background: var(--gw-ice); }
a.lv2-lesson__row .lv2-lesson__icon { background: rgba(var(--gw-gold-rgb), .28); }
.lv2-lesson__body { flex: 1; min-width: 0; }
.lv2-lesson__title { margin: 0 0 6px; font-size: 15.5px; font-weight: 600; line-height: 1.4; color: var(--gw-navy); }
.lv2-lesson__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lv2-lesson__tags .lv2-tag { padding: 2px 10px; font-size: 11.5px; }
.lv2-lesson__go { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--gw-gold-dark); }
.lv2-lesson__go--free { color: var(--gw-success); }
.lv2-lesson__row--locked { cursor: not-allowed; }
.lv2-lesson__row--locked .lv2-lesson__title { color: var(--gw-slate); }
.lv2-lesson__row--locked .lv2-lesson__go { color: var(--gw-slate); }
.lv2-note { margin: 0 0 20px; font-size: 14px; color: var(--gw-slate); }

/* enroll card */
.lv2-enroll { padding: 30px 28px; }
.lv2-enroll__price { margin: 0 0 4px; font-size: 38px; line-height: 1.05; font-weight: 700; color: var(--gw-navy); }
.lv2-enroll__price--free { color: var(--gw-success); }
.lv2-enroll__lead { margin: 0 0 20px; font-size: 14px; color: var(--gw-slate); }
.lv2-enroll .btn-primary-main, .lv2-enroll .lv2-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; }
.lv2-btn-ghost { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 10px; padding: 13px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--gw-navy); border: 1.5px solid rgba(var(--gw-navy-rgb), .25); transition: border-color .2s ease, background-color .2s ease; }
.lv2-btn-ghost:hover { color: var(--gw-navy); border-color: var(--gw-navy); background: var(--gw-ice); }
.lv2-enroll__secure { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--gw-slate); }
.lv2-enroll__secure i { color: var(--gw-gold-dark); margin-right: 4px; }
.lv2-enrolled { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 14px; padding: 11px 14px; border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--gw-success); background: rgba(var(--gw-success-rgb), .12); }
.lv2-incl { margin: 24px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid rgba(var(--gw-navy-rgb), .1); display: grid; gap: 12px; }
.lv2-incl li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 500; color: var(--gw-navy); }
.lv2-incl i { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; color: var(--gw-navy); background: rgba(var(--gw-gold-rgb), .35); }

/* ==========================================================================
   .sv2 : study in {country}
   ========================================================================== */
.sv2-banner { position: relative; margin: 0; aspect-ratio: 21 / 8; max-height: 340px; width: 100%; overflow: hidden; border-radius: 24px 24px 0 0; background: var(--gw-ice); }
.sv2-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv2-article { overflow: hidden; }
.sv2-article .pv2-block { padding-top: 38px; }
.sv2-article--noimg .pv2-block { padding-top: 36px; }

/* expert form card */
.sv2-cta .subscribe-now-box { width: 100%; margin: 0; padding: 0; }
.sv2-cta .subscribe-now-box .card { border: 0; background: transparent; }
.sv2-cta .subscribe-now-box .card-body { padding: 0 !important; background: none !important; }
.sv2-cta { position: relative; padding: 32px 28px 30px; overflow: hidden; background: radial-gradient(120% 80% at 100% 0%, rgba(var(--gw-gold-rgb), .20) 0%, rgba(var(--gw-gold-rgb), 0) 60%), var(--gw-white); border-color: rgba(var(--gw-gold-rgb), .5); }
.sv2-cta::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: var(--gw-gold-shine); }
.sv2-cta__title { margin: 0 0 6px; font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--gw-navy); -webkit-text-fill-color: var(--gw-navy); }
.sv2-cta__title span { color: var(--gw-gold-dark); -webkit-text-fill-color: var(--gw-gold-dark); }
.sv2-cta__sub { margin: 0 0 22px; font-size: 14px; line-height: 1.6; color: var(--gw-slate); }
.sv2-cta form { margin: 0; text-align: left; }
.sv2-cta .pv2-label { display: block; margin: 0 0 7px; font-size: 13.5px; font-weight: 600; color: var(--gw-navy); }
.sv2-cta .form-control {
    width: 100%; height: 52px !important; margin: 0 0 16px; padding: 0 16px; border-radius: 12px !important;
    font-family: var(--gw-font); font-size: 15px !important; color: var(--gw-navy);
    background: var(--gw-white) !important; border: 1.5px solid rgba(var(--gw-navy-rgb), .14) !important; box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.sv2-cta .form-control:hover { border-color: rgba(var(--gw-navy-rgb), .3) !important; }
.sv2-cta .form-control:focus { border-color: var(--gw-gold-dark) !important; box-shadow: 0 0 0 4px rgba(var(--gw-gold-rgb), .3); outline: 0; }
.sv2-cta .form-control::placeholder { color: rgba(var(--gw-slate-rgb), .75); opacity: 1; }
.sv2-cta .error-message { margin: -8px 0 14px; font-size: 13px; font-weight: 500; color: var(--gw-danger); }
.sv2-cta .btn-primary-main { width: 100%; display: flex; align-items: center; justify-content: center; margin-top: 4px; }
.sv2-cta .book-consulting-done { margin: 0 !important; padding: 18px 0; }
.sv2-cta .complete-text h5 { font-size: 17px; font-weight: 600; color: var(--gw-navy); }

/* other countries */
.sv2-others { margin-top: 56px; text-align: center; }
.sv2-others__title { display: inline-block; margin: 0 0 28px; font-size: 26px; font-weight: 700; color: var(--gw-navy); -webkit-text-fill-color: var(--gw-navy); }
.sv2-others__title span { color: var(--gw-gold-dark); -webkit-text-fill-color: var(--gw-gold-dark); }
.sv2-others__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sv2-country {
    display: flex; align-items: center; gap: 16px; padding: 18px 22px; text-align: left; border-radius: 18px;
    background: var(--gw-white); border: 1px solid rgba(var(--gw-navy-rgb), .06);
    box-shadow: 0 18px 40px -28px rgba(var(--gw-navy-rgb), .5);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.sv2-country:hover { transform: translateY(-3px); border-color: rgba(var(--gw-gold-rgb), .7); box-shadow: 0 22px 44px -26px rgba(var(--gw-navy-rgb), .5), 0 0 0 4px rgba(var(--gw-gold-rgb), .22); }
.sv2-country img { flex: 0 0 64px; width: 64px; height: 44px; object-fit: cover; border-radius: 8px; box-shadow: 0 2px 8px rgba(var(--gw-navy-rgb), .18); }
.sv2-country strong { flex: 1; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--gw-navy); }
.sv2-country i { color: var(--gw-gold-dark); font-size: 14px; transition: transform .2s ease; }
.sv2-country:hover i { transform: translateX(4px); }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .pv2-main { grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; }
}
@media (max-width: 991px) {
    .pv2-hero { padding-bottom: 112px; }
    .pv2-main { grid-template-columns: minmax(0, 1fr); margin-top: -72px; }
    .pv2-side { position: static; order: -1; }  /* enroll card first on tablets and phones */
    .sv2 .pv2-side { order: 1; }                /* country page: read first, then the form */
    .sv2-others__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .lv2, .sv2 { padding-bottom: 56px; }
    .pv2-hero { padding: 16px 0 96px; }
    .pv2-crumbs { margin-bottom: 18px !important; }
    .pv2-sub { font-size: 15.5px; }
    .pv2-block { padding: 26px 20px; }
    .pv2-h2 { font-size: 20px; margin-bottom: 18px; }
    .pv2-prose { font-size: 15px; }
    .pv2-prose h1, .pv2-prose h2, .pv2-prose h3 { font-size: 19px; margin-top: 28px; }
    .lv2-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: -64px; }
    .lv2-lesson__row { gap: 12px; padding: 14px 14px; }
    .lv2-lesson__icon { flex-basis: 38px; width: 38px; height: 38px; }
    .lv2-lesson__go { font-size: 12px; }
    .lv2-chapter__head { padding: 14px 16px; }
    .lv2-enroll { padding: 24px 20px; }
    .sv2-banner { aspect-ratio: 16 / 9; border-radius: 18px 18px 0 0; }
    .sv2-others { margin-top: 40px; }
    .sv2-others__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .sv2-cta { padding: 26px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .lv2-course, .lv2-course__thumb img, .sv2-country, .sv2-country i { transition: none; }
    .lv2-course:hover, .sv2-country:hover { transform: none; }
}

/* ---------- .sv2 extras: photo hero, flag badge, "On this page" ---------- */
.sv2-hero--photo {
    background:
        linear-gradient(105deg, rgba(var(--gw-navy-rgb), .94) 0%, rgba(var(--gw-navy-rgb), .82) 48%, rgba(var(--gw-navy-rgb), .55) 100%),
        var(--sv2-photo) center / cover no-repeat,
        var(--gw-navy);
}
.sv2-hero__row { display: flex; align-items: center; gap: 28px; }
.sv2-flag { flex: 0 0 auto; width: 112px; height: 112px; object-fit: cover; border-radius: 50%; border: 4px solid var(--gw-gold); box-shadow: 0 0 0 8px rgba(var(--gw-gold-rgb), .22), 0 18px 36px -12px rgba(0, 0, 0, .5); background: var(--gw-white); }
.sv2-hero .pv2-h1 { margin-bottom: 12px; }

.sv2-toc { padding: 22px 22px 14px; }
.sv2-toc[hidden] { display: none; }
.sv2-toc__title { margin: 0 0 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gw-gold-dark); }
.sv2-toc__list { margin: 0; padding: 0; list-style: none; max-height: 34vh; overflow-y: auto; }
.sv2-toc__list li { margin: 0; }
.sv2-toc__list a { display: block; padding: 8px 0 8px 14px; border-left: 3px solid rgba(var(--gw-navy-rgb), .1); font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--gw-slate); transition: color .18s ease, border-color .18s ease, background-color .18s ease; }
.sv2-toc__list a:hover { color: var(--gw-navy); border-left-color: rgba(var(--gw-gold-rgb), .7); }
.sv2-toc__list a.is-on { color: var(--gw-navy); font-weight: 700; border-left-color: var(--gw-gold); background: linear-gradient(90deg, rgba(var(--gw-gold-rgb), .18), rgba(var(--gw-gold-rgb), 0)); }
.sv2 .pv2-hero { padding-bottom: 136px; }
.sv2 .sv2-article .pv2-h2 { display: none; }  /* the hero already says it; the article starts with the admin's own text */

@media (max-width: 991px) {
    .sv2-toc { display: none; }
}
@media (max-width: 575px) {
    .sv2-hero__row { flex-direction: column; align-items: flex-start; gap: 18px; }
    .sv2-flag { width: 76px; height: 76px; border-width: 3px; box-shadow: 0 0 0 5px rgba(var(--gw-gold-rgb), .22); }
}
.sv2-flag { width: 132px; height: 90px; border-radius: 16px; border-width: 3px; }
@media (max-width: 575px) { .sv2-flag { width: 92px; height: 62px; border-radius: 12px; } }
@media (max-width: 767px) { .lv2-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- .lv2 single-course showcase (catalog with exactly one course) ---------- */
.lv2-feature { padding-bottom: 150px; }
.lv2-feature__row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.lv2-eyebrow { display: inline-block; margin: 0 0 16px; padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gw-gold); border: 1px solid rgba(var(--gw-gold-rgb), .55); background: rgba(var(--gw-gold-rgb), .12); }
.lv2-feature .pv2-h1 { font-size: clamp(30px, 3.4vw, 44px); }
.lv2-feature__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 26px; margin-top: 30px; }
.lv2-feature__price { font-size: 30px; line-height: 1; font-weight: 700; color: var(--gw-white); }
.lv2-feature__price small { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gw-gold); }
.lv2-feature__cover { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 26px; border: 4px solid var(--gw-gold); box-shadow: 18px 18px 0 -2px rgba(var(--gw-gold-rgb), .28), 0 40px 70px -30px rgba(0, 0, 0, .6); overflow: hidden; background: var(--gw-navy-light); transform: rotate(1.5deg); transition: transform .35s ease; }
.lv2-feature__cover:hover { transform: rotate(0) translateY(-4px); }
.lv2-feature__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lv2-inside { margin-top: -88px; position: relative; z-index: 1; padding: 38px 40px 40px; }
.lv2-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.lv2-tile { display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px 18px; border-radius: 16px; background: var(--gw-ice); border: 1.5px solid transparent; color: var(--gw-navy); transition: transform .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.lv2-tile:hover { color: var(--gw-navy); transform: translateY(-3px); background: var(--gw-white); border-color: rgba(var(--gw-gold-rgb), .8); box-shadow: 0 14px 30px -18px rgba(var(--gw-navy-rgb), .5), 0 0 0 4px rgba(var(--gw-gold-rgb), .2); }
.lv2-tile--free { background: rgba(var(--gw-gold-rgb), .2); border-color: rgba(var(--gw-gold-rgb), .6); }
.lv2-tile__n { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; font-size: 14px; font-weight: 700; color: var(--gw-white); background: var(--gw-navy); }
.lv2-tile--free .lv2-tile__n { color: var(--gw-navy); background: var(--gw-gold-shine); }
.lv2-tile__body { flex: 1; min-width: 0; display: grid; gap: 6px; }
.lv2-tile__title { font-size: 15px; font-weight: 600; line-height: 1.35; }
.lv2-tile__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lv2-tile__tags .lv2-tag { padding: 2px 10px; font-size: 11.5px; background: var(--gw-white); }
.lv2-tile__tags .lv2-tag--free { background: rgba(var(--gw-success-rgb), .14); }
.lv2-tile > i { flex: 0 0 auto; font-size: 13px; color: var(--gw-gold-dark); }
.lv2-inside__foot { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.lv2-btn-ghost--inline { width: auto; margin: 0; }

@media (max-width: 991px) {
    .lv2-feature { padding-bottom: 120px; }
    .lv2-feature__row { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .lv2-feature__cover { max-width: 520px; transform: none; }
    .lv2-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .lv2-feature { padding-bottom: 104px; }
    .lv2-inside { margin-top: -72px; padding: 26px 18px 28px; }
    .lv2-tiles { grid-template-columns: minmax(0, 1fr); }
    .lv2-feature__cover { box-shadow: 10px 10px 0 -2px rgba(var(--gw-gold-rgb), .28), 0 30px 50px -26px rgba(0, 0, 0, .6); }
}

/* ---------- .lv2 free-class player (hero visual for the single-course showcase) ---------- */
.lv2-player {
    position: relative; display: flex; flex-direction: column; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 22px; color: var(--gw-white);
    background:
        radial-gradient(70% 90% at 80% 0%, rgba(var(--gw-gold-rgb), .26) 0%, rgba(var(--gw-gold-rgb), 0) 70%),
        linear-gradient(150deg, rgba(var(--gw-navy-light-rgb), .95) 0%, var(--gw-navy) 100%);
    border: 1px solid rgba(var(--gw-gold-rgb), .5);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, .06), 0 44px 80px -34px rgba(0, 0, 0, .65);
    transition: transform .3s ease, box-shadow .3s ease;
}
.lv2-player:hover { color: var(--gw-white); transform: translateY(-4px); box-shadow: 0 0 0 8px rgba(var(--gw-gold-rgb), .22), 0 50px 84px -34px rgba(0, 0, 0, .7); }
.lv2-player--photo { background: linear-gradient(180deg, rgba(var(--gw-navy-rgb), .45), rgba(var(--gw-navy-rgb), .85)), var(--lv2-photo) center / cover no-repeat, var(--gw-navy); }
.lv2-player::before { /* faint grid, so the empty stage still feels designed */
    content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 36px 36px;
    -webkit-mask-image: radial-gradient(70% 70% at 50% 45%, #000 0%, transparent 100%); mask-image: radial-gradient(70% 70% at 50% 45%, #000 0%, transparent 100%);
}
.lv2-player__top { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.lv2-player__dots { display: flex; gap: 6px; }
.lv2-player__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.lv2-player__dots i:first-child { background: var(--gw-gold); }
.lv2-player__label { padding: 3px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gw-navy); background: var(--gw-gold-shine); }
.lv2-player__stage { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.lv2-player__play { position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; font-size: 26px; padding-left: 5px; color: var(--gw-navy); background: var(--gw-gold-shine); box-shadow: var(--gw-gold-glow); transition: transform .25s ease; }
.lv2-player__play::before, .lv2-player__play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(var(--gw-gold-rgb), .6); animation: lv2-ping 2.4s ease-out infinite; }
.lv2-player__play::after { animation-delay: 1.2s; }
.lv2-player:hover .lv2-player__play { transform: scale(1.08); }
@keyframes lv2-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.lv2-player__hint { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: rgba(255, 255, 255, .92); }
.lv2-player__bar { position: relative; display: grid; gap: 4px; padding: 14px 18px 18px; background: linear-gradient(180deg, rgba(var(--gw-navy-rgb), 0), rgba(var(--gw-navy-rgb), .7)); }
.lv2-player__title { font-size: 15px; font-weight: 600; line-height: 1.35; }
.lv2-player__meta { font-size: 12.5px; font-weight: 500; color: var(--gw-gold); }
.lv2-player__track { display: block; height: 4px; margin-top: 6px; border-radius: 2px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.lv2-player__track span { display: block; width: 28%; height: 100%; background: var(--gw-gold-shine); }
@media (max-width: 991px) { .lv2-player { max-width: 520px; } }
@media (prefers-reduced-motion: reduce) { .lv2-player__play::before, .lv2-player__play::after { animation: none; } .lv2-player { transition: none; } .lv2-player:hover { transform: none; } }

/* real photo uploaded for the course (e.g. the teacher): show it clean, no overlay on the face */
.lv2-feature__cover { transform: none; aspect-ratio: 4 / 3; max-height: 460px; }
.lv2-feature__cover:hover { transform: translateY(-4px); }
.lv2-feature__cover img { object-position: center top; }
.lv2-feature__pill { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--gw-navy); background: var(--gw-gold-shine); box-shadow: var(--gw-gold-glow), 0 8px 20px rgba(var(--gw-navy-rgb), .35); }
.lv2-feature__pill i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 10px; padding-left: 2px; color: var(--gw-gold); background: var(--gw-navy); }

/* course photo is usually a 16:9 poster with its own text: show it whole, put the button under it */
.lv2-feature__visual { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.lv2-feature__visual .lv2-feature__cover { width: 100%; aspect-ratio: 16 / 9; max-height: none; }
.lv2-feature__visual .lv2-feature__cover img { object-position: center; }
.lv2-feature__pill { position: static; transition: transform .2s ease; }
.lv2-feature__pill:hover { color: var(--gw-navy); transform: translateY(-2px); }
