/* =====================================================================
   Fashion Dot — Elegant Fashion theme (public website)
   Indigo + marigold · Poppins everywhere (Noto Sans Tamil for Tamil text)
   ===================================================================== */

:root {
    /* Palette: indigo + marigold. Change these values to re-theme the whole public site. */
    --bg: #F6F6FA;          /* cool white */
    --bg-soft: #ECEDF5;
    --sand: #DCDEEB;
    --brand: #26306B;       /* indigo - buttons, dark sections, footer */
    --brand-deep: #161C45;
    --brand-soft: #3B478F;
    --accent: #F2A541;      /* marigold - lines, badges, decorative details */
    --accent-soft: #F7C77A; /* marigold for text on indigo */
    --accent-tint: #FDF0DC; /* pale marigold section background */
    --em: #0E1130;          /* highlighted words in headings keep the text colour; the marigold is a highlight line behind them */
    --ink: #1A1F3D;
    --muted: #5E6178;
    --line: rgba(38, 48, 107, 0.12);
    --white: #FFFFFF;

    --font-display: "Poppins", "Noto Sans Tamil", system-ui, sans-serif;
    --font-body: "Poppins", "Noto Sans Tamil", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-tamil: "Noto Sans Tamil", "Poppins", sans-serif;

    --radius: 22px;
    --radius-lg: 32px;
    --shadow-soft: 0 20px 50px -24px rgba(22, 28, 69, 0.35);
    --shadow-card: 0 30px 60px -30px rgba(22, 28, 69, 0.45);
    --ease: cubic-bezier(.22, 1, .36, 1);
    --container: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
    --offer-h: 0px;         /* height of the offer strip; 0 when it is closed */
}
html.has-offer { --offer-h: 40px; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* clip (not hidden) so the tilted marquee can't cause sideways scroll, without breaking pinning */
main { overflow-x: clip; }

img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
em { font-style: normal; color: var(--em); }
::selection { background: var(--brand); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* subtle paper grain over everything */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .01em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .4s var(--ease), background-color .3s, color .3s, box-shadow .4s var(--ease);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 17px 32px; font-size: 16px; }

.btn-primary { background: var(--brand); color: var(--bg); box-shadow: 0 14px 30px -14px rgba(38, 48, 107, .7); }
.btn-primary:hover { background: var(--brand-deep); box-shadow: 0 20px 40px -16px rgba(38, 48, 107, .8); }
.btn-accent { background: var(--accent); color: var(--brand-deep); }
.btn-accent:hover { background: var(--accent-soft); }
.btn-outline { border-color: var(--brand); color: var(--brand); margin-top: 28px; }
.btn-outline:hover { background: var(--brand); color: var(--bg); }

/* shine sweep on primary buttons */
.btn-primary::after, .btn-accent::after {
    content: "";
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
    transform: skewX(-20deg);
    transition: left .8s var(--ease);
}
.btn-primary:hover::after, .btn-accent:hover::after { left: 140%; }

.link-arrow {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-weight: 600;
    color: var(--brand);
    border-bottom: 1px solid var(--line);
    padding-bottom: 4px;
    transition: border-color .3s, gap .4s var(--ease);
}
.link-arrow:hover { border-color: var(--brand); gap: 14px; }

/* ---------- Eyebrow / section titles ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--brand-soft);
    margin-bottom: 18px;
}
.eyebrow-line { width: 34px; height: 1px; background: var(--accent); display: inline-block; }
.eyebrow-light { color: var(--accent-soft); }

.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(30px, 3.8vw, 46px);
    line-height: 1.18;
    letter-spacing: -.02em;
    color: var(--ink);
    max-width: 18ch;
}
.section-title em { color: var(--em); }
.section-title.light { color: var(--bg); }
.section-title.light em { color: var(--accent); }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(30px, 4vw, 48px);
    flex-wrap: wrap;
}
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center .section-title { max-width: 20ch; }

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    transition: background-color .5s, box-shadow .5s, transform .5s var(--ease);
}
.site-header .header-inner { padding-top: 18px; padding-bottom: 18px; transition: padding .5s var(--ease); }
.site-header.scrolled .header-inner { padding-top: 10px; padding-bottom: 10px; }
.site-header.scrolled {
    background: rgba(246, 246, 250, .82);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 1px 0 var(--line);
}
.site-header.hidden { transform: translateY(-110%); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* ---------- Offer strip (top of header, slides away once you scroll) ---------- */
.offer-strip {
    display: none;
    height: var(--offer-h);
    background: var(--brand-deep);
    color: var(--bg);
    font-size: 13.5px;
    overflow: hidden;
    transition: margin-top .5s var(--ease);
}
.has-offer .offer-strip { display: block; }
.site-header.scrolled .offer-strip,
body.menu-open .offer-strip { margin-top: calc(-1 * var(--offer-h)); }
.offer-inner { height: 100%; display: flex; align-items: center; justify-content: center; gap: 18px; position: relative; padding-right: 48px; }
.offer-text { display: flex; align-items: center; gap: 12px; min-width: 0; white-space: nowrap; }
.offer-text > span:not(.offer-tag) { overflow: hidden; text-overflow: ellipsis; }
.offer-text strong { color: var(--accent-soft); font-weight: 700; }
.offer-tag {
    flex: none;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--brand-deep);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.offer-short { display: none; }
.offer-link { flex: none; font-weight: 700; color: var(--accent-soft); white-space: nowrap; }
.offer-link .arrow { display: inline-block; transition: transform .4s var(--ease); }
.offer-link:hover .arrow { transform: translateX(4px); }
.offer-close {
    position: absolute;
    right: var(--gutter);
    top: 50%;
    width: 28px; height: 28px;
    margin-top: -14px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, .7);
    display: grid; place-items: center;
    cursor: pointer;
    transition: background .3s, color .3s;
}
.offer-close svg { width: 16px; height: 16px; }
.offer-close:hover { background: rgba(255, 255, 255, .12); color: var(--white); }

/* ---------- Callback button in the header ---------- */
.btn-callback {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px 0 13px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--brand);
    font: 600 14px/1 var(--font-body);
    cursor: pointer;
    transition: background .3s, color .3s, border-color .3s;
}
.btn-callback svg { width: 18px; height: 18px; }
.btn-callback:hover { background: var(--brand); color: var(--bg); border-color: var(--brand); }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--brand); }
.brand-mark { width: 44px; height: 44px; flex: none; transition: transform .8s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-20deg); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -.01em; }
.brand-name i { color: var(--accent); font-style: normal; margin: 0 1px; }
.brand-tag { font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 5px; font-weight: 600; }
.brand-light { color: var(--bg); }
.brand-light .brand-tag { color: var(--accent-soft); }

.main-nav { display: flex; gap: 34px; }
.main-nav a {
    position: relative;
    white-space: nowrap;
    font-weight: 500;
    font-size: 15px;
    color: var(--ink);
    padding: 6px 0;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .5s var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    color: var(--brand);
    transition: background .3s, color .3s, border-color .3s;
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { background: var(--brand); color: var(--bg); border-color: var(--brand); }
.link-login { font-weight: 600; font-size: 15px; padding: 8px 6px; }
.link-login:hover { color: var(--brand); }

.menu-toggle {
    display: none;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--white);
    cursor: pointer;
    position: relative;
    z-index: 60;
}
.menu-toggle span {
    position: absolute;
    left: 13px; right: 13px;
    height: 1.6px;
    background: var(--brand);
    transition: transform .5s var(--ease), top .5s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 26px; }
body.menu-open .menu-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: var(--brand-deep);
    color: var(--bg);
    padding: 120px var(--gutter) 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    clip-path: circle(0% at calc(100% - 44px) 44px);
    transition: clip-path .8s var(--ease);
    visibility: hidden;
}
body.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; }
body.menu-open .site-header .brand { color: var(--bg); }
body.menu-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; }
.mobile-menu-links { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu-links a {
    font-family: var(--font-display);
    font-size: clamp(28px, 8vw, 40px);
    font-weight: 600;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s;
}
.mobile-menu-links a:hover { color: var(--accent-soft); }
body.menu-open .mobile-menu-links a { opacity: 1; transform: none; }
body.menu-open .mobile-menu-links a:nth-child(1) { transition-delay: .15s; }
body.menu-open .mobile-menu-links a:nth-child(2) { transition-delay: .2s; }
body.menu-open .mobile-menu-links a:nth-child(3) { transition-delay: .25s; }
body.menu-open .mobile-menu-links a:nth-child(4) { transition-delay: .3s; }
body.menu-open .mobile-menu-links a:nth-child(5) { transition-delay: .35s; }
body.menu-open .mobile-menu-links a:nth-child(6) { transition-delay: .4s; }
body.menu-open .mobile-menu-links a:nth-child(7) { transition-delay: .45s; }
.mobile-menu-links a[data-callback] { font-size: clamp(18px, 5vw, 22px); color: var(--accent-soft); margin-top: 10px; }
.mobile-menu-foot { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.mobile-menu-foot p { font-family: var(--font-tamil); color: var(--accent-soft); font-size: 15px; }
body.menu-open { overflow: hidden; }

/* =====================================================================
   Hero — light and clean
   A faint grid, big bold heading, one black pill button, floating chips,
   and three photo cards. The middle card plays assets/site/video/hero.mp4
   when that file exists. Pure CSS animation (no script needed).
   ===================================================================== */
.hero {
    position: relative;
    isolation: isolate;
    min-height: 100svh;
    padding: calc(118px + var(--offer-h)) var(--gutter) 90px;
    background: #F6F7FB;
    color: var(--ink);
    overflow: hidden;
}
/* faint grid, fading out towards the bottom */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 52px 52px;
    opacity: .55;
    -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 85%);
    mask-image: linear-gradient(180deg, #000 30%, transparent 85%);
}
.hero-sq { position: absolute; z-index: -1; width: 52px; height: 52px; border-radius: 8px; background: rgba(14, 17, 48, .045); animation: hero-pulse 6s ease-in-out infinite; }
.hero-sq:nth-of-type(1) { left: 8%; top: 12%; }
.hero-sq:nth-of-type(2) { right: 14%; top: 22%; animation-delay: -2s; }
.hero-sq:nth-of-type(3) { left: 28%; top: 44%; animation-delay: -4s; }
.hero-sq:nth-of-type(4) { right: 6%; top: 52%; animation-delay: -1s; }
@keyframes hero-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.hero-inner { position: relative; max-width: 1080px; margin: 0 auto; text-align: center; }
.hero-in { opacity: 0; transform: translateY(26px); animation: hero-up 1s var(--ease) forwards; }
.hd1 { animation-delay: .1s; } .hd2 { animation-delay: .22s; } .hd3 { animation-delay: .34s; } .hd4 { animation-delay: .46s; } .hd5 { animation-delay: .6s; }
@keyframes hero-up { to { opacity: 1; transform: none; } }

.hero-proof { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.avatars { display: flex; }
.avatars span { width: 28px; height: 28px; border-radius: 50%; margin-left: -8px; border: 2px solid #F6F7FB; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--brand); }
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2) { background: var(--accent); color: var(--ink); }
.avatars span:nth-child(3) { background: var(--ink); }

.hero-title { margin: 22px 0 26px; font-size: clamp(40px, 6.4vw, 78px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; color: var(--ink); }
.hero-title em { font-style: normal; color: var(--ink); position: relative; white-space: nowrap; }
.hero-title em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .16em; background: var(--accent); border-radius: 4px; z-index: -1; }
.hero-lead { max-width: 52ch; margin: 0 auto 28px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.hero-tamil { display: block; margin-bottom: 4px; color: var(--ink); font-family: var(--font-tamil); font-weight: 500; }

/* black pill button with a round arrow (also used in the header) */
.pill { display: inline-flex; align-items: center; gap: 14px; padding: 6px 6px 6px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border: 0; cursor: pointer; white-space: nowrap; transition: transform .4s var(--ease); }
.pill i { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; transition: transform .4s var(--ease), background .3s; }
.pill i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pill:hover { transform: translateY(-2px); }
.pill:hover i { transform: translateX(3px); background: var(--accent); }

/* floating chips and little photos (desktop only) */
.hero-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 10px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 36px -22px rgba(14, 17, 48, .5); font-size: 12px; line-height: 1.3; text-align: left; opacity: 0; animation: hero-fadein .8s .5s forwards, hero-float 6s ease-in-out infinite; }
.hero-chip b { display: block; font-size: 13px; }
.hero-chip span { color: var(--muted); }
.hero-chip svg { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--accent); color: var(--ink); flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-chip svg.g-logo { padding: 5px; background: #fff; stroke: none; }
.hc-l { left: 2%; top: calc(150px + var(--offer-h)); animation-delay: .5s, 0s; }
.hc-r { right: 2%; top: calc(108px + var(--offer-h)); animation-delay: .5s, -3s; }
.hc-g { left: 7%; top: calc(330px + var(--offer-h)); animation-delay: .6s, -2s; }
.hero-thumb { position: absolute; width: 50px; height: 50px; border-radius: 12px; object-fit: cover; border: 3px solid #fff; box-shadow: 0 14px 30px -16px rgba(14, 17, 48, .6); opacity: 0; animation: hero-fadein .8s .7s forwards, hero-float 7s ease-in-out infinite; }
.ht-l { left: 8%; top: calc(232px + var(--offer-h)); animation-delay: .7s, -1.5s; }
.ht-r { right: 9%; top: calc(196px + var(--offer-h)); animation-delay: .7s, -4s; }
@keyframes hero-fadein { to { opacity: 1; } }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* three photo cards */
/* one big video card */
.hero-cards { max-width: 1080px; margin: 56px auto 0; }
.hero-card { position: relative; margin: 0; border-radius: 30px; overflow: hidden; aspect-ratio: 16 / 9; background: #dde0ee; text-align: left; color: #fff; isolation: isolate; transition: transform .6s var(--ease); }
.hero-card:hover { transform: translateY(-4px); }
.hero-card > img, .hero-card-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.hero-card:hover > img { transform: scale(1.05); }
.hero-card-video { opacity: 0; z-index: -1; transition: opacity 1s var(--ease); }
.hero.has-video .hero-card-video { opacity: 1; }
.hero-card::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, transparent 45%, rgba(14, 17, 48, .82)); pointer-events: none; }
.hero-card-txt { position: absolute; z-index: 1; left: 30px; right: 100px; bottom: 28px; }
.hero-card-txt strong { display: block; font-size: clamp(19px, 2.4vw, 26px); line-height: 1.25; }
.hero-card-txt small { display: block; margin-top: 4px; font-size: 13px; opacity: .8; }
.hero-play { position: absolute; z-index: 2; right: 26px; bottom: 26px; width: 64px; height: 64px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform .4s var(--ease), background .3s; }
.hero-play svg { width: 20px; height: 20px; margin-left: 3px; }
.hero-play:hover { transform: scale(1.1); background: var(--accent); }

/* "Watch intro" video dialog */
.intro-dialog {
    width: min(960px, calc(100% - 32px));
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: #000;
    overflow: visible;
}
.intro-dialog[open] { animation: cb-in .45s var(--ease); }
.intro-dialog::backdrop { background: rgba(10, 13, 36, .85); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.intro-frame { aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; }
.intro-frame iframe, .intro-frame video { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.intro-dialog .cb-close { top: -52px; right: 0; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: var(--white); }
.intro-dialog .cb-close:hover { background: var(--white); color: var(--brand); }

@media (max-width: 1180px) {
    .hc-g { display: none; }
}
@media (max-width: 900px) {
    .hero { padding-top: calc(104px + var(--offer-h)); }
    .hero-chip, .hero-thumb { display: none; }
    .hero-cards { margin-top: 36px; }
    .hero-card { aspect-ratio: 4 / 5; border-radius: 26px; }
    .hero-card-txt { left: 22px; right: 84px; bottom: 22px; }
    .hero-play { right: 18px; bottom: 18px; width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-sq, .hero-chip, .hero-thumb { animation: none; }
    .hero-chip, .hero-thumb, .hero-in { opacity: 1; transform: none; }
}

/* =====================================================================
   Marquee
   ===================================================================== */
.marquee {
    background: var(--accent);
    color: var(--brand-deep);
    overflow: hidden;
    padding: 22px 0;
    transform: rotate(-1.2deg);
    /* pulled up over the hero so its tilted edge never shows a gap */
    margin: -28px -2% 0;
    position: relative;
    z-index: 2;
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: 36px;
    width: max-content;
    animation: marquee 32s linear infinite;
    font-family: var(--font-display);
    font-size: clamp(20px, 2.4vw, 30px);
    font-weight: 500;
    white-space: nowrap;
}
.marquee-track i { color: var(--brand); font-style: normal; font-size: .6em; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =====================================================================
   Highlights
   ===================================================================== */
/* solid brand band directly under the marquee (marquee overlaps its top edge) */
.highlights { background: var(--brand); margin-top: -26px; padding: clamp(50px, 6vw, 70px) 0 clamp(30px, 4vw, 44px); }
.highlights-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.hl { padding: 18px 20px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .14); }
.hl:last-child { border-right: 0; }
.hl-num { display: block; font-family: var(--font-display); font-size: clamp(34px, 4vw, 50px); font-weight: 600; color: var(--accent-soft); line-height: 1; }
.hl-num small { font-size: .55em; color: var(--accent); margin: 0 2px; }
.hl-label { display: block; margin-top: 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .72); font-weight: 600; }

/* =====================================================================
   Trust bar
   ===================================================================== */
.trust { background: var(--white); border-bottom: 1px solid var(--line); padding: 30px 0; }
.trust-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; }
.trust-item { display: flex; align-items: center; gap: 14px; line-height: 1.3; }
.trust-item + .trust-item { border-left: 1px solid var(--line); padding-left: 24px; }
.trust-item strong { display: block; font-size: 15.5px; color: var(--ink); }
.trust-item small { color: var(--muted); font-size: 13px; }
.trust-icon {
    width: 46px; height: 46px;
    flex: none;
    border-radius: 14px;
    display: grid; place-items: center;
    background: var(--accent);
    color: var(--ink);
}
.trust-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* alternating tinted section backgrounds so the page isn't one big white sheet */
.courses { background: var(--bg-soft); }
.why { background: var(--accent-tint); }
.reviews { background: var(--accent-tint); }
.faq { background: var(--bg-soft); }

/* =====================================================================
   Courses
   ===================================================================== */
/* cards of equal height in a row; a last row with fewer cards is centred instead of leaving an empty gap on the right */
.course-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.course-grid > * { flex: 0 1 calc((100% - 60px) / 3); min-width: 0; }   /* big cards: 3 in a row, 2 on a tablet, 1 on a phone */
.course-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    transition: box-shadow .6s var(--ease), transform .6s var(--ease);
    transform-style: preserve-3d;
    will-change: transform;
}
.course-card:hover { box-shadow: var(--shadow-card); }
.course-media { display: block; position: relative; flex: none; aspect-ratio: 4 / 3.4; overflow: hidden; margin: 10px 10px 0; border-radius: calc(var(--radius-lg) - 8px); background: var(--bg-soft); }
.course-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
/* a course without a picture: a soft block with its first letter, the same size as a picture */
.course-media .cr-noimg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; font-weight: 700; color: var(--accent); background: var(--bg-soft); }
.course-card:hover .course-media img { transform: scale(1.07); }
.course-badge {
    position: absolute;
    top: 14px; left: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--brand);
    color: var(--bg);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
}
.badge-soon { background: var(--accent); color: var(--brand-deep); }
.course-body { display: flex; flex: 1; flex-direction: column; padding: 22px 20px 22px; }
/* the small line above the title: level, length, language as plain words with dots between them (no pills) */
.course-meta { display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; color: var(--muted); }
.course-meta span { padding: 0; border-radius: 0; background: none; color: inherit; }
.course-meta span + span::before { content: "•"; margin: 0 6px; color: var(--accent); }
.course-body h3 { font-family: var(--font-display); font-size: 20px; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-body h3 a:hover { color: var(--brand); }
.course-ta { font-family: var(--font-tamil); color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 4px; min-height: 1.5em; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.course-body > :nth-last-child(2) { margin-bottom: 22px; }
.course-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line); }
.price { display: flex; align-items: baseline; gap: 10px; }
.price strong { font-family: var(--font-display); font-size: 26px; color: var(--brand); line-height: 1; }
.price s { color: var(--muted); font-size: 15px; }
.notify { font-size: 14px; font-weight: 600; color: var(--muted); }
.btn-round {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--brand);
    color: var(--bg);
    font-size: 20px;
    transition: transform .5s var(--ease), background .3s;
    flex: none;
}
.btn-round:hover { transform: rotate(-45deg); background: var(--accent); color: var(--brand-deep); }
.course-card.is-soon .course-media img { filter: saturate(.75); }

/* =====================================================================
   Designs — photo grid (7 garments + a "see all" tile)
   ===================================================================== */
.design-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: clamp(190px, 21vw, 280px);
    grid-auto-flow: dense;
    gap: 16px;
}
.design-tile { position: relative; display: block; border-radius: 26px; overflow: hidden; background: #E4E7F3; isolation: isolate; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.design-tile:hover { transform: translateY(-5px); box-shadow: 0 28px 50px -30px rgba(14, 17, 48, .55); }
.design-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 1.2s var(--ease); }
.design-tile:hover > img { transform: scale(1.06); }
.dt-blouse { grid-column: span 2; }
.dt-chudi, .dt-lpant { grid-row: span 2; }
.dt-more { grid-column: span 2; }

/* white label pill with a round arrow, bottom-left of each photo */
.design-chip { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); display: inline-flex; align-items: center; gap: 12px; padding: 7px 7px 7px 16px; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: 0 10px 24px -14px rgba(14, 17, 48, .5); }
.design-chip strong { display: block; font-size: 14px; line-height: 1.25; color: var(--ink); }
.design-chip small { display: block; font-family: var(--font-tamil); font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.design-chip i { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: background .3s, transform .4s var(--ease); }
.design-chip i svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.design-tile:hover .design-chip i { background: var(--accent); color: var(--ink); transform: translateX(3px); }

/* the last tile: a near-black "see all" call to action */
.dt-more { background: var(--ink); display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 28px; color: #fff; }
.dt-more strong { font-size: clamp(20px, 2.4vw, 30px); line-height: 1.2; font-weight: 600; max-width: 16ch; letter-spacing: -.01em; }
.dt-more .pill { background: #fff; color: var(--ink); }
.dt-more .pill i { background: var(--ink); color: #fff; }
.dt-more:hover .pill i { background: var(--accent); color: var(--ink); }

@media (max-width: 900px) {
    .design-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; gap: 12px; }
    .design-tile { border-radius: 22px; }
    .design-chip { left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 5px 5px 5px 12px; gap: 8px; }
    .design-chip strong { font-size: 13px; }
    .design-chip small { font-size: 10.5px; }
    .design-chip i { width: 30px; height: 30px; }
    .dt-more { padding: 22px; }
}

/* =====================================================================
   Why — bento
   ===================================================================== */
.bento {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 22px;
}
.bento-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 34px 30px;
    transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.bento-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.bento-card h3 { font-family: var(--font-display); font-size: 20px; margin: 22px 0 10px; }
.bento-card p { color: var(--muted); font-size: 15px; }
.bento-icon {
    width: 54px; height: 54px;
    border-radius: 16px;
    display: grid; place-items: center;
    background: var(--bg-soft);
    color: var(--brand);
    font-size: 20px;
}
.bento-accent { background: var(--brand); color: var(--bg); border-color: var(--brand); }
.bento-accent p { color: var(--accent-soft); }
.bento-accent .bento-icon { background: rgba(255, 255, 255, .1); color: var(--accent); }
.bento-image { grid-row: span 2; padding: 0; position: relative; overflow: hidden; min-height: 460px; }
.bento-image img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.bento-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 34px 30px;
    background: linear-gradient(180deg, transparent, rgba(10, 13, 36, .88));
    color: var(--bg);
}
.bento-overlay h3 { margin: 0 0 8px; font-size: 24px; }
.bento-overlay p { color: var(--accent-soft); font-family: var(--font-tamil); font-size: 14px; }

/* =====================================================================
   How it works
   ===================================================================== */
.how { background: var(--bg-soft); }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps-line { position: absolute; top: 34px; left: 8%; width: 84%; height: 40px; overflow: visible; }
.steps-line path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 6 7; vector-effect: non-scaling-stroke; }
.step { position: relative; text-align: center; padding: 0 10px; }
.step-num {
    width: 76px; height: 76px;
    margin: 0 auto 26px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--bg);
    border: 1px solid var(--accent);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--brand);
    position: relative;
    z-index: 1;
    transition: background .4s, color .4s;
}
.step:hover .step-num { background: var(--brand); color: var(--bg); }
.step h3 { font-family: var(--font-display); font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--muted); max-width: 30ch; margin: 0 auto; }

/* =====================================================================
   Success stories — Before → After
   ===================================================================== */
.stories { background: var(--brand); color: var(--bg); position: relative; overflow: hidden; }
.stories::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(45% 60% at 100% 0%, rgba(242, 165, 65, .2), transparent 70%);
    pointer-events: none;
}
.stories .container { position: relative; }
.stories-lead { color: rgba(246, 246, 250, .75); max-width: 36ch; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.story {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 30px 28px 26px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    transition: transform .6s var(--ease), background .4s, border-color .4s;
}
.story:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .09); border-color: rgba(242, 165, 65, .45); }
.story-shift { display: flex; align-items: stretch; gap: 10px; }
.shift-from, .shift-to {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.25;
}
.shift-from small, .shift-to small { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; opacity: .75; }
.shift-from { border: 1px dashed rgba(255, 255, 255, .3); color: rgba(246, 246, 250, .85); }
.shift-to { background: var(--accent); color: var(--brand-deep); }
.shift-arrow { align-self: center; color: var(--accent-soft); font-size: 20px; }
.story blockquote { margin: 0; flex: 1; font-family: var(--font-display); font-size: 16px; line-height: 1.6; color: var(--bg); }
.story-result { display: flex; align-items: baseline; gap: 10px; padding-top: 18px; border-top: 1px dashed rgba(255, 255, 255, .18); }
.story-result strong { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--accent-soft); }
.story-result small { color: rgba(246, 246, 250, .7); font-size: 13.5px; }
.story-person { display: flex; align-items: center; gap: 14px; }
.story-person strong { display: block; }
.story-person small { color: var(--accent-soft); }
.s-photo {
    width: 50px; height: 50px;
    flex: none;
    border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .1);
    border: 1px dashed rgba(255, 255, 255, .35);
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(246, 246, 250, .7);
    overflow: hidden;
}
.s-photo img { width: 100%; height: 100%; object-fit: cover; }

/* =====================================================================
   Reviews
   ===================================================================== */
.review-grid { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 24px; align-items: stretch; }
.review {
    margin: 0;
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 44px 32px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
    transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.review:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.quote-mark { position: absolute; top: 4px; left: 26px; font-family: var(--font-display); font-size: 90px; line-height: 1; color: var(--accent); opacity: .55; }
.review blockquote { margin: 0; font-family: var(--font-display); font-size: 17px; line-height: 1.6; color: var(--ink); position: relative; }
.review blockquote[lang="ta"] { font-family: var(--font-tamil); font-size: 15.5px; line-height: 1.75; }
.review figcaption { display: flex; align-items: center; gap: 14px; }
.review figcaption strong { display: block; }
.review figcaption small { color: var(--muted); }
.r-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--bg-soft);
    color: var(--brand);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
}
.review-feature { background: var(--brand); border-color: var(--brand); transform: translateY(-18px); }
.review-feature:hover { transform: translateY(-24px); }
.review-feature blockquote, .review-feature figcaption strong { color: var(--bg); }
.review-feature small { color: var(--accent-soft) !important; }
.review-feature .r-avatar { background: var(--accent); color: var(--brand-deep); }

/* =====================================================================
   App
   ===================================================================== */
.app { padding-top: 0; background: var(--accent-tint); }
.app-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 40px;
    background: var(--brand-deep);
    color: var(--bg);
    border-radius: 40px;
    padding: clamp(40px, 6vw, 80px);
    overflow: hidden;
    position: relative;
    max-width: calc(var(--container) - 2 * var(--gutter));
}
.app-card::before {
    content: "";
    position: absolute;
    width: 520px; height: 520px;
    border-radius: 50%;
    border: 1px dashed rgba(242, 165, 65, .35);
    right: -140px; top: -180px;
}
.app-copy p { color: var(--accent-soft); margin: 18px 0 30px; max-width: 40ch; }
.store-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.store-btn {
    display: flex;
    flex-direction: column;
    padding: 12px 22px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .25);
    font-weight: 700;
    font-size: 17px;
    line-height: 1.15;
    transition: background .3s, border-color .3s;
}
.store-btn small { font-weight: 500; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.store-btn:hover { background: rgba(255, 255, 255, .08); border-color: var(--accent); }
.app-visual { position: relative; aspect-ratio: 4 / 4.4; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; }
.app-visual img { width: 100%; height: 115%; object-fit: cover; }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.faq-lead { color: var(--muted); margin-top: 18px; max-width: 38ch; }
.faq-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.faq-actions .btn-outline { margin-top: 0; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
    list-style: none;
    cursor: pointer;
    padding: 26px 50px 26px 0;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    position: relative;
    transition: color .3s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 4px; top: 50%;
    width: 34px; height: 34px;
    margin-top: -17px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: grid; place-items: center;
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--brand);
    transition: transform .5s var(--ease), background .3s, color .3s;
}
.faq-list details[open] summary::after { transform: rotate(135deg); background: var(--brand); color: var(--bg); }
.faq-list summary:hover { color: var(--brand); }
.faq-list details p { color: var(--muted); padding: 0 50px 26px 0; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { background: var(--brand-deep); color: var(--bg); padding: clamp(70px, 9vw, 110px) 0 30px; }
.footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-cta h2 { font-family: var(--font-display); font-size: clamp(28px, 3.8vw, 46px); line-height: 1.18; max-width: 16ch; }
.footer-cta h2 em { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr .85fr 1.15fr; gap: 40px 32px; padding: 60px 0; }
.footer-brand p { color: rgba(246, 246, 250, .7); margin: 22px 0; max-width: 34ch; font-size: 15px; }
.site-footer h4 { font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: rgba(246, 246, 250, .75); font-size: 15px; }
.site-footer ul a:hover { color: var(--accent-soft); }
.footer-callback {
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent-soft);
    font: 600 15px/1.4 var(--font-body);
    cursor: pointer;
}
.footer-callback .arrow { display: inline-block; transition: transform .4s var(--ease); }
.footer-callback:hover .arrow { transform: translateX(4px); }
.socials { display: flex; gap: 10px; }
.socials a {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    display: grid; place-items: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    transition: background .3s, color .3s, border-color .3s;
}
.socials a:hover { background: var(--accent); color: var(--brand-deep); border-color: var(--accent); }
.footer-bottom {
    /* room on the right for the floating WhatsApp bubble, which used to cut "… in Tamil Nadu" */
    padding-right: 84px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 13.5px;
    color: rgba(246, 246, 250, .55);
}

.wa-float {
    position: fixed;
    right: 22px; bottom: 22px;
    z-index: 40;
    width: 58px; height: 58px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: #25D366;
    color: #fff;
    box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .35);
    transition: transform .4s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.08) rotate(-8deg); }

/* =====================================================================
   Request a callback dialog
   ===================================================================== */
.callback-dialog {
    width: min(460px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 28px;
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 40px 90px -30px rgba(10, 13, 36, .6);
    overflow: auto;
    overscroll-behavior: contain;
}
.callback-dialog[open] { animation: cb-in .45s var(--ease); }
.callback-dialog::backdrop { background: rgba(10, 13, 36, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@keyframes cb-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }

.cb-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 38px; height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    color: var(--brand);
    display: grid; place-items: center;
    cursor: pointer;
    transition: background .3s, color .3s;
}
.cb-close svg { width: 16px; height: 16px; }
.cb-close:hover { background: var(--brand); color: var(--bg); }

.cb-form, .cb-done { padding: 34px 30px 28px; }
.cb-form .eyebrow { margin-bottom: 10px; }
.cb-form h2, .cb-done h2 { font-family: var(--font-display); font-size: 28px; line-height: 1.2; }
.cb-lead { color: var(--muted); font-size: 15px; margin: 10px 0 24px; }

.cb-field { display: block; margin-bottom: 16px; }
.cb-field > span:first-child, .cb-times legend { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.cb-field input, .cb-field select {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1px solid var(--sand);
    border-radius: 14px;
    background: var(--bg);
    color: var(--ink);
    font: 500 16px var(--font-body);
    transition: border-color .3s, box-shadow .3s, background .3s;
}
.cb-field input:focus, .cb-field select:focus { outline: none; border-color: var(--brand); background: var(--white); box-shadow: 0 0 0 4px rgba(38, 48, 107, .12); }
.cb-field input[aria-invalid="true"] { border-color: #C2410C; }
.cb-phone { display: flex; align-items: stretch; }
.cb-cc {
    display: grid; place-items: center;
    padding: 0 14px;
    border: 1px solid var(--sand);
    border-right: 0;
    border-radius: 14px 0 0 14px;
    background: var(--bg-soft);
    font-weight: 600;
    color: var(--brand);
}
.cb-phone input { border-radius: 0 14px 14px 0; }

.cb-times { border: 0; margin: 0 0 18px; padding: 0; }
.cb-times label { display: inline-block; margin: 0 6px 6px 0; }
.cb-times input { position: absolute; opacity: 0; pointer-events: none; }
.cb-times span {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--sand);
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: background .3s, color .3s, border-color .3s;
}
.cb-times input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--bg); }
.cb-times input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.cb-error { min-height: 0; color: #C2410C; font-size: 14px; font-weight: 600; }
.cb-error:not(:empty) { margin-bottom: 12px; }
.cb-submit { width: 100%; }
.cb-note { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }

.cb-done { text-align: center; padding-top: 48px; }
.cb-done-icon {
    width: 68px; height: 68px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--accent);
    color: var(--ink);
    font-size: 30px;
    font-weight: 700;
}
.cb-done p { color: var(--muted); margin-top: 12px; }
.cb-done-alt { font-size: 14px; }
.cb-done-alt a { color: var(--brand); font-weight: 700; }
.cb-done .btn-outline { margin-top: 24px; }

/* =====================================================================
   Animation initial states (only when JS animations are on)
   ===================================================================== */
.js-anim [data-reveal] { opacity: 0; transform: translateY(40px); }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1080px) {
    .main-nav { gap: 20px; }
    .link-login { display: none; }
    .btn-callback { padding: 0 12px; }
    .trust-grid { grid-template-columns: 1fr 1fr; gap: 22px 24px; }
    .trust-item:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 960px) {
    .main-nav, .header-actions .btn, .header-actions .icon-btn, .btn-callback { display: none; }
    .menu-toggle { display: block; }
    .story-grid { grid-template-columns: 1fr; max-width: 560px; }


    .course-grid > * { flex-basis: calc((100% - 30px) / 2); }
    .bento { grid-template-columns: 1fr 1fr; }
    .bento-image { grid-column: span 2; grid-row: auto; min-height: 380px; }
    .review-grid { grid-template-columns: 1fr; }
    .review-feature, .review-feature:hover { transform: none; }
    .app-card { grid-template-columns: 1fr; }
    .app-visual { max-width: 380px; }
    .faq-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }

}

@media (max-width: 640px) {
    .offer-long, .offer-link { display: none; }
    .offer-short { display: inline; }
    .offer-inner { justify-content: flex-start; padding-right: 40px; }
    .offer-text { gap: 8px; font-size: 13px; }
    .offer-tag { padding: 3px 8px; font-size: 10px; letter-spacing: .04em; }

    .trust-grid { grid-template-columns: 1fr; gap: 16px; }
    .trust-item + .trust-item { border-left: 0; padding-left: 0; }
    .story { padding: 26px 22px 22px; }
    .cb-form, .cb-done { padding: 30px 22px 24px; }

    .highlights-grid { grid-template-columns: 1fr 1fr; }
    .hl:nth-child(2) { border-right: 0; }
    .hl:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .14); }

    .bento, .steps { grid-template-columns: 1fr; }
    .course-grid > * { flex-basis: 100%; }
    .bento-image { grid-column: auto; }
    .steps-line { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding: 48px 0; }
    .footer-brand { grid-column: span 2; }
    .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
    .footer-bottom { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =====================================================================
   Light theme (white + near-black + marigold)
   Chosen by the owner from a reference. Later in the file than the base
   rules, with "body" in front, so it wins without touching them.
   ===================================================================== */
:root { --ink: #0E1130; }
body { background: #F6F7FB; }

/* ---------- header: a floating pill ---------- */
body .site-header,
body .site-header.scrolled { background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body .site-header .header-inner,
body .site-header.scrolled .header-inner {
    width: max-content;
    max-width: calc(100% - 32px);
    margin: 12px auto 0;
    padding: 8px 8px 8px 14px;
    gap: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    box-shadow: 0 14px 40px -24px rgba(14, 17, 48, .5);
}
body .site-header .brand { color: var(--ink); gap: 9px; }
body .site-header .brand-mark { width: 38px; height: 38px; padding: 6px; border-radius: 50%; background: var(--ink); color: #fff; }
body .site-header .brand-tag { display: none; }
body .site-header .brand-name { font-family: var(--font-body); font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
body .main-nav { gap: 26px; }
body .main-nav a { font-size: 12.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; opacity: .75; transition: opacity .3s; }
body .main-nav a:hover, body .main-nav a.active { opacity: 1; }
body .main-nav a::after { display: none; }
body .header-actions { gap: 10px; }
body .header-actions .icon-btn { display: none; }
body .link-login { font-size: 12.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
body .btn-callback { white-space: nowrap; }
body .site-header .menu-toggle { width: 40px; height: 40px; background: var(--ink); border-color: var(--ink); }
body .site-header .menu-toggle span { left: 11px; right: 11px; background: #fff; }
body .site-header .menu-toggle span:nth-child(1) { top: 15px; }
body .site-header .menu-toggle span:nth-child(2) { top: 23px; }
body.menu-open .site-header .menu-toggle span:nth-child(1), body.menu-open .site-header .menu-toggle span:nth-child(2) { top: 19px; }
body.menu-open .site-header .header-inner { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.menu-open .site-header .brand { color: var(--bg); }
body.menu-open .site-header .brand-mark { background: #fff; color: var(--ink); }
body .mobile-menu { background: var(--ink); }
body .offer-strip { background: var(--ink); }

/* ---------- shared pieces ---------- */
body .eyebrow { color: var(--muted); }
body .eyebrow-light { color: var(--accent-soft); }
body .link-arrow { color: var(--ink); }
body .btn-primary { background: var(--ink); color: #fff; box-shadow: 0 14px 30px -14px rgba(14, 17, 48, .6); }
body .btn-primary:hover { background: #000; }
body .btn-accent { color: var(--ink); }
body .btn-outline { border-color: var(--ink); color: var(--ink); }
body .btn-outline:hover { background: var(--ink); color: #fff; }
/* headings read from the left, not centred like a template */
body .section-head.center { align-items: flex-start; text-align: left; }
body .section-head.center .section-title { max-width: 22ch; }

/* ---------- sections: white / grey / near-black, one after another ---------- */
body .courses { background: #fff; }
body .designs { background: #fff; }
body .why { background: #F6F7FB; }
body .how { background: #F6F7FB; }
body .stories { background: var(--ink); }
body .reviews { background: #fff; }
body .faq { background: #F6F7FB; }
body .site-footer { background: var(--ink); }

body .course-card { box-shadow: 0 24px 44px -34px rgba(14, 17, 48, .45); }
body .course-badge { background: var(--ink); }
body .badge-soon { background: var(--accent); color: var(--ink); }
body .price strong { color: var(--ink); }
body .btn-round { background: var(--ink); }
body .btn-round:hover { background: var(--accent); }

body .bento-icon { background: var(--accent); color: var(--ink); }
body .bento-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body .bento-accent { background: var(--ink); border-color: var(--ink); }
body .bento-accent .bento-icon { background: rgba(255, 255, 255, .12); color: var(--accent); }

body .steps-line { display: none; }
body .step { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px; transition: border-color .4s, transform .6s var(--ease); }
body .step:hover { border-color: rgba(242, 165, 65, .7); transform: translateY(-6px); }
body .step-num { margin: 0 0 20px; width: 56px; height: 56px; font-size: 20px; background: var(--accent); border: 0; color: var(--ink); }
body .step:hover .step-num { background: var(--ink); color: #fff; }
body .step h3 { font-size: 22px; }
body .step p { margin: 0; max-width: none; }

body .review-feature { background: var(--ink); border-color: var(--ink); }

/* ---------- light theme: tablets and phones ---------- */
@media (max-width: 960px) {
    body .site-header .header-inner,
    body .site-header.scrolled .header-inner { width: calc(100% - 32px); justify-content: space-between; gap: 12px; }
    body .header-actions { gap: 8px; }
}
@media (max-width: 640px) {
    body .site-header .header-inner, body .site-header.scrolled .header-inner { gap: 8px; padding-left: 10px; }
    body .site-header .brand { gap: 7px; }
    body .site-header .brand-name { font-size: 14.5px; }
    body .site-header .brand-mark { width: 32px; height: 32px; padding: 5px; }
    body .header-actions .pill { padding-left: 12px; gap: 6px; font-size: 10.5px; }
    body .header-actions .pill i { width: 30px; height: 30px; }
}

/* ---------- the hero's faint grid, on every section ---------- */
:root { --grid: rgba(14, 17, 48, .055); --grid-dark: rgba(255, 255, 255, .05); --grid-size: 52px; }
body .courses, body .designs, body .why, body .how, body .reviews, body .faq {
    background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
}
body .stories, body .site-footer {
    background-image: linear-gradient(var(--grid-dark) 1px, transparent 1px), linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
}
@media (max-width: 640px) { :root { --grid-size: 40px; } }

/* the video inside the middle hero card: covers all four sides (like object-fit: cover) */
.hero-card-yt { position: absolute; inset: 0; z-index: -1; overflow: hidden; opacity: 0; transition: opacity 1.2s var(--ease); pointer-events: none; }
.hero-card-yt.is-on { opacity: 1; }
/* 26% taller than the card and centred, so YouTube's title bar at the top of its frame (and the bar at the bottom) is cropped away */
.hero-card-yt iframe { position: absolute; top: 50%; left: 50%; height: 126%; width: auto; aspect-ratio: 16 / 9; border: 0; transform: translate(-50%, -50%); }

/* ---------- one accent colour: the marigold yellow ----------
   Highlighted words in a heading stay in the heading colour with a marigold highlight line under them
   (yellow text itself is hard to read on white). On the near-black bands the word is simply yellow. */
body .section-title em {
    color: inherit;
    background: linear-gradient(180deg, transparent 68%, var(--accent) 68%, var(--accent) 92%, transparent 92%);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding: 0 .08em;
    margin: 0 -.08em;
}
body .section-title.light em { color: var(--accent); background: none; padding: 0; margin: 0; }

/* ---------- Meet your teacher ---------- */
body .teacher {
    background-color: #fff;
    background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
}
.teacher-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.teacher-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden; background: #F6F7FB; border: 1px solid var(--line); }
.teacher-photo > img { width: 100%; height: 100%; object-fit: cover; }
/* shown until the real photo is added */
.teacher-photo-empty { position: absolute; inset: 16px; border: 2px dashed rgba(14, 17, 48, .18); border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 600; }
.teacher-photo-empty svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.teacher-play { position: absolute; left: 18px; bottom: 18px; display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 14px 30px -16px rgba(14, 17, 48, .5); cursor: pointer; text-align: left; font: inherit; color: var(--ink); transition: transform .4s var(--ease); }
.teacher-play:hover { transform: translateY(-2px); }
.teacher-play i { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; transition: background .3s, color .3s; }
.teacher-play:hover i { background: var(--accent); color: var(--ink); }
.teacher-play i svg { width: 16px; height: 16px; margin-left: 2px; }
.teacher-play strong { display: block; font-size: 14px; }
.teacher-play small { display: block; font-size: 12px; color: var(--muted); }

.teacher-ta { font-family: var(--font-tamil); color: var(--muted); margin-top: 10px; }
.teacher-lead { margin-top: 18px; color: var(--muted); font-size: 16px; line-height: 1.75; max-width: 48ch; }
.teacher-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.teacher-stats div { padding: 18px 18px 16px; border-radius: 18px; background: #F6F7FB; border: 1px solid var(--line); }
.teacher-stats strong { display: block; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.teacher-stats span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.teacher-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 30px; }
.teacher-call { background: none; border-top: 0; border-left: 0; border-right: 0; padding-left: 0; padding-right: 0; font: 600 15px var(--font-body); cursor: pointer; }

/* ---------- footer social icons ---------- */
.socials a svg { width: 18px; height: 18px; }
.socials a svg.line { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
    .teacher-grid { grid-template-columns: 1fr; }
    .teacher-photo { max-width: 460px; }
}
@media (max-width: 520px) {
    .teacher-stats { grid-template-columns: 1fr 1fr; }
    .teacher-stats div:last-child { grid-column: span 2; }
}

/* ---------- Tamil / English switch ---------- */
.lang-btn { height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 600 13px/1 var(--font-body); cursor: pointer; white-space: nowrap; transition: background .3s, color .3s, border-color .3s; }
.lang-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.footer-lang { margin-right: 10px; padding: 5px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: none; color: var(--bg); font: 600 12.5px var(--font-body); cursor: pointer; }
.footer-lang:hover { border-color: var(--accent); color: var(--accent-soft); }
.mobile-menu-links a.mm-lang { font-size: clamp(18px, 5vw, 22px); color: var(--bg); opacity: .8; margin-top: 4px; }
html.lang-pending main, html.lang-pending .site-header, html.lang-pending .site-footer { visibility: hidden; }
@media (max-width: 1180px) { body .site-header .btn-callback { display: none; } }
@media (max-width: 960px) { .header-actions .lang-btn { display: none; } }

/* Tamil words are longer and taller: smaller headings, no letter-spacing (it breaks Tamil letters) */
html[lang="ta"] .hero-title { font-size: clamp(28px, 4vw, 50px); line-height: 1.25; letter-spacing: 0; }
html[lang="ta"] .section-title { font-size: clamp(25px, 3.1vw, 40px); line-height: 1.32; letter-spacing: 0; }
html[lang="ta"] .footer-cta h2 { font-size: clamp(24px, 3.1vw, 38px); line-height: 1.32; }
html[lang="ta"] .eyebrow, html[lang="ta"] .pill, html[lang="ta"] .main-nav a, html[lang="ta"] .link-login,
html[lang="ta"] .offer-tag, html[lang="ta"] .site-footer h4 { letter-spacing: 0; text-transform: none; }
html[lang="ta"] .main-nav { gap: 18px; }
html[lang="ta"] .main-nav a { font-size: 13px; }
/* lines that are already Tamil in the English page would repeat */
html[lang="ta"] .hero-tamil, html[lang="ta"] .teacher-ta, html[lang="ta"] .bento-overlay p { display: none; }
/* Tamil menu words are longer: drop the header Callback button below 1440px (it is also in the menu, FAQ and footer) */
@media (max-width: 1440px) { html[lang="ta"] body .site-header .btn-callback { display: none; } }
.hero-proof-text { text-align: left; }
@media (max-width: 600px) { .hero-proof { max-width: 340px; } }

/* ---------- Free demo lesson (dark card under the course cards) ---------- */
.demo-card { margin-top: clamp(56px, 7vw, 88px); display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding: clamp(28px, 4.5vw, 56px); border-radius: 36px; color: #fff;
    background-color: var(--ink); background-image: linear-gradient(var(--grid-dark) 1px, transparent 1px), linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px); background-size: var(--grid-size) var(--grid-size); }
.demo-lead { color: rgba(255, 255, 255, .72); font-size: 16px; line-height: 1.7; margin: 18px 0 24px; max-width: 46ch; }
.demo-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.demo-list li { position: relative; padding-left: 36px; font-weight: 500; line-height: 1.5; }
.demo-list li::before { content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E1130' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.demo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.demo-card .pill { background: #fff; color: var(--ink); }
.demo-card .pill i { background: var(--ink); color: #fff; }
.demo-card .pill:hover i { background: var(--accent); color: var(--ink); }
.demo-wa { font-size: 14px; font-weight: 600; color: #fff; padding-bottom: 3px; border-bottom: 2px solid var(--accent); transition: color .3s; }
.demo-wa:hover { color: var(--accent); }
.demo-video { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 26px; overflow: hidden; cursor: pointer; background: #23284d; isolation: isolate; }
.demo-video img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.demo-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 17, 48, .8), rgba(14, 17, 48, 0) 55%); }
.demo-video:hover img { transform: scale(1.05); }
.demo-play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(255, 255, 255, .22); transition: transform .4s var(--ease), background .3s; }
.demo-play svg { width: 26px; height: 26px; margin-left: 4px; }
.demo-video:hover .demo-play { transform: scale(1.08); background: var(--accent); }
.demo-tag { position: absolute; z-index: 2; left: 18px; top: 18px; padding: 7px 14px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.demo-meta { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; display: grid; gap: 2px; text-align: left; color: #fff; }
.demo-meta b { font-size: 18px; font-weight: 600; }
.demo-meta small { font-size: 13px; opacity: .8; }
html[lang="ta"] .demo-tag { letter-spacing: 0; text-transform: none; }
@media (max-width: 900px) {
    .demo-card { grid-template-columns: 1fr; border-radius: 28px; }
    .demo-video { order: -1; }
}
@media (max-width: 600px) {
    .demo-card { padding: 16px 16px 28px; gap: 26px; }
    .demo-text { padding: 0 6px; }
    .demo-video { border-radius: 20px; }
    .demo-play { width: 66px; height: 66px; margin: -33px 0 0 -33px; box-shadow: 0 0 0 9px rgba(255, 255, 255, .22); }
}

/* ---------- Free lessons on YouTube ---------- */
body .yt { background-color: #F6F7FB; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: var(--grid-size) var(--grid-size); }
.yt-sub { display: inline-flex; align-items: center; gap: 12px; padding: 7px 22px 7px 7px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); transition: transform .4s var(--ease), border-color .3s; }
.yt-sub i { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: background .3s, color .3s; }
.yt-sub svg { width: 19px; height: 19px; }
.yt-sub span { display: grid; line-height: 1.3; }
.yt-sub b { font-size: 14px; font-weight: 600; }
.yt-sub small { font-size: 12px; color: var(--muted); }
.yt-sub:hover { transform: translateY(-2px); border-color: var(--accent); }
.yt-sub:hover i { background: var(--accent); color: var(--ink); }
.yt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.yt-card { display: block; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: var(--ink); }
.yt-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: var(--sand); }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.yt-card:hover .yt-thumb img { transform: scale(1.06); }
.yt-dur { position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 8px; background: rgba(14, 17, 48, .85); color: #fff; font-size: 12px; font-weight: 600; font-style: normal; line-height: 1.5; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--ink); display: grid; place-items: center; transform: scale(.88); transition: transform .4s var(--ease), background .3s; }
.yt-play svg { width: 18px; height: 18px; margin-left: 3px; }
.yt-card:hover .yt-play { transform: scale(1); background: var(--accent); }
.yt-title { display: block; margin-top: 14px; font-size: 15.5px; font-weight: 600; line-height: 1.45; }

/* The free YouTube lessons sit on a dark band, so the videos anyone can watch for nothing read as a
   thing of their own and not as more of the paid course cards above them. The band keeps inside the
   page gutter and is rounded like every card on the site. It is also lifted over the thread drawing
   (z-index 5), which used to run its green spool straight across the first video's title. */
.yt { position: relative; z-index: 6; padding: clamp(26px, 3.4vw, 46px) 0; --yt-pad: clamp(22px, 3.4vw, 54px); }
.yt > .container { position: relative; max-width: min(var(--container), calc(100% - 2 * var(--gutter))); padding: clamp(38px, 5vw, 64px) var(--yt-pad); border-radius: clamp(24px, 2.6vw, 36px); background: var(--brand-deep); overflow: hidden; }
.yt > .container::before { content: ""; position: absolute; inset: 0; background: radial-gradient(42% 58% at 100% 0%, rgba(242, 165, 65, .22), transparent 70%); pointer-events: none; }
.yt .section-head, .yt .yt-grid { position: relative; }
.yt .yt-title { color: var(--bg); }
.yt .yt-thumb { background: rgba(255, 255, 255, .08); }
/* the real YouTube red, so the button is read as "this one plays on YouTube" */
.yt .yt-play { background: #FF0000; color: #fff; }
.yt .yt-card:hover .yt-play, .yt .yt-card:focus-visible .yt-play { background: #FF0000; transform: scale(1.04); }
.yt .yt-card:hover .yt-thumb, .yt .yt-card:focus-visible .yt-thumb { box-shadow: 0 0 0 3px var(--accent); }
@media (max-width: 1024px) { .yt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
    /* phones: swipe sideways through the videos */
    /* the swipe row runs to both edges of the dark band, so its own padding is the band's, not the page gutter */
    .yt-grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--yt-pad); margin: 0 calc(-1 * var(--yt-pad)); padding: 0 var(--yt-pad) 6px; scrollbar-width: none; }
    .yt-grid::-webkit-scrollbar { display: none; }
    .yt-card { flex: 0 0 80%; scroll-snap-align: start; }
    /* on a phone the band runs to both edges: the rounded corners would sit on the screen edge anyway, and the videos get the whole width */
    .yt { padding: 0; }
    .yt > .container { max-width: none; border-radius: 0; }
}

/* ---------- Students' work: two photo rows sliding in opposite directions ---------- */
body .work { background-color: #F6F7FB; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: var(--grid-size) var(--grid-size); overflow: hidden; }
body .reviews { background-color: #fff; }
.work-note { max-width: 40ch; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.work-rows { display: grid; gap: 18px; }
.work-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.work-track { display: flex; gap: 18px; width: max-content; animation: work-slide 60s linear infinite; }
.work-row-rev .work-track { animation-direction: reverse; }
.work-row:hover .work-track { animation-play-state: paused; }
.work-set { display: flex; gap: 18px; }
@keyframes work-slide { to { transform: translateX(calc(-50% - 9px)); } }
.work-card { position: relative; flex: 0 0 auto; width: clamp(190px, 21vw, 270px); aspect-ratio: 4 / 5; margin: 0; border-radius: 24px; overflow: hidden; background: var(--sand); }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.work-card:hover img { transform: scale(1.06); }
.work-card figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; display: grid; gap: 1px; padding: 9px 14px; border-radius: 16px; background: rgba(255, 255, 255, .94); color: var(--ink); line-height: 1.35; }
.work-card b { font-size: 13.5px; font-weight: 600; }
.work-card small { font-size: 11.5px; color: var(--muted); }
.work-cta { margin-top: clamp(30px, 4vw, 44px); display: flex; justify-content: center; }
@media (max-width: 640px) {
    .work-rows, .work-track, .work-set { gap: 12px; }
    @keyframes work-slide { to { transform: translateX(calc(-50% - 6px)); } }
    .work-track { animation-duration: 45s; }
    .work-card { width: 46vw; border-radius: 18px; }
    .work-card figcaption { left: 7px; right: 7px; bottom: 7px; padding: 7px 10px; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .work-track { animation: none; }
    .work-row { overflow-x: auto; }
}

/* ---------- Certificate (end of "How it works") ---------- */
.cert { margin-top: clamp(72px, 9vw, 120px); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.cert-lead { color: var(--muted); font-size: 16px; line-height: 1.7; margin: 18px 0 24px; max-width: 46ch; }
.cert-visual { position: relative; padding: 16px 16px 28px; }
.cert-paper { position: relative; padding: clamp(26px, 3.6vw, 44px) clamp(22px, 3.4vw, 44px); border-radius: 18px; background: #fff; color: var(--ink); text-align: center; border: 1px solid var(--line); box-shadow: 0 40px 80px -42px rgba(14, 17, 48, .5); transform: rotate(-2deg); transition: transform .8s var(--ease); }
.cert-visual:hover .cert-paper { transform: rotate(0); }
.cert-paper::before { content: ""; position: absolute; inset: 10px; border: 1.5px solid var(--accent); border-radius: 12px; pointer-events: none; }
.cert-paper::after { content: ""; position: absolute; inset: 15px; border: 1px solid var(--line); border-radius: 9px; pointer-events: none; }
.cert-brand { display: inline-flex; align-items: center; gap: 10px; text-align: left; }
.cert-brand svg { width: 40px; height: 40px; padding: 6px; border-radius: 50%; background: var(--ink); color: #fff; }
.cert-brand span { font-size: 17px; font-weight: 700; line-height: 1.15; }
.cert-brand small { display: block; font-size: 8.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.cert-kicker { margin: 20px 0 0; font-size: clamp(19px, 2.3vw, 27px); font-weight: 700; letter-spacing: .01em; }
.cert-small { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.cert-name { display: inline-block; min-width: 62%; margin: 6px 0 0; padding-bottom: 6px; border-bottom: 1.5px solid var(--line); font-size: clamp(21px, 2.5vw, 29px); font-weight: 600; }
.cert-course { display: inline-block; margin: 8px 0 0; padding: 0 6px; font-size: 18px; font-weight: 600; background: linear-gradient(transparent 62%, rgba(242, 165, 65, .55) 62%); }
.cert-foot { margin-top: 26px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px; }
.cert-sign { text-align: left; }
.cert-sign span { display: block; padding-bottom: 4px; margin-bottom: 4px; border-bottom: 1px solid var(--ink); font-size: 15px; font-style: italic; color: var(--muted); }
.cert-sign small, .cert-qr small { font-size: 10.5px; color: var(--muted); }
.cert-seal svg { width: 66px; height: 66px; display: block; }
.cert-qr { justify-self: end; text-align: center; }
.cert-qr svg { display: block; width: 58px; height: 58px; margin: 0 auto 4px; color: var(--ink); }
.cert-chip { position: absolute; right: 0; bottom: 0; z-index: 2; display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 9px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-soft); }
.cert-chip i { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 700; }
@media (max-width: 900px) { .cert { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
    .cert-visual { padding: 0 0 26px; }
    .cert-paper { transform: none; }
    .cert-foot { grid-template-columns: 1fr auto; }
    .cert-seal { display: none; }
    .cert-chip { right: 50%; transform: translateX(50%); white-space: nowrap; }
}

/* ---------- Compare courses (under the course cards) ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.compare { margin-top: 36px; }
.compare summary { display: flex; width: max-content; margin: 0 auto; align-items: center; gap: 12px; padding: 7px 7px 7px 22px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; transition: border-color .3s, transform .4s var(--ease); }
.compare summary::-webkit-details-marker { display: none; }
.compare summary:hover { border-color: var(--accent); transform: translateY(-2px); }
.compare summary i { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: transform .4s var(--ease); }
.compare summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.compare[open] summary i { transform: rotate(180deg); }
.compare[open] .compare-scroll { animation: cmp-in .6s var(--ease); }
@keyframes cmp-in { from { opacity: 0; transform: translateY(-10px); } }
.compare-scroll { margin-top: 26px; overflow-x: auto; border-radius: 26px; border: 1px solid var(--line); background: #fff; box-shadow: 0 24px 44px -34px rgba(14, 17, 48, .45); }
.compare-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14.5px; color: var(--ink); }
.compare-table th, .compare-table td { padding: 15px 22px; text-align: center; border-bottom: 1px solid var(--line); }
.compare-table thead th { padding-top: 24px; font-size: 16px; font-weight: 600; vertical-align: bottom; }
.compare-table tbody th { text-align: left; font-weight: 500; color: var(--muted); }
.compare-table th[scope="row"] { position: sticky; left: 0; z-index: 1; background: #fff; }
.compare-table tbody tr:hover td, .compare-table tbody tr:hover th { background: #FAFAFD; }
.compare-table tfoot th, .compare-table tfoot td { border-bottom: 0; padding-top: 20px; padding-bottom: 24px; }
.cmp-soon { display: block; width: max-content; margin: 6px auto 0; padding: 2px 10px; border-radius: 999px; background: var(--accent); font-size: 11px; font-weight: 600; }
.cmp-yes { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: 13px; font-weight: 700; }
.cmp-no { color: #B3B5C6; }
.cmp-price strong { font-size: 18px; font-weight: 700; }
.cmp-price s { margin-left: 4px; font-size: 13px; color: var(--muted); }
.compare-table .pill { padding-left: 18px; }
.cmp-notify { font-size: 13px; font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
@media (max-width: 640px) {
    .compare-table { font-size: 13.5px; min-width: 560px; }
    .compare-table th, .compare-table td { padding: 13px 14px; }
}

/* ---------- Phone bottom bar ---------- */
.mbar { display: none; }
.wa-float { transition: transform .4s var(--ease), opacity .3s; }
@media (max-width: 640px) {
    .mbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: 0 18px 40px -16px rgba(14, 17, 48, .45); transform: translateY(150%); transition: transform .5s var(--ease); }
    body.show-mbar .mbar { transform: none; }
    body.menu-open .mbar { transform: translateY(150%); }
    body.show-mbar .wa-float { opacity: 0; pointer-events: none; transform: scale(.6); }
    .mbar-btn { flex: 1; min-width: 0; height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; color: var(--ink); font-size: 13px; font-weight: 600; transition: background .3s; }
    .mbar-btn:active { background: var(--bg-soft); }
    .mbar-btn svg { width: 19px; height: 19px; flex: none; }
    .mbar-wa svg { color: #1FAF54; }
    .mbar-pill { flex: none; padding: 5px 5px 5px 16px; gap: 8px; font-size: 11px; }
    .mbar-pill i { width: 34px; height: 34px; }
    .site-footer { padding-bottom: 76px; }
}

/* ---------- Secure payment line (under the compare button) ---------- */
.pay-safe { margin: 18px 0 0; display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; font-size: 13px; color: var(--muted); }
.pay-safe svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Who it's for + what you need ---------- */
body .who, body .path, body .earn { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: var(--grid-size) var(--grid-size); }
body .who { background-color: #F6F7FB; }
body .path { background-color: #fff; }
body .earn { background-color: #fff; }
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.who-card { padding: 28px 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: border-color .4s, transform .6s var(--ease); }
.who-card:hover { border-color: rgba(242, 165, 65, .7); transform: translateY(-6px); }
.who-card h3 { margin: 20px 0 8px; font-size: 19px; }
.who-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.who-icon { width: 50px; height: 50px; flex: none; border-radius: 16px; background: var(--accent); color: var(--ink); display: grid; place-items: center; }
.who-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.needs { margin-top: 22px; display: flex; align-items: center; gap: 28px; padding: 22px 28px; border-radius: var(--radius-lg); background: var(--ink); color: #fff; }
.needs-title { margin: 0; flex: none; max-width: 9ch; font-size: 20px; line-height: 1.3; color: #fff; }
.needs-list { flex: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.needs-list li { display: flex; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 500; line-height: 1.4; }
.needs-list .who-icon { width: 42px; height: 42px; border-radius: 13px; background: rgba(255, 255, 255, .1); color: var(--accent); }
.needs-list .who-icon svg { width: 21px; height: 21px; }

/* ---------- Learning path + online vs classroom ---------- */
.path-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: none; }
.path-step { position: relative; padding: 26px 24px 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.path-step:not(:last-child)::after { content: ""; position: absolute; z-index: 2; top: 44px; right: -18px; width: 14px; height: 14px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); }
.path-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--ink); font-weight: 700; }
.path-tag { display: block; margin-top: 18px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.path-step h3 { margin: 6px 0 8px; font-size: 19px; }
.path-step h3 .cmp-soon { display: inline-block; margin: 0 0 0 6px; vertical-align: middle; }
.path-step p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.path-goal { background: var(--ink); border-color: var(--ink); color: #fff; }
.path-goal h3 { color: #fff; }
.path-goal p, .path-goal .path-tag { color: rgba(255, 255, 255, .7); }
html[lang="ta"] .path-tag { letter-spacing: 0; text-transform: none; }
.vs { margin-top: clamp(48px, 6vw, 72px); }
.vs-title { margin: 0 0 18px; font-size: 22px; }
.vs-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14.5px; color: var(--ink); }
.vs-table th, .vs-table td { padding: 15px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.vs-table tbody tr:last-child th, .vs-table tbody tr:last-child td { border-bottom: 0; }
.vs-table thead th { padding-top: 20px; font-size: 15px; font-weight: 600; }
.vs-table tbody th { width: 24%; font-weight: 500; color: var(--muted); }
.vs-table td { color: var(--muted); }
.vs-table .vs-us { width: 38%; background: #FFF8EC; color: var(--ink); font-weight: 600; }
.vs-table thead .vs-us { background: var(--accent); }
.vs-table td.vs-us::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 10px; border-radius: 50%; background: var(--accent); font-size: 11px; font-weight: 700; vertical-align: 1px; }

/* ---------- Earning calculator ---------- */
.earn-card { display: grid; grid-template-columns: 1.15fr 1fr; border-radius: 36px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 30px 60px -44px rgba(14, 17, 48, .5); }
.earn-inputs { padding: clamp(28px, 4vw, 48px); display: grid; gap: 34px; align-content: center; }
.earn-field { display: grid; gap: 16px; cursor: pointer; }
.earn-label { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 15px; font-weight: 500; color: var(--ink); }
.earn-label output { flex: none; min-width: 64px; padding: 4px 12px; border-radius: 999px; background: var(--bg-soft); text-align: center; font-size: 15px; font-weight: 700; }
.earn-range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; margin: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent) var(--fill, 50%), var(--bg-soft) var(--fill, 50%)); cursor: pointer; }
.earn-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 7px solid var(--ink); box-shadow: 0 4px 12px rgba(14, 17, 48, .25); }
.earn-range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 7px solid var(--ink); }
.earn-range:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; }
.earn-note { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.earn-result { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; color: #fff;
    background-color: var(--ink); background-image: linear-gradient(var(--grid-dark) 1px, transparent 1px), linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px); background-size: var(--grid-size) var(--grid-size); }
.earn-kicker { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .7); }
.earn-total { margin: 8px 0 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.earn-total strong { font-size: clamp(40px, 5.4vw, 64px); font-weight: 700; line-height: 1.1; color: var(--accent); }
.earn-total span { font-size: 18px; font-weight: 500; }
.earn-year { margin: 0 0 28px; font-size: 15px; color: rgba(255, 255, 255, .7); }
.earn-year b { color: #fff; }
.earn-result .pill { background: #fff; color: var(--ink); }
.earn-result .pill i { background: var(--ink); color: #fff; }
.earn-result .pill:hover i { background: var(--accent); color: var(--ink); }

@media (max-width: 1024px) {
    .who-grid, .path-steps { grid-template-columns: repeat(2, 1fr); }
    .path-step:nth-child(2)::after { display: none; }
    .needs { flex-direction: column; align-items: flex-start; }
    .needs-title { max-width: none; }
    .needs-list { width: 100%; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
    .earn-card { grid-template-columns: 1fr; border-radius: 28px; }
}
@media (max-width: 640px) {
    .who-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .who-card { padding: 20px 16px; border-radius: 22px; }
    .who-card h3 { margin: 14px 0 6px; font-size: 16px; }
    .who-card p { font-size: 13px; }
    .who-icon { width: 42px; height: 42px; border-radius: 13px; }
    .needs { padding: 22px 18px; border-radius: 22px; }
    .needs-list { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
    .needs-list li { font-size: 12.5px; gap: 10px; }
    .path-steps { grid-template-columns: 1fr; gap: 14px; }
    .path-step { padding: 22px 20px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; }
    .path-step > :not(.path-num) { grid-column: 2; }
    .path-num { grid-row: span 3; }
    .path-tag { margin-top: 0; }
    .path-step::after { display: none; }
    .vs-table th, .vs-table td { padding: 13px 14px; font-size: 13.5px; }
    .earn-label { font-size: 14px; }
}
/* long Tamil words must not push the cards wider than the phone */
.who-card, .earn-card > *, .path-step { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .earn-card { grid-template-columns: minmax(0, 1fr); } }
.story { min-width: 0; overflow-wrap: anywhere; }
/* Tamil menu words are wider: tighter menu on small laptops so the Enroll button stays inside the header */
@media (max-width: 1100px) { html[lang="ta"] .main-nav { gap: 12px; } html[lang="ta"] .main-nav a { font-size: 12.5px; } }

/* ---------- Marquee + numbers band, light theme (back under the hero) ---------- */
body .marquee { color: var(--ink); }
body .marquee-track i { color: var(--ink); }
body .highlights { background-color: var(--ink); background-image: linear-gradient(var(--grid-dark) 1px, transparent 1px), linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px); background-size: var(--grid-size) var(--grid-size); }
body .hl-num { color: var(--accent); font-weight: 700; }
body .hl-num small { color: var(--accent); margin-left: 4px; }
html[lang="ta"] .hl-label { letter-spacing: 0; text-transform: none; font-size: 14px; }
/* Tamil words are long: grid cards may shrink below their longest word instead of pushing out */
.step, .course-card, .bento > *, .review, .who-card { min-width: 0; overflow-wrap: anywhere; }
.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .steps { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { body .hl-label { font-size: 11px; letter-spacing: .08em; } body .hl { padding: 16px 8px; } }

/* ---------- Hero card grows on scroll (main.js) ----------
   The box is laid out at the BIG size (up to 1440px, never taller than the screen) and breaks out of the
   1080px hero column; main.js starts it scaled down to 1080px and grows it to full size as you scroll. */
.hero-cards { position: relative; z-index: 3; width: min(1440px, calc(100vw - 48px), calc((100vh - 48px) * 16 / 9)); max-width: none; margin: 56px 0 0 50%; transform: translateX(-50%); }
.hero-zoom { transform-origin: 50% 0; will-change: transform; }
@media (max-width: 900px) { .hero-cards { width: auto; margin: 36px 0 0; transform: none; } }

/* ---------- Skip link (shows on the first Tab key press) ---------- */
.skip-link { position: fixed; z-index: 200; left: 16px; top: 12px; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; transform: translateY(-160%); transition: transform .3s var(--ease); }
.skip-link:focus { transform: none; }

/* ---------- The academy logo ----------
   Made on 19 Nov 2026 from the artwork the owner sent, kept beside them as logo-tailoringcad-original.webp:
   cropped to the drawing (1678x480 of the 2000x2000 square), scaled to 870x249, and the white behind it turned
   into real transparency, so the outline drawing stays an outline on any colour. The -white pair is the same
   shape painted white for dark backgrounds. The file names still say "fashiondot" because thirteen files point
   at them; the pictures inside are the new ones. */
.fd-logo { display: inline-flex; align-items: center; gap: 12px; }
.fd-logo-img { display: block; height: 42px; width: auto; flex: none; }
.fd-logo-white { display: none; }
.fd-logo-sub { padding-left: 12px; border-left: 1.5px solid rgba(68, 0, 0, .25); color: #440000; font-size: 10px; font-weight: 700; line-height: 1.3; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
html[lang="ta"] .fd-logo-sub { letter-spacing: 0; font-size: 11px; }
body .site-header .brand.fd-logo { gap: 12px; }
body.menu-open .site-header .fd-logo-img { display: none; }
body.menu-open .site-header .fd-logo-white { display: block; }
body.menu-open .site-header .fd-logo-sub { color: #fff; border-color: rgba(255, 255, 255, .3); }
.site-footer .fd-logo-img { height: 58px; }
.site-footer .fd-logo-sub { color: #fff; border-color: rgba(255, 255, 255, .3); font-size: 11.5px; }
.cert-brand.fd-logo { gap: 10px; }
.cert-brand .fd-logo-img { height: 36px; }
.cert-brand .fd-logo-sub { font-size: 8.5px; padding-left: 10px; }
/* narrower screens: the header shows the logo only (the footer and certificate keep "Tailoring Academy") */
@media (max-width: 1240px) { body .site-header .fd-logo-sub { display: none; } }
@media (max-width: 640px) { body .site-header .fd-logo-img { height: 34px; } }
/* the logo now keeps its tagline "A Complete Solution for Tailoring": a little taller so the tagline can be read */
.fd-logo-img { height: 50px; }
.site-footer .fd-logo-img { height: 64px; }
.cert-brand .fd-logo-img { height: 42px; }
@media (max-width: 640px) { body .site-header .fd-logo-img { height: 40px; } }
/* menu comes back quickly once the hero video has scrolled past */
.site-header { transition: background-color .5s, box-shadow .5s, transform .35s var(--ease); }

/* =====================================================================
   About page (AboutUs.aspx, body.page-about)
   ===================================================================== */
.page-hero { position: relative; padding: calc(150px + var(--offer-h)) 0 clamp(56px, 7vw, 90px);
    background-color: #F6F7FB; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: var(--grid-size) var(--grid-size); }
.page-title { margin: 14px 0 0; font-size: clamp(34px, 4.3vw, 56px); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); }
.page-title em { font-style: normal; background: linear-gradient(transparent 68%, rgba(242, 165, 65, .75) 68%); }
.page-lead { margin: 22px 0 0; max-width: 52ch; font-size: 17px; line-height: 1.75; color: var(--muted); }
.page-lead strong { color: var(--ink); font-weight: 600; }
html[lang="ta"] .page-title { font-size: clamp(28px, 3.8vw, 46px); line-height: 1.3; letter-spacing: 0; }
.about-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.about-hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.about-hero-actions .link-arrow { background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; font: inherit; font-weight: 600; color: var(--ink); }
.about-hero-media { position: relative; margin: 0; border-radius: 30px; overflow: hidden; aspect-ratio: 5 / 4; background: var(--sand); box-shadow: 0 40px 70px -46px rgba(14, 17, 48, .55); }
.about-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.about-hero-chip { position: absolute; left: 18px; bottom: 18px; display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: var(--shadow-soft); }
.about-hero-chip > span:first-child { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); font-size: 15px; }
.about-hero-chip b { display: block; font-size: 14px; line-height: 1.2; }
.about-hero-chip small { font-size: 12px; color: var(--muted); }
body .about-numbers { margin-top: 0; }

body .about-story { background-color: #fff; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: var(--grid-size) var(--grid-size); }
.about-story-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.about-story-text p { margin: 0 0 18px; font-size: 16.5px; line-height: 1.8; color: var(--muted); }
.about-story-text p:last-child { margin-bottom: 0; }
.about-placeholder { padding: 12px 16px; border-radius: 14px; border: 1.5px dashed rgba(14, 17, 48, .2); background: #FAFAFD; font-style: italic; }

body .about-do { background-color: #F6F7FB; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: var(--grid-size) var(--grid-size); }
.about-do-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.about-do-card { display: flex; flex-direction: column; align-items: flex-start; padding: 30px 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: border-color .4s, transform .6s var(--ease); }
.about-do-card:hover { border-color: rgba(242, 165, 65, .7); transform: translateY(-6px); }
.about-do-card h3 { margin: 22px 0 8px; font-size: 20px; }
.about-do-card p { margin: 0 0 22px; flex: 1; color: var(--muted); font-size: 15px; line-height: 1.7; }
.about-do-card .link-arrow { font-size: 14px; }
.about-do-main { background: var(--ink); border-color: var(--ink); color: #fff; }
.about-do-main h3 { color: #fff; }
.about-do-main p { color: rgba(255, 255, 255, .72); }
.about-do-main .link-arrow { color: #fff; border-color: var(--accent); }
.about-demo-note { margin: 28px 0 0; text-align: center; font-size: 15px; color: var(--muted); }
.about-demo-note a { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--accent); }

body .about-promise { background-color: #fff; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: var(--grid-size) var(--grid-size); }
.promise-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.promise-list li { padding: 28px 24px; border-top: 3px solid var(--ink); background: #FAFAFD; border-radius: 0 0 22px 22px; }
.promise-num { display: inline-block; font-size: 34px; font-weight: 700; color: var(--ink); line-height: 1; padding: 0 4px; background: linear-gradient(transparent 60%, rgba(242, 165, 65, .55) 60%); }
.promise-list h3 { margin: 18px 0 8px; font-size: 19px; }
.promise-list p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; }

body .about-visit { background-color: #F6F7FB; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: var(--grid-size) var(--grid-size); }
.about-visit-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.visit-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.visit-list li { display: flex; align-items: center; gap: 16px; }
.visit-list b { display: block; font-size: 16px; color: var(--ink); }
.visit-list b a { color: inherit; }
.visit-list small { font-size: 14px; color: var(--muted); }
.about-visit-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.visit-card { position: relative; min-height: 340px; padding: 36px; border-radius: 32px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden;
    background-color: var(--ink); background-image: radial-gradient(circle at 70% 30%, rgba(242, 165, 65, .28), transparent 55%), linear-gradient(var(--grid-dark) 1px, transparent 1px), linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px); background-size: auto, 34px 34px, 34px 34px; }
.visit-pin { position: absolute; top: 40px; right: 44px; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--ink); box-shadow: 0 0 0 14px rgba(242, 165, 65, .2), 0 0 0 30px rgba(242, 165, 65, .08); }
.visit-pin svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.visit-city { margin: 0; font-size: clamp(34px, 4vw, 48px); font-weight: 700; line-height: 1.1; }
.visit-sub { margin: 6px 0 22px; color: rgba(255, 255, 255, .7); }
.visit-social { display: flex; flex-wrap: wrap; gap: 10px; }
.visit-social a { padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); font-size: 13px; font-weight: 600; transition: background .3s, color .3s, border-color .3s; }
.visit-social a:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

@media (max-width: 1024px) {
    .promise-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .page-hero { padding-top: calc(120px + var(--offer-h)); }
    .about-hero-grid, .about-story-grid, .about-visit-grid { grid-template-columns: minmax(0, 1fr); }
    .about-do-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .page-lead { font-size: 15.5px; }
    .about-hero-media { aspect-ratio: 4 / 3; border-radius: 24px; }
    .promise-list { grid-template-columns: minmax(0, 1fr); }
    .visit-card { min-height: 260px; padding: 26px; border-radius: 26px; }
    .visit-pin { top: 26px; right: 26px; width: 64px; height: 64px; }
}

/* ---------- About page additions ---------- */
/* colours: story white, mission grey, what we do white, promise grey, reviews white, faq grey, visit white */
body .about-do { background-color: #fff; }
body .about-promise { background-color: #F6F7FB; }
body .about-promise .promise-list li { background: #fff; }
body .about-visit { background-color: #fff; }
body .about-mission { background-color: #F6F7FB; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: var(--grid-size) var(--grid-size); }
.mission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.mission-card { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.mission-tag { margin: 22px 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mission-text { margin: 0; font-size: clamp(19px, 2vw, 24px); font-weight: 600; line-height: 1.5; color: var(--ink); }
.mission-dark { background: var(--ink); border-color: var(--ink); }
.mission-dark .mission-tag { color: var(--accent); }
.mission-dark .mission-text { color: #fff; }
html[lang="ta"] .mission-tag { letter-spacing: 0; text-transform: none; }
html[lang="ta"] .mission-text { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.7; }
.visit-map-btn { align-self: flex-start; margin-bottom: 18px; background: #fff; color: var(--ink); }
.visit-map-btn i { background: var(--ink); color: #fff; }
.visit-card .visit-map { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.visit-card.has-map { padding: 0; }
.visit-card.has-map > :not(.visit-map) { display: none; }
@media (max-width: 760px) { .mission-grid { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   All Courses page (AllCourses.aspx, body.page-courses)
   ===================================================================== */
.courses-hero-inner { text-align: center; max-width: 860px; }
.courses-hero-inner .eyebrow { justify-content: center; }
.courses-hero-inner .page-lead { margin-left: auto; margin-right: auto; }
.course-tools { margin: 34px auto 0; max-width: 720px; display: grid; gap: 16px; justify-items: center; }
.course-search { width: 100%; display: flex; align-items: center; gap: 12px; padding: 0 8px 0 22px; height: 60px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px -28px rgba(14, 17, 48, .45); transition: border-color .3s, box-shadow .3s; }
.course-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(242, 165, 65, .2); }
.course-search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.course-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--ink); }
.course-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip { height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
body .courses-list { padding-top: clamp(40px, 5vw, 64px); }
.course-count { margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.course-count b { color: var(--ink); }
#courseList > [hidden] { display: none !important; }
.course-access { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
/* the stars, the number of students and the chips (lessons, access time, certificate) on a course card; only real numbers are shown */
.course-rate { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 4px 12px; margin: 14px 0 0; min-height: 20px; font-size: 13px; color: var(--muted); }
.course-rate .cr-star b { color: #B7791F; font-weight: 700; }
.course-rate small { font-size: 12px; color: var(--muted); }
.course-chips { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px 16px; margin: 12px 0 0; padding: 0; list-style: none; text-align: left; }
.course-chips li { display: inline-flex; align-items: center; margin: 0; padding: 0; font-size: 13px; font-weight: 500; color: var(--ink); background: none; }
.course-chips li::before { content: ""; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--accent); flex: none; }
body .badge-free { background: var(--accent); color: var(--ink); }
.course-more { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 34px 30px; background: var(--ink); border-color: var(--ink); color: #fff; }
.course-more h3 { margin: 22px 0 10px; font-size: 22px; color: #fff; }
.course-more p { margin: 0 0 26px; color: rgba(255, 255, 255, .72); line-height: 1.7; font-size: 15px; }
.course-more .pill { background: #fff; color: var(--ink); }
.course-more .pill i { background: var(--ink); color: #fff; }
.course-empty { padding: 48px 24px; text-align: center; border-radius: var(--radius-lg); border: 1.5px dashed rgba(14, 17, 48, .18); background: #fff; }
.course-empty h3 { margin: 0 0 8px; font-size: 22px; }
.course-empty p { margin: 0 0 18px; color: var(--muted); }
body .course-help { background-color: #F6F7FB; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: var(--grid-size) var(--grid-size); }
.course-help-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.course-help-lead { margin: 14px 0 0; max-width: 52ch; color: var(--muted); font-size: 16px; line-height: 1.7; }
.course-help-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
html[lang="ta"] .courses-hero-inner .page-title { font-size: clamp(28px, 3.6vw, 44px); }
@media (max-width: 640px) {
    .course-search { height: 54px; padding-left: 18px; }
    .chip { height: 38px; padding: 0 15px; font-size: 13.5px; }
}

/* ---------- All Courses v2: sticky toolbar, quick view, extra sections ---------- */
body.page-courses .courses-hero { padding-bottom: clamp(36px, 4vw, 56px); }
.course-toolbar { position: sticky; top: 92px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 26px; padding: 12px; border-radius: 24px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: 0 18px 40px -30px rgba(14, 17, 48, .45); }
.course-toolbar .course-search { flex: 1 1 260px; height: 48px; box-shadow: none; }
.course-toolbar .course-chips { justify-content: flex-start; }
.course-selects { display: flex; gap: 10px; }
.course-selects select { height: 44px; padding: 0 36px 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E1130' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 14px no-repeat; -webkit-appearance: none; appearance: none; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.course-selects select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.course-card { position: relative; }
.quick-btn { position: absolute; z-index: 3; top: 22px; right: 22px; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 12.5px; font-weight: 600; cursor: pointer; box-shadow: 0 8px 20px -10px rgba(14, 17, 48, .5); transition: background .3s, transform .4s var(--ease); }
.quick-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.quick-btn:hover { background: var(--accent); transform: translateY(-2px); }
.quick-dialog { width: min(860px, calc(100% - 32px)); max-height: calc(100% - 32px); margin: auto; padding: 0; border: 0; border-radius: 28px; background: #fff; color: var(--ink); box-shadow: 0 40px 90px -30px rgba(10, 13, 36, .6); overflow: auto; overscroll-behavior: contain; }
.quick-dialog[open] { animation: cb-in .45s var(--ease); }
.quick-dialog::backdrop { background: rgba(10, 13, 36, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.quick-dialog .cb-close { z-index: 2; }
.quick-grid { display: grid; grid-template-columns: 1fr 1.1fr; }
.quick-media { background: var(--sand); min-height: 100%; }
.quick-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quick-body { padding: 34px 32px 30px; }
.quick-body h3 { margin: 12px 0 2px; font-size: 26px; padding-right: 40px; }
.quick-body h4 { margin: 22px 0 14px; font-size: 15px; }
.quick-body .demo-list { margin-bottom: 18px; }
.quick-body .demo-list li { color: var(--ink); font-size: 14.5px; }
.quick-foot { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.quick-foot .price { margin: 0; }
body .course-path { background-color: #F6F7FB; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: var(--grid-size) var(--grid-size); }
body.page-courses .course-help { background-color: #fff; }
@media (max-width: 760px) {
    .course-toolbar { top: 84px; padding: 10px; border-radius: 20px; }
    .course-toolbar .course-search { flex-basis: 100%; height: 46px; }
    .course-toolbar .course-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }
    .course-toolbar .course-chips::-webkit-scrollbar { display: none; }
    .course-toolbar .chip { flex: none; }
    .course-selects { width: 100%; }
    .course-selects label { flex: 1; }
    .course-selects select { width: 100%; height: 40px; font-size: 13px; }
    .quick-grid { grid-template-columns: minmax(0, 1fr); }
    .quick-media { aspect-ratio: 16 / 10; }
    .quick-body { padding: 24px 20px 22px; }
    .quick-body h3 { font-size: 22px; }
}
/* phones: a slimmer sticky toolbar so it does not take a quarter of the screen */
@media (max-width: 760px) {
    .course-toolbar { gap: 8px; padding: 8px; }
    .course-toolbar .course-search { height: 40px; padding-left: 14px; }
    .course-toolbar .course-search input { font-size: 15px; }
    .course-toolbar .chip { height: 32px; padding: 0 13px; font-size: 13px; }
    .course-selects { gap: 8px; }
    .course-selects select { height: 34px; padding: 0 30px 0 12px; font-size: 12.5px; background-position: right 10px center; }
}

/* =====================================================================
   Course Details page (CourseDetails.aspx?c=slug, body.page-course)
   ===================================================================== */
.cd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "intro aside" "content aside"; column-gap: clamp(32px, 4vw, 56px); align-items: start; }
.cd-intro { grid-area: intro; }
.cd-aside { grid-area: aside; align-self: stretch; }
.cd-content { grid-area: content; display: grid; gap: 22px; margin-top: 40px; }
.cd-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 13px; color: var(--muted); }
.cd-crumbs a { color: var(--muted); font-weight: 500; }
.cd-crumbs a:hover { color: var(--ink); }
.cd-crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.cd-title { margin-top: 12px; }
.cd-ta { margin: 8px 0 0; font-size: 17px; color: var(--muted); }
.cd-facts { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.cd-facts li { display: grid; gap: 2px; padding: 12px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.cd-facts b { font-size: 17px; color: var(--ink); }
.cd-facts span { font-size: 12.5px; color: var(--muted); }
.buy-card { position: sticky; top: 100px; border-radius: 28px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 70px -46px rgba(14, 17, 48, .55); }
.buy-media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 11; padding: 0; border: 0; cursor: pointer; background: var(--sand); overflow: hidden; }
.buy-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.buy-media:hover img { transform: scale(1.05); }
.buy-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 17, 48, .7), transparent 50%); }
.buy-media .course-badge { z-index: 2; }
.buy-play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: 0 0 0 10px rgba(255, 255, 255, .22); transition: transform .4s var(--ease), background .3s; }
.buy-play svg { width: 22px; height: 22px; margin-left: 3px; }
.buy-media:hover .buy-play { transform: scale(1.08); background: var(--accent); }
.buy-preview { position: absolute; z-index: 2; left: 0; right: 0; bottom: 14px; text-align: center; color: #fff; font-size: 13.5px; font-weight: 600; }
.buy-body { padding: 24px 24px 26px; }
.buy-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 18px; }
.buy-price strong { font-size: 32px; font-weight: 700; color: var(--ink); line-height: 1; }
.buy-price s { font-size: 16px; color: var(--muted); }
.buy-price em { font-style: normal; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 700; }
.buy-cta { width: 100%; justify-content: space-between; padding-left: 24px; font-size: 13.5px; }
.buy-ask { display: block; margin-top: 14px; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.buy-inc-title { margin: 24px 0 12px; font-size: 15px; }
.buy-inc { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.buy-inc li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink); line-height: 1.45; }
.buy-inc svg, .learn-grid svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.buy-safe { justify-content: flex-start; margin-top: 18px; text-align: left; }
.cd-block { padding: clamp(24px, 3vw, 34px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.cd-h2 { margin: 0 0 18px; font-size: clamp(20px, 2vw, 24px); color: var(--ink); }
.cd-sub { margin: -10px 0 18px; font-size: 14px; color: var(--muted); }
.learn-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.learn-grid li { display: flex; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.syllabus details { border: 1px solid var(--line); border-radius: 16px; background: #FAFAFD; }
.syllabus details + details { margin-top: 10px; }
.syllabus summary { display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); }
.syllabus summary::-webkit-details-marker { display: none; }
.syllabus summary::after { content: "+"; margin-left: 8px; font-size: 20px; line-height: 1; color: var(--muted); transition: transform .3s; }
.syllabus details[open] summary::after { transform: rotate(45deg); }
.syl-num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); font-size: 13px; }
.syl-title { flex: 1; font-size: 15.5px; }
.syl-count { flex: none; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.syllabus details p { margin: 0; padding: 0 18px 18px 66px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.forwho { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.forwho li { padding: 10px 18px; border-radius: 999px; background: #FFF8EC; border: 1px solid rgba(242, 165, 65, .45); font-size: 14px; font-weight: 600; color: var(--ink); }
.cd-teacher { display: flex; align-items: center; gap: 24px; }
.cd-teacher-photo { flex: none; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; border: 2px dashed rgba(14, 17, 48, .2); color: var(--muted); }
.cd-teacher-photo svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.cd-teacher .cd-h2 { margin-bottom: 6px; }
.cd-teacher-text { margin: 0 0 14px; color: var(--muted); font-size: 15px; line-height: 1.7; }
body.page-course .reviews { background-color: #fff; }
body.page-course .cd-related { background-color: #fff; }
.cd-buybar { display: none; }
@media (max-width: 1000px) {
    .cd-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "aside" "content"; }
    .cd-aside { margin-top: 32px; }
    .buy-card { position: static; max-width: 520px; }
}
@media (max-width: 640px) {
    .learn-grid { grid-template-columns: minmax(0, 1fr); }
    .cd-facts li { padding: 10px 14px; }
    .syllabus details p { padding-left: 18px; }
    .cd-teacher { flex-direction: column; align-items: flex-start; }
    /* phones: price + main button fixed at the bottom instead of the general Call / WhatsApp bar */
    body.page-course .mbar { display: none; }
    .cd-buybar { display: flex; position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 999px; background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: 0 18px 40px -16px rgba(14, 17, 48, .45); transform: translateY(150%); transition: transform .5s var(--ease); }
    body.show-mbar .cd-buybar { transform: none; }
    body.menu-open .cd-buybar { transform: translateY(150%); }
    .cd-buybar .buy-price { margin: 0; gap: 2px 8px; }
    .cd-buybar .buy-price strong { font-size: 22px; }
    .cd-buybar .buy-price s { font-size: 13px; }
    .cd-buybar .pill { font-size: 11px; padding-left: 16px; gap: 8px; }
}
.cd-content { grid-template-columns: minmax(0, 1fr); } .cd-block, .cd-intro, .cd-aside { min-width: 0; overflow-wrap: anywhere; }

/* =====================================================================
   My Courses (Enrollments.aspx, body.page-mycourses)
   ===================================================================== */
.mc-sample { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #FFF8EC; border: 1px solid rgba(242, 165, 65, .5); font-size: 13px; color: var(--ink); }
.mc-sample b { padding: 3px 10px; border-radius: 999px; background: var(--accent); font-size: 11.5px; }
.mc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.mc-stats { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.mc-stats li { min-width: 110px; padding: 14px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); display: grid; gap: 2px; }
.mc-stats b { font-size: 26px; line-height: 1.1; color: var(--ink); }
.mc-stats span { font-size: 13px; color: var(--muted); }
.mc-continue { margin-top: 36px; display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; align-items: center; padding: 18px; border-radius: 30px; color: #fff;
    background-color: var(--ink); background-image: linear-gradient(var(--grid-dark) 1px, transparent 1px), linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px); background-size: var(--grid-size) var(--grid-size); }
.mc-continue-media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: #23284d; }
.mc-continue-media img { width: 100%; height: 100%; object-fit: cover; }
.mc-continue-body { padding: 6px 12px 6px 0; }
.mc-kicker { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.mc-continue-body h2 { margin: 8px 0 6px; font-size: clamp(22px, 2.4vw, 30px); color: #fff; }
.mc-next { margin: 0 0 18px; color: rgba(255, 255, 255, .75); font-size: 15px; }
.mc-next span { color: #fff; font-weight: 600; }
.mc-progress { height: 8px; border-radius: 999px; background: rgba(14, 17, 48, .1); overflow: hidden; }
.mc-progress span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.mc-continue .mc-progress { background: rgba(255, 255, 255, .15); max-width: 460px; }
.mc-progress-text { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.mc-progress-text b { color: var(--ink); }
.mc-continue .mc-progress-text { margin-bottom: 20px; color: rgba(255, 255, 255, .7); }
.mc-continue .mc-progress-text b { color: #fff; }
.mc-continue .pill { background: #fff; color: var(--ink); }
.mc-continue .pill i { background: var(--ink); color: #fff; }
html[lang="ta"] .mc-kicker { letter-spacing: 0; text-transform: none; }
body .mc-list { background-color: #fff; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: var(--grid-size) var(--grid-size); }
.mc-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.mc-tabs .chip small { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--bg-soft); font-size: 11.5px; color: var(--ink); }
.mc-tabs .chip[aria-pressed="true"] small { background: rgba(255, 255, 255, .2); color: #fff; }
.mc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.mc-grid > [hidden] { display: none !important; }
.mc-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 44px -34px rgba(14, 17, 48, .45); min-width: 0; }
.mc-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--sand); overflow: hidden; }
.mc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mc-card:not(.is-expired) .mc-media:hover img { transform: scale(1.05); }
.mc-badge { position: absolute; left: 14px; top: 14px; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; }
.is-completed .mc-badge { background: #1F9D55; }
.is-expired .mc-badge { background: #B42318; }
.is-expired .mc-media img { filter: grayscale(.8); opacity: .75; }
.mc-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.mc-body h3 { margin: 0; font-size: 19px; }
.mc-meta { margin: 10px 0 16px; font-size: 13px; color: var(--muted); }
.mc-actions { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.mc-review { padding: 0; border: 0; background: none; color: var(--ink); font-size: 13.5px; font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.mc-cert { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 7px 14px; border-radius: 999px; background: #FFF8EC; border: 1px solid rgba(242, 165, 65, .5); font-size: 13px; font-weight: 600; color: var(--ink); }
.mc-cert svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2; }
body .mc-suggest { background-color: #F6F7FB; }
body.page-mycourses .mc-help { background-color: #fff; }
.mc-help .course-help-actions .link-arrow { background: none; border-top: 0; border-left: 0; border-right: 0; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); }
.review-form { padding: 32px 28px 28px; }
.review-form h3 { margin: 10px 0 18px; font-size: 22px; padding-right: 36px; }
.stars { display: flex; gap: 6px; margin-bottom: 18px; }
.stars label { cursor: pointer; }
.stars input { position: absolute; opacity: 0; }
.stars span[aria-hidden] { font-size: 34px; color: #D5D7E3; transition: color .2s; }
/* stars up to the chosen one light up (and up to the one under the mouse) */
.stars label:has(input:checked) span[aria-hidden], .stars label:has(~ label input:checked) span[aria-hidden] { color: var(--accent); }
.stars:hover label span[aria-hidden] { color: #D5D7E3; }
.stars:hover label:hover span[aria-hidden], .stars:hover label:has(~ label:hover) span[aria-hidden] { color: var(--accent); }
.stars input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.review-text { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.review-text textarea { width: 100%; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); font-size: 15px; resize: vertical; }
.review-text textarea:focus { outline: 0; border-color: var(--accent); }
.review-send { margin-top: 18px; }
.review-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
@media (max-width: 1024px) { .mc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
    .mc-continue { grid-template-columns: minmax(0, 1fr); padding: 14px; border-radius: 24px; }
    .mc-continue-body { padding: 4px 6px 8px; }
    .mc-grid { grid-template-columns: minmax(0, 1fr); }
    .mc-stats { width: 100%; }
    .mc-stats li { flex: 1; min-width: 0; padding: 12px 14px; }
}

/* =====================================================================
   Login (Login.aspx) + header states for guests and logged-in students
   ===================================================================== */
html:not(.is-auth) .auth-only { display: none !important; }
html.is-auth .guest-only { display: none !important; }
.profile { position: relative; }
.profile-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 4px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.profile-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.profile-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--ink); font-weight: 700; }
.profile-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 70; min-width: 230px; padding: 8px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -24px rgba(14, 17, 48, .45); }
.profile-menu a, .profile-menu button { display: block; width: 100%; padding: 11px 14px; border: 0; border-radius: 12px; background: none; text-align: left; font: inherit; font-size: 14.5px; font-weight: 500; color: var(--ink); cursor: pointer; }
.profile-menu a:hover, .profile-menu button:hover { background: var(--bg-soft); }
.profile-menu [data-logout] { color: #B42318; }
.profile-head { margin: 0 0 6px; padding: 10px 14px 12px; border-bottom: 1px solid var(--line); display: grid; }
.profile-head b { font-size: 15px; }
.profile-head small { font-size: 12.5px; color: var(--muted); }
@media (max-width: 640px) { .profile-name, .profile-btn svg { display: none; } .profile-btn { padding: 0 4px; height: 42px; } }

body.page-login .page-hero { padding-bottom: clamp(56px, 7vw, 96px); }
.login-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.login-card { padding: clamp(28px, 4vw, 48px); border-radius: 32px; background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 80px -50px rgba(14, 17, 48, .5); }
.login-title { margin: 12px 0 0; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; color: var(--ink); }
.login-title em { font-style: normal; background: linear-gradient(transparent 68%, rgba(242, 165, 65, .75) 68%); }
html[lang="ta"] .login-title { font-size: clamp(24px, 3vw, 34px); line-height: 1.35; }
.login-lead { margin: 14px 0 18px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.login-demo { margin-bottom: 26px; }
.login-field { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.phone-input { display: flex; align-items: center; height: 56px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.phone-input:focus-within, .login-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(242, 165, 65, .18); }
.phone-cc { padding: 0 14px 0 18px; height: 100%; display: grid; place-items: center; border-right: 1px solid var(--line); background: #FAFAFD; font-weight: 600; color: var(--ink); }
.phone-input input { flex: 1; min-width: 0; height: 100%; padding: 0 16px; border: 0; outline: 0; font-size: 18px; letter-spacing: .06em; color: var(--ink); }
.login-input { width: 100%; height: 56px; padding: 0 18px; border-radius: 16px; border: 1.5px solid var(--line); font-size: 17px; color: var(--ink); outline: 0; }
.login-error { margin: 10px 0 0; font-size: 13.5px; font-weight: 600; color: #B42318; }
.login-btn { margin-top: 20px; width: 100%; justify-content: space-between; padding-left: 26px; height: 54px; font-size: 13.5px; }
.login-small { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.login-small b { color: var(--ink); }
.link-btn { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.otp-sent { margin: 0 0 16px; font-size: 14.5px; color: var(--muted); }
.otp-sent b { color: var(--ink); }
.otp-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.otp-boxes input { width: 100%; height: 60px; border-radius: 14px; border: 1.5px solid var(--line); text-align: center; font-size: 24px; font-weight: 700; color: var(--ink); outline: 0; transition: border-color .2s, box-shadow .2s; }
.otp-boxes input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(242, 165, 65, .18); }
.login-sub { margin: 0 0 16px; font-size: 22px; color: var(--ink); }
.login-done { text-align: center; padding: 18px 0 6px; }
.login-done-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: #1F9D55; color: #fff; }
.login-done-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.login-terms { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.login-terms a { color: var(--ink); font-weight: 600; }
.login-visual { position: relative; border-radius: 32px; overflow: hidden; min-height: 520px; background: var(--ink); color: #fff; }
.login-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.login-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 17, 48, .95) 15%, rgba(14, 17, 48, .2) 70%); }
.login-visual-body { position: absolute; z-index: 1; left: clamp(24px, 3vw, 40px); right: clamp(24px, 3vw, 40px); bottom: clamp(24px, 3vw, 40px); }
.login-visual-title { margin: 0 0 18px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; line-height: 1.2; }
.login-visual ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.login-visual li { position: relative; padding-left: 30px; font-size: 15px; }
.login-visual li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 700; }
.login-visual-chip { display: inline-flex; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 13px; }
@media (max-width: 900px) {
    .login-grid { grid-template-columns: minmax(0, 1fr); }
    .login-visual { min-height: 300px; order: -1; display: none; }
}
@media (max-width: 640px) {
    .login-card { padding: 24px 18px; border-radius: 24px; }
    .otp-boxes { gap: 6px; }
    .otp-boxes input { height: 52px; font-size: 21px; border-radius: 12px; }
}
@media (max-width: 1180px) { .profile-name, .profile-btn svg { display: none; } .profile-btn { padding: 0 4px; } }

/* =====================================================================
   Gallery (Design.aspx, body.page-gallery)
   ===================================================================== */
.gal-sample { margin-top: 22px; }
body .gal-list { background-color: #fff; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: var(--grid-size) var(--grid-size); }
.gal-chips { margin-bottom: 30px; }
.gal-chips .chip small { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--bg-soft); font-size: 11.5px; color: var(--ink); }
.gal-chips .chip[aria-pressed="true"] small { background: rgba(255, 255, 255, .2); color: #fff; }
.gal-grid { columns: 4 240px; column-gap: 18px; }
.gal-item { break-inside: avoid; margin: 0 0 18px; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 44px -36px rgba(14, 17, 48, .45); }
.gal-item[hidden] { display: none; }
.gal-open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--sand); cursor: zoom-in; overflow: hidden; }
.gal-square .gal-open { aspect-ratio: 1 / 1; }
.gal-tall .gal-open { aspect-ratio: 4 / 5; }
.gal-open img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gal-open:hover img { transform: scale(1.06); }
.gal-zoom { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--ink); opacity: 0; transform: scale(.8); transition: opacity .3s, transform .4s var(--ease); }
.gal-zoom svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.gal-open:hover .gal-zoom, .gal-open:focus-visible .gal-zoom { opacity: 1; transform: none; }
.gal-item figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 14px; }
.gal-item figcaption b { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.gal-tag { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--bg-soft); font-size: 11px; font-weight: 600; color: var(--muted); }
.gal-tag-course { background: #EAF7EF; color: #1F7A45; }
.gal-tag-soon { background: #FFF8EC; color: #8A5A12; }
body.page-gallery .gal-help { background-color: #F6F7FB; }
.gal-box { width: min(1000px, calc(100% - 32px)); max-height: calc(100% - 32px); margin: auto; padding: 0; border: 0; border-radius: 28px; background: #fff; color: var(--ink); overflow: visible; box-shadow: 0 40px 90px -30px rgba(10, 13, 36, .6); }
.gal-box[open] { animation: cb-in .45s var(--ease); }
.gal-box::backdrop { background: rgba(10, 13, 36, .85); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.gal-box .cb-close { z-index: 3; }
.gal-figure { margin: 0; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); border-radius: 28px; overflow: hidden; }
.gal-figure img { width: 100%; height: min(72vh, 640px); object-fit: cover; background: var(--sand); }
.gal-figure figcaption { padding: 40px 34px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.gal-cat { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.gal-figure h3 { margin: 8px 0 6px; font-size: clamp(24px, 2.6vw, 32px); }
.gal-count { margin: 0; font-size: 13px; color: var(--muted); }
html[lang="ta"] .gal-cat { letter-spacing: 0; text-transform: none; }
.gal-nav { position: absolute; z-index: 3; top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px -10px rgba(10, 13, 36, .5); transition: background .3s; }
.gal-nav:hover { background: var(--accent); }
.gal-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gal-prev { left: -24px; }
.gal-next { right: -24px; }
@media (max-width: 760px) {
    .gal-grid { columns: 2 140px; column-gap: 12px; }
    .gal-item { margin-bottom: 12px; border-radius: 18px; }
    .gal-item figcaption { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 12px 12px; }
    .gal-item figcaption b { font-size: 13.5px; }
    .gal-figure { grid-template-columns: minmax(0, 1fr); }
    .gal-figure img { height: 56vh; }
    .gal-figure figcaption { padding: 20px 20px 22px; }
    .gal-prev { left: 8px; } .gal-next { right: 8px; }
    .gal-nav { top: 28vh; width: 42px; height: 42px; margin-top: -21px; }
    .gal-chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
    .gal-chips::-webkit-scrollbar { display: none; }
    .gal-chips .chip { flex: none; }
}

/* ---------- Gallery v2: search, save, show more, share / ask ---------- */
.gal-search { max-width: 560px; height: 52px; margin: 0 auto 18px; box-shadow: none; }
.gal-chips { justify-content: center; }
.gal-chip-saved svg { width: 15px; height: 15px; margin-right: 6px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 2; }
.gal-chip-saved[aria-pressed="true"] svg { fill: #E5484D; stroke: #E5484D; }
.gal-item { position: relative; }
.gal-save { position: absolute; z-index: 2; left: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; box-shadow: 0 8px 20px -10px rgba(14, 17, 48, .5); transition: transform .3s var(--ease); }
.gal-save:hover { transform: scale(1.1); }
.gal-save svg, .gal-share svg, .gal-ask svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gal-save[aria-pressed="true"] svg, .gal-save-big[aria-pressed="true"] svg { fill: #E5484D; stroke: #E5484D; }
.gal-more { margin-top: 12px; display: flex; justify-content: center; }
.gal-more[hidden] { display: none; }
.gal-figure figcaption > .pill { align-self: flex-start; }
.gal-actions { display: grid; gap: 10px; margin-top: auto; }
.gal-ask { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: #FFF8EC; border: 1px solid rgba(242, 165, 65, .5); color: var(--ink); font-size: 14px; font-weight: 600; }
.gal-ask:hover { background: var(--accent); }
.gal-share { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; justify-self: start; }
.gal-share:hover { border-color: var(--ink); }
.gal-actions { grid-template-columns: auto auto 1fr; }
.gal-actions .gal-ask { grid-column: 1 / -1; }
@media (max-width: 760px) {
    .gal-search { height: 46px; margin-bottom: 14px; }
    .gal-chips { justify-content: flex-start; }
    .gal-save { width: 34px; height: 34px; left: 8px; top: 8px; }
    .gal-figure figcaption { gap: 16px; }
}

/* =====================================================================
   Checkout (Checkout.aspx?c=slug, body.page-checkout)
   ===================================================================== */
.co-steps { list-style: none; margin: 4px 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.co-steps li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.co-steps span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--line); font-size: 13px; }
.co-steps .is-current { color: var(--ink); }
.co-steps .is-current span { background: var(--ink); border-color: var(--ink); color: #fff; }
.co-steps .is-done { color: var(--ink); }
.co-steps .is-done span { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.co-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(24px, 3vw, 40px); align-items: start; }
.co-card, .co-summary { padding: clamp(24px, 3.4vw, 40px); border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 70px -50px rgba(14, 17, 48, .5); }
.co-title { margin: 0; font-size: clamp(26px, 3vw, 34px); color: var(--ink); }
.co-lead { margin: 8px 0 18px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.co-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.co-wide { grid-column: 1 / -1; }
.co-field { display: grid; gap: 8px; min-width: 0; }
.co-field > span { font-size: 14px; font-weight: 600; color: var(--ink); }
.co-field em { font-style: normal; color: #B42318; }
.co-field small { font-weight: 500; color: var(--muted); }
.co-field .phone-input { height: 56px; }
.co-field .phone-input input { font-size: 16px; letter-spacing: .04em; }
.co-select { -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E1130' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 18px center / 16px no-repeat; cursor: pointer; }
.co-h2 { margin: 30px 0 14px; font-size: 19px; color: var(--ink); }
.co-summary .co-h2 { margin-top: 0; }
.co-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.co-methods span { padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); background: #FAFAFD; font-size: 13px; font-weight: 600; color: var(--ink); }
.co-pay { margin-top: 22px; height: 58px; font-size: 14px; }
.co-pay b { font-size: 16px; }
.co-safe { justify-content: flex-start; margin-top: 14px; }
.co-small { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.co-small a { color: var(--ink); font-weight: 600; }
.co-placeholder { font-style: italic; }
.co-success { text-align: center; }
.co-success .login-done-icon { margin-bottom: 18px; }
.co-order { margin: 0 0 24px; font-size: 14px; color: var(--muted); }
.co-order b { color: var(--ink); }
.co-success-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 26px; }
.co-aside { position: sticky; top: 100px; display: grid; gap: 14px; }
.co-course { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.co-course img { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; }
.co-course h3 { margin: 8px 0 2px; font-size: 18px; }
.co-course .course-meta { margin: 0; }
.co-coupon { display: flex; gap: 8px; margin-top: 18px; }
.co-coupon .login-input { height: 46px; font-size: 15px; text-transform: uppercase; }
.co-coupon .login-input::placeholder { text-transform: none; }
.co-apply { flex: none; height: 46px; padding: 0 18px; border-radius: 14px; border: 0; background: var(--ink); color: #fff; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.co-apply:hover { background: var(--accent); color: var(--ink); }
.co-coupon-msg { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: #B42318; }
.co-coupon-msg.is-ok { color: #1F7A45; }
.co-lines { margin: 18px 0 0; display: grid; gap: 10px; }
.co-lines div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.co-lines dt { color: var(--muted); }
.co-lines dd { margin: 0; color: var(--ink); font-weight: 600; }
.co-lines .co-green dd, .co-lines .co-green dt { color: #1F7A45; }
.co-lines .co-total { margin-top: 6px; padding-top: 14px; border-top: 1px dashed rgba(14, 17, 48, .2); }
.co-lines .co-total dt, .co-lines .co-total dd { font-size: 19px; font-weight: 700; color: var(--ink); }
.co-save { margin: 14px 0 0; padding: 10px 14px; border-radius: 14px; background: #EAF7EF; font-size: 13.5px; color: #1F7A45; text-align: center; }
.co-help { padding: 14px 18px; border-radius: 18px; background: #FFF8EC; border: 1px solid rgba(242, 165, 65, .45); font-size: 13.5px; color: var(--ink); }
.co-help p { margin: 0; }
.co-help a { font-weight: 700; color: var(--ink); }
@media (max-width: 1000px) {
    .co-layout { grid-template-columns: minmax(0, 1fr); }
    .co-aside { position: static; order: -1; }
}
@media (max-width: 640px) {
    .co-grid { grid-template-columns: minmax(0, 1fr); }
    .co-card, .co-summary { border-radius: 22px; }
    body.page-checkout .mbar { display: none; }
}
.co-lines div[hidden] { display: none; }

/* =====================================================================
   Course Player (CoursePlayer.aspx?c=slug&l=n, body.page-player)
   ===================================================================== */
body.page-player .footer-cta, body.page-player .mbar { display: none; }
.pl-page { padding: calc(108px + var(--offer-h)) 0 clamp(48px, 6vw, 80px); background-color: #F6F7FB; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: var(--grid-size) var(--grid-size); }
.pl-top-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) 260px; align-items: center; gap: 18px 24px; padding-bottom: 22px; }
.pl-back { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.pl-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.pl-top-title h1 { margin: 0; font-size: clamp(20px, 2.2vw, 26px); color: var(--ink); }
.pl-top-title p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.pl-top-title b { color: var(--ink); }
.pl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: clamp(20px, 2.6vw, 32px); align-items: start; }
.pl-video { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: var(--ink); box-shadow: 0 40px 70px -50px rgba(14, 17, 48, .6); }
.pl-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pl-poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: var(--ink); }
.pl-poster[hidden] { display: none; }
.pl-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.pl-poster .buy-play { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.pl-lesson { margin-top: 20px; padding: 22px 24px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.pl-kicker { margin: 0; font-size: 13px; color: var(--muted); }
.pl-kicker b { color: var(--ink); }
.pl-title { margin: 6px 0 18px; font-size: clamp(20px, 2.2vw, 26px); color: var(--ink); }
.pl-title .pl-part { color: var(--muted); font-weight: 500; }
.pl-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pl-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.pl-btn:hover:not(:disabled) { border-color: var(--ink); }
.pl-btn:disabled { opacity: .45; cursor: default; }
.pl-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pl-complete .pl-done-text { display: none; }
.pl-complete[aria-pressed="true"] { background: #EAF7EF; border-color: #1F9D55; color: #1F7A45; }
.pl-complete[aria-pressed="true"] .pl-complete-text { display: none; }
.pl-complete[aria-pressed="true"] .pl-done-text { display: inline; }
.pl-next { margin-left: auto; }
.pl-cert { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding: 18px 22px; border-radius: 22px; background: #EAF7EF; border: 1px solid rgba(31, 157, 85, .35); }
.pl-cert .login-done-icon { width: 48px; height: 48px; margin: 0; }
.pl-cert h3 { margin: 0; font-size: 18px; }
.pl-cert p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.pl-cert .pill { margin-left: auto; }
.pl-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 14px; }
.pl-pane { padding: 22px 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 15px; line-height: 1.7; }
.pl-pane > p { margin: 0 0 12px; }
.pl-pane > p:last-child { margin-bottom: 0; }
.pl-ask-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.pl-tip { padding: 12px 14px; border-radius: 14px; background: #FFF8EC; font-size: 14px; }
.pl-saved { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: #1F7A45; }
.pl-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pl-files li { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #FAFAFD; border: 1px dashed rgba(14, 17, 48, .18); }
.pl-files svg { grid-row: span 2; width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; }
.pl-files small { color: var(--muted); font-size: 12.5px; }
.pl-side { position: sticky; top: 100px; padding: 18px 10px 10px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -48px rgba(14, 17, 48, .5); }
.pl-side-title { margin: 0 12px 10px; font-size: 18px; color: var(--ink); }
.pl-list { max-height: calc(100vh - 190px); overflow-y: auto; overscroll-behavior: contain; padding: 0 4px 4px; }
.pl-sec { margin: 14px 10px 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
html[lang="ta"] .pl-sec { letter-spacing: 0; text-transform: none; font-size: 13px; }
.pl-lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pl-row { width: 100%; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 10px; border: 0; border-radius: 14px; background: none; text-align: left; font: inherit; cursor: pointer; color: var(--ink); }
.pl-row:hover { background: var(--bg-soft); }
.pl-row.is-current { background: #FFF8EC; box-shadow: inset 0 0 0 1.5px rgba(242, 165, 65, .7); }
.pl-row-state { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); background: #fff; font-size: 12.5px; }
.pl-row-state svg { display: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pl-row.is-done .pl-row-state { background: #1F9D55; border-color: #1F9D55; color: #fff; }
.pl-row.is-done .pl-row-state b { display: none; }
.pl-row.is-done .pl-row-state svg { display: block; }
.pl-row.is-current .pl-row-state { border-color: var(--accent); }
.pl-row-title { font-size: 14px; font-weight: 500; line-height: 1.4; }
.pl-row-title .pl-part { color: var(--muted); }
.pl-row-time { font-size: 12px; color: var(--muted); }
@media (max-width: 1000px) {
    .pl-layout { grid-template-columns: minmax(0, 1fr); }
    .pl-side { position: static; }
    .pl-list { max-height: none; }
    .pl-top-inner { grid-template-columns: auto minmax(0, 1fr); }
    .pl-top-bar { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .pl-page { padding-top: calc(96px + var(--offer-h)); }
    .pl-back span { display: none; }
    .pl-back { padding: 0 10px; }
    .pl-video { border-radius: 18px; margin: 0 calc(-1 * var(--gutter) + 8px); }
    .pl-lesson, .pl-pane { padding: 18px 16px; border-radius: 20px; }
    .pl-controls .pl-btn { flex: 1; justify-content: center; padding: 0 12px; }
    .pl-next { width: 100%; justify-content: space-between; margin-left: 0; }
    .pl-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .pl-tabs::-webkit-scrollbar { display: none; }
    .pl-tabs .chip { flex: none; }
    .pl-cert .pill { margin-left: 0; }
}

/* =====================================================================
   Legal pages (Privacy, Terms, Refund; body.page-legal)
   ===================================================================== */
.legal-meta { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.legal-draft { margin-top: 14px; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.legal-tabs .chip { display: inline-flex; align-items: center; }
.legal-tabs .chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
body .legal-body { background-color: #fff; padding-top: clamp(40px, 5vw, 64px); }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.legal-toc { position: sticky; top: 100px; padding: 20px 18px; border-radius: 22px; background: #F6F7FB; border: 1px solid var(--line); }
.legal-toc p { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
html[lang="ta"] .legal-toc p { letter-spacing: 0; text-transform: none; }
.legal-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; }
.legal-toc a { color: var(--ink); }
.legal-toc a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.legal-text { max-width: 760px; color: var(--ink); }
.legal-text section { padding: 26px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.legal-text section:first-of-type { padding-top: 0; }
.legal-text h2 { margin: 0 0 12px; font-size: clamp(20px, 2vw, 24px); }
.legal-text h2 span { color: var(--muted); }
.legal-text p, .legal-text li { font-size: 15.5px; line-height: 1.8; color: #3A3D55; }
.legal-text p { margin: 0 0 10px; }
.legal-text ul { margin: 6px 0 10px; padding-left: 22px; display: grid; gap: 6px; }
.legal-ta-note { display: none; margin: 0 0 22px !important; padding: 14px 16px; border-radius: 16px; background: #FFF8EC; border: 1px solid rgba(242, 165, 65, .45); }
html[lang="ta"] .legal-ta-note { display: block; }
.legal-contact { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-radius: 22px; background: var(--ink); color: #fff; }
.legal-contact p { margin: 0; color: rgba(255, 255, 255, .8); }
.legal-contact b { color: #fff; }
.legal-contact .pill { background: #fff; color: var(--ink); }
.legal-contact .pill i { background: var(--ink); color: #fff; }
@media (max-width: 900px) {
    .legal-layout { grid-template-columns: minmax(0, 1fr); }
    .legal-toc { position: static; }
}

/* ---------- Checkout additions ---------- */
.co-check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; }
.co-check input, .co-addon input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.co-gst { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 16px; border-radius: 18px; background: #FAFAFD; border: 1px dashed rgba(14, 17, 48, .18); }
.co-gst[hidden] { display: none; }
#coGstin { text-transform: uppercase; letter-spacing: .06em; }
#coGstin::placeholder { text-transform: none; letter-spacing: 0; }
.co-trust { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.co-trust li { display: grid; justify-items: start; gap: 2px; padding: 12px; border-radius: 16px; background: #FAFAFD; border: 1px solid var(--line); }
.co-trust li > span { width: 30px; height: 30px; margin-bottom: 6px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--ink); font-size: 14px; }
.co-trust svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.co-trust b { font-size: 13px; color: var(--ink); }
.co-trust small { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.co-talk { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.co-offer { display: flex; align-items: center; gap: 8px; margin: -4px 0 16px; padding: 10px 14px; border-radius: 14px; background: #FFF1F0; border: 1px solid rgba(180, 35, 24, .25); color: #B42318; font-size: 13.5px; font-weight: 600; }
.co-offer[hidden] { display: none; }
.co-offer svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.co-offer b { font-variant-numeric: tabular-nums; }
.co-addon { margin-top: 16px; display: grid; grid-template-columns: 20px 52px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px; border-radius: 18px; border: 1.5px dashed rgba(242, 165, 65, .7); background: #FFF8EC; cursor: pointer; }
.co-addon img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.co-addon b { display: block; font-size: 14px; color: var(--ink); }
.co-addon small { font-size: 12.5px; color: var(--muted); }
.co-addon:has(input:checked) { border-style: solid; background: #FFF1D6; }
@media (max-width: 640px) {
    .co-gst { grid-template-columns: minmax(0, 1fr); }
    .co-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.co-pay { white-space: normal; text-align: left; gap: 10px; } .co-pay > span { flex: 1; min-width: 0; }

/* ---------- Player additions: tools, auto-next, quiz, bookmarks, dark mode ---------- */
.pl-top-inner { grid-template-columns: auto minmax(0, 1fr) 240px; }
.pl-dark-btn { height: 40px; padding: 0 14px; font-size: 13px; }
.pl-tools { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.pl-speed { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-soft); }
.pl-speed > span { padding: 0 8px 0 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pl-speed button { height: 32px; min-width: 44px; padding: 0 8px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.pl-speed button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pl-small { height: 40px; font-size: 13px; }
.pl-auto { font-size: 13.5px; }
.pl-keys { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.pl-keys kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 2px; background: #fff; font: 600 12px var(--font-body); color: var(--ink); text-align: center; }
.pl-toast { position: fixed; z-index: 80; left: 50%; bottom: 28px; transform: translateX(-50%); margin: 0; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 18px 40px -16px rgba(14, 17, 48, .6); }
.pl-toast[hidden] { display: none; }
.pl-video #plYT, .pl-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pl-autonext { position: absolute; z-index: 3; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: rgba(14, 17, 48, .82); color: #fff; text-align: center; }
.pl-autonext[hidden] { display: none; }
.pl-autonext p { margin: 0; font-size: 18px; }
.pl-autonext b { font-size: 40px; display: block; color: var(--accent); }
.pl-autonext div { display: flex; gap: 10px; }
.pl-autonext .pill { background: #fff; color: var(--ink); }
.pl-autonext .pill i { background: var(--ink); color: #fff; }
.pl-quiz { margin-top: 16px; padding: 22px 24px; border-radius: 24px; background: #fff; border: 1.5px solid rgba(242, 165, 65, .6); }
.pl-quiz h3 { margin: 4px 0 14px; font-size: 19px; }
.pl-quiz ol { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 16px; }
.pl-quiz li p { margin: 0 0 8px; font-weight: 600; color: var(--ink); }
.pl-quiz label { display: flex; align-items: center; gap: 10px; margin: 4px 0; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; font-size: 14.5px; }
.pl-quiz label input { accent-color: var(--ink); }
.pl-quiz label.is-right { border-color: #1F9D55; background: #EAF7EF; }
.pl-quiz label.is-wrong { border-color: #B42318; background: #FFF1F0; }
.pl-quiz-result { margin: 12px 0 0; font-weight: 700; color: var(--ink); }
.pl-tabs .chip small { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--bg-soft); font-size: 11.5px; }
.pl-marks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pl-marks li { display: flex; align-items: center; gap: 8px; }
.pl-mark-go { flex: 1; min-width: 0; display: grid; text-align: left; gap: 2px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: #FAFAFD; font: inherit; color: var(--ink); cursor: pointer; }
.pl-mark-go:hover { border-color: var(--accent); }
.pl-mark-go b { font-size: 14px; }
.pl-mark-go span { font-size: 13px; color: var(--muted); }
.pl-mark-del { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 18px; cursor: pointer; color: var(--muted); }
.pl-marks-empty { margin: 0; color: var(--muted); font-size: 14px; }
.pl-marks-empty[hidden] { display: none; }
/* dark mode (player page only) */
body.pl-dark .pl-page { background-color: #0B0D22; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); }
body.pl-dark .pl-lesson, body.pl-dark .pl-pane, body.pl-dark .pl-side, body.pl-dark .pl-quiz, body.pl-dark .pl-back, body.pl-dark .pl-btn { background: #15183A; border-color: rgba(255, 255, 255, .1); color: #E8E9F3; }
body.pl-dark .pl-top-title h1, body.pl-dark .pl-title, body.pl-dark .pl-side-title, body.pl-dark .pl-row, body.pl-dark .pl-quiz h3, body.pl-dark .pl-quiz li p, body.pl-dark .pl-quiz-result, body.pl-dark .pl-mark-go { color: #F2F3FA; }
body.pl-dark .pl-top-title p, body.pl-dark .pl-kicker, body.pl-dark .pl-keys, body.pl-dark .pl-row-time, body.pl-dark .pl-row-title .pl-part, body.pl-dark .pl-sec, body.pl-dark .pl-title .pl-part { color: #A3A6C2; }
body.pl-dark .pl-top-title b, body.pl-dark .pl-kicker b { color: #fff; }
body.pl-dark .pl-row:hover { background: rgba(255, 255, 255, .06); }
body.pl-dark .pl-row.is-current { background: rgba(242, 165, 65, .14); }
body.pl-dark .pl-row-state { background: #0B0D22; border-color: rgba(255, 255, 255, .2); color: #E8E9F3; }
body.pl-dark .pl-speed { background: rgba(255, 255, 255, .08); }
body.pl-dark .pl-speed button { color: #E8E9F3; }
body.pl-dark .pl-speed button[aria-pressed="true"] { background: var(--accent); color: var(--ink); }
body.pl-dark .pl-tools { border-color: rgba(255, 255, 255, .1); }
body.pl-dark .pl-tip { background: rgba(242, 165, 65, .12); color: #F2F3FA; }
body.pl-dark .pl-quiz label { border-color: rgba(255, 255, 255, .15); color: #E8E9F3; }
body.pl-dark .pl-mark-go, body.pl-dark .pl-files li { background: #0B0D22; border-color: rgba(255, 255, 255, .12); }
body.pl-dark .pl-pane textarea { background: #0B0D22; color: #F2F3FA; border-color: rgba(255, 255, 255, .15); }
body.pl-dark .pl-tabs .chip { background: #15183A; border-color: rgba(255, 255, 255, .12); color: #E8E9F3; }
body.pl-dark .pl-tabs .chip[aria-pressed="true"] { background: var(--accent); color: var(--ink); }
body.pl-dark .co-check { color: #E8E9F3; }
body.pl-dark .pl-dark-btn[aria-pressed="true"] { background: var(--accent); color: var(--ink); border-color: var(--accent); }
@media (max-width: 1000px) { .pl-top-inner { grid-template-columns: auto minmax(0, 1fr); } }
@media (max-width: 640px) {
    .pl-dark-btn span, .pl-keys { display: none; }
    .pl-dark-btn { padding: 0 10px; }
    .pl-speed { width: 100%; justify-content: space-between; }
    .pl-speed button { min-width: 0; flex: 1; }
}

/* ---------- Legal: print button + print styles ---------- */
.legal-print { margin-top: 14px; height: 42px; font-size: 13.5px; }
@media print {
    .site-header, .offer-strip, .site-footer, .mobile-menu, .mbar, .wa-float, .skip-link, .legal-tabs, .legal-print, .legal-toc, .legal-contact, .legal-draft, .eyebrow, dialog { display: none !important; }
    body, .page-hero, .legal-body { background: #fff !important; }
    .page-hero { padding: 0 0 12px !important; }
    .legal-layout { display: block; }
    .legal-text { max-width: none; }
    .legal-text section { padding: 12px 0; break-inside: avoid; }
    .page-title { font-size: 26px; }
    .hero-in, [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   Student area (Student/*.aspx, body.page-student): Dashboard, Purchases, Invoice, Certificates, Settings, Refer & Earn
   ========================================================= */
.st-nav { display: flex; gap: 8px; margin: 0 0 26px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; }
.st-nav::-webkit-scrollbar { display: none; }
.st-nav .chip { flex: none; display: inline-flex; align-items: center; }
.st-nav .chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
body.page-student .page-hero { padding-bottom: clamp(36px, 5vw, 60px); }
body .st-body { background-color: #fff; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: var(--grid-size) var(--grid-size); }
.st-muted { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.st-hint { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.st-note { margin: 22px 0 0; font-size: 14px; color: var(--muted); line-height: 1.7; }
.st-note a { color: var(--ink); font-weight: 600; }
.st-card { padding: clamp(22px, 2.6vw, 32px); border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -48px rgba(14, 17, 48, .5); min-width: 0; overflow-wrap: anywhere; }
.st-card h2 { margin: 0 0 16px; font-size: 20px; color: var(--ink); }
.st-card > p { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.st-body .container > .st-card { margin-bottom: 22px; }
.st-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 18px; }
.st-card-head h2 { margin: 0; }
.st-help-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* Dashboard */
.st-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.st-grid > :first-child { grid-column: span 2; grid-row: span 2; }
.st-grid > .st-help { grid-column: span 2; }
/* Dashboard: learning streak + badges */
.st-streak { margin-bottom: 22px; }
.st-streak h3 { margin: 0; font-size: 16px; color: var(--ink); }
.sk-layout { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 20px; margin-bottom: 28px; }
.sk-bar { display: block; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.sk-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #F59F00, #F26B1D); }
/* the dark panel with the big flame */
.sk-hero { position: relative; overflow: hidden; display: grid; align-content: start; gap: 14px; padding: 24px; border-radius: 24px; color: #fff; background: radial-gradient(120% 90% at 100% 0%, rgba(242, 107, 29, .35), transparent 60%), linear-gradient(150deg, var(--brand-soft), var(--brand-deep)); }
.sk-hero h2 { margin: 0; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.sk-hero-main { display: flex; align-items: center; gap: 16px; }
.sk-flame-big { flex: none; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; background: rgba(255, 255, 255, .1); }
.sk-flame-big svg { width: 44px; height: 44px; fill: rgba(255, 255, 255, .35); }
.sk-hero.is-on .sk-flame-big { background: rgba(242, 107, 29, .22); box-shadow: 0 0 40px rgba(242, 107, 29, .45); }
.sk-hero.is-on .sk-flame-big svg { fill: #FF8A3D; transform-origin: 50% 90%; animation: sk-flicker 1.6s ease-in-out infinite; }
@keyframes sk-flicker { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.06, .96) rotate(-2deg); } 60% { transform: scale(.97, 1.05) rotate(2deg); } }
.sk-num { margin: 0; display: grid; }
.sk-num b { font-size: 54px; line-height: 1; font-weight: 700; }
.sk-num span { font-size: 15px; color: rgba(255, 255, 255, .8); }
.sk-msg { margin: 0; font-size: 14px; line-height: 1.55; color: var(--accent-soft); }
.sk-goal { display: grid; gap: 8px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.sk-goal p { margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: 13.5px; color: rgba(255, 255, 255, .75); }
.sk-goal p b { color: #fff; }
.sk-goal .sk-bar { background: rgba(255, 255, 255, .15); }
.sk-goal small { font-size: 12.5px; color: rgba(255, 255, 255, .7); }
/* last 7 days + facts */
.sk-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
.sk-weekbox { padding: 20px; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); }
.sk-sub { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.sk-pill { padding: 5px 12px; border-radius: 99px; background: #FFF1E6; color: #C2410C; font-size: 13px; }
.sk-week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; text-align: center; }
.sk-day { display: grid; place-items: center; width: 100%; max-width: 54px; aspect-ratio: 1; margin: 0 auto 6px; border-radius: 16px; background: #fff; border: 2px dashed #D9DCE6; }
.sk-day svg { width: 55%; height: 55%; fill: #fff; }
.sk-week .is-on .sk-day { border: 0; background: linear-gradient(160deg, #FFB347, #F26B1D); box-shadow: 0 8px 18px -8px rgba(242, 107, 29, .8); }
.sk-week .is-today .sk-day { border-color: #F26B1D; }
.sk-week small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; }
.sk-week .is-today small { color: #C2410C; font-weight: 700; }
.sk-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sk-stats li { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 20px; border: 1px solid var(--line); background: #fff; min-width: 0; }
.sk-stats li > div { display: grid; gap: 2px; min-width: 0; }
.sk-stats b { font-size: 20px; color: var(--ink); line-height: 1.2; }
.sk-stats b span { font-size: 14px; font-weight: 600; }
.sk-stats small { font-size: 13px; color: var(--muted); }
.sk-st-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; }
.sk-st-icon svg { width: 22px; height: 22px; }
.sk-st-best .sk-st-icon { background: #FFF1E6; }
.sk-st-best svg { fill: #F26B1D; }
.sk-st-lessons .sk-st-icon { background: #EBFBEE; }
.sk-st-lessons svg { fill: none; stroke: #2F9E44; stroke-width: 2; stroke-linejoin: round; }
.sk-st-time .sk-st-icon { background: #E7F5FF; }
.sk-st-time svg { fill: none; stroke: #1C7ED6; stroke-width: 2; stroke-linecap: round; }
/* badges */
.sk-badges-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.sk-badges-head p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.sk-count { display: grid; gap: 6px; min-width: 180px; font-size: 14px; color: var(--muted); text-align: right; }
.sk-count b { color: var(--ink); }
.sk-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sk-badges li { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr); grid-template-areas: "m t" "m h" "m p"; align-items: center; gap: 3px 14px; padding: 14px 16px; border-radius: 20px; background: #FAFAFD; border: 1px solid var(--line); color: var(--muted); transition: transform .2s ease, box-shadow .2s ease; }
.sk-badges li:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -22px rgba(14, 17, 48, .5); }
.sk-badges li > b { grid-area: t; font-size: 14px; color: var(--ink); line-height: 1.35; }
.sk-badges li > small { grid-area: h; font-size: 12.5px; line-height: 1.4; }
.sk-medal { grid-area: m; position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 3px solid #E4E6EE; }
.sk-medal > svg { width: 26px; height: 26px; fill: none; stroke: #B7BBCB; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sk-lock { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #8A8FA6; border: 2px solid #FAFAFD; }
.sk-lock svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.sk-prog { grid-area: p; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 5px; }
.sk-prog .sk-bar { height: 6px; }
.sk-prog .sk-bar > span { background: var(--c); }
.sk-prog small { font-size: 11.5px; }
.sk-prog small b { color: var(--ink); }
.sk-badges .is-earned { background: #fff; border-color: var(--c); box-shadow: inset 4px 0 0 var(--c); }
.sk-badges .is-earned .sk-medal { border-color: #fff; background: var(--c); box-shadow: 0 0 0 3px var(--c), 0 10px 22px -8px var(--c); }
.sk-badges .is-earned .sk-medal > svg { stroke: #fff; }
.sk-earned { grid-area: p; justify-self: start; display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 4px 10px; border-radius: 99px; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: var(--c); }
.sk-earned svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .sk-hero.is-on .sk-flame-big svg { animation: none; } .sk-badges li { transition: none; } }
@media (max-width: 1100px) { .sk-stats li { flex-direction: column; align-items: flex-start; } }
@media (max-width: 1100px) { .sk-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .sk-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .sk-badges { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
    .sk-hero { padding: 20px; }
    .sk-num b { font-size: 46px; }
    .sk-weekbox { padding: 16px 12px; }
    .sk-week { gap: 4px; }
    .sk-week small { font-size: 10.5px; letter-spacing: -.2px; }
    .sk-day { border-radius: 12px; }
    .sk-stats { gap: 8px; }
    .sk-stats li { padding: 12px 10px; gap: 8px; }
    .sk-stats b { font-size: 16px; }
    .sk-st-icon { width: 36px; height: 36px; border-radius: 12px; }
    .sk-count { min-width: 0; width: 100%; text-align: left; }
    .sk-badges { gap: 10px; }
}
.st-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.st-rows li { display: flex; align-items: center; gap: 14px; min-width: 0; }
.st-rows li > div { flex: 1; min-width: 0; display: grid; gap: 6px; }
.st-rows img { width: 64px; height: 64px; flex: none; border-radius: 16px; object-fit: cover; }
.st-rows b { font-size: 15px; color: var(--ink); }
.st-rows small { font-size: 12.5px; color: var(--muted); }
.st-cert-icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--accent-tint); }
.st-cert-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.st-orders li { justify-content: space-between; }
.st-amount { flex: none; font-weight: 700; color: var(--ink); }
.st-card-dark { color: #fff; border-color: transparent; background-color: var(--ink); background-image: linear-gradient(var(--grid-dark) 1px, transparent 1px), linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px); background-size: var(--grid-size) var(--grid-size); }
.st-card-dark h2 { margin: 8px 0 10px; color: #fff; }
.st-card-dark > p { color: rgba(255, 255, 255, .75); }
.st-card-dark .pill { background: #fff; color: var(--ink); }
.st-card-dark .pill i { background: var(--ink); color: #fff; }

/* Purchases */
.st-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.st-toolbar .course-search { flex: 1 1 320px; width: auto; height: 52px; }
.st-table-wrap { border-radius: 24px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.st-table, .inv-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.st-table th, .inv-table th { padding: 14px 18px; text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); background: #FAFAFD; border-bottom: 1px solid var(--line); }
.st-table td, .inv-table td { padding: 16px 18px; color: var(--ink); vertical-align: middle; border-bottom: 1px solid var(--line); }
.st-table tr:last-child td, .inv-table tr:last-child td { border-bottom: 0; }
.st-table small { color: var(--muted); }
.st-table tr[hidden] { display: none; }
.st-table .link-arrow { white-space: nowrap; }
.st-table-wrap .course-empty { margin: 0; border: 0; border-radius: 0; }
.st-table-wrap .course-empty[hidden] { display: none; }
.st-status { display: inline-flex; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.st-status.is-paid { background: #E7F6EC; color: #1F7A45; }
.st-status.is-refunded { background: #FFF4E0; color: #8A5A00; }
.st-status.is-failed { background: #FDECEA; color: #B42318; }

/* Invoice */
.inv-page .container > * { max-width: 900px; margin-left: auto; margin-right: auto; }
.inv-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.inv-paper { padding: clamp(22px, 4vw, 52px); border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-card); color: var(--ink); overflow-wrap: anywhere; }
.inv-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.inv-head .fd-logo-img { height: 46px; }
.inv-title { text-align: right; }
.inv-title h1 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); color: var(--ink); }
.inv-title p { margin: 2px 0; font-size: 14px; color: var(--muted); }
.inv-title b { color: var(--ink); }
.inv-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 24px 0; }
.inv-parties p { margin: 4px 0; font-size: 14px; color: var(--muted); }
.inv-parties b { font-size: 16px; color: var(--ink); }
.inv-parties .inv-label { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
html[lang="ta"] .inv-label { letter-spacing: 0; text-transform: none; }
.inv-paper .st-table-wrap { border-radius: 16px; }
.inv-table small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.inv-lines { max-width: 360px; margin-left: auto; }
.inv-words, .inv-paid { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.inv-words b { color: var(--ink); }
.inv-paid { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.inv-foot { margin-top: 28px; padding-top: 18px; border-top: 1px dashed rgba(14, 17, 48, .2); font-size: 12.5px; color: var(--muted); }
.inv-foot p { margin: 4px 0; }

/* Certificates */
.st-cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.st-cert-card { display: flex; flex-direction: column; min-width: 0; border-radius: 28px; background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 30px 60px -48px rgba(14, 17, 48, .5); }
.st-cert-preview { padding: 22px; background: var(--bg-soft); }
.st-cert-preview .cert-paper, .cert-box .cert-paper { transform: none; box-shadow: 0 20px 40px -30px rgba(14, 17, 48, .5); }
.st-cert-preview .cert-paper { padding: 26px 18px; }
.st-cert-preview .cert-kicker { margin-top: 12px; font-size: 16px; }
.st-cert-preview .cert-name { font-size: 19px; }
.st-cert-preview .cert-course { font-size: 15px; }
.st-cert-preview .cert-small { font-size: 11px; }
.st-cert-preview .cert-brand .fd-logo-img { height: 28px; }
.st-cert-meta { margin-top: 16px !important; }
.st-cert-body { flex: 1; display: grid; align-content: start; gap: 10px; padding: 22px 24px 26px; overflow-wrap: anywhere; }
.st-cert-body h2 { margin: 0; font-size: 19px; color: var(--ink); }
.st-cert-body .pill { justify-self: start; margin-top: 6px; }
.st-cert-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.st-cert-actions .pill { margin-top: 0; }
.st-cert-lock { display: grid; place-items: center; min-height: 220px; background: var(--bg-soft); }
.st-cert-lock svg { width: 46px; height: 46px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; }
.cert-box { width: min(860px, calc(100% - 32px)); }
.cert-box-inner { padding: clamp(18px, 3vw, 36px) clamp(18px, 3vw, 36px) 0; overflow-y: auto; max-height: calc(100vh - 140px); }
.cert-box-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 22px; padding: 18px; }
.cert-box-actions .pill[disabled] { opacity: .7; cursor: progress; }
.cert-box-msg { margin: -6px 18px 18px; text-align: center; font-size: 13.5px; color: #B42318; }
#certPrintArea { display: none; }

/* Settings */
.st-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.st-settings > :first-child, .st-settings > .st-danger { grid-column: 1 / -1; }
.st-save { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 22px; }
.st-save p { margin: 0; }
.st-save [hidden] { display: none; }
.st-phone { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 8px; font-size: 18px; color: var(--ink); }
.st-card .st-muted + .pl-btn, .st-card .st-muted + .st-help-actions { margin-top: 16px; }
.st-card .st-hint[hidden] { display: none; }
.st-card .pl-btn + .st-hint { margin: 10px 0 0; }
.st-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.st-card h2 + .st-switch { border-top: 0; padding-top: 0; }
.st-switch > span { display: grid; gap: 2px; min-width: 0; }
.st-switch b { font-size: 15px; color: var(--ink); }
.st-switch small { font-size: 13px; color: var(--muted); }
.st-switch input, .st-radios input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.st-switch i { position: relative; flex: none; width: 46px; height: 26px; border-radius: 999px; background: #D5D7E3; transition: background .3s; }
.st-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(14, 17, 48, .25); transition: transform .3s var(--ease); }
.st-switch input:checked + i { background: var(--ink); }
.st-switch input:checked + i::after { transform: translateX(20px); }
.st-switch input:focus-visible + i, .st-radios input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.st-radios { display: flex; flex-wrap: wrap; gap: 10px; }
.st-radios label { position: relative; }
.st-radios span { display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; color: var(--ink); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.st-radios input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.st-danger { border-color: rgba(180, 35, 24, .25); }
.st-danger h2 { color: #B42318; }

/* Refer & Earn */
.st-reward-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 22px; }
.st-reward { display: grid; gap: 6px; min-width: 0; padding: clamp(24px, 3vw, 36px); border-radius: 28px; background: #fff; border: 1px solid var(--line); overflow-wrap: anywhere; }
.st-reward span { font-size: 14px; font-weight: 600; color: var(--muted); }
.st-reward b { justify-self: start; font-size: clamp(30px, 4vw, 44px); line-height: 1.15; color: var(--ink); background: linear-gradient(transparent 68%, rgba(242, 165, 65, .55) 68%); }
.st-reward small { font-size: 14px; color: var(--muted); }
.st-reward-you { border-color: transparent; background-color: var(--ink); background-image: linear-gradient(var(--grid-dark) 1px, transparent 1px), linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px); background-size: var(--grid-size) var(--grid-size); }
.st-reward-you span, .st-reward-you small { color: rgba(255, 255, 255, .72); }
.st-reward-you b { color: #fff; background: linear-gradient(transparent 68%, rgba(242, 165, 65, .45) 68%); }
.st-ref-link .co-coupon .login-input { text-transform: none; font-size: 15px; }
.st-ref-link .co-coupon-msg[hidden] { display: none; }
.st-ref-link .st-help-actions { margin-top: 18px; }
.st-ref-steps { list-style: none; padding: 0; margin: clamp(40px, 5vw, 64px) 0; }
.st-ref-stats { flex-wrap: wrap; }
.st-ref-stats li { flex: 1 1 140px; background: var(--bg); }
.st-ref-empty { margin-top: 16px !important; }

@media (max-width: 1024px) {
    .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .st-grid > :first-child { grid-column: 1 / -1; grid-row: auto; }
    .st-grid > .st-help { grid-column: auto; }
}
@media (max-width: 720px) {
    .st-grid, .st-settings, .st-reward-grid, .inv-parties, .st-ref-steps { grid-template-columns: minmax(0, 1fr); }
    .st-grid > *, .st-settings > * { grid-column: auto !important; }
    .st-toolbar .course-selects, .st-toolbar .course-selects label, .st-toolbar .course-selects select { flex: 1; width: 100%; }
    .st-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .st-table tr { display: grid; gap: 8px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
    .st-table tr:last-child { border-bottom: 0; }
    .st-table td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0; border: 0; text-align: right; }
    .st-table td::before { content: attr(data-label); flex: none; font-size: 12.5px; font-weight: 600; color: var(--muted); text-align: left; }
    .st-table td:not([data-label])::before { display: none; }
    .st-table td:last-child { justify-content: flex-end; }
    .inv-title { text-align: left; }
    .inv-table th:nth-child(3), .inv-table td:nth-child(3), .inv-table th:nth-child(5), .inv-table td:nth-child(5) { display: none; }
    .inv-table th, .inv-table td { padding: 12px; }
}
@media print {
    body.page-student .st-nav, .inv-actions, .mc-sample { display: none !important; }
    .inv-paper { padding: 0; border: 0; box-shadow: none; }
    html.cert-print body > *:not(#certPrintArea) { display: none !important; }
    html.cert-print #certPrintArea { display: block; page: cert; }
    html.cert-print #certPrintArea .cert-paper { transform: none; box-shadow: none; }
}
@page cert { size: A4 landscape; margin: 14mm; }

/* =========================================================
   Free Demo page (FreeDemo.aspx, body.page-demo)
   ========================================================= */
.dm-head { max-width: 760px; }
.dm-badges { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.dm-badges li { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.dm-badges svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--accent); fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dm-stage { margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: stretch; }
.dm-player { position: relative; width: 100%; min-width: 0; align-self: center; aspect-ratio: 16 / 9; border-radius: 30px; overflow: hidden; background: #0E1130; box-shadow: var(--shadow-card); isolation: isolate; }
.dm-player iframe, .dm-player #dmYT { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.dm-poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #23284d; }
.dm-poster[hidden] { display: none; }
.dm-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.dm-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 17, 48, .55), rgba(14, 17, 48, 0) 50%); }
.dm-poster:hover img { transform: scale(1.04); }
.dm-poster:hover .demo-play { transform: scale(1.08); background: var(--accent); }
.dm-poster .demo-play { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
.dm-end { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; color: #fff; background: rgba(14, 17, 48, .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dm-end[hidden] { display: none; }
.dm-end-title { margin: 0; font-size: clamp(20px, 2.6vw, 30px); font-weight: 600; }
.dm-end-title b { color: var(--accent); }
.dm-end-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; }
.dm-end .pill { background: #fff; color: var(--ink); }
.dm-end .pill i { background: var(--ink); color: #fff; }
.dm-replay { padding: 0 0 3px; border: 0; border-bottom: 2px solid var(--accent); background: none; font: inherit; font-size: 14px; font-weight: 600; color: #fff; cursor: pointer; }
.dm-side { display: flex; flex-direction: column; min-width: 0; padding: clamp(22px, 2.6vw, 30px); border-radius: 30px; color: #fff; overflow-wrap: anywhere;
    background-color: var(--ink); background-image: linear-gradient(var(--grid-dark) 1px, transparent 1px), linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px); background-size: var(--grid-size) var(--grid-size); }
.dm-now-title { margin: 8px 0 4px; font-size: 20px; line-height: 1.35; color: #fff; }
.dm-now-meta { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .65); }
.dm-share { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 14px; height: 36px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .3s, border-color .3s; }
.dm-share:hover { background: rgba(255, 255, 255, .1); border-color: var(--accent); }
.dm-share svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.dm-side-line { height: 1px; margin: 18px 0; background: rgba(255, 255, 255, .14); }
.dm-side-kicker { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .65); }
.dm-course { margin: 2px 0 6px; font-size: 17px; font-weight: 600; }
.dm-price { margin: 0 0 16px; }
.dm-price strong { font-size: 30px; color: #fff; }
.dm-price s { color: rgba(255, 255, 255, .5); }
.dm-gets { margin-bottom: 22px; gap: 10px; font-size: 14px; }
.dm-gets li { padding-left: 32px; }
.dm-gets li::before { width: 20px; height: 20px; background-size: 12px; }
.dm-side .demo-actions { margin-top: auto; gap: 14px 20px; }
.dm-side .pill { background: #fff; color: var(--ink); }
.dm-side .pill i { background: var(--ink); color: #fff; }
.dm-side .pill:hover i { background: var(--accent); color: var(--ink); }
body .dm-more { background-color: #fff; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: var(--grid-size) var(--grid-size); }
.dm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 20px; }
.dm-card { min-width: 0; overflow-wrap: anywhere; }
.dm-card-meta { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.dm-playing { position: absolute; z-index: 2; left: 10px; top: 10px; display: none; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 11.5px; font-weight: 700; font-style: normal; }
.dm-card[aria-current="true"] .dm-playing { display: inline-block; }
.dm-card[aria-current="true"] .yt-thumb { outline: 3px solid var(--accent); outline-offset: 3px; }
.dm-compare .compare-scroll { margin-top: 0; }
.dm-compare .compare-table td span:not(.cmp-yes):not(.cmp-no) { font-size: 14px; }
.dm-cad { color: #fff; background-color: var(--ink); background-image: linear-gradient(var(--grid-dark) 1px, transparent 1px), linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px); background-size: var(--grid-size) var(--grid-size); }
.dm-cad-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(28px, 5vw, 64px); align-items: center; }
.dm-cad-info { min-width: 0; overflow-wrap: anywhere; }
.dm-cad-lead { margin: 18px 0 24px; max-width: 48ch; color: rgba(255, 255, 255, .72); font-size: 16px; line-height: 1.7; }
.dm-cad-when { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .6); font-style: italic; }
.dm-form { min-width: 0; padding: clamp(22px, 3.4vw, 36px); border-radius: 28px; background: #fff; color: var(--ink); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.dm-form h3 { margin: 0 0 6px; font-size: 22px; color: var(--ink); }
.dm-form .phone-input { display: flex; align-items: center; height: 56px; border-radius: 16px; border: 1.5px solid var(--line); overflow: hidden; }
.dm-form .phone-input .cb-cc { padding: 0 12px 0 16px; font-weight: 600; color: var(--muted); }
.dm-form .phone-input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; font-size: 16px; color: var(--ink); }
.dm-form .phone-input:focus-within, .dm-form .login-input:focus { border-color: var(--accent); }
.dm-times { margin: 18px 0 0; padding: 0; border: 0; }
.dm-times legend { margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.dm-form .login-error[hidden] { display: none; }
.dm-submit { margin-top: 20px; width: 100%; justify-content: space-between; }
body.page-demo .reviews { background-color: #fff; }
.dm-bar-watch { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
html[lang="ta"] .dm-bar-watch { font-size: 13px; }
.dm-bar-watch svg { width: 18px; height: 18px; }
.dm-bar .pill b { font-weight: 700; }
@media (max-width: 1024px) {
    .dm-stage { grid-template-columns: minmax(0, 1fr); }
    .dm-cad-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    body.page-demo .mbar { display: none; }
    .dm-player { border-radius: 20px; }
    .dm-poster .demo-play { width: 70px; height: 70px; margin: -35px 0 0 -35px; }
    .dm-end { gap: 10px; padding: 14px; }
    .dm-end .mc-kicker { display: none; }
    .dm-end-title { font-size: 17px; }
    .dm-side { border-radius: 24px; }
    .dm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .dm-card .yt-title { font-size: 14px; }
}

/* =========================================================
   404 page (NotFound.aspx, body.page-notfound)
   ========================================================= */
.nf-wrap { max-width: 860px; text-align: center; }
.nf-wrap .eyebrow { justify-content: center; }
.nf-wrap .page-lead { margin-left: auto; margin-right: auto; }
.nf-art { display: flex; align-items: center; justify-content: center; gap: clamp(4px, 1.5vw, 14px); margin-bottom: 18px; font-size: clamp(96px, 16vw, 180px); font-weight: 700; line-height: 1; color: var(--ink); letter-spacing: -.04em; }
.nf-spool { width: .9em; height: .9em; flex: none; }
.nf-thread { animation: nf-sew 3s linear infinite; }
@keyframes nf-sew { to { stroke-dashoffset: -44; } }
@media (prefers-reduced-motion: reduce) { .nf-thread { animation: none; } }
.nf-search { max-width: 620px; margin: 28px auto 0; }
.nf-search .course-search { padding-right: 6px; }
.nf-go { flex: none; height: 48px; }
.nf-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin-top: 32px; text-align: left; }
.nf-link { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: var(--ink); overflow-wrap: anywhere; transition: border-color .3s, transform .3s var(--ease); }
.nf-link:hover { border-color: var(--accent); transform: translateY(-2px); }
.nf-link > span:last-child { display: grid; gap: 2px; min-width: 0; }
.nf-link b { font-size: 15px; }
.nf-link small { font-size: 12.5px; color: var(--muted); }
.nf-icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--accent-tint); }
.nf-icon svg { width: 21px; height: 21px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.page-notfound .nf-courses { background-color: #fff; }
@media (max-width: 520px) {
    .nf-go span { display: none; }
    .nf-go { width: 48px; padding: 0; justify-content: center; }
}

/* =========================================================
   Payment status (PaymentStatus.aspx, body.page-payment.is-success / is-failed / is-pending)
   ========================================================= */
.ps-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.ps-main { min-width: 0; overflow-wrap: anywhere; }
.ps-icon { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 22px; border-radius: 50%; animation: ps-pop .7s var(--ease) both; }
.ps-icon svg { width: 36px; height: 36px; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ps-icon.is-ok { background: var(--accent); box-shadow: 0 0 0 12px rgba(242, 165, 65, .2); }
.ps-icon.is-ok svg { stroke: var(--ink); }
.ps-icon.is-bad { background: #FDECEA; box-shadow: 0 0 0 12px rgba(180, 35, 24, .06); }
.ps-icon.is-bad svg { stroke: #B42318; }
.ps-icon.is-wait { background: var(--accent-tint); box-shadow: 0 0 0 12px rgba(242, 165, 65, .12); }
.ps-icon.is-wait svg { stroke: var(--ink); stroke-width: 2.2; }
@keyframes ps-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ps-icon { animation: none; } }
.ps-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 28px; }
.ps-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 12px; max-width: 560px; }
.ps-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.ps-steps li > span { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; }
.ps-steps div { display: grid; gap: 2px; min-width: 0; }
.ps-steps b { font-size: 15px; color: var(--ink); }
.ps-steps small { font-size: 13px; color: var(--muted); line-height: 1.6; }
.ps-check { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.ps-check b { color: var(--ink); }
.ps-reasons { margin-top: 36px; max-width: 560px; padding: 20px 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.ps-reasons-title { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--ink); }
.ps-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.ps-receipt { padding: clamp(22px, 3vw, 32px); border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 70px -50px rgba(14, 17, 48, .5); min-width: 0; overflow-wrap: anywhere; }
.ps-receipt .co-h2 { margin-top: 0; }
.ps-addon { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.ps-invoice { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: 16px; background: var(--bg); font-size: 14px; font-weight: 600; color: var(--ink); }
.ps-invoice svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.ps-invoice:hover { background: var(--accent-tint); }
@media (max-width: 1000px) {
    .ps-layout { grid-template-columns: minmax(0, 1fr); }
    .ps-aside { max-width: 520px; }
}

/* =========================================================
   Certificate check (Verify.aspx?id=, body.page-verify)
   ========================================================= */
.vf-wrap { max-width: 820px; }
.vf-form { margin-top: 28px; }
.vf-form .course-search { padding-right: 6px; }
.vf-form input { text-transform: uppercase; letter-spacing: .04em; }
.vf-form input::placeholder { text-transform: none; letter-spacing: 0; }
.vf-go { flex: none; height: 48px; }
.vf-result { margin-top: 26px; padding: clamp(22px, 3vw, 32px); border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 70px -50px rgba(14, 17, 48, .5); overflow-wrap: anywhere; }
.vf-result.is-ok { border-color: rgba(242, 165, 65, .6); }
.vf-result-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.vf-result-head .ps-icon { width: 56px; height: 56px; margin: 0; flex: none; box-shadow: none; }
.vf-result-head .ps-icon svg { width: 28px; height: 28px; }
.vf-result-head h2 { margin: 0 0 4px; font-size: 22px; color: var(--ink); }
.vf-result-head p { margin: 0; color: var(--muted); font-size: 14.5px; }
.vf-result-head b { color: var(--ink); }
.vf-facts { margin: 0 0 18px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.vf-facts div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.vf-facts dt { color: var(--muted); }
.vf-facts dd { margin: 0; font-weight: 600; color: var(--ink); }
.vf-result .ps-list { margin-bottom: 18px; }
body.page-verify .vf-how { background-color: #fff; }
.st-cert-verify { margin-top: 4px !important; font-size: 10px !important; }
@media (max-width: 520px) {
    .vf-go span { display: none; }
    .vf-go { width: 48px; padding: 0; justify-content: center; }
    .vf-facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* =========================================================
   Help & Support (Student/Support.aspx, body.st-support)
   ========================================================= */
.hp-search { max-width: 640px; margin-top: 26px; }
.hp-contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 900px; margin-top: 22px; }
.hp-contact .nf-link { font: inherit; text-align: left; cursor: pointer; }
.hp-topics { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.hp-topic { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.hp-topic:first-child { padding-left: 18px; }
.hp-topic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hp-topic:hover { border-color: var(--ink); }
.hp-topic[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.hp-faq { max-width: 900px; padding: 0 clamp(18px, 3vw, 32px); border-radius: 28px; background: #fff; border: 1px solid var(--line); }
.hp-faq details:first-child { border-top: 0; }
.hp-faq details:last-of-type { border-bottom: 0; }
.hp-faq details[hidden] { display: none; }
.hp-faq summary { font-size: 16.5px; padding-top: 20px; padding-bottom: 20px; }
.hp-faq details p { padding-bottom: 20px; }
.hp-empty { max-width: 900px; margin-top: 16px; }
.hp-empty[hidden] { display: none; }
.hp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; margin-top: clamp(40px, 5vw, 64px); align-items: start; scroll-margin-top: 110px; }
.hp-form { scroll-margin-top: 110px; }
.hp-form .st-muted { margin-bottom: 16px; }
.hp-text { height: auto; min-height: 120px; padding: 14px 18px; font-size: 16px; line-height: 1.6; resize: vertical; }
.hp-drop { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1.5px dashed rgba(14, 17, 48, .2); color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; overflow-wrap: anywhere; }
.hp-drop:hover, .hp-drop:focus-within { border-color: var(--accent); color: var(--ink); }
.hp-drop svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.hp-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.hp-submit { margin-top: 20px; }
.hp-sent { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 14px 16px; border-radius: 18px; background: var(--accent-tint); }
.hp-sent[hidden] { display: none; }
.hp-sent .ps-icon { width: 40px; height: 40px; margin: 0; flex: none; box-shadow: none; }
.hp-sent .ps-icon svg { width: 20px; height: 20px; }
.hp-sent div { display: grid; gap: 2px; min-width: 0; }
.hp-sent b { font-size: 15px; color: var(--ink); }
.hp-sent small { font-size: 12.5px; color: var(--muted); }
.hp-filter { display: flex; gap: 6px; }
.hp-filter .chip { height: 34px; padding: 0 14px; font-size: 13px; }
.hp-list { display: grid; gap: 12px; }
.hp-ticket { border-radius: 20px; border: 1px solid var(--line); background: #fff; overflow: hidden; }
.hp-ticket[hidden] { display: none; }
.hp-ticket summary { display: grid; gap: 4px; padding: 14px 16px; cursor: pointer; list-style: none; }
.hp-ticket summary::-webkit-details-marker { display: none; }
.hp-ticket[open] summary { background: #FAFAFD; border-bottom: 1px solid var(--line); }
.hp-ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.hp-ticket-top b { color: var(--ink); }
.hp-ticket-subject { font-size: 15px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.hp-ticket summary small { font-size: 12.5px; color: var(--muted); }
.st-status.is-open { background: #EEF0FA; color: var(--brand); }
.hp-thread { display: grid; gap: 10px; padding: 14px 16px; }
.hp-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--bg); overflow-wrap: anywhere; }
.hp-msg.is-me { justify-self: end; border-radius: 16px 16px 4px 16px; background: var(--accent-tint); }
.hp-msg p { margin: 0 0 4px; font-size: 14px; color: var(--ink); line-height: 1.6; }
.hp-msg small { font-size: 11.5px; color: var(--muted); }
.hp-attach { margin: 0; font-size: 13px; color: var(--muted); }
.hp-photo { display: block; width: min(240px, 100%); margin: 2px 0 6px; }
.hp-photo img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: cover; border-radius: 12px; }
.hp-reply { display: flex; gap: 8px; align-items: flex-end; padding: 0 16px 16px; }
.hp-reply .hp-text { min-height: 46px; padding: 10px 14px; font-size: 15px; }
.hp-none[hidden] { display: none; }
@media (max-width: 900px) {
    .hp-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
    .hp-contact { grid-template-columns: minmax(0, 1fr); }
    .hp-topics { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 22px; padding: 0 var(--gutter) 4px; scrollbar-width: none; }
    .hp-topics::-webkit-scrollbar { display: none; }
    .hp-topic { flex: none; }
    .hp-faq summary { font-size: 15.5px; }
}

/* =========================================================
   Live classes (Student/LiveClasses.aspx, body.st-live)
   ========================================================= */
.lv-next { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: clamp(22px, 3.4vw, 38px); border-radius: 30px; color: #fff; overflow-wrap: anywhere;
    background-color: var(--ink); background-image: linear-gradient(var(--grid-dark) 1px, transparent 1px), linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px); background-size: var(--grid-size) var(--grid-size); }
.lv-next h2 { margin: 8px 0 4px; font-size: clamp(22px, 2.6vw, 30px); color: #fff; }
.lv-course { margin: 0 0 16px; color: rgba(255, 255, 255, .65); font-size: 14px; }
.lv-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lv-meta li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.lv-meta svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lv-next-side { display: grid; gap: 14px; justify-items: start; }
.lv-count { display: flex; gap: 8px; }
.lv-count[hidden] { display: none; }
.lv-count div { min-width: 68px; padding: 10px 8px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); text-align: center; }
.lv-count b { display: block; font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lv-count span { font-size: 12px; color: rgba(255, 255, 255, .65); }
.lv-live-now { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px; border-radius: 999px; background: #B42318; font-size: 14px; font-weight: 700; }
.lv-live-now[hidden] { display: none; }
.lv-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: lv-blink 1.2s ease-in-out infinite; }
@keyframes lv-blink { 50% { opacity: .25; } }
.lv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.lv-next .pill { background: #fff; color: var(--ink); }
.lv-next .pill i { background: var(--ink); color: #fff; }
.lv-next .pill:disabled { opacity: .45; cursor: not-allowed; }
.lv-cal { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.lv-cal:hover { border-color: var(--accent); }
.lv-cal svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lv-note { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.lv-note[hidden] { display: none; }
.lv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.lv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lv-list li { display: flex; align-items: center; gap: 14px; min-width: 0; }
.lv-list li > div { flex: 1; min-width: 0; display: grid; gap: 3px; }
.lv-list li > div b { font-size: 15px; color: var(--ink); }
.lv-list li > div small { font-size: 12.5px; color: var(--muted); }
.lv-date { width: 54px; height: 58px; flex: none; display: grid; place-content: center; text-align: center; border-radius: 16px; background: var(--accent-tint); }
.lv-date b { font-size: 20px; line-height: 1; color: var(--ink); }
.lv-date small { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; }
.lv-date.is-past { background: var(--bg); }
.lv-cal-sm { width: 40px; height: 40px; padding: 0; justify-content: center; border-color: var(--line); color: var(--ink); flex: none; }
.lv-renew { margin-top: 16px; font-size: 13px; }
.lv-renew a { color: var(--ink); font-weight: 600; }
.lv-tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.lv-check { margin: 0; color: var(--ink); font-size: 15px; }
@media (max-width: 900px) {
    .lv-next { grid-template-columns: minmax(0, 1fr); }
    .lv-grid, .lv-tips { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
    .lv-count div { min-width: 0; flex: 1; }
    .lv-count b { font-size: 22px; }
    .lv-list .st-status { display: none; }
}

/* =========================================================
   Measurement Book (Student/Measurements.aspx, body.st-measure)
   ========================================================= */
.mb-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 26px 0 0; padding: 10px 16px; border-radius: 16px; background: #FFF8EC; border: 1px solid rgba(242, 165, 65, .45); font-size: 13.5px; color: var(--ink); }
.mb-note svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mb-restore { position: relative; overflow: hidden; }
.mb-restore input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mb-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 22px; align-items: start; }
.mb-side { position: sticky; top: calc(100px + var(--offer-h)); }
.mb-new { height: 42px; font-size: 12px; padding-left: 16px; gap: 8px; }
.mb-search { height: 48px; margin-bottom: 14px; box-shadow: none; }
.mb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 520px; overflow-y: auto; }
.mb-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; border: 1px solid transparent; background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.mb-item:hover { background: var(--bg); }
.mb-item[aria-current="true"] { background: var(--accent-tint); border-color: rgba(242, 165, 65, .5); }
.mb-item > span:last-child { display: grid; gap: 2px; min-width: 0; }
.mb-item b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-item small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-avatar { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; }
.mb-avatar.is-big { width: 56px; height: 56px; font-size: 22px; background: var(--accent); color: var(--ink); }
.mb-list-empty[hidden] { display: none; }
.mb-main { min-height: 420px; }
.mb-idle { display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 360px; text-align: center; }
.mb-idle[hidden] { display: none; }
.mb-idle-icon { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-tint); }
.mb-idle-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mb-idle h2 { margin: 8px 0 0; }
.mb-main > [hidden] { display: none; }
.mb-cust-head { display: flex; align-items: flex-start; gap: 16px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.mb-cust-info { flex: 1; min-width: 0; }
.mb-cust-info h2 { margin: 2px 0 4px; }
.mb-cust-info p { margin: 0; color: var(--muted); font-size: 14px; }
.mb-cust-info a { color: var(--ink); font-weight: 600; }
.mb-cust-notes { margin-top: 6px !important; font-style: italic; }
.mb-cust-actions { display: flex; gap: 16px; flex: none; }
.link-btn.is-del { color: #B42318; text-decoration-color: rgba(180, 35, 24, .4); }
.mb-add { margin-bottom: 20px; }
.mb-recs { display: grid; gap: 14px; }
.mb-rec { padding: 16px 18px; border-radius: 20px; border: 1px solid var(--line); background: #FAFAFD; }
.mb-rec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.mb-rec-head > div:first-child { display: grid; gap: 2px; min-width: 0; }
.mb-rec-head b { font-size: 16px; color: var(--ink); }
.mb-rec-head small { font-size: 12.5px; color: var(--muted); }
.mb-rec-actions { display: flex; gap: 6px; flex: none; }
.mb-icon { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.mb-icon:hover { border-color: var(--ink); }
.mb-icon.is-del:hover { border-color: #B42318; color: #B42318; }
.mb-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mb-vals { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.mb-vals div { padding: 8px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.mb-vals dt { font-size: 12px; color: var(--muted); }
.mb-vals dd { margin: 2px 0 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.mb-vals dd small { font-size: 12px; font-weight: 500; color: var(--muted); }
.mb-rec-note { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); font-style: italic; }
.mb-none { margin: 0; }
.mb-form h2 { margin-bottom: 6px; }
.mb-form > .st-muted { margin-bottom: 14px; }
.mb-phone { display: flex; align-items: center; height: 56px; border-radius: 16px; border: 1.5px solid var(--line); overflow: hidden; }
.mb-phone .cb-cc { padding: 0 12px 0 16px; font-weight: 600; color: var(--muted); }
.mb-phone input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; font-size: 16px; color: var(--ink); }
.mb-phone:focus-within { border-color: var(--accent); }
.mb-text { min-height: 72px; }
.mb-unit { margin-top: 16px; }
.mb-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 18px; }
.mb-field { display: grid; gap: 6px; min-width: 0; }
.mb-field span { font-size: 13px; font-weight: 600; color: var(--ink); }
.mb-field input { width: 100%; height: 50px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line); font-size: 18px; font-weight: 600; color: var(--ink); outline: 0; }
.mb-field input:focus { border-color: var(--accent); }
.mb-recnote { margin-top: 18px; }
.mb-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 20px; }
.mb-form .login-error[hidden] { display: none; }
#mbPrintArea { display: none; }
@media print {
    html.mb-printing body > *:not(#mbPrintArea) { display: none !important; }
    html.mb-printing #mbPrintArea { display: block; }
    .mb-print { max-width: 640px; margin: 0 auto; }
    .mb-print h1 { margin: 6px 0 2px; font-size: 26px; }
    .mb-print-brand { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #5E6178; }
    .mb-print .mb-rec-actions { display: none; }
    .mb-print .mb-rec { margin-top: 14px; background: #fff; }
}
@media (max-width: 900px) {
    .mb-layout { grid-template-columns: minmax(0, 1fr); }
    .mb-side { position: static; }
    .mb-list { max-height: 300px; }
    .mb-main { scroll-margin-top: 100px; }
}
@media (max-width: 520px) {
    .mb-cust-head { flex-wrap: wrap; }
    .mb-cust-actions { width: 100%; padding-left: 72px; }
    .mb-vals, .mb-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mb-rec-head { flex-wrap: wrap; }
}

/* long Tamil words in page titles next to the stats (My Courses, Purchases, Measurement Book) */
.mc-head > div { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }

/* =========================================================
   Notifications: header bell + dropdown, Student/Notifications.aspx
   ========================================================= */
.notif { position: relative; }
.notif-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.notif-btn:hover { border-color: var(--ink); }
.notif-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notif-badge, .notif-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #B42318; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.notif-badge { position: absolute; top: -3px; right: -3px; border: 2px solid #fff; box-sizing: content-box; }
.notif-badge[hidden], .notif-count[hidden] { display: none; }
.notif-count { display: inline-block; margin-left: 6px; vertical-align: middle; }
.notif-panel { position: absolute; right: -60px; top: calc(100% + 10px); z-index: 70; width: 380px; max-width: calc(100vw - 24px); border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -24px rgba(14, 17, 48, .45); overflow: hidden; }
.notif-panel[hidden] { display: none; }
.notif-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.notif-head b { font-size: 16px; color: var(--ink); }
.notif-head .link-btn { font-size: 13px; }
.notif-list { list-style: none; margin: 0; padding: 6px; max-height: 380px; overflow-y: auto; }
.notif-item { position: relative; display: flex; gap: 12px; padding: 12px; border-radius: 16px; color: var(--ink); }
.notif-item:hover { background: var(--bg); }
.notif-item.is-unread { background: #FFF8EC; }
.notif-item.is-unread:hover { background: var(--accent-tint); }
.notif-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--bg-soft); }
.notif-icon svg { width: 19px; height: 19px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notif-icon.is-live, .notif-icon.is-offer, .notif-icon.is-blog { background: var(--accent-tint); }
.notif-body { display: grid; gap: 2px; min-width: 0; padding-right: 12px; overflow-wrap: anywhere; }
.notif-body b { font-size: 14px; }
.notif-body small { font-size: 13px; color: var(--muted); line-height: 1.5; }
.notif-body em { font-size: 12px; font-style: normal; color: var(--muted); }
.notif-dot { position: absolute; top: 16px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.notif-all { display: flex; justify-content: center; gap: 6px; padding: 12px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.notif-all:hover { background: var(--bg); }
.nt-wrap { max-width: 860px; }
.nt-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.nt-card { padding: 8px; }
.nt-list { max-height: none; padding: 0; }
.nt-list .notif-item { padding: 16px; }
.nt-list .notif-body b { font-size: 15px; }
.nt-list .notif-body small { font-size: 14px; }
.nt-empty { padding: 30px 16px; text-align: center; }
.nt-empty[hidden] { display: none; }
@media (max-width: 1180px) { .notif-panel { right: -110px; } }
/* phones: no bell in the header (no room); a dot on the avatar and the count in the menu instead */
@media (max-width: 640px) {
    .notif { display: none !important; }
    html.has-unread .profile-avatar { position: relative; }
    html.has-unread .profile-avatar::after { content: ""; position: absolute; top: -1px; right: -1px; width: 10px; height: 10px; border-radius: 50%; background: #B42318; border: 2px solid #fff; }
}
/* Tamil words are longer: less in the header on mid-size screens (the dot on the avatar shows unread notifications) */
@media (max-width: 1365px) { html[lang="ta"] .profile-name { display: none; } }
@media (max-width: 1100px) {
    html[lang="ta"] .notif { display: none !important; }
    html[lang="ta"].has-unread .profile-avatar { position: relative; }
    html[lang="ta"].has-unread .profile-avatar::after { content: ""; position: absolute; top: -1px; right: -1px; width: 10px; height: 10px; border-radius: 50%; background: #B42318; border: 2px solid #fff; }
}
.nt-bar { flex-wrap: wrap; }
.nt-bar .link-btn { min-width: 0; text-align: right; }

/* =========================================================
   Contact page (Contact.aspx, body.page-contact)
   ========================================================= */
.ct-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(28px, 4vw, 44px); }
.ct-card { display: grid; gap: 4px; align-content: start; min-width: 0; padding: 20px; border-radius: 24px; background: #fff; border: 1px solid var(--line); color: var(--ink); overflow-wrap: anywhere; transition: border-color .3s, transform .3s var(--ease); }
.ct-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.ct-card .nf-icon { margin-bottom: 10px; }
.ct-card b { font-size: 13px; font-weight: 600; color: var(--muted); }
.ct-value { font-size: 16px; font-weight: 700; }
.ct-card small { font-size: 12.5px; color: var(--muted); }
body .ct-body { background-color: #fff; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: var(--grid-size) var(--grid-size); }
.ct-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.ct-form .st-muted { margin-bottom: 16px; }
.ct-form .login-error[hidden] { display: none; }
.ct-submit { margin-top: 20px; }
.ct-side { display: grid; gap: 22px; min-width: 0; }
.ct-visit { min-height: 380px; }
.ct-visit .visit-sub { line-height: 1.6; }
.ct-links h2 { margin-bottom: 10px; }
.ct-link { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; }
.ct-link:hover { color: var(--brand); }
.ct-link .arrow { transition: transform .3s var(--ease); }
.ct-link:hover .arrow { transform: translateX(4px); }
@media (max-width: 1024px) { .ct-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ct-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .ct-cards { grid-template-columns: minmax(0, 1fr); } .ct-card { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; } .ct-card .nf-icon { grid-row: span 3; margin: 0; } }

/* App install button in the footer (only when the browser offers installing) */
.footer-install { margin-right: 10px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.footer-install[hidden] { display: none; }

/* =========================================================
   Accessibility pass (2026-10-12)
   ========================================================= */
/* keyboard focus: a dark ring with a marigold glow is visible on white (marigold alone is too faint);
   on dark areas the ring is marigold */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px rgba(242, 165, 65, .5); }
.cb-times input:focus-visible + span, .stars input:focus-visible + span, .st-switch input:focus-visible + i, .st-radios input:focus-visible + span,
.course-selects select:focus-visible, .earn-range:focus-visible { outline-color: var(--ink); }
.site-footer :focus-visible, .demo-card :focus-visible, .st-card-dark :focus-visible, .dm-side :focus-visible, .dm-cad :focus-visible,
.lv-next :focus-visible, .mc-continue :focus-visible, .visit-card :focus-visible, .review-feature :focus-visible, .offer-strip :focus-visible,
.dm-end :focus-visible, .st-reward-you :focus-visible, .hero-card :focus-visible { outline-color: var(--accent); box-shadow: none; }
.buy-inc-title { font-weight: 600; color: var(--ink); }

/* Header logo: smaller than the 68px pill so it has room above and below (was 50px, edge to edge),
   and a little further from the pill's round left end */
body .site-header .fd-logo-img { height: 42px; }
body .site-header .header-inner { min-height: 68px; }
body .site-header .header-inner, body .site-header.scrolled .header-inner { padding-left: 22px; }
@media (max-width: 640px) {
    body .site-header .fd-logo-img { height: 34px; }
    body .site-header .header-inner, body .site-header.scrolled .header-inner { padding-left: 16px; min-height: 60px; }
}

/* =========================================================
   Learning path as photo cards (Home #path, All Courses) + "Why learn online?" as two cards
   ========================================================= */
.jr { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.jr-step { position: relative; min-width: 0; }
.jr-step:not(:last-child)::after { content: ""; position: absolute; z-index: 3; top: calc(50% - 60px); right: -24px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E1130' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: 0 0 0 5px #fff; }
.jr-card { display: flex; flex-direction: column; height: 100%; border-radius: 26px; overflow: hidden; background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: 0 24px 44px -36px rgba(14, 17, 48, .5); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.jr-card:hover { transform: translateY(-6px); border-color: rgba(242, 165, 65, .6); box-shadow: 0 34px 60px -36px rgba(14, 17, 48, .55); }
.jr-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.jr-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.jr-card:hover .jr-media img { transform: scale(1.06); }
.jr-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 17, 48, .55), rgba(14, 17, 48, 0) 55%); }
.jr-num { position: absolute; z-index: 2; left: 16px; bottom: 12px; font-size: 34px; font-weight: 700; line-height: 1; color: #fff; letter-spacing: -.02em; }
.jr-badge { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; }
.is-soon .jr-badge { background: var(--accent); }
.jr-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.jr-tag { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
html[lang="ta"] .jr-tag { letter-spacing: 0; text-transform: none; }
.jr-body h3 { margin: 0; font-size: 19px; }
.jr-text { color: var(--muted); font-size: 14px; line-height: 1.6; }
.jr-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px dashed rgba(14, 17, 48, .14); font-size: 13.5px; color: var(--muted); }
.jr-meta b { color: var(--ink); }
.jr-price { font-size: 17px; font-weight: 700; color: var(--ink); }
.jr-link { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.is-soon .jr-media img { filter: saturate(.75); }
.is-goal .jr-card { background: var(--ink); border-color: var(--ink); color: #fff; }
.is-goal .jr-body h3, .is-goal .jr-link { color: #fff; }
.is-goal .jr-text, .is-goal .jr-tag { color: rgba(255, 255, 255, .7); }
.is-goal .jr-meta { border-top-color: rgba(255, 255, 255, .18); justify-content: flex-start; }
.is-goal .jr-meta i { width: 30px; height: 30px; margin-left: auto; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--ink); }
.is-goal .jr-meta i svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.is-goal .jr-media::after { background: linear-gradient(to top, rgba(14, 17, 48, .9), rgba(14, 17, 48, .1) 70%); }
.vs2 { margin-top: clamp(48px, 6vw, 72px); }
.vs2-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.vs2-card { min-width: 0; padding: clamp(22px, 3vw, 32px); border-radius: 28px; overflow-wrap: anywhere; }
.vs2-us { color: #fff; background-color: var(--ink); background-image: linear-gradient(var(--grid-dark) 1px, transparent 1px), linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px); background-size: var(--grid-size) var(--grid-size); box-shadow: var(--shadow-card); }
.vs2-them { background: #fff; border: 1px solid var(--line); }
.vs2-label { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 18px; font-weight: 700; }
.vs2-them .vs2-label { color: var(--muted); }
.vs2-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); }
.vs2-mark svg, .vs2-ico svg { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.vs2-mark svg { width: 16px; height: 16px; stroke: var(--ink); }
.vs2-list { list-style: none; margin: 0; padding: 0; display: grid; }
.vs2-list li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.vs2-us .vs2-list li { border-top-color: rgba(255, 255, 255, .12); }
.vs2-list li > span:last-child { display: grid; gap: 2px; min-width: 0; }
.vs2-list small { font-size: 12.5px; color: var(--muted); }
.vs2-us .vs2-list small { color: rgba(255, 255, 255, .6); }
.vs2-list b { font-size: 16px; font-weight: 600; }
.vs2-them .vs2-list li > span:last-child > span { font-size: 15px; color: var(--muted); }
.vs2-ico { width: 24px; height: 24px; flex: none; display: grid; place-items: center; margin-top: 8px; border-radius: 50%; }
.vs2-ico svg { width: 13px; height: 13px; }
.vs2-us .vs2-ico { background: var(--accent); }
.vs2-us .vs2-ico svg { stroke: var(--ink); }
.vs2-them .vs2-ico { background: var(--bg-soft); }
.vs2-them .vs2-ico svg { stroke: #8A8DA3; }
.vs2-vs { position: absolute; z-index: 2; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: 15px; font-weight: 800; box-shadow: 0 0 0 8px #fff; }
@media (max-width: 1100px) {
    .jr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jr-step:nth-child(2)::after { display: none; }
}
@media (max-width: 720px) {
    .jr { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .jr-step::after { display: none; }
    .jr-card { flex-direction: row; }
    .jr-media { width: 38%; flex: none; aspect-ratio: auto; min-height: 150px; }
    .jr-num { font-size: 26px; left: 12px; bottom: 10px; }
    .jr-badge { top: 10px; left: 10px; font-size: 11px; padding: 4px 9px; }
    .jr-body { padding: 14px 16px 16px; }
    .jr-body h3 { font-size: 17px; }
    .jr-text { font-size: 13.5px; }
    .vs2-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
    .vs2-card { border-radius: 24px; }
    .vs2-vs { width: 46px; height: 46px; margin: -23px 0 0 -23px; font-size: 13px; }
}
@media (max-width: 420px) {
    .jr-media { width: 36%; min-height: 0; }
    .jr-badge { display: none; }
    .jr-body { padding: 12px 14px 14px; gap: 4px; }
    .jr-text { font-size: 13px; line-height: 1.5; }
    .jr-meta { padding-top: 10px; font-size: 12.5px; }
    .jr-price { font-size: 15px; }
}

/* "Why learn online?": the Classroom card was too faint (owner) - darker text, clear red crosses */
.vs2-them { border-color: rgba(14, 17, 48, .14); box-shadow: 0 24px 44px -36px rgba(14, 17, 48, .35); }
.vs2-them .vs2-label { color: var(--ink); }
.vs2-them .vs2-list li { border-top-color: rgba(14, 17, 48, .1); }
.vs2-them .vs2-list small { color: var(--muted); font-weight: 500; }
.vs2-them .vs2-list li > span:last-child > span { font-size: 16px; font-weight: 500; color: #2E3250; }
.vs2-them .vs2-ico { background: #FDECEA; }
.vs2-them .vs2-ico svg { stroke: #B42318; }
.vs2-them .vs2-ico svg { width: 14px; height: 14px; stroke-width: 3; }

/* One look for every "+91" box (Login, Checkout, Free Demo, Contact, Measurement Book): a full-height grey part
   with a divider, room on both sides, and space before the number (it was a squeezed chip in some forms) */
.phone-input .cb-cc, .mb-phone .cb-cc, .phone-input .phone-cc {
    align-self: stretch; display: flex; align-items: center; height: auto;
    padding: 0 14px 0 18px; border: 0; border-right: 1px solid var(--line); border-radius: 0;
    background: #FAFAFD; color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: .02em;
}
.phone-input input, .mb-phone input { padding: 0 16px; }
.dm-form .phone-input, .mb-phone { background: #fff; }
.dm-form .phone-input .cb-cc, .mb-phone .cb-cc { padding: 0 14px 0 18px; color: var(--ink); }

.visit-contact { align-self: flex-start; margin: 0 0 16px; font-size: 14px; font-weight: 600; color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.visit-contact:hover { color: var(--accent); }
/* Tamil words are long: a tighter menu on narrow computer screens so Contact still fits beside the profile */
@media (max-width: 1180px) { html[lang="ta"] .main-nav { gap: 6px; } html[lang="ta"] body .main-nav a { font-size: 12px; letter-spacing: 0; } }

/* =========================================================
   Back to top (all Public.Master pages): above the WhatsApp button; on phones above the bottom bar
   ========================================================= */
.to-top { position: fixed; z-index: 41; right: 28px; bottom: 110px; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer;
    box-shadow: 0 14px 30px -12px rgba(14, 17, 48, .45); opacity: 0; transform: translateY(14px) scale(.85); pointer-events: none; transition: opacity .35s, transform .45s var(--ease), background .3s; }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: #fff; }
.tt-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.tt-ring circle { fill: none; stroke-width: 3; }
.tt-track { stroke: rgba(14, 17, 48, .1); }
.tt-bar { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .15s linear; }
.tt-arrow { position: relative; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.to-top:hover .tt-arrow { transform: translateY(-2px); }
body.menu-open .to-top { opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
    .to-top { right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) { .to-top, .tt-bar { transition: none; } }
@media print { .to-top { display: none !important; } }

/* =========================================================
   Site search: 🔍 in the header menu, panel under the header, search box in the phone menu
   ========================================================= */
.nav-search { width: 34px; height: 34px; flex: none; display: grid; place-items: center; align-self: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; transition: border-color .3s, background .3s; }
.nav-search:hover, .nav-search[aria-expanded="true"] { border-color: var(--ink); }
.nav-search svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
body .main-nav { gap: 22px; }
.srch { position: fixed; inset: 0; z-index: 60; padding: calc(100px + var(--offer-h)) 16px 24px; background: rgba(14, 17, 48, .35); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); overflow-y: auto; }
.srch[hidden] { display: none; }
.srch-box { max-width: 720px; margin: 0 auto; border-radius: 28px; background: #fff; box-shadow: 0 40px 80px -30px rgba(14, 17, 48, .55); overflow: hidden; animation: cb-in .35s var(--ease); }
.srch-form { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); }
.srch-field { flex: 1; height: 54px; box-shadow: none; }
.srch-close { width: 44px; height: 44px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--bg); color: var(--ink); cursor: pointer; }
.srch-close:hover { background: var(--bg-soft); }
.srch-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.srch-results { padding: 10px 14px 16px; max-height: min(60vh, 520px); overflow-y: auto; }
.srch-label { margin: 10px 8px 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
html[lang="ta"] .srch-label { letter-spacing: 0; text-transform: none; }
.srch-label[hidden], .srch-list li[hidden], .srch-none[hidden] { display: none; }
.srch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.srch-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; color: var(--ink); overflow-wrap: anywhere; }
.srch-item:hover, .srch-item:focus-visible { background: var(--bg); }
.srch-item > span:last-child { display: grid; gap: 1px; min-width: 0; }
.srch-item b { font-size: 15px; }
.srch-item small { font-size: 12.5px; color: var(--muted); }
.srch-ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--accent-tint); }
.srch-ico.is-page { background: var(--bg-soft); }
.srch-ico svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.srch-none { margin: 14px 8px; color: var(--muted); font-size: 14px; }
.srch-all { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; padding: 14px 16px; border-radius: 16px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; }
.srch-all:hover { background: var(--brand); }
body.srch-open { overflow: hidden; }
.mm-search { margin: 0 0 18px; }
.mm-search .course-search { height: 52px; box-shadow: none; }
@media (max-width: 960px) { .nav-search { display: none; } }
@media (max-width: 640px) { .srch { padding-top: calc(86px + var(--offer-h)); } .srch-box { border-radius: 22px; } }
/* Tamil + logged in: between 961 and 1023 px the header has no room for the menu, so it moves into the ☰ menu as on tablets */
@media (min-width: 961px) and (max-width: 1023px) {
    html.is-auth[lang="ta"] .main-nav { display: none; }
    html.is-auth[lang="ta"] .menu-toggle { display: block; }
}

/* Teacher photos (Divya): full picture on Home keeps its marigold shapes on the light card; round face on Course Details */
.teacher-photo > img { object-fit: contain; object-position: center bottom; }
.cd-teacher-photo { border: 0; overflow: hidden; box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(242, 165, 65, .5); }
.cd-teacher-photo img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   Practice (Student/Practice.aspx, body.st-practice) and Boutique Toolkit (Student/Toolkit.aspx, body.st-toolkit)
   ========================================================= */
.pr-layout { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 22px; align-items: start; }
.pr-side { position: sticky; top: calc(100px + var(--offer-h)); display: grid; gap: 22px; min-width: 0; }
.pr-form .st-muted { margin-bottom: 16px; }
.pr-form .co-grid { grid-template-columns: minmax(0, 1fr); }
.pr-drop { position: relative; display: grid; place-items: center; gap: 8px; min-height: 130px; padding: 16px; border-radius: 18px; border: 1.5px dashed rgba(14, 17, 48, .22); text-align: center; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; overflow: hidden; overflow-wrap: anywhere; }
.pr-drop:hover, .pr-drop:focus-within { border-color: var(--accent); color: var(--ink); }
.pr-drop > svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pr-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pr-drop img { max-width: 100%; max-height: 220px; border-radius: 12px; object-fit: contain; }
.pr-drop img[hidden] { display: none; }
.pr-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 14px; color: var(--ink); cursor: pointer; }
.pr-check input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--ink); }
.pr-check small { display: block; color: var(--muted); font-size: 12.5px; }
.pr-submit { margin-top: 20px; }
.pr-form .login-error[hidden], .pr-sent[hidden] { display: none; }
.pr-sent { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: #E7F6EC; color: #1F7A45; font-size: 14px; font-weight: 600; }
.pr-tips { padding: clamp(20px, 2.4vw, 28px); }
.pr-tips h2 { margin: 0 0 10px; font-size: 17px; }
.pr-tips ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.pr-main { min-width: 0; }
/* Practice: "Practice stars" leaderboard */
.lb-card { margin-bottom: 28px; }
.lb-radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lb-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 22px; }
.lb-head > div:not(.lb-tabs) { flex: 1 1 200px; min-width: 0; }
.lb-head h2 { margin: 0; }
.lb-head p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.lb-trophy { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(150deg, #FFD36E, #F2A541); box-shadow: 0 10px 22px -12px rgba(242, 165, 65, .9); }
.lb-trophy svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-tabs { display: inline-flex; padding: 4px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); }
.lb-tabs label { padding: 8px 16px; border-radius: 99px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
#lbWeek:checked ~ .lb-head label[for="lbWeek"], #lbAll:checked ~ .lb-head label[for="lbAll"] { background: var(--ink); color: #fff; }
#lbWeek:focus-visible ~ .lb-head label[for="lbWeek"], #lbAll:focus-visible ~ .lb-head label[for="lbAll"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.lb-pane { display: none; }
#lbWeek:checked ~ .lb-pane-week, #lbAll:checked ~ .lb-pane-all { display: block; }
/* top 3: 2nd, 1st, 3rd */
.lb-podium { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 12px; }
.lb-podium li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px 0; text-align: center; min-width: 0; --m: #F2A541; --t: #FFF6E5; }
.lb-podium .lb-r1 { order: 2; }
.lb-podium .lb-r2 { order: 1; --m: #9AA3B8; --t: #F1F3F8; }
.lb-podium .lb-r3 { order: 3; --m: #CD7F45; --t: #FBEFE6; }
.lb-ava { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--t); color: var(--ink); font-size: 24px; font-weight: 700; border: 3px solid var(--m); }
.lb-ava svg { width: 55%; height: 55%; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.lb-r1 .lb-ava { width: 78px; height: 78px; font-size: 30px; box-shadow: 0 0 0 6px rgba(242, 165, 65, .18); }
.lb-medal { position: absolute; top: 8px; left: calc(50% + 18px); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--m); color: #fff; font-style: normal; font-size: 13px; font-weight: 700; border: 2px solid #fff; }
.lb-r1 .lb-medal { left: calc(50% + 24px); }
.lb-name { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 6px; font-size: 15px; color: var(--ink); line-height: 1.3; min-width: 0; max-width: 100%; }
.lb-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.lb-you { padding: 2px 8px; border-radius: 99px; background: #F26B1D; color: #fff; font-style: normal; font-size: 11px; font-weight: 700; }
.lb-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; font-size: 13px; color: var(--muted); }
.lb-n b { color: var(--ink); }
.lb-avg { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 600; color: #B7791F; }
.lb-avg svg { width: 14px; height: 14px; fill: #F2A541; }
.lb-step { display: block; width: 100%; height: 56px; margin-top: 8px; border-radius: 16px 16px 6px 6px; background: linear-gradient(180deg, var(--t), #fff); border: 1px solid var(--line); border-top: 4px solid var(--m); }
.lb-r1 .lb-step { height: 84px; }
.lb-r3 .lb-step { height: 40px; }
.lb-podium .is-mine .lb-step { border-color: #F26B1D; border-top-color: var(--m); }
/* 4 to 10 */
.lb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lb-list li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; background: #FAFAFD; border: 1px solid var(--line); min-width: 0; }
.lb-list .lb-name { flex: 1; justify-content: flex-start; font-size: 14.5px; }
.lb-list .lb-n { flex: none; font-size: 13.5px; color: var(--muted); }
.lb-rank { flex: none; width: 26px; text-align: center; font-weight: 700; color: var(--muted); }
.lb-ava.is-sm { width: 38px; height: 38px; font-size: 15px; border-width: 2px; --m: var(--line); --t: #fff; }
.lb-list .is-mine, .lb-mine { background: #FFF4EC; border-color: #FFC9A6; }
.lb-mine { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; padding: 12px 14px; border-radius: 16px; border: 1px solid #FFC9A6; font-size: 14px; color: var(--muted); }
.lb-mine > b { color: #C2410C; }
.lb-empty { margin: 0; padding: 28px 16px; border-radius: 18px; border: 1.5px dashed var(--line); text-align: center; color: var(--muted); font-size: 14.5px; }
.lb-note { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); }
.lb-note a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) {
    .lb-tabs { width: 100%; }
    .lb-tabs label { flex: 1; text-align: center; padding: 8px 10px; }
    .lb-podium { gap: 6px; }
    .lb-ava { width: 52px; height: 52px; font-size: 20px; }
    .lb-r1 .lb-ava { width: 62px; height: 62px; font-size: 24px; }
    .lb-medal { left: calc(50% + 12px); width: 22px; height: 22px; font-size: 11px; }
    .lb-r1 .lb-medal { left: calc(50% + 17px); }
    .lb-name { font-size: 13.5px; }
    .lb-meta, .lb-avg { font-size: 12px; }
    .lb-list li { display: grid; grid-template-columns: 22px 38px minmax(0, 1fr) auto; grid-template-areas: "r a n c" "r a v c"; align-items: center; gap: 0 10px; padding: 10px 12px; }
    .lb-list .lb-rank { grid-area: r; width: auto; }
    .lb-list .lb-ava { grid-area: a; }
    .lb-list .lb-name { grid-area: n; }
    .lb-list .lb-avg { grid-area: v; margin-top: 2px; }
    .lb-list li:not(:has(.lb-avg)) .lb-name { grid-row: 1 / 3; }
    .lb-list .lb-n { grid-area: c; white-space: nowrap; }
    .lb-meta { flex-direction: column; align-items: center; white-space: nowrap; }
}
.pr-list { display: grid; gap: 16px; margin-top: 16px; }
.pr-card { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; padding: 14px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 44px -36px rgba(14, 17, 48, .45); min-width: 0; }
.pr-photo { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--bg-soft); cursor: zoom-in; }
.pr-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pr-photo:hover img { transform: scale(1.06); }
.pr-body { display: grid; align-content: start; gap: 8px; min-width: 0; overflow-wrap: anywhere; padding: 4px 6px 4px 0; }
.pr-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pr-top b { font-size: 16px; color: var(--ink); }
.pr-top .st-status { flex: none; }
.pr-meta { margin: 0; font-size: 13px; color: var(--muted); }
.pr-meta em { font-style: normal; font-weight: 600; color: var(--ink); }
.pr-note { margin: 0; font-size: 14px; color: var(--muted); font-style: italic; }
.pr-marks { display: flex; align-items: center; gap: 12px; }
.pr-score { font-size: 28px; font-weight: 700; line-height: 1; color: var(--ink); }
.pr-score small { font-size: 14px; font-weight: 500; color: var(--muted); }
.pr-bar { display: flex; gap: 4px; flex: 1; max-width: 240px; }
.pr-bar i { flex: 1; height: 8px; border-radius: 99px; background: rgba(14, 17, 48, .1); }
.pr-bar i.on { background: var(--accent); }
.pr-fb { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--accent-tint); }
.pr-fb img { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; }
.pr-fb p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink); }
.pr-fb b { display: block; font-size: 13px; margin-bottom: 2px; }
.pr-wait { margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--bg); font-size: 13.5px; color: var(--muted); }
.pr-del { justify-self: start; font-size: 13px; }
.pr-empty[hidden] { display: none; }
.pr-box img { display: block; width: 100%; max-height: 80vh; object-fit: contain; border-radius: 28px; background: #0E1130; }
.pr-box .cb-close { top: 14px; right: 14px; }
.hp-filter .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Toolkit */
.tk-shopcard { margin-bottom: 18px; }
.tk-shopcard .co-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tk-shopcard h2 { font-size: 17px; margin-bottom: 4px; }
.tk-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.tk-tabs .chip { height: 46px; padding: 0 22px; font-size: 15px; }
.tk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 22px; align-items: start; }
.tk-grid > [hidden], [data-tkpanel][hidden] { display: none; }
.tk-form { min-width: 0; }
.tk-form h2 { margin-bottom: 12px; }
.tk-form .co-grid { margin-bottom: 6px; }
.tk-items-head, .tk-row { display: grid; grid-template-columns: minmax(0, 1fr) 62px 92px 84px 34px; gap: 8px; align-items: center; }
.tk-items-head { margin: 18px 0 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.tk-items-head span:nth-child(n+2) { text-align: center; }
.tk-row { margin-bottom: 8px; }
.tk-rate { grid-template-columns: minmax(0, 1fr) auto 100px 34px; }
.tk-row input { width: 100%; min-width: 0; height: 46px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); font-size: 15px; color: var(--ink); outline: 0; background: #fff; }
.tk-row input:focus, .tk-form .login-input:focus { border-color: var(--accent); }
.tk-q { text-align: center; }
.tk-amt { font-size: 14px; font-weight: 600; text-align: right; color: var(--ink); }
.tk-cur { color: var(--muted); font-weight: 600; }
.tk-x { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--bg); color: var(--muted); cursor: pointer; }
.tk-x:hover { background: #FDECEA; color: #B42318; }
.tk-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.tk-add { margin: 4px 0 16px; }
.tk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 20px; }
.tk-msg { margin: 10px 0 0; font-size: 13.5px; font-weight: 600; color: #1F7A45; }
.tk-msg[hidden] { display: none; }
.tk-prev { position: sticky; top: calc(100px + var(--offer-h)); min-width: 0; }
.tk-bill { padding: clamp(18px, 2.4vw, 26px); border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -44px rgba(14, 17, 48, .5); color: var(--ink); overflow-wrap: anywhere; }
.tk-shop { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); text-align: center; }
.tk-shop b { font-size: 19px; }
.tk-shop small { font-size: 12.5px; color: var(--muted); }
.tk-bill-meta { display: flex; justify-content: space-between; gap: 10px; margin: 12px 0 6px; font-size: 12.5px; color: var(--muted); }
.tk-bill-meta b, .tk-bill-cust b { color: var(--ink); }
.tk-bill-cust { margin: 0 0 10px; font-size: 13.5px; }
.tk-bill-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tk-bill-table th { padding: 8px 6px; text-align: left; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.tk-bill-table th:nth-child(n+2), .tk-bill-table td:nth-child(n+2) { text-align: right; white-space: nowrap; }
.tk-bill-table td { padding: 8px 6px; border-bottom: 1px dashed var(--line); }
.tk-empty { margin: 0; padding: 14px 6px; color: var(--muted); font-size: 13.5px; text-align: center; }
.tk-bill-table .tk-empty { text-align: center !important; }
.tk-bill-sum { margin: 12px 0 0; display: grid; gap: 6px; }
.tk-bill-sum div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.tk-bill-sum dt { color: var(--muted); }
.tk-bill-sum dd { margin: 0; font-weight: 600; }
.tk-bill-sum .is-bal { margin-top: 4px; padding-top: 10px; border-top: 1px dashed rgba(14, 17, 48, .25); }
.tk-bill-sum .is-bal dt, .tk-bill-sum .is-bal dd { font-size: 17px; font-weight: 700; color: var(--ink); }
.tk-bill-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.tk-bill-thanks { margin: 14px 0 0; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.tk-ratecard h3 { margin: 14px 0 6px; font-size: 16px; text-align: center; }
.tk-ratecard ul { list-style: none; margin: 0; padding: 0; }
.tk-ratecard li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.tk-saved { margin-top: 22px; }
.tk-saved ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tk-saved li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tk-saved li > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.tk-saved li small { font-size: 12.5px; color: var(--muted); }
.tk-saved li .st-status { flex: none; }
.tk-saved .st-muted[hidden] { display: none; }
.tk-calc .co-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tk-profit { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.tk-profit input { flex: 1; }
.tk-profit b { min-width: 44px; text-align: right; }
.tk-suggest-label { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.tk-suggest { margin: 4px 0 14px; text-align: center; font-size: clamp(36px, 5vw, 48px); font-weight: 700; line-height: 1.1; }
.tk-suggest::after { content: ""; display: block; width: 90px; height: 8px; margin: 6px auto 0; border-radius: 4px; background: rgba(242, 165, 65, .55); }
.tk-addrate { margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(14, 17, 48, .2); display: flex; gap: 8px; }
.tk-addrate[hidden] { display: none; }
.tk-addrate input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); font-size: 15px; outline: 0; }
#tkPrintArea { display: none; }
@media print {
    html.tk-printing body > *:not(#tkPrintArea) { display: none !important; }
    html.tk-printing #tkPrintArea { display: block; max-width: 640px; margin: 0 auto; }
    html.tk-printing .tk-bill { box-shadow: none; border: 0; }
}
@media (max-width: 1024px) {
    .pr-layout, .tk-grid { grid-template-columns: minmax(0, 1fr); }
    .pr-side, .tk-prev { position: static; }
}
@media (max-width: 640px) {
    .pr-card { grid-template-columns: minmax(0, 1fr); }
    .pr-photo { aspect-ratio: 4 / 3; }
    .tk-shopcard .co-grid, .tk-calc .co-grid { grid-template-columns: minmax(0, 1fr); }
    .tk-items-head { display: none; }
    .tk-row { grid-template-columns: minmax(0, 1fr) 56px 84px 30px; }
    .tk-row .tk-amt { display: none; }
    .tk-rate { grid-template-columns: minmax(0, 1fr) auto 90px 30px; }
    .tk-saved li { flex-wrap: wrap; }
}
.tk-profit input[type="range"] { accent-color: var(--ink); }
.pr-check input, .tk-form input[type="range"] { accent-color: var(--ink); }
.hp-filter { flex-wrap: wrap; }
.tk-tabs .chip { max-width: 100%; }

/* Back button at the top of every page except Home */
.page-back-row { padding-bottom: 14px; }
.page-back { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px 9px 12px; border-radius: 999px; background: #fff; border: 1px solid rgba(38, 48, 107, .14); box-shadow: 0 10px 24px -18px rgba(14, 17, 48, .5); font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.2; transition: transform .3s var(--ease), background .3s, border-color .3s; }
.page-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.page-back:hover { background: var(--accent); border-color: var(--accent); transform: translateX(-3px); }
.pl-page > .page-back-row { padding-bottom: 14px; }
@media print { .page-back-row { display: none; } }

.pl-custom { margin: 0 0 12px; padding: 8px 12px; border-radius: 12px; background: #FFF8EC; border: 1px solid rgba(242, 165, 65, .5); font-size: 12.5px; line-height: 1.4; }

/* Settings page: section menu on the left, one calm column of cards on the right, in a clear order */
.st-settings { grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: start; }
.st-settings > :first-child, .st-settings > .st-danger { grid-column: auto; }
.ss-nav { position: sticky; top: 112px; display: grid; gap: 4px; padding: 10px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.ss-nav a { padding: 10px 14px; border-radius: 14px; font-size: 14px; font-weight: 600; color: var(--muted); transition: background .25s, color .25s; }
.ss-nav a:hover { background: rgba(14, 17, 48, .06); color: var(--ink); }
.ss-nav a.is-danger { color: #B42318; }
.ss-stack { display: grid; gap: 18px; max-width: 780px; min-width: 0; }
.ss-card { scroll-margin-top: 112px; }
.ss-card h2 { margin: 0 0 16px; }
.ss-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.ss-row .st-phone, .ss-row .st-muted { margin: 0; }
.ss-card > .st-muted { margin-top: 10px; }
.ss-card .st-save { margin-top: 20px; }
.ss-card .co-grid { margin: 0; }
.ss-card .st-switch:last-child { padding-bottom: 0; }
.st-danger .ss-row .st-muted { flex: 1 1 320px; }
@media (max-width: 900px) {
    .st-settings { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .ss-nav { position: static; display: flex; gap: 8px; padding: 6px; overflow-x: auto; scrollbar-width: none; border-radius: 999px; }
    .ss-nav::-webkit-scrollbar { display: none; }
    .ss-nav a { flex: none; white-space: nowrap; }
}

/* Student reviews on the course page and the rate link in the player */
.rv-summary { margin: 8px 0 0; display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.rv-summary b { padding: 3px 12px; border-radius: 999px; background: var(--tint, #FDF0DC); color: var(--ink); }
.rv-stars { color: #C98613; letter-spacing: 2px; }
.rv-reply { margin: 14px 0 0; padding: 10px 14px; border-radius: 14px; background: rgba(14, 17, 48, .05); font-size: 13.5px; line-height: 1.6; color: var(--ink); }
.rv-reply b { margin-right: 4px; }
#plRate svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

/* Student Downloads */
.dl-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-bottom: 26px; }
.dl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-search { flex: 1 1 240px; max-width: 360px; }
.dl-search input { width: 100%; }
.dl-group { margin-bottom: 34px; }
.dl-course { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 14px; font-size: clamp(18px, 2vw, 22px); color: var(--ink); }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.dl-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 44px -40px rgba(14, 17, 48, .5); min-width: 0; }
.dl-card.is-locked { background: rgba(255, 255, 255, .6); }
.dl-card.is-locked .dl-info, .dl-card.is-locked .dl-ico { opacity: .55; }
.dl-ico { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: #FDF0DC; }
.dl-ico.is-chart { background: #E4E9FB; }
.dl-ico.is-notes { background: #E7F6EC; }
.dl-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dl-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.dl-info b { font-size: 15px; overflow-wrap: anywhere; }
.dl-info small { font-size: 12.5px; color: var(--muted); }
.dl-btn { flex: none; padding: 10px 16px 10px 20px; font-size: 13px; }
.dl-card .pl-btn { flex: none; }
.dl-toast { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translate(-50%, 20px); max-width: min(92vw, 520px); padding: 12px 20px; border-radius: 18px; background: var(--ink); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s; text-align: center; }
.dl-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.pl-files-all { margin: 14px 0 0; }
@media (max-width: 560px) { .dl-grid { grid-template-columns: minmax(0, 1fr); } .dl-card { flex-wrap: wrap; } .dl-btn, .dl-card .pl-btn { margin-left: 62px; } }
/* Downloads cards: icon and text on top, the button under the text (the text gets the full width) */
.dl-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.dl-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px 14px; align-items: start; }
.dl-card .dl-btn, .dl-card .pl-btn { grid-column: 2; justify-self: start; margin-left: 0; }
@media (max-width: 560px) { .dl-card .dl-btn, .dl-card .pl-btn { margin-left: 0; } }

/* Pattern library */
.pt-sizes { align-items: center; margin: -8px 0 22px; }
.pt-sizelabel { font-size: 13px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.dl-chips .chip small { margin-left: 4px; opacity: .6; }
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-bottom: 36px; }
.pt-card { display: grid; gap: 12px; padding: 14px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 44px -40px rgba(14, 17, 48, .5); align-content: start; min-width: 0; }
.pt-prev { position: relative; display: block; width: 100%; aspect-ratio: 5 / 6; padding: 0; border: 0; border-radius: 18px; background: #FFF8EC; overflow: hidden; cursor: pointer; }
.pt-prev img, .pt-prev .pt-art { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-card.is-locked .pt-prev { opacity: .65; }
.pt-size { position: absolute; left: 10px; top: 10px; padding: 4px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; }
.pt-lock { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #fff; }
.pt-lock svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pt-info { display: grid; gap: 2px; min-width: 0; }
.pt-info b { font-size: 15px; overflow-wrap: anywhere; }
.pt-info small { font-size: 12.5px; color: var(--muted); }
.pt-card .dl-btn, .pt-card .pl-btn { justify-self: start; }
.pt-shape path { fill: #FDF0DC; stroke: #0E1130; stroke-width: 2; stroke-dasharray: 6 4; stroke-linejoin: round; }
.pt-shape .cut { fill: none; stroke: #F2A541; stroke-dasharray: 3 3; }
.pt-test { fill: none; stroke: #F2A541; stroke-width: 1.5; }
.pt-testtxt { font-size: 7px; fill: #0E1130; font-family: Poppins, sans-serif; }
.pt-guide { max-width: 760px; }
.pt-guide ol, .pt-dsteps { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.pt-dialog { width: min(760px, 94vw); padding: 0; }
.pt-dbody { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; padding: 28px; }
.pt-dprev { border-radius: 20px; background: #FFF8EC; overflow: hidden; aspect-ratio: 5 / 6; }
.pt-dprev img, .pt-dprev .pt-art { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-dinfo { display: grid; gap: 12px; align-content: start; min-width: 0; }
.pt-dinfo h3 { margin: 0; font-size: 22px; }
@media (max-width: 640px) { .pt-dbody { grid-template-columns: minmax(0, 1fr); padding: 22px; } .pt-dprev { max-width: 280px; } .pt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

@media (max-width: 640px) { .pt-card { padding: 10px; gap: 10px; } .pt-card .dl-btn { padding: 8px 12px 8px 14px; font-size: 12px; } .pt-card .dl-btn i { display: none; } .pt-card .pl-btn { padding: 8px 12px; font-size: 12px; } .pt-info b { font-size: 14px; } }
@media (max-width: 560px) { .pt-card .dl-btn, .pt-card .pl-btn { margin-left: 0; } }

.cert-sig-img { display: block; max-height: 44px; max-width: 150px; margin: 0 0 4px; }
.st-cert-foot { justify-content: flex-start; margin-top: 18px; }

/* Admin looking at the student pages */
.va-bar { position: fixed; z-index: 90; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; width: max-content; max-width: calc(100vw - 32px); padding: 8px 8px 8px 8px; border-radius: 999px; background: #0E1130; color: #fff; box-shadow: 0 18px 40px -12px rgba(14, 17, 48, .55); }
.va-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.va-switch button { height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .8); cursor: pointer; }
.va-switch button:hover { color: #fff; }
.va-switch button.is-on { background: #F2A541; color: #0E1130; cursor: default; }
.va-who { display: flex; align-items: center; gap: 8px; padding-right: 10px; font-size: 13px; color: rgba(255, 255, 255, .75); min-width: 0; }
.va-who select { max-width: 160px; height: 36px; padding: 0 28px 0 12px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: 14px; font-weight: 600; }
.va-who select option { color: #0E1130; }
body.has-va-bar { padding-bottom: 84px; }
@media (max-width: 560px) { .va-bar { left: 12px; right: 12px; transform: none; width: auto; gap: 8px; } .va-who span { display: none; } .va-who { flex: 1; padding-right: 4px; } .va-who select { width: 100%; max-width: none; } .va-switch button { padding: 0 14px; } }
/* FIX #15 – va-bar must not float above the mobile slide-in menu */
body.menu-open .va-bar { z-index: 40; }

/* Lesson player: our own controls over the YouTube video (no YouTube buttons, title, logo or end screen is ever clickable or visible) */
.pl-video iframe { pointer-events: none; }
.pl-ui { position: absolute; inset: 0; z-index: 3; }
.pl-shield { position: absolute; inset: 0; cursor: pointer; background: transparent; }
.pl-wm { position: absolute; z-index: 1; padding: 3px 10px; border-radius: 999px; background: rgba(14, 17, 48, .28); color: rgba(255, 255, 255, .62); font-size: 12.5px; font-weight: 500; letter-spacing: .02em; pointer-events: none; user-select: none; white-space: nowrap; transition: left 1.6s ease, top 1.6s ease; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.pl-cover { position: absolute; inset: 0; z-index: 2; width: 100%; padding: 0; border: 0; cursor: pointer; background: var(--ink) center / cover; }
.pl-cover[hidden] { display: none; }
.pl-cover .buy-play { width: 76px; height: 76px; }
.pl-ctl { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 26px 16px 12px; color: #fff; background: linear-gradient(transparent, rgba(8, 10, 30, .82)); transition: opacity .3s; }
.pl-ui.is-idle .pl-ctl { opacity: 0; pointer-events: none; }
.pl-ui.is-idle .pl-shield { cursor: none; }
.pl-cb { width: 38px; height: 38px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.pl-cb:hover { background: var(--accent); color: var(--ink); }
.pl-cb svg { width: 18px; height: 18px; }
.pl-time { flex: none; font-size: 13px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .85); }
.pl-time b { color: #fff; font-weight: 600; }
.pl-range { flex: 1; min-width: 40px; height: 4px; accent-color: var(--accent); cursor: pointer; }
.pl-video.is-hidden-pic .pl-ui::after { content: ""; position: absolute; inset: 0; z-index: 5; background: #0E1130; }
.pl-video:fullscreen { border-radius: 0; aspect-ratio: auto; }
.pl-wm2 { left: auto; top: 10px; right: 10px; opacity: .55; }
@media (max-width: 560px) { .pl-ctl { gap: 8px; padding: 22px 10px 8px; } .pl-time { font-size: 12px; } .pl-cb { width: 34px; height: 34px; } .pl-wm { font-size: 11px; } }

/* YouTube draws its own title (top) and logo / "More videos" (bottom) inside its frame and we cannot remove them. So: (1) for the first seconds the
   video plays hidden and muted behind our loading picture (YouTube shows its title only then), then jumps back to the start; (2) while paused (or just
   after resuming) a solid band covers the top and our control bar covers the bottom; they are gone while the lesson plays. */
.pl-video.is-booting iframe { opacity: 0; }
.pl-video.is-booting .pl-ctl { opacity: 0; pointer-events: none; }
.pl-video.is-booting .pl-cover .buy-play { display: none; }
.pl-video.is-booting .pl-cover::after { content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .25); border-top-color: var(--accent); animation: pl-spin .9s linear infinite; }
@keyframes pl-spin { to { transform: rotate(360deg); } }
.pl-video.is-booting .pl-cover { background-color: #0E1130; }
.pl-video.is-booting .pl-cover::before { content: ""; position: absolute; inset: 0; background: rgba(14, 17, 48, .55); }
.pl-ui::before { content: ""; position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: clamp(64px, 18%, 100px); background: rgba(14, 17, 48, .38); -webkit-backdrop-filter: blur(22px) brightness(.8); backdrop-filter: blur(22px) brightness(.8); -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); opacity: 0; pointer-events: none; transition: opacity .45s; }
.pl-ui.is-masked::before { opacity: 1; }
.pl-ui.is-masked .pl-ctl { padding-top: 26px; background: rgba(14, 17, 48, .38); -webkit-backdrop-filter: blur(22px) brightness(.8); backdrop-filter: blur(22px) brightness(.8); -webkit-mask-image: linear-gradient(transparent, #000 26%); mask-image: linear-gradient(transparent, #000 26%); }
@media (prefers-reduced-motion: reduce) { .pl-video.is-booting .pl-cover::after { animation-duration: 3s; } }

/* a lesson that is a video file: plain <video> filling the box, no YouTube parts to hide */
.pl-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; pointer-events: none; }
.pl-video.is-native .pl-ui::before { display: none; }

/* a lesson that is a video file: plain <video> filling the box, no YouTube parts to hide */
.pl-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; pointer-events: none; }
.pl-video.is-native .pl-ui::before { display: none; }

/* video quality menu (streams with several sizes) */
.pl-qwrap { position: relative; flex: none; }
.pl-qb { width: auto; min-width: 46px; padding: 0 12px; border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 600; }
.pl-qmenu { list-style: none; position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 4; margin: 0; padding: 6px; min-width: 170px; border-radius: 14px; background: rgba(14, 17, 48, .96); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6); }
.pl-qmenu[hidden] { display: none; }
.pl-qmenu button { display: block; width: 100%; padding: 8px 12px; border: 0; border-radius: 10px; background: none; color: #fff; font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.pl-qmenu button:hover { background: rgba(255, 255, 255, .1); }
.pl-qmenu button[aria-checked="true"] { background: var(--accent); color: var(--ink); font-weight: 600; }

/* the logged-in student shows only the round picture in the header; the name is inside the menu that opens */
.profile-name, .profile-btn svg { display: none; }
.profile-btn { padding: 0 4px; }

/* Callback and Enroll now are menu items now (they used to be buttons on the right of the header) */
body .main-nav .nav-link-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; opacity: .75; cursor: pointer; transition: opacity .3s; }
body .main-nav .nav-link-btn:hover { opacity: 1; }
body .main-nav a.nav-enroll { opacity: 1; background: linear-gradient(transparent 62%, rgba(242, 165, 65, .75) 62%); }
html[lang="ta"] body .main-nav .nav-link-btn { letter-spacing: 0; text-transform: none; font-size: 13px; }

/* =========================================================
   Home hero as a learning website: words that say "online course", a feature row, and the video shown as a lesson player with its lesson list.
   ========================================================= */
.hero-kicker { display: inline-block; margin: 0 0 18px; padding: 6px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; margin-top: 4px; }
.hero-link { font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hero-feats { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 26px 0 0; padding: 0; }
.hero-feats li { display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-align: left; }
.hero-feats svg { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--accent); color: var(--ink); flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hero-feats b { display: block; font-size: 13.5px; line-height: 1.25; }
.hero-feats small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.hero .hero-proof { margin-top: 22px; }

.hero-player { display: grid; grid-template-columns: minmax(0, 1fr) clamp(250px, 25%, 350px); gap: 16px; align-items: stretch; text-align: left; }
.hero-player .hero-card { align-self: start; }
.hero-ctl { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 34px 22px 16px; color: #fff; background: linear-gradient(transparent, rgba(14, 17, 48, .8)); pointer-events: none; }
.hc-play { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.hc-play svg { width: 18px; height: 18px; }
.hc-bar { flex: 1; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.hc-bar i { display: block; width: 15%; height: 100%; background: var(--accent); border-radius: 99px; }
.hc-lab { flex: none; font-size: 13.5px; font-weight: 600; }
.hero-lessons { display: flex; flex-direction: column; min-height: 0; padding: 18px; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(14, 17, 48, .5); color: var(--ink); overflow: hidden; }
.hl-head { display: grid; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.hl-head b { font-size: 17px; }
.hl-head span { font-size: 12.5px; color: var(--muted); }
.hero-lessons ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hero-lessons li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; }
.hl-n { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.hl-n svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hl-t { display: grid; min-width: 0; line-height: 1.3; }
.hl-t b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-t small { font-size: 11.5px; color: var(--muted); }
.hero-lessons li.is-done .hl-n { background: #1F9D55; border-color: #1F9D55; color: #fff; }
.hero-lessons li.is-now { background: var(--accent-tint); }
.hero-lessons li.is-now .hl-n { background: var(--ink); border-color: var(--ink); color: #fff; }
.hero-lessons li em { margin-left: auto; flex: none; padding: 2px 9px; border-radius: 99px; background: var(--accent); font-size: 10.5px; font-style: normal; font-weight: 700; color: var(--ink); }
.hl-cert { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 10px 12px; border-radius: 16px; background: var(--bg); }
.hl-cert svg { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--accent); flex: none; fill: none; stroke: var(--ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hl-cert b { display: block; font-size: 13px; line-height: 1.25; }
.hl-cert small { font-size: 11.5px; color: var(--muted); }
@media (max-width: 900px) {
    .hero-player { grid-template-columns: minmax(0, 1fr); }
    .hero-player .hero-card { aspect-ratio: 16 / 10; }
    .hero-ctl { padding: 28px 14px 12px; gap: 10px; }
    .hero-lessons ol li:nth-child(n+5) { display: none; }
    .hero-feats li { padding-right: 14px; }
}
@media (max-width: 560px) { .hero-feats li:nth-child(2) { display: none; } .hero-kicker { font-size: 11px; letter-spacing: .05em; } }
html[lang="ta"] .hero-kicker { letter-spacing: 0; text-transform: none; font-size: 13px; }

/* =========================================================
   Home hero, second version: left = words + course search, right = the platform itself (course cards, continue learning, certificate, rating).
   ========================================================= */
.hero-split { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; max-width: 1240px; margin: 0 auto; text-align: left; }
.hero-split .hs-text { min-width: 0; }
.hero-split .hero-lead { margin-left: 0; margin-right: 0; max-width: 34em; }
.hero-split .hero-feats, .hero-split .hero-proof { justify-content: flex-start; }
.hero-split .hero-title { font-size: clamp(38px, 4.6vw, 64px); }
.hero-search { display: flex; align-items: center; gap: 10px; max-width: min(540px, 100%); margin-top: 26px; padding: 7px 7px 7px 20px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); box-shadow: 0 20px 40px -28px rgba(14, 17, 48, .5); transition: border-color .25s; }
.hero-search:focus-within { border-color: var(--accent); }
.hero-search > svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.hero-search input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--ink); }
.hero-search button { flex: none; height: 46px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .25s; }
.hero-search button:hover { background: #000; }
.hero-pop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.hero-pop a { padding: 4px 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 500; transition: border-color .25s; }
.hero-pop a:hover { border-color: var(--ink); }
.hero-split .hero-feats { margin-top: 24px; }

.hs-visual { position: relative; min-height: clamp(520px, 55vw, 680px); }
.hs-course { position: absolute; display: flex; flex-direction: column; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 70px -44px rgba(14, 17, 48, .6); overflow: hidden; color: var(--ink); transition: transform .5s var(--ease); }
.hs-course:hover { transform: translateY(-6px) rotate(0deg) !important; }
.hs-main { left: 0; top: 0; width: 58%; z-index: 2; transform: rotate(-2deg); }
.hs-second { right: 0; top: 130px; width: 52%; z-index: 1; transform: rotate(2.5deg); }
.hs-pic { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #dde0ee; }
.hs-main .hs-pic { aspect-ratio: 5 / 4; }
.hs-pic img { width: 100%; height: 100%; object-fit: cover; }
.hs-body { padding: 14px 18px 18px; }
.hs-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.hs-meta span + span::before { content: "·"; margin-right: 10px; color: var(--accent); font-weight: 700; }
.hs-body h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.hs-body h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.hs-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.hs-price { margin: 0; font-size: 13px; color: var(--muted); }
.hs-price strong { font-size: 20px; color: var(--ink); margin-right: 6px; }
.hs-go { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; transition: background .25s; }
.hs-go:hover { background: var(--accent); color: var(--ink); }
.hs-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hs-float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 44px -26px rgba(14, 17, 48, .55); color: var(--ink); font-size: 12px; }
.hs-float b { display: block; font-size: 13.5px; line-height: 1.25; }
.hs-float small { display: block; font-size: 12px; color: var(--muted); }
.hs-now { left: 0; bottom: 70px; min-width: 230px; animation: hero-bob 7s ease-in-out infinite; }
.hs-now-ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--ink); color: #fff; }
.hs-now-ico svg { width: 18px; height: 18px; }
.hs-bar { display: block; width: 130px; height: 5px; margin-top: 6px; border-radius: 99px; background: var(--soft, #ECEDF5); overflow: hidden; }
.hs-bar i { display: block; width: 15%; height: 100%; background: var(--accent); border-radius: 99px; }
.hs-cert { right: 0; bottom: 70px; animation: hero-bob 8s ease-in-out -2s infinite; }
.hs-cert svg { width: 38px; height: 38px; padding: 8px; border-radius: 12px; background: var(--accent); flex: none; fill: none; stroke: var(--ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hs-rate { right: 6%; top: -6px; padding: 8px 16px 8px 8px; }
.hs-rate .g-logo { width: 30px; height: 30px; padding: 5px; border-radius: 9px; background: #fff; border: 1px solid var(--line); flex: none; }
.hs-intro { position: absolute; z-index: 3; left: 50%; bottom: 0; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px 0 8px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; box-shadow: 0 20px 36px -18px rgba(14, 17, 48, .7); white-space: nowrap; }
.hs-intro svg { width: 30px; height: 30px; padding: 8px; border-radius: 50%; background: var(--accent); color: var(--ink); }
@keyframes hero-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 1100px) { .hs-visual { min-height: 600px; } .hs-main { width: 62%; } .hs-second { width: 50%; } }
@media (max-width: 900px) {
    .hero-split { grid-template-columns: minmax(0, 1fr); gap: 36px; text-align: center; }
    .hero-split .hero-lead { margin-left: auto; margin-right: auto; }
    .hero-split .hero-feats, .hero-split .hero-proof, .hero-pop, .hero-split .hero-actions { justify-content: center; }
    .hero-search { margin-left: auto; margin-right: auto; }
    .hs-visual { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding-bottom: 64px; }
    .hs-course { position: static; width: auto; transform: none !important; }
    .hs-main .hs-pic, .hs-pic { aspect-ratio: 4 / 3; }
    .hs-float { position: static; animation: none; grid-column: 1 / -1; }
    .hs-rate, .hs-cert { display: none; }
    .hs-now { min-width: 0; }
    /* Fix #3: intro button is no longer absolute inside a grid — make it flow naturally */
    .hs-intro { position: static; transform: none; left: auto; bottom: auto; grid-column: 1 / -1; justify-self: center; margin-top: 4px; }
}
@media (max-width: 560px) { .hs-visual { grid-template-columns: minmax(0, 1fr); } .hs-second { display: none; } .hero-search button { padding: 0 18px; } /* FIX #16 */ .hero-search input { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .hs-now, .hs-cert { animation: none; } }
.hs-second .hs-pic { aspect-ratio: 4 / 3; }

/* hero: "Soon" tag on a topic, and an Enroll button on the course cards */
.hero-pop a.is-soon { display: inline-flex; align-items: center; gap: 7px; }
.hero-pop a.is-soon em { padding: 1px 8px; border-radius: 99px; background: var(--accent-tint); font-size: 10.5px; font-style: normal; font-weight: 700; color: #6B4400; }
.hs-go { width: auto; height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px 0 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.hs-go svg { width: 16px; height: 16px; }

/* =========================================================
   Student certificate: the same design as the Admin certificate (ink frame, marigold inner frame, gold seal, date | seal | signature)
   ========================================================= */
.st-cert-paper { border: 2px solid #0E1130; border-radius: 4px; background: #FFFDF8 radial-gradient(circle at 50% 0, #FFF3DB 0, transparent 60%); }
.st-cert-paper::before { inset: 7px; border: 4px solid var(--accent); border-radius: 2px; }
.st-cert-paper::after { inset: 14px; border: 1px solid rgba(14, 17, 48, .25); border-radius: 0; }
.st-cert-paper .cert-kicker::after { content: ""; display: block; width: 54px; height: 3px; margin: 8px auto 0; border-radius: 2px; background: var(--accent); }
.st-cert-paper .cert-name { border-bottom-color: #0E1130; }
.st-cert-paper .cert-course { background: none; color: #6B4400; font-weight: 700; }
.st-cert-paper .st-cert-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; justify-content: stretch; gap: 8px; margin-top: 16px; }
.st-cert-paper .cf-date { display: grid; justify-items: start; text-align: left; }
.st-cert-paper .cf-date b { font-size: 11px; font-weight: 600; }
.st-cert-paper .cf-date small { font-size: 9.5px; color: var(--muted); }
.st-cert-paper .cf-seal { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: radial-gradient(circle at 35% 30%, #FFD58A, #E8A33B 60%, #C98030); box-shadow: 0 0 0 3px rgba(242, 165, 65, .35); }
.st-cert-paper .cf-seal svg { width: 18px; height: 18px; }
.st-cert-paper .cert-sign { text-align: center; }
.st-cert-paper .cert-sign span { font-size: 13px; }
.st-cert-paper .st-cert-meta { margin-top: 10px; font-size: 9.5px; letter-spacing: .06em; }
.st-cert-paper .st-cert-verify { font-size: 9px; }

/* dropdowns: our own chevron with room on the right (the browser's own arrow sits against the edge) */
.va-who select, select.login-input, .co-select {
    -webkit-appearance: none; appearance: none; background-repeat: no-repeat; background-position: right 14px center; background-size: 14px 14px; padding-right: 40px; cursor: pointer;
}
.va-who select { background-color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); padding-left: 14px; }
select.login-input, .co-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E1130' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }

/* File viewer (Downloads and Patterns): read inside the dashboard, no save / copy / print */
.fv-dialog { width: min(880px, 96vw); height: min(92vh, 1000px); padding: 0; border: 0; border-radius: 22px; background: #E7E9F2; color: var(--ink); overflow: hidden; -webkit-user-select: none; user-select: none; }
.fv-dialog[open] { display: flex; flex-direction: column; }
.fv-dialog::backdrop { background: rgba(14, 17, 48, .6); }
.fv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.fv-head b { display: block; font-size: 16px; }
.fv-head small { color: var(--muted); font-size: 12.5px; }
.fv-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg); font-size: 24px; line-height: 1; cursor: pointer; }
.fv-note { margin: 0; padding: 8px 20px; background: #FFF4E0; font-size: 12.5px; color: #6B4400; }
.fv-body { position: relative; flex: 1; overflow: auto; padding: 20px; }
.fv-pages { display: grid; gap: 18px; justify-items: center; }
.fv-page { position: relative; width: min(640px, 100%); min-height: 560px; padding: 36px 32px; border-radius: 6px; background: #fff; box-shadow: 0 18px 40px -26px rgba(14, 17, 48, .5); text-align: center; display: grid; align-content: start; gap: 10px; }
.fv-page img { width: min(320px, 100%); margin: 0 auto 8px; pointer-events: none; -webkit-user-drag: none; }
.fv-page h3 { margin: 0; font-size: 20px; }
.fv-page p { margin: 0; color: var(--muted); }
.fv-sample { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--accent) !important; }
.fv-hint { font-size: 13px; }
.fv-pn { margin-top: auto; padding-top: 28px; color: var(--muted); }
.fv-wm { position: absolute; inset: 0; pointer-events: none; background-repeat: repeat; }
.fv-dialog.is-hidden .fv-body { visibility: hidden; }
@media print { .fv-dialog { display: none !important; } }

.fv-img-page { min-height: 0; padding: 10px 10px 6px; }
.fv-img { width: 100%; height: auto; display: block; background: #fff; pointer-events: none; -webkit-user-drag: none; }
.fv-img-page .fv-pn { padding-top: 6px; }

/* Login page: clean and professional. A deep blue side with the promise and a course card, a white side with the form. No menu, footer or floating buttons. */
body.page-login .site-header, body.page-login .offer-strip, body.page-login .site-footer, body.page-login .mbar, body.page-login .wa-float,
body.page-login .page-back-row, body.page-login .mobile-menu, body.page-login .va-bar { display: none !important; }
body.page-login { background: #fff; padding-bottom: 0; }
body.page-login::before { display: none; }
body.page-login main { padding: 0; margin: 0; }
body.page-login .login-page { padding: 0; min-height: 100vh; background: #fff; }
body.page-login .login-grid { max-width: none; width: 100%; margin: 0; padding: 0; gap: 0; min-height: 100vh; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: stretch; }
/* the blue side */
body.page-login .lg-side { position: relative; order: -1; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 100vh; padding: clamp(32px, 4vw, 56px); border-radius: 0; overflow: hidden; color: #fff;
    background: radial-gradient(620px 420px at 0% 100%, rgba(242, 165, 65, .24), transparent 70%), radial-gradient(520px 380px at 100% 0%, rgba(110, 124, 255, .22), transparent 70%), linear-gradient(165deg, #171B4A 0%, #0E1130 70%); }
body.page-login .lg-side::before, body.page-login .lg-side::after { display: none; }
body.page-login .lg-side .lg-logo img { position: static; inset: auto; width: auto; height: 48px; opacity: 1; display: block; }
.lg-kicker { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.lg-headline { margin: 0 0 30px; max-width: 520px; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.lg-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
body.page-login .lg-side .lg-points li { display: flex; align-items: center; gap: 12px; padding: 0; font-size: 16.5px; color: rgba(255, 255, 255, .92); }
body.page-login .lg-side .lg-points li::before { display: none; }
.lg-points svg { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: rgba(242, 165, 65, .2); fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lg-foot { display: grid; gap: 18px; max-width: 460px; }
.lg-course { display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border-radius: 20px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
body.page-login .lg-side .lg-course img { position: static; inset: auto; width: 64px; height: 64px; opacity: 1; border-radius: 14px; object-fit: cover; flex: none; }
.lg-course small { display: block; font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.lg-course b { display: block; font-size: 17px; margin: 2px 0; }
.lg-course span { font-size: 13.5px; color: rgba(255, 255, 255, .75); }
.lg-rating { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, .85); }
.lg-stars { color: var(--accent); letter-spacing: 2px; margin-right: 6px; }
.lg-rating b { color: #fff; }
/* the white side */
body.page-login .login-card { width: min(450px, 100%); margin: 0 auto; padding: clamp(28px, 5vh, 56px) 24px 36px; display: flex; flex-direction: column; justify-content: center; min-height: 100vh; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.login-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: clamp(28px, 6vh, 52px); }
.login-back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.login-back-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.login-back-link:hover { color: var(--ink); }
body.page-login .login-title { font-size: clamp(30px, 2.8vw, 38px); margin-bottom: 8px; }
body.page-login .login-lead { margin: 0 0 22px; font-size: 15.5px; line-height: 1.6; color: #5A5D77; }
body.page-login .login-card .eyebrow { display: none; }
.login-steps { list-style: none; margin: 0 0 22px; padding: 0; display: flex; align-items: center; gap: 10px; }
.login-steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.login-steps li b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #EEF0F6; color: var(--muted); font-size: 12.5px; transition: background .3s, color .3s; }
.login-steps li:not(:last-child)::after { content: ""; width: 28px; height: 2px; border-radius: 2px; background: #E1E4EE; margin-left: 2px; }
.login-steps li.is-on b { background: var(--ink); color: #fff; }
.login-steps li.is-now span { color: var(--ink); }
body.page-login .login-demo { margin: 0 0 20px; }
body.page-login .phone-input, body.page-login .login-input { height: 58px; border: 1.5px solid #D9DCE8; border-radius: 14px; background: #fff; box-shadow: none; transition: border-color .2s, box-shadow .2s; }
body.page-login .phone-input:focus-within, body.page-login .login-input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(14, 17, 48, .08); }
body.page-login .login-btn { height: 56px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: 0 14px 28px -16px rgba(14, 17, 48, .7); transition: transform .2s, box-shadow .2s, background .2s; }
body.page-login .login-btn:hover { transform: translateY(-1px); background: #1B1F4B; box-shadow: 0 18px 32px -16px rgba(14, 17, 48, .8); }
body.page-login .otp-boxes input { height: 60px; border: 1.5px solid #D9DCE8; border-radius: 12px; background: #fff; }
body.page-login .otp-boxes input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(14, 17, 48, .08); }
body.page-login .login-step:not([hidden]) { animation: lgStepIn .35s ease both; }
@keyframes lgStepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.login-secure { display: flex; align-items: flex-start; gap: 8px; }
.login-secure svg { flex: none; width: 16px; height: 16px; margin-top: 1px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.login-help { margin: 24px 0 0; padding: 14px 16px; border-radius: 14px; background: #F5F6FA; font-size: 14px; color: #5A5D77; }
.login-help a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
body.page-login .login-terms { margin-top: 20px; padding-top: 0; border-top: 0; }
@media (max-width: 1000px) {
    body.page-login .login-grid { grid-template-columns: minmax(0, 1fr); }
    body.page-login .lg-side { display: none; }
    body.page-login .login-card { min-height: 100vh; padding: 22px 20px 32px; }
}
@media (max-width: 460px) { .login-steps { gap: 6px; } .login-steps li { gap: 5px; font-size: 12px; } .login-steps li:not(:last-child)::after { width: 12px; } }
@media (prefers-reduced-motion: reduce) { body.page-login .login-step:not([hidden]) { animation: none; } }

/* Home hero, video first: one full screen, a muted video behind (hero.mp4, or the YouTube video until it is added), a dark shade, the words on the left in white */
.hero.hero-video { display: grid; align-items: center; min-height: 100svh; padding: calc(110px + var(--offer-h)) var(--gutter) 70px; background: #0B0D26; color: #fff; }
.hero.hero-video::before, .hero.hero-video .hero-sq, .hero.hero-video .hs-visual { display: none; }
.hv-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #0B0D26; }
.hv-poster, .hv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hv-video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero.has-video .hv-video { opacity: 1; }
.hv-yt { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.4s var(--ease); pointer-events: none; }
.hv-yt.is-on { opacity: 1; }
.hv-yt iframe { position: absolute; top: 50%; left: 50%; width: 100vw; height: 56.25vw; min-width: 177.78vh; min-height: 100%; border: 0; transform: translate(-50%, -50%); }
.hv-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 13, 38, .88) 0%, rgba(11, 13, 38, .6) 48%, rgba(11, 13, 38, .22) 100%), linear-gradient(0deg, rgba(11, 13, 38, .75) 0%, transparent 38%); }
.hero.hero-video .hero-split { grid-template-columns: minmax(0, 1fr); max-width: 1240px; width: 100%; }
.hero.hero-video .hs-text { max-width: 720px; }
.hero.hero-video .hero-kicker { color: var(--accent); background: rgba(242, 165, 65, .14); border-color: rgba(242, 165, 65, .4); }
.hero.hero-video .hero-title { color: #fff; font-size: clamp(42px, 6vw, 88px); line-height: 1.02; }
.hero.hero-video .hero-title em { color: var(--accent); }
.hero.hero-video .hero-lead { color: rgba(255, 255, 255, .86); font-size: clamp(16px, 1.3vw, 19px); }
.hero.hero-video .hero-tamil { color: var(--accent); }
.hero.hero-video .hero-search { background: rgba(255, 255, 255, .96); border-color: transparent; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6); max-width: min(600px, 100%); }
.hero.hero-video .hero-search button { background: var(--accent); color: var(--ink); }
.hero.hero-video .hero-search button:hover { background: #f5b45e; }
.hero.hero-video .hero-pop { color: rgba(255, 255, 255, .75); }
.hero.hero-video .hero-pop a { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero.hero-video .hero-pop a:hover { background: rgba(255, 255, 255, .24); border-color: #fff; }
.hv-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.hv-intro { display: inline-flex; align-items: center; gap: 12px; padding: 8px 24px 8px 8px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7); transition: transform .25s; }
.hv-intro:hover { transform: translateY(-2px); }
.hv-intro svg { width: 44px; height: 44px; padding: 13px 11px 13px 15px; border-radius: 50%; background: var(--accent); color: var(--ink); }
.hv-browse { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 15px; border-bottom: 2px solid var(--accent); padding-bottom: 3px; }
.hv-browse svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.hv-browse:hover svg { transform: translateX(4px); }
.hero.hero-video .hero-feats { margin-top: 30px; }
.hero.hero-video .hero-feats li { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero.hero-video .hero-feats small { color: rgba(255, 255, 255, .7); }
.hero.hero-video .hero-feats svg { stroke: var(--accent); }
.hero.hero-video .hero-proof-text { color: rgba(255, 255, 255, .8); }
.hero.hero-video .hero-proof-text b { color: #fff; }
.hero.hero-video .avatars span { border-color: #0B0D26; }
.hero.hero-video .hs-rate { position: absolute; right: var(--gutter); bottom: 34px; left: auto; top: auto; z-index: 2; }
@media (max-width: 900px) {
    .hero.hero-video { padding-top: calc(96px + var(--offer-h)); }
    .hv-shade { background: linear-gradient(0deg, rgba(11, 13, 38, .9) 0%, rgba(11, 13, 38, .55) 100%); }
    .hero.hero-video .hs-rate { display: none; }
}
@media (max-width: 900px), (prefers-reduced-motion: reduce) { .hv-yt { display: none; } }

/* Home hero, better: a numbers bar at the bottom, two course cards on the right, a see-through header over the video, an "Explore courses" cue */
.hero.hero-video { padding-bottom: 150px; }
.hero.hero-video .hs-rate { display: none; }
.hv-stats { position: absolute; left: 50%; bottom: 30px; z-index: 2; width: min(1240px, calc(100% - 2 * var(--gutter))); transform: translateX(-50%); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: center; gap: 8px 24px; padding: 16px 26px; border-radius: 22px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; }
.hv-stats > div { display: grid; gap: 2px; }
.hv-stats b { font-size: clamp(20px, 2vw, 28px); font-weight: 700; line-height: 1.1; }
.hv-stats b small { font-size: .7em; color: var(--accent); margin-left: 2px; }
.hv-stats span { font-size: 13px; color: rgba(255, 255, 255, .78); }
.hv-scroll { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 13.5px; font-weight: 700; white-space: nowrap; transition: transform .25s; }
.hv-scroll svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: hvBounce 1.8s ease-in-out infinite; }
.hv-scroll:hover { transform: translateY(2px); }
@keyframes hvBounce { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
.hv-courses { position: absolute; right: var(--gutter); top: 50%; z-index: 2; width: 300px; transform: translateY(-58%); display: grid; gap: 12px; }
.hv-courses-title { margin: 0 0 2px 4px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.hv-course { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 20px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .26); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; transition: transform .25s, background .25s; }
.hv-course:hover { transform: translateX(-4px); background: rgba(255, 255, 255, .22); }
.hv-course img { width: 64px; height: 64px; flex: none; border-radius: 14px; object-fit: cover; }
.hv-course span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.hv-course b { font-size: 15.5px; font-weight: 600; }
.hv-course small { font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.hv-course svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1320px) { .hv-courses { display: none; } }
@media (max-width: 900px) {
    .hv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px 18px; bottom: 18px; }
    .hv-scroll { grid-column: 1 / -1; justify-content: center; }
    .hero.hero-video { padding-bottom: 300px; }
}
.hero.hero-video .hero-feats, .hero.hero-video .hero-proof { display: none; }
.hero.hero-video { padding-bottom: 130px; }
@media (max-width: 900px) { .hero.hero-video { padding-bottom: 280px; } }
/* hero fixes: the page's fade-in animation ends with transform: none, so the bar and the cards are placed without transform; the hero is made to fit one screen */
.hv-stats { left: max(var(--gutter), calc((100% - 1240px) / 2)); transform: none; width: min(1240px, calc(100% - 2 * var(--gutter))); box-sizing: border-box; }
.hv-courses { top: 50%; margin-top: -130px; transform: none; }
.hero.hero-video { padding-top: calc(92px + var(--offer-h)); padding-bottom: 140px; }
.hero.hero-video .hero-title { font-size: clamp(40px, 5.2vw, 78px); margin: 18px 0 20px; }
.hero.hero-video .hero-search { margin-top: 20px; }
.hv-cta { margin-top: 22px; }
@media (max-width: 900px) { .hero.hero-video { padding-bottom: 280px; } }
.hero.hero-video { padding-bottom: 116px; }
@media (max-width: 900px) { .hero.hero-video { padding-bottom: 280px; } }
.hero.hero-video { padding-bottom: 80px; }
@media (max-width: 900px) { .hero.hero-video { padding-bottom: 60px; } }
.review-note.is-error { color: #b3261e; font-weight: 500; }

/* =====================================================================
   Course card v3 (modern): a full-width picture, a level tag, stars, three facts with icons, the price with a green % OFF and a round button
   ===================================================================== */
.course-card { border-radius: 22px; border: 1px solid #E6E9F4; box-shadow: 0 1px 2px rgba(14, 17, 48, .04), 0 14px 30px -20px rgba(14, 17, 48, .25); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.course-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(14, 17, 48, .05), 0 30px 50px -26px rgba(14, 17, 48, .38); }
.course-media { margin: 0; border-radius: 0; aspect-ratio: 4 / 3; }
.course-body { padding: 18px 20px 20px; }
.course-meta { margin: 0 0 12px; }
.course-meta span:first-child { padding: 4px 10px; border-radius: 999px; background: #EEF0FA; color: #2B3170; }
.course-body h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.course-rate { margin-top: 12px; }
.course-rate .cr-star b { color: #E0A010; }
.course-facts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 16px 0 0; padding: 12px 0; list-style: none; border-top: 1px solid #EEF0F6; border-bottom: 1px solid #EEF0F6; }
.course-facts li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 4px; text-align: center; font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.course-facts li + li { border-left: 1px solid #EEF0F6; }
.course-facts svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.course-body > :nth-last-child(2) { margin-bottom: 18px; }
.course-foot { margin-top: auto; padding-top: 0; border-top: 0; }
.course-foot .price { flex-wrap: wrap; row-gap: 6px; }
.course-foot .price strong { font-size: 24px; }
.price-off { padding: 3px 9px; border-radius: 999px; background: #E7F6EC; color: #157A3C; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.btn-round { width: 46px; height: 46px; font-size: 18px; }

/* =====================================================================
   Course card v4 (big, dark navy, like the reference): edge-to-edge picture, level tag, rating and students pills, four fact chips,
   a big price with a green % OFF and a full-width button
   ===================================================================== */
.course-card { background: linear-gradient(165deg, #121847 0%, #0B0F2E 100%); border: 1px solid rgba(255, 255, 255, .09); color: #fff; box-shadow: 0 30px 60px -36px rgba(8, 10, 40, .75); }
.course-card:hover { box-shadow: 0 2px 6px rgba(8, 10, 40, .2), 0 40px 70px -34px rgba(8, 10, 40, .85); }
.course-media { aspect-ratio: 16 / 10; background: #1A2060; }
.course-media .cr-noimg { background: #1A2060; color: #F6C768; }
.course-card.is-soon .course-media img { filter: saturate(.7); }
.course-body { padding: 22px 24px 24px; color: #fff; }
.course-meta { color: rgba(255, 255, 255, .62); }
.course-meta span:first-child { background: rgba(246, 199, 104, .14); color: #F6C768; }
.course-meta span + span::before { color: rgba(246, 199, 104, .8); }
.course-body h3, .course-body h3 a { color: #fff; }
.course-body h3 { font-size: 22px; min-height: 0; }
.course-body h3 a:hover { color: #F6C768; }
.course-ta { color: rgba(255, 255, 255, .68); }
.course-rate { gap: 8px; margin-top: 14px; min-height: 0; }
.course-rate > span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); font-size: 13px; font-weight: 600; color: #fff; }
.course-rate .cr-star b { color: #F6C768; }
.course-rate small { color: rgba(255, 255, 255, .62); }
.course-rate:empty { display: none; }
.course-facts { grid-auto-flow: row; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 0; padding: 0; border: 0; }
.course-facts li { flex-direction: row; justify-content: flex-start; gap: 9px; padding: 11px 13px; border: 1px solid rgba(124, 167, 255, .22); border-radius: 14px; background: rgba(124, 167, 255, .10); text-align: left; font-size: 13px; color: #CFE0FF; }
.course-facts li + li { border-left: 1px solid rgba(124, 167, 255, .22); }
.course-facts svg { flex: none; width: 18px; height: 18px; stroke: #7CA7FF; }
.course-body > :nth-last-child(2) { margin-bottom: 20px; }
.course-foot { flex-direction: column; align-items: stretch; gap: 14px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); }
.course-foot .price { align-items: baseline; }
.course-foot .price strong { font-size: 32px; color: #F6C768; }
.course-foot .price s { color: rgba(255, 255, 255, .45); font-size: 15px; }
.course-foot .notify { color: rgba(255, 255, 255, .75); font-size: 15px; }
.price-off { background: rgba(74, 222, 128, .16); color: #4ADE80; }
.course-foot .btn-round { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 50px; padding: 0 8px 0 20px; border-radius: 16px; background: #fff; color: #0E1130; font-size: 15px; font-weight: 600; }
.course-foot .btn-round::before { content: attr(aria-label); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.course-foot .btn-round .arrow { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 12px; background: #EEF0FA; font-size: 17px; }
.course-foot .btn-round:hover { transform: none; background: #F6C768; color: #0E1130; }
.course-foot .btn-round:hover .arrow { background: rgba(255, 255, 255, .55); }

/* =====================================================================
   Lesson player v2: contents on the left, a head card (lesson, title, four stat boxes) and a big video on the right
   ===================================================================== */
.pl-head { display: grid; gap: 18px; margin-bottom: 18px; padding: 22px 24px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.pl-head .pl-title { margin: 6px 0 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.01em; }
.pl-head .pl-kicker { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.pl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.pl-stats li { display: grid; gap: 6px; padding: 14px 18px; border-radius: 18px; background: #F3F5FB; border: 1px solid var(--line); }
.pl-stats small { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pl-stats b { font-size: clamp(18px, 1.8vw, 24px); font-weight: 700; color: var(--ink); }
body.pl-dark .pl-head { background: #15183A; border-color: rgba(255, 255, 255, .1); }
body.pl-dark .pl-stats li { background: #0B0D22; border-color: rgba(255, 255, 255, .1); }
body.pl-dark .pl-stats b { color: #fff; }
body.pl-dark .pl-stats small { color: rgba(255, 255, 255, .55); }
.pl-video { border-radius: 26px; border: 1px solid rgba(255, 255, 255, .08); }
.pl-sec { margin: 18px 0 8px; padding: 0 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pl-row { border-radius: 16px; border: 1px solid transparent; }
body.pl-dark .pl-row { border-color: rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); margin-bottom: 8px; }
body.pl-dark .pl-row.is-current { border-color: rgba(242, 165, 65, .55); }
.pl-lessons { padding-left: 0; list-style: none; }
@media (max-width: 760px) { .pl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pl-head { padding: 18px; } }
@media (min-width: 1025px) {
    .pl-layout { grid-template-columns: minmax(0, 1fr) 350px; }
    .pl-list { max-height: calc(100vh - 220px); }
}

.pl-dark-top { height: 38px; margin-right: 8px; padding: 0 14px; border-radius: 999px; font-size: 13px; white-space: nowrap; }
@media (max-width: 760px) { .pl-dark-top span { display: none; } .pl-dark-top { padding: 0 10px; } }

/* lesson contents: the panel is as tall as the screen, the title stays, and only the lesson list scrolls inside it (no empty space at the bottom) */
@media (min-width: 1025px) {
    .pl-side { top: 84px; height: calc(100vh - 108px); display: flex; flex-direction: column; box-sizing: border-box; }
    .pl-side .pl-list { flex: 1 1 auto; min-height: 0; max-height: none; }
}

/* space between the title row and the cards below it (the .container padding had removed it) */
.pl-top .pl-top-inner { padding-bottom: 22px; }
@media (min-width: 1025px) { .pl-top .pl-top-inner { grid-template-columns: auto minmax(0, 1fr) 180px; } }
body.pn-body .pl-top .pl-top-inner { padding-bottom: 22px; }

/* course details: the course's own proof (stars, students) and facts (length, lessons, access, certificate), light style */
.cd-stats { margin: 22px 0 6px; }
.cd-stats .course-rate { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.cd-stats .course-rate > span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.cd-stats .course-rate .cr-star b { color: #D98B0B; }
.cd-stats .course-rate small { color: var(--muted); font-weight: 500; }
.cd-stats .course-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.cd-stats .course-facts li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: #EEF3FF; border: 1px solid #D5E1FF; font-size: 14px; font-weight: 600; color: #1F3A8A; }
.cd-stats .course-facts li + li { border-left: 1px solid #D5E1FF; }
.cd-stats .course-facts svg { flex: none; width: 20px; height: 20px; fill: none; stroke: #2F5BEA; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* course card top line: three clear chips (level, length, language) with small icons instead of a plain line with dots */
.course-card .course-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.course-card .course-meta span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: #E8ECFF; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.course-card .course-meta span::before { content: ""; flex: none; width: 15px; height: 15px; background-repeat: no-repeat; background-size: contain; margin: 0; color: inherit; }
.course-card .course-meta span + span::before { content: ""; }
.course-card .course-meta span:first-child { background: rgba(246, 199, 104, .16); border-color: rgba(246, 199, 104, .45); color: #F6C768; }
.course-card .course-meta span:nth-child(1)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F6C768' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5 20v-5M12 20V10M19 20V4'/%3E%3C/svg%3E"); }
.course-card .course-meta span:nth-child(2)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237CA7FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.course-card .course-meta span:nth-child(3)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237CA7FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18'/%3E%3C/svg%3E"); }
.course-card .course-meta { gap: 6px; }
.course-card .course-meta span { gap: 5px; padding: 5px 10px; font-size: 11px; letter-spacing: .03em; }
.course-card .course-meta span::before { width: 13px; height: 13px; }
.course-card .course-facts li { gap: 7px; padding: 10px 11px; font-size: 12.5px; overflow-wrap: normal; word-break: normal; }
.course-card .course-facts svg { width: 16px; height: 16px; }
.course-card .course-meta span:last-child::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237CA7FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18'/%3E%3C/svg%3E"); }

/* course page top line (light background): three clear chips with icons, dark text */
.course-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; color: var(--ink); }
.course-meta span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.course-meta span::before { content: ""; flex: none; width: 15px; height: 15px; margin: 0; background-repeat: no-repeat; background-size: contain; }
.course-meta span:first-child { background: #FFF1D6; border-color: #F4D58F; color: #8A5A00; }
.course-meta span:nth-child(1)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B97700' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5 20v-5M12 20V10M19 20V4'/%3E%3C/svg%3E"); }
.course-meta span:nth-child(2)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F5BEA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.course-meta span:last-child::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F5BEA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18'/%3E%3C/svg%3E"); }

/* "All you need to start": the title sits on its own line above the list, and the five items line up in even columns */
.needs { flex-direction: column; align-items: stretch; gap: 18px; padding: 24px 28px; }
.needs-title { max-width: none; font-size: 20px; }
.needs-list { flex: none; width: 100%; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px 20px; }
.needs-list li { align-items: center; }
@media (max-width: 560px) { .needs { padding: 20px 18px; } .needs-list { grid-template-columns: 1fr 1fr; } }

/* payment ways: real choices (one is chosen) */
.co-methods button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #FAFAFD; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.co-methods button span { padding: 0; border: 0; background: none; border-radius: 0; font-size: inherit; }
.co-methods button::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #B8BDD3; background: #fff; box-sizing: border-box; }
.co-methods button:hover { border-color: var(--ink); }
.co-methods button[aria-checked="true"] { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(242, 165, 65, .35); }
.co-methods button[aria-checked="true"]::before { border-color: var(--ink); background: radial-gradient(circle, var(--ink) 0 38%, #fff 42%); }
.co-methods button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.co-methods .co-mi { flex: none; width: 20px; height: 20px; fill: none; stroke: #5A6080; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.co-methods button[aria-checked="true"] .co-mi { stroke: var(--ink); }

/* checkout state list: opens over the fields below it */
.co-dd { position: relative; }
.co-dd-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.co-dd-btn { display: flex; align-items: center; width: 100%; text-align: left; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6080' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.co-dd-btn.is-empty { color: var(--muted); }
.co-dd-list { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px); max-height: 264px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 50px -16px rgba(14, 17, 48, .35); overscroll-behavior: contain; }
.co-dd-list[hidden] { display: none; }
.co-dd-list li { padding: 10px 12px; border-radius: 10px; font-size: 14.5px; cursor: pointer; color: var(--ink); }
.co-dd-list li:hover, .co-dd-list li.is-cur { background: #F3F5FB; }
.co-dd-list li[aria-selected="true"] { background: #FFF1D6; font-weight: 600; }

/* checkout Pay button: the text sits in the centre, the arrow stays at the right end */
.co-pay { position: relative; justify-content: center; padding-left: 62px; padding-right: 62px; }
.co-pay > span { flex: 0 1 auto; text-align: center; }
.co-pay > i { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.course-meta span + span::before { content: ""; }
.course-card .course-meta span + span::before { content: ""; }

/* checkout order summary: picture on top-left, small chips in a tidy row beside it, everything starts at the top */
.co-course { align-items: start; }
.co-course .course-meta { gap: 6px; margin: 0 0 8px; }
.co-course .course-meta span { padding: 4px 9px; gap: 5px; font-size: 10.5px; }
.co-course .course-meta span::before { width: 12px; height: 12px; }
.co-course h3 { margin: 0 0 2px; }

/* checkout add-on offer: a clear card with the picture, the course, the extra price and a big tick box */
.co-addon { position: relative; grid-template-columns: 56px minmax(0, 1fr) 26px; gap: 14px; padding: 14px 16px; border: 1.5px solid #F4D58F; background: linear-gradient(135deg, #FFF8EC 0%, #FFFFFF 100%); transition: border-color .2s, box-shadow .2s, transform .2s; }
.co-addon:hover { border-color: var(--accent); box-shadow: 0 14px 28px -20px rgba(217, 139, 11, .7); }
.co-addon img { grid-column: 1; grid-row: 1; width: 56px; height: 56px; border-radius: 14px; }
.co-addon-tx { grid-column: 2; grid-row: 1; display: grid; gap: 3px; min-width: 0; }
.co-addon-tx b { font-size: 15px; line-height: 1.3; }
.co-addon-tx small { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.co-addon-price { justify-self: start; margin-top: 4px; padding: 3px 10px; border-radius: 999px; background: #E7F6EC; color: #157A3C; font-size: 12.5px; font-weight: 700; }
.co-addon input { grid-column: 3; grid-row: 1; appearance: none; -webkit-appearance: none; width: 26px; height: 26px; border-radius: 8px; border: 2px solid #C9CEE3; background: #fff center / 16px no-repeat; cursor: pointer; transition: background-color .2s, border-color .2s; }
.co-addon input:checked { border-color: var(--ink); background-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.co-addon input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.co-addon:has(input:checked) { border-color: var(--accent); background: linear-gradient(135deg, #FFF1D6 0%, #FFF8EC 100%); box-shadow: 0 0 0 3px rgba(242, 165, 65, .25); }

/* checkout top: the breadcrumb and the 3 steps sit together on one white card */
.co-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; margin: 0 0 22px; padding: 16px 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 44px -34px rgba(14, 17, 48, .45); }
.co-head .cd-crumbs { margin: 0; }
.co-head .co-steps { margin: 0; }
@media (max-width: 640px) { .co-head { padding: 14px 16px; } }

/* checkout summary: no empty gap under the title, and "1 year access · Certificate" is a small pill under it */
.co-course .course-ta:empty { display: none; }
.co-course .course-access { display: inline-flex; align-items: center; gap: 7px; margin: 8px 0 0; padding: 5px 12px; border-radius: 999px; background: #F3F5FB; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.co-course .course-access::before { content: ""; flex: none; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F9D55' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* login popup (a visitor who is not logged in presses Buy / Enroll) */
body.lp-open { overflow: hidden; }
.lp { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 16px; background: rgba(14, 17, 48, .6); backdrop-filter: blur(4px); animation: lp-in .18s ease-out; }
.lp[hidden] { display: none; }
@keyframes lp-in { from { opacity: 0; } to { opacity: 1; } }
.lp-card { position: relative; width: min(100%, 420px); max-height: calc(100vh - 32px); overflow-y: auto; padding: 30px 28px 24px; border-radius: 26px; background: #fff; box-shadow: 0 40px 90px -30px rgba(8, 10, 40, .7); animation: lp-up .22s ease-out; }
@keyframes lp-up { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.lp-x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #F3F5FB; color: var(--ink); cursor: pointer; }
.lp-x:hover { background: #E6E9F4; }
.lp-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.lp-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #B97700; }
.lp-title { margin: 0 36px 8px 0; font-size: 22px; line-height: 1.25; color: var(--ink); }
.lp-lead { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.lp-card .login-btn { margin-top: 16px; }
.lp-card a.login-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; padding-left: 0; }
.lp-sent { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.lp-sent b { color: var(--ink); }
.lp-code { width: 100%; box-sizing: border-box; height: 58px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 14px; font: inherit; font-size: 26px; font-weight: 700; letter-spacing: .5em; text-align: center; color: var(--ink); background: #FAFAFD; }
.lp-code:focus { outline: 2px solid var(--accent); outline-offset: 1px; background: #fff; }
.lp-foot { margin: 16px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); text-align: center; }
.lp-foot a { color: var(--ink); text-decoration: underline; }
.lp-card .login-small { margin-top: 12px; text-align: center; }

/* =====================================================================
   Payment result page v2: a clear success mark, a clean button pair, "what happens next" and a receipt-style order card
   ===================================================================== */
.ps-icon { position: relative; width: 84px; height: 84px; border-radius: 50%; margin-bottom: 22px; box-shadow: 0 0 0 10px rgba(31, 157, 85, .12), 0 0 0 22px rgba(31, 157, 85, .06); }
.ps-icon.is-ok { background: linear-gradient(145deg, #2DB36A, #1F9D55); }
.ps-icon.is-ok svg { stroke: #fff; width: 40px; height: 40px; stroke-width: 3; }
.ps-icon.is-wait { box-shadow: 0 0 0 10px rgba(242, 165, 65, .15), 0 0 0 22px rgba(242, 165, 65, .07); }
.ps-icon.is-bad { box-shadow: 0 0 0 10px rgba(214, 69, 69, .12), 0 0 0 22px rgba(214, 69, 69, .06); }
.ps-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 26px; }
.ps-ghost { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 26px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-size: 14.5px; font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
.ps-ghost:hover { background: var(--ink); color: #fff; }
.ps-next { margin: 34px 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ps-steps { position: relative; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ps-steps li { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.ps-steps li > span { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; }
.ps-steps b { display: block; font-size: 15px; color: var(--ink); }
.ps-steps small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.ps-receipt { position: relative; padding: 26px 26px 22px; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 70px -48px rgba(14, 17, 48, .5); }
.ps-rhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ps-rhead .co-h2 { margin: 0; }
.ps-receipt .co-course { grid-template-columns: 76px minmax(0, 1fr); padding-bottom: 16px; }
.ps-receipt .co-course img { width: 76px; height: 76px; }
.ps-addon { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 10px 14px; border-radius: 14px; background: #FFF8EC; border: 1px dashed #F4D58F; font-size: 13.5px; color: var(--ink); }
.ps-addon svg { flex: none; width: 16px; height: 16px; fill: none; stroke: #B97700; stroke-width: 2.4; stroke-linecap: round; }
.ps-receipt .co-lines { margin-top: 16px; padding-top: 16px; border-top: 1px dashed #D5D9EA; }
.ps-receipt .co-total { margin-top: 6px; }
.ps-receipt .co-total dd { font-size: 24px; color: #157A3C; }
.ps-invoice { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: #F3F5FB; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.ps-invoice:hover { border-color: var(--ink); }
.ps-invoice svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* lesson list: PDF and Quiz rows */
.pl-extra { background: rgba(242, 165, 65, .08); }
.pl-ex-ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #FFF1D6; color: #B97700; }
.pl-ex-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-ex-tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #B97700; }
body.pl-dark .pl-extra { background: rgba(242, 165, 65, .1); }
body.pl-dark .pl-ex-ic { background: rgba(242, 165, 65, .2); color: #F6C768; }
.pl-files li .pl-btn { grid-row: 1 / span 2; height: 34px; margin: 0; }

/* the quiz opens in a popup */
#plQuiz.is-pop { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; margin: 0; padding: 16px; border: 0; border-radius: 0; background: rgba(14, 17, 48, .62); backdrop-filter: blur(4px); overflow-y: auto; }
#plQuiz.is-pop[hidden] { display: none; }
#plQuiz.is-pop .pl-quizset { position: relative; width: min(100%, 640px); max-height: calc(100vh - 32px); overflow-y: auto; padding: 28px 26px 24px; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 40px 90px -30px rgba(8, 10, 40, .7); }
body.pl-dark #plQuiz.is-pop .pl-quizset { background: #15183A; color: #F2F3FA; }
.pl-qx { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #F3F5FB; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
body.pl-dark .pl-qx { background: rgba(255, 255, 255, .1); color: #fff; }
.pl-quizrow.is-passed .pl-ex-ic { background: #E7F6EC; color: #157A3C; }
.pl-quizrow.is-passed .pl-ex-tag { color: #157A3C; }
.pl-files li { grid-template-columns: 22px minmax(0, 1fr) auto auto; }
.pl-files li > button.pl-btn { grid-column: 3; }
.pl-files li > a.pl-btn { grid-column: 4; margin-left: 8px; }
/* a video's own PDF / quiz: marks in the list, its quiz row under it, its PDF first in Resources */
.pl-att { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: -2px; color: #B97700; }
.pl-att svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-subrow { padding-left: 28px; }
.pl-files li.is-here { border-style: solid; border-color: var(--accent); }
.pl-here { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #FFF1D6; color: #8A5A00; font-size: 11px; font-weight: 700; font-style: normal; }
body.pl-dark .pl-here { background: rgba(242, 165, 65, .2); color: #F6C768; }
.dl-card.is-here { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242, 165, 65, .35); }
/* lesson tools: one tidy line (speed on the left, bookmark and autoplay on the right) */
.pl-tools { justify-content: space-between; gap: 12px; }
.pl-tools .pl-auto { margin-left: 0; }
.pl-tools-end { display: inline-flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }

/* =========================================================
   Blog: the list (Blog.aspx, body.page-blog) and one article (BlogPost.aspx, body.page-blog-post)
   ========================================================= */
.bl-hero .container { text-align: center; }
.bl-hero .page-lead { margin-left: auto; margin-right: auto; }
.bl-list { padding-top: clamp(24px, 3vw, 40px); }
.bl-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-bottom: 26px; }
.bl-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.bl-cats .chip small { margin-left: 4px; opacity: .65; }
.bl-search { position: relative; display: flex; align-items: center; width: min(320px, 100%); }
.bl-search svg { position: absolute; left: 16px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.bl-search input { width: 100%; height: 46px; padding: 0 18px 0 44px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 14.5px; color: var(--ink); }
.bl-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.bl-noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-soft) 60%, var(--accent) 140%); }
.bl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.bl-cat { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--accent-tint); color: #6B4400; font-size: 12px; font-weight: 600; }
.bl-title { display: block; font-size: 19px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.bl-title-ta { display: block; margin-top: -4px; font-family: var(--font-tamil); font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.bl-sum { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.bl-date { margin-top: auto; padding-top: 6px; font-size: 12.5px; color: var(--muted); }
.bl-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); margin-bottom: 26px; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft); color: inherit; text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s; }
.bl-feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.bl-feature-img { display: block; min-height: 300px; background: var(--sand); overflow: hidden; }
.bl-feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.bl-feature:hover .bl-feature-img img, .bl-card:hover .bl-card-img img { transform: scale(1.04); }
.bl-feature-body { display: grid; align-content: center; gap: 14px; padding: clamp(24px, 3.4vw, 44px); }
.bl-feature .bl-title { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; }
.bl-feature .bl-sum { -webkit-line-clamp: 3; font-size: 15.5px; }
.bl-feature .link-arrow { justify-self: start; margin-top: 4px; }
.bl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.bl-grid > [hidden], .bl-feature[hidden] { display: none; }
.bl-card { display: flex; flex-direction: column; min-width: 0; border-radius: 26px; overflow: hidden; background: #fff; border: 1px solid var(--line); color: inherit; text-decoration: none; box-shadow: 0 24px 44px -38px rgba(22, 28, 69, .5); transition: transform .4s var(--ease), box-shadow .4s; }
.bl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.bl-card-img { display: block; aspect-ratio: 16 / 9; background: var(--sand); overflow: hidden; }
.bl-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.bl-card-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; overflow-wrap: anywhere; }
/* the blog list cards: the "tailor" card (measuring tape with the read time, the topic on a price tag, a stitched seam that
   sews when the mouse is on the card, a sewing-button Read). 3 a row, 2 on tablets, 1 on phones */
.bl-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.bl-tc { position: relative; padding: 16px; border: none; border-radius: 22px; overflow: visible; box-shadow: 0 24px 48px -34px rgba(22, 28, 69, .55); }
.bl-tc:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: 0 30px 56px -34px rgba(22, 28, 69, .6); }
.bl-seam { position: absolute; top: 8px; left: 8px; width: calc(100% - 16px); height: calc(100% - 16px); overflow: visible; pointer-events: none; }
.bl-seam rect { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 9 6; stroke-linecap: round; }
.bl-tc:hover .bl-seam rect, .bl-tc:focus-visible .bl-seam rect { animation: bl-sew .9s linear infinite; }
@keyframes bl-sew { to { stroke-dashoffset: -30; } }
.bl-tape { position: relative; display: block; height: 36px; margin: 4px 4px 14px; border-radius: 4px 6px 6px 4px; overflow: hidden; background-color: #F7C66B;
    background-image: repeating-linear-gradient(90deg, rgba(14, 17, 48, .55) 0 1px, transparent 1px 10px), repeating-linear-gradient(90deg, rgba(14, 17, 48, .75) 0 2px, transparent 2px 50px);
    background-size: 100% 8px, 100% 14px; background-repeat: repeat-x; background-position: 14px 0, 14px 0; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .08); }
.bl-tape::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: linear-gradient(90deg, #9AA0B4, #D9DCE6 60%, #A9AEC0); }
.bl-tape-n { position: absolute; left: 14px; top: 15px; display: flex; }
.bl-tape-n i { flex: none; width: 50px; padding-right: 4px; text-align: right; font-style: normal; font-size: 10px; font-weight: 700; line-height: 1; color: var(--brand-deep); }
.bl-rt { position: absolute; right: 0; top: 0; bottom: 0; display: inline-flex; align-items: center; gap: 5px; padding: 0 10px 0 12px; background: var(--brand-deep); color: #F7C66B; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.bl-rt svg { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bl-tc .bl-card-img { position: relative; margin: 0 4px; border-radius: 14px; }
.bl-tag { position: absolute; top: 12px; left: -2px; display: inline-flex; align-items: center; max-width: calc(100% - 16px); height: 30px; padding: 0 14px 0 26px; background: var(--brand-deep); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); }
.bl-tag::before { content: ""; position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--accent); }
.bl-tc .bl-card-body { gap: 8px; padding: 14px 8px 4px; }
.bl-tc .bl-title { font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--brand-deep); }
.bl-tc .bl-title-ta { font-size: 13.5px; }
.bl-stats { display: flex; justify-content: space-between; gap: 4px 10px; margin-top: 6px; padding: 10px 0; border-top: 1px dashed rgba(38, 48, 107, .22); border-bottom: 1px dashed rgba(38, 48, 107, .22); font-size: 12.5px; color: var(--brand); }
.bl-stats > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.bl-stats b { font-weight: 600; }
.bl-stats i { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bl-stats svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bl-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.bl-tc .bl-date { margin: 0; padding: 0; font-size: 12.5px; }
.bl-read { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 4px 0 16px; border-radius: 999px; background: var(--accent-tint); color: var(--brand-deep); font-size: 13.5px; font-weight: 700; }
.bl-button { width: 34px; height: 34px; flex: none; transition: transform .5s var(--ease); }
.bl-button .b1 { fill: var(--accent); stroke: #D88A22; stroke-width: 1.5; }
.bl-button .b2 { fill: none; stroke: #D88A22; stroke-width: 1.2; }
.bl-button .b3 { fill: var(--brand-deep); }
.bl-button .b4 { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.bl-tc:hover .bl-button, .bl-tc:focus-visible .bl-button { transform: rotate(135deg); }
@media (prefers-reduced-motion: reduce) {
    .bl-tc:hover .bl-seam rect, .bl-tc:focus-visible .bl-seam rect { animation: none; }
    .bl-tc:hover { transform: none; }
}
@media (max-width: 1024px) {
    .bl-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .bl-grid3 { grid-template-columns: minmax(0, 1fr); }
}
/* a pinned article: a sewing pin holds its tape, and "Pinned" sits on the tape's left end */
.bl-pin { position: absolute; left: 22px; top: -14px; z-index: 2; width: 40px; height: 47px; overflow: visible; pointer-events: none; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .25)); }
.bl-pin .p1 { fill: none; stroke: #8C93A8; stroke-width: 2.2; stroke-linecap: round; }
.bl-pin .p2 { fill: none; stroke: #8C93A8; stroke-width: 1.4; stroke-linecap: round; }
.bl-pin .p3 { fill: #E2463F; }
.bl-pin .p4 { fill: #fff; opacity: .7; }
.bl-pinned { position: absolute; left: 14px; top: 0; bottom: 0; z-index: 1; display: inline-flex; align-items: center; padding: 0 10px 0 22px; background: var(--brand-deep); color: #F7C66B; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.bl-none { margin: 26px 0 0; text-align: center; color: var(--muted); }
.bl-none[hidden] { display: none; }
.bl-empty { display: grid; justify-items: center; gap: 12px; max-width: 560px; margin: 0 auto; padding: clamp(36px, 5vw, 60px) 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); text-align: center; }
.bl-empty-ico { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: var(--accent-tint); }
.bl-empty-ico svg { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bl-empty h2 { margin: 4px 0 0; font-size: 22px; color: var(--ink); }
.bl-empty p { margin: 0; color: var(--muted); }

/* one article */
.bp-draft { margin: 0 0 18px; padding: 10px 16px; border-radius: 14px; background: #FFF4DE; color: #6B4400; font-size: 14px; }
.bp-draft b { margin-right: 6px; }
.bp-narrow { max-width: 820px; }
.bp-hero { padding-bottom: clamp(20px, 3vw, 32px); }
.bp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 16px; font-size: 13.5px; color: var(--muted); }
.bp-cat { display: inline-flex; align-items: center; height: 30px; padding: 0 13px; border-radius: 999px; background: var(--accent-tint); color: #6B4400; font-weight: 600; text-decoration: none; }
.bp-title { margin: 0; font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 50px); line-height: 1.15; letter-spacing: -.01em; color: var(--ink); }
.bp-lead { margin: 16px 0 0; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.65; color: var(--muted); }
html[lang="ta"] .has-ta > .bp-en, html:not([lang="ta"]) .has-ta > .bp-ta { display: none; }
.bp-ta { font-family: var(--font-tamil); }
.bp-title .bp-ta { line-height: 1.35; }
.bp-by { display: flex; align-items: center; gap: 12px; margin: 22px 0 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.bp-by img { height: 34px; width: auto; padding: 5px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.bp-cover { margin: 0 0 clamp(26px, 4vw, 40px); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); background: var(--sand); }
.bp-cover img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.bp-body { font-size: 17.5px; line-height: 1.85; color: #2A2F4E; overflow-wrap: anywhere; }
.bp-body > div > :first-child { margin-top: 0; }
.bp-body p { margin: 0 0 1.25em; }
.bp-body h2 { margin: 1.8em 0 .6em; font-size: clamp(23px, 2.4vw, 29px); line-height: 1.3; color: var(--ink); }
.bp-body h3 { margin: 1.5em 0 .5em; font-size: 20px; line-height: 1.35; color: var(--ink); }
.bp-body h2[id], .bp-body h3[id] { scroll-margin-top: 120px; }
/* the contents list of a long article: a stitched box, numbered parts (02, 03 ...), sub-parts under them */
.bp-toc { position: relative; margin: 0 0 clamp(24px, 3.4vw, 36px); padding: 6px; border-radius: 22px; background: #fff; box-shadow: 0 22px 44px -36px rgba(22, 28, 69, .55); }
.bp-toc details { border: 2px dashed rgba(242, 165, 65, .8); border-radius: 17px; }
.bp-toc summary { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 700; color: var(--brand-deep); }
.bp-toc summary::-webkit-details-marker { display: none; }
.bp-toc-ico { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 12px; background: var(--accent-tint); }
.bp-toc-ico svg, .bp-toc-chev { width: 18px; height: 18px; fill: none; stroke: var(--brand-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bp-toc-chev { margin-left: auto; transition: transform .3s var(--ease); }
.bp-toc details[open] .bp-toc-chev { transform: rotate(180deg); }
.bp-toc-list { margin: 0; padding: 0 18px 16px; list-style: none; counter-reset: bptoc; }
.bp-toc-list li { border-top: 1px dashed rgba(38, 48, 107, .16); }
.bp-toc-list li.lv2 { counter-increment: bptoc; }
.bp-toc-list a { display: flex; align-items: baseline; gap: 12px; padding: 10px 4px; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.45; text-decoration: none; transition: color .2s, transform .2s; }
.bp-toc-list li.lv2 > a::before { content: counter(bptoc, decimal-leading-zero); flex: none; min-width: 24px; font-size: 13px; font-weight: 700; color: var(--accent); }
.bp-toc-list li.lv3 > a { padding-left: 40px; font-size: 14px; color: var(--muted); }
.bp-toc-list a:hover { color: var(--brand); transform: translateX(3px); }
html[lang="ta"] .bp-toc.has-ta .bp-toc-list.bp-en, html:not([lang="ta"]) .bp-toc .bp-toc-list.bp-ta,
html[lang="ta"] .bp-toc.only-en, html:not([lang="ta"]) .bp-toc.only-ta { display: none; }
.bp-body ul, .bp-body ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.bp-body li { margin: .35em 0; padding-left: .2em; }
.bp-body ul li::marker { color: var(--accent); }
.bp-body ol li::marker { color: var(--brand); font-weight: 700; }
.bp-body strong { color: var(--ink); }
.bp-body a { color: var(--brand); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.bp-body blockquote { margin: 1.5em 0; padding: 18px 22px; border-radius: 18px; border-left: 4px solid var(--accent); background: var(--accent-tint); color: var(--ink); font-size: 16.5px; }
.bp-body figure { margin: 1.8em 0; }
.bp-body figure img { display: block; width: 100%; height: auto; border-radius: 20px; }
.bp-body figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.bp-video { position: relative; margin: 1.8em 0; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #0E1130; box-shadow: var(--shadow-soft); }
.bp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bp-video-btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.bp-video-btn img { width: 100%; height: 100%; object-fit: cover; }
.bp-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--ink); box-shadow: 0 0 0 10px rgba(242, 165, 65, .3); transition: transform .3s var(--ease); }
.bp-play svg { width: 30px; height: 30px; margin-left: 4px; }
.bp-video-btn:hover .bp-play { transform: scale(1.08); }
/* questions and answers at the end of an article (Admin > Blog > FAQ): open one by one */
.bp-faq { margin-top: clamp(28px, 4vw, 44px); }
.bp-faq h2 { margin: 0 0 14px; font-size: 22px; color: var(--ink); }
.bp-faq-item { border: 1px solid var(--line); border-radius: 16px; background: #fff; margin-bottom: 10px; overflow: hidden; }
.bp-faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; font-weight: 600; font-size: 16px; line-height: 1.45; color: var(--ink); cursor: pointer; }
.bp-faq-item summary::-webkit-details-marker { display: none; }
.bp-faq-item summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: 18px; font-weight: 700; line-height: 1; transition: transform .2s; }
.bp-faq-item[open] summary::after { transform: rotate(45deg); }
.bp-faq-item[open] summary { border-bottom: 1px solid var(--line); }
.bp-faq-a { padding: 14px 18px 4px; font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.bp-faq-a p { margin: 0 0 12px; }
.bp-watch { margin-top: clamp(24px, 4vw, 40px); }
.bp-watch h2 { margin: 0 0 14px; font-size: 22px; color: var(--ink); }
.bp-watch .bp-video { margin: 0; }
.bp-course { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 24px; align-items: center; margin-top: clamp(30px, 4vw, 48px); padding: 18px; border-radius: var(--radius-lg); background: var(--brand); color: #fff; box-shadow: var(--shadow-card); }
.bp-course-img { display: block; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: rgba(255, 255, 255, .1); }
.bp-course-img img { width: 100%; height: 100%; object-fit: cover; }
.bp-course-body { display: grid; gap: 8px; padding-right: 10px; }
.bp-course-kick { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-soft); }
.bp-course h2 { margin: 0; font-size: 24px; line-height: 1.25; color: #fff; }
.bp-course-lead { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .78); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.bp-course-price { margin: 2px 0 6px; }
.bp-course-price s { margin-right: 6px; color: rgba(255, 255, 255, .55); }
.bp-course-price b { font-size: 26px; color: var(--accent-soft); }
.bp-course .pill { justify-self: start; background: var(--accent); color: var(--ink); }
.bp-course .pill i { background: var(--ink); color: #fff; }
.bp-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: clamp(30px, 4vw, 44px) 0 clamp(40px, 6vw, 72px); padding-top: 24px; border-top: 1px solid var(--line); }
.bp-share > span { margin-right: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.bp-share-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: border-color .2s, background .2s; }
.bp-share-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bp-share-btn:hover { border-color: var(--ink); }
.bp-share-btn.is-wa { color: #1E7B3C; }
.bp-share-btn.is-wa:hover { border-color: #25D366; background: #EAFBF0; }
.bp-like { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 16px; margin-right: 8px; border: 1px solid #F3C9D3; border-radius: 999px; background: #FFF5F7; color: #B4235A; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, transform .15s; }
.bp-like svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: fill .2s; }
.bp-like b { min-width: 26px; height: 26px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 999px; background: #fff; font-size: 13px; }
.bp-like:hover { background: #FFE8EE; }
.bp-like:active { transform: scale(.96); }
.bp-like.is-on { background: #B4235A; border-color: #B4235A; color: #fff; cursor: default; }
.bp-like.is-on svg { fill: currentColor; }
.bp-like.is-on b { background: rgba(255, 255, 255, .22); color: #fff; }
.bp-comments { margin: 0 0 clamp(40px, 6vw, 72px); }
.bp-comments h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: clamp(22px, 2.4vw, 28px); color: var(--ink); }
.bp-comments h2 b { min-width: 32px; height: 32px; padding: 0 9px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--soft, #F3F4F8); font-size: 15px; }
.bp-cmt-none, .bp-cmt-note { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.bp-cmt-list { display: grid; gap: 12px; margin: 0 0 22px; padding: 0; list-style: none; }
.bp-cmt { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.bp-cmt-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; }
.bp-cmt-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 0 0 4px; }
.bp-cmt-top b { color: var(--ink); font-size: 15px; }
.bp-cmt-top span { color: var(--muted); font-size: 13px; }
.bp-cmt-body { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--ink-2, #333); white-space: pre-line; overflow-wrap: anywhere; }
.bp-cmt-login { margin: 0; }
.bp-cmt-form { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--soft, #F7F7FA); }
.bp-cmt-form label { font-size: 14.5px; color: var(--muted); }
.bp-cmt-form label b { color: var(--ink); }
.bp-cmt-form textarea { width: 100%; box-sizing: border-box; min-height: 110px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font: inherit; font-size: 15.5px; line-height: 1.6; resize: vertical; }
.bp-cmt-form textarea:focus { outline: none; border-color: var(--ink); }
.bp-cmt-form .pill { justify-self: start; border: 0; cursor: pointer; font: inherit; }
.bp-cmt-form .pill[disabled] { opacity: .6; cursor: progress; }
.bp-cmt-form small { color: var(--muted); font-size: 13px; }
.bp-cmt-msg { margin: 0; font-size: 14px; font-weight: 600; color: var(--red, #B42318); }
.bp-cmt-msg.is-ok { color: #1F7A45; }
.bp-more { padding-top: 0; }
.bp-more-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.bp-more-head h2 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); color: var(--ink); }
@media (max-width: 860px) {
    .bl-feature { grid-template-columns: minmax(0, 1fr); }
    .bl-feature-img { min-height: 0; aspect-ratio: 16 / 9; }
    .bp-course { grid-template-columns: minmax(0, 1fr); }
    .bp-course-body { padding: 0 6px 8px; }
}
@media (max-width: 560px) {
    .bl-search { width: 100%; }
    .bp-body { font-size: 16.5px; }
}

/* Home hero: Before -> After slider card on the right of the video (replaces the two course links; the Basic Blouse link stays under it) */
.hv-ba { position: absolute; right: var(--gutter); top: 50%; z-index: 2; width: 360px; margin-top: -250px; display: grid; gap: 12px; }
.hv-ba-title { margin: 0 0 0 4px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.hv-ba-note { margin: -2px 0 2px 4px; font-size: 13px; color: rgba(255, 255, 255, .78); }
.ba { --pos: 50%; position: relative; aspect-ratio: 4 / 4.4; border-radius: 26px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .5); background: #E9E4E4; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .7); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; pointer-events: none; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-img.is-sketch { filter: grayscale(1) contrast(.85) brightness(1.18) sepia(.25); opacity: .95; }
.ba-tag { position: absolute; top: 14px; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ba-tag.is-before { left: 14px; background: rgba(255, 255, 255, .9); color: var(--ink); }
.ba-tag.is-after { right: 14px; background: var(--accent); color: var(--ink); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 14px rgba(0, 0, 0, .35); pointer-events: none; }
.ba-handle i { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.ba-handle svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ba.is-hint .ba-handle i { animation: baPulse 1.6s ease-in-out infinite; }
@keyframes baPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba-range:focus-visible + * { outline: none; }
.ba:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.hv-ba .hv-course { margin-top: 2px; }
@media (max-width: 1320px) { .hv-ba { display: none; } }
@media (max-height: 760px) { .hv-ba { margin-top: -200px; } .ba { aspect-ratio: 4 / 3.6; } }
@media (prefers-reduced-motion: reduce) { .ba.is-hint .ba-handle i { animation: none; } }

/* =========================================================
   Home hero: the course book (Default.aspx, #hb-story). Scrolling turns the pages; one lesson per page.
   ========================================================= */
.hb-story { position: relative; height: 640vh; }
.hb-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center;
    background: radial-gradient(900px 560px at 50% 58%, rgba(242, 165, 65, .2), transparent 70%), radial-gradient(700px 420px at 14% 8%, rgba(59, 71, 143, .55), transparent 70%), var(--navy); }
.hb-stage::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 55%, #000 25%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 55%, #000 25%, transparent 75%); }
.hb-top { position: absolute; left: 0; right: 0; top: clamp(14px, 3.2vh, 34px); display: grid; justify-items: center; gap: 6px; text-align: center; padding: 0 16px; z-index: 5; transition: opacity .4s; }
.hb-top .hb-lab { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(242, 165, 65, .5); background: rgba(242, 165, 65, .14); color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.hb-top h2 { margin: 4px 0 0; font-size: clamp(26px, 4.2vw, 56px); line-height: 1.1; letter-spacing: -.015em; }
.hb-top h2 em { font-style: normal; color: var(--accent); }
.hb-top .hb-ta { margin: 0; color: var(--accent); font-size: clamp(14px, 1.4vw, 19px); }

/* the book: --ph is the height of one page; everything inside is sized in em from it */
.hb-book { --ph: min(64vh, 60vw, 600px); position: relative; width: calc(var(--ph) * 1.5); height: var(--ph); font-size: calc(var(--ph) / 30); perspective: calc(var(--ph) * 3.2); margin-top: clamp(40px, 9vh, 90px); }
.hb-shift { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.hb-shadow { position: absolute; left: 6%; right: 6%; bottom: -5%; height: 8%; border-radius: 50%; background: rgba(0, 0, 0, .55); filter: blur(22px); }
.hb-leaf { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; will-change: transform; }
.hb-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; background: var(--paper); color: var(--ink); }
.hb-face.hb-front { border-radius: 0 .7em .7em 0; box-shadow: inset 1.4em 0 1.6em -1.2em rgba(0, 0, 0, .35), 0 .3em 1em rgba(0, 0, 0, .25); }
.hb-face.hb-back { transform: rotateY(180deg); border-radius: .7em 0 0 .7em; box-shadow: inset -1.4em 0 1.6em -1.2em rgba(0, 0, 0, .35); }
.hb-face .hb-fold { position: absolute; inset: 0; pointer-events: none; background: #000; opacity: 0; }
.hb-face .hb-edge { position: absolute; top: 0; bottom: 0; width: .35em; background: repeating-linear-gradient(0deg, #e9e0cf 0 2px, #fff 2px 4px); }
.hb-face.hb-front .hb-edge { right: 0; } .hb-face.hb-back .hb-edge { left: 0; }

/* the cover */
.hb-cover { height: 100%; background: linear-gradient(135deg, #1b2260, #0e1340 60%, #0a0e30); color: #fff; display: grid; align-content: center; justify-items: center; text-align: center; gap: .6em; padding: 2.2em; border: .35em solid #2a3280; }
.hb-cover::before { content: ""; position: absolute; inset: 1em; border: .15em solid var(--accent); border-radius: .5em; opacity: .8; }
.hb-cover img { width: 9em; height: auto; margin-bottom: .6em; position: relative; }
.hb-cover .hb-k { position: relative; font-size: .78em; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.hb-cover h2 { position: relative; margin: 0; font-size: 2.6em; line-height: 1.08; }
.hb-cover .hb-ta { position: relative; margin: 0; color: var(--accent); font-size: 1.05em; }
.hb-cover svg { position: relative; width: 12em; height: 3em; margin-top: .6em; }
.hb-cover .hb-open { position: relative; margin-top: .8em; padding: .55em 1.3em; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: .85em; font-weight: 700; }

/* a lesson text page */
.hb-page { padding: 2.2em 2em 1.6em 2.4em; display: grid; align-content: start; gap: .8em; height: 100%; background: linear-gradient(90deg, rgba(0,0,0,.06), transparent 18%), var(--paper); }
.hb-face.hb-back .hb-page { background: linear-gradient(270deg, rgba(0,0,0,.06), transparent 18%), var(--paper); }
.hb-page .hb-l { justify-self: start; padding: .35em 1em; border-radius: 999px; background: #FDF0DC; color: #7a4a00; font-size: .78em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hb-page h3 { margin: .1em 0 0; font-size: 2.5em; line-height: 1.05; letter-spacing: -.02em; }
.hb-page h3 em { font-style: normal; color: #D9871A; }
.hb-page .hb-ta { margin: 0; color: #D9871A; font-size: 1.05em; font-weight: 500; }
.hb-page p.hb-d { margin: .2em 0 0; font-size: 1em; line-height: 1.65; color: #4a4f6e; }
.hb-page ul { list-style: none; margin: .4em 0 0; padding: 0; display: grid; gap: .55em; }
.hb-page li { display: grid; grid-template-columns: 1.7em 1fr; align-items: center; gap: .6em; font-size: .95em; font-weight: 500; }
.hb-page li i { display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; background: #1F9D55; color: #fff; font-style: normal; font-size: .8em; }
.hb-page .hb-foot { align-self: end; display: flex; justify-content: space-between; font-size: .75em; color: #8a8ea6; margin-top: auto; padding-top: 1em; }
.hb-page.hb-end { align-content: center; justify-items: start; }
.hb-cta { display: inline-flex; align-items: center; gap: .6em; height: 3em; padding: 0 1.8em; margin-top: .6em; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; font-size: .95em; box-shadow: 0 .8em 1.6em -.8em rgba(26, 31, 61, .8); }
.hb-cert { display: grid; grid-template-columns: 3.4em 1fr; gap: .9em; align-items: center; padding: .8em 1.1em .8em .8em; margin-top: .4em; border-radius: 1.2em; background: #fff; border: 1px solid #eadfc8; }
.hb-cert img { width: 3.4em; height: 3.4em; border-radius: 50%; object-fit: cover; }
.hb-cert b { display: block; font-size: .95em; } .hb-cert small { color: #6b6f8a; font-size: .8em; }

/* a photo page (with a play button) */
.hb-photo { position: absolute; inset: 0; background-color: #2a2f55; background-repeat: no-repeat; }
.hb-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 13, 38, .75), transparent 45%); }
.hb-cap { position: absolute; left: 1.6em; right: 1.6em; bottom: 1.5em; z-index: 2; color: #fff; display: grid; gap: .2em; }
.hb-cap b { font-size: 1.35em; } .hb-cap small { font-size: .85em; opacity: .85; }
.hb-play { position: absolute; left: 50%; top: 46%; z-index: 3; width: 4.6em; height: 4.6em; margin: -2.3em 0 0 -2.3em; border: 0; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 .7em rgba(242, 165, 65, .3); transition: transform .25s; }
.hb-play:hover { transform: scale(1.1); }
.hb-play svg { width: 1.8em; height: 1.8em; margin-left: .25em; }
.hb-tag { position: absolute; left: 1.4em; top: 1.4em; z-index: 3; padding: .4em 1em; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: .78em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* below the book: page number, arrows */
.hb-nav { position: absolute; left: 0; right: 0; bottom: clamp(12px, 3vh, 30px); display: flex; align-items: center; justify-content: center; gap: 18px; z-index: 5; }
.hb-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); color: #fff; font-size: 18px; cursor: pointer; backdrop-filter: blur(8px); }
.hb-nav button:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.hb-dots { display: flex; gap: 8px; align-items: center; }
.hb-dots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .3); transition: width .3s, background .3s; }
.hb-dots i.hb-on { width: 26px; background: var(--accent); }
.hb-pn { min-width: 86px; text-align: center; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.hb-hint { position: absolute; left: 0; right: 0; bottom: clamp(70px, 11vh, 100px); text-align: center; z-index: 5; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .8); transition: opacity .4s; }

/* the video window */
.hb-lb { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; background: rgba(5, 6, 20, .86); padding: 20px; }
.hb-lb.hb-on { display: grid; }
.hb-lb div { position: relative; width: min(960px, 100%); aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; }
.hb-lb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hb-lb button { position: absolute; right: 18px; top: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 20px; cursor: pointer; }
@media (max-width: 700px) { .hb-book { --ph: min(58vh, 74vw, 520px); } .hb-nav button { width: 42px; height: 42px; } }

/* ---- modern look: dark glass pages, big gradient words, gold glow, no paper texture ---- */
.hb-stage { background: radial-gradient(900px 560px at 70% 62%, rgba(242, 165, 65, .22), transparent 70%), radial-gradient(760px 520px at 8% 12%, rgba(98, 76, 255, .38), transparent 70%), radial-gradient(600px 400px at 92% 6%, rgba(0, 190, 220, .18), transparent 70%), #07091f; }
.hb-stage::before { opacity: .55; }
.hb-face { background: linear-gradient(155deg, #1b2152 0%, #10143a 55%, #0a0d2b 100%); color: #fff; border: 1px solid rgba(255, 255, 255, .14); }
.hb-face.hb-front { border-radius: 0 1.5em 1.5em 0; box-shadow: inset 1.6em 0 1.8em -1.2em rgba(0, 0, 0, .55), 0 2.4em 4em -1.6em rgba(0, 0, 0, .85); }
.hb-face.hb-back { border-radius: 1.5em 0 0 1.5em; box-shadow: inset -1.6em 0 1.8em -1.2em rgba(0, 0, 0, .55); }
.hb-face .hb-edge { display: none; }
.hb-shadow { background: rgba(242, 165, 65, .35); filter: blur(34px); }
.hb-page, .hb-face.hb-back .hb-page { background: radial-gradient(420px 320px at 100% 0%, rgba(242, 165, 65, .2), transparent 62%), transparent; padding: 2.4em 2.2em 1.6em 2.6em; position: relative; }
.hb-page::after { content: var(--n, ''); position: absolute; right: .35em; bottom: -.12em; font-size: 9em; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .16); pointer-events: none; }
.hb-page .hb-l { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); color: var(--accent); }
.hb-page h3 { font-size: 2.7em; color: #fff; }
.hb-page h3 em { background: linear-gradient(90deg, #FFD08A, #F2A541 60%, #FF8A4C); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hb-page .hb-ta { color: #FFC46B; }
.hb-page p.hb-d { color: rgba(255, 255, 255, .78); }
.hb-page li { color: #fff; }
.hb-page li i { background: linear-gradient(135deg, #FFD08A, #F2A541); color: #1A1F3D; font-weight: 700; }
.hb-page .hb-foot { color: rgba(255, 255, 255, .5); position: relative; z-index: 1; }
.hb-cert { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); color: #fff; }
.hb-cert small { color: rgba(255, 255, 255, .7); }
.hb-cta { background: linear-gradient(135deg, #FFD08A, #F2A541); color: #1A1F3D; box-shadow: 0 1em 2.4em -.8em rgba(242, 165, 65, .9); }
.hb-cover { background: radial-gradient(70% 55% at 80% 8%, rgba(242, 165, 65, .5), transparent 70%), radial-gradient(80% 60% at 10% 100%, rgba(98, 76, 255, .55), transparent 70%), linear-gradient(160deg, #1b2152, #0a0d2b); border: 0; }
.hb-cover::before { inset: .9em; border: 1px solid rgba(255, 255, 255, .28); border-radius: 1em; opacity: 1; }
.hb-cover h2 { font-size: 3em; background: linear-gradient(90deg, #fff, #FFD08A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hb-cover .hb-open { background: linear-gradient(135deg, #FFD08A, #F2A541); }
.hb-photo::after { background: linear-gradient(0deg, rgba(7, 9, 31, .88), rgba(7, 9, 31, .1) 55%); }
.hb-tag { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hb-play { background: rgba(255, 255, 255, .2); border: 1.5px solid rgba(255, 255, 255, .7); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 0 .7em rgba(255, 255, 255, .12), 0 0 3em rgba(242, 165, 65, .6); }
.hb-play:hover { background: var(--accent); color: #1A1F3D; }
.hb-nav button { border-radius: 16px; }
.hb-dots i.hb-on { background: linear-gradient(90deg, #FFD08A, #F2A541); }

/* ---- on the live Home page ---- */
.hb-story { --accent: #F2A541; --ink: #1A1F3D; --paper: #FBF6EC; position: relative; color: #fff; font-family: var(--font-body); background: #07091f; }
.hb-stage { display: flex; flex-direction: column; align-items: center; padding: calc(var(--offer-h) + 104px) 16px 88px; box-sizing: border-box; }
.hb-top { position: relative; top: auto; flex: none; margin-bottom: clamp(10px, 2.4vh, 26px); }
.hb-book { --ph: min(calc(100svh - var(--offer-h) - 410px), 58vw, 600px); margin: auto 0; flex: none; }
.hb-top h2 { text-wrap: balance; color: #fff; }
.hb-page h3, .hb-cover h2 { font-family: var(--font-display); }
.hb-all { position: absolute; right: clamp(16px, 4vw, 48px); bottom: clamp(18px, 3.4vh, 34px); z-index: 6; display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; font-weight: 600; border-bottom: 2px solid var(--accent); padding-bottom: 3px; text-decoration: none; }
@media (max-width: 700px) {
    .hb-stage { padding-top: calc(var(--offer-h) + 92px); padding-bottom: 150px; }
    .hb-top .hb-lab { display: none; }
    .hb-nav { bottom: 86px; }
    .hb-hint { bottom: 140px; }
    .hb-top h2 { font-size: clamp(24px, 7vw, 34px); }
    .hb-book { --ph: min(calc(100svh - var(--offer-h) - 400px), 76vw, 520px); }
    .hb-all { display: none; }
}
@media (max-height: 640px) { .hb-hint { display: none; } }
@media (max-width: 1180px) { .hb-all { display: none; } }

/* ---- the hero is light, so the dark book stands out ---- */
.hb-story { background: #F6F6FA; color: var(--ink); }
.hb-stage { background: radial-gradient(900px 540px at 50% 72%, rgba(242, 165, 65, .3), transparent 70%), radial-gradient(760px 520px at 8% 10%, rgba(120, 100, 255, .2), transparent 70%), radial-gradient(640px 420px at 94% 8%, rgba(0, 190, 220, .16), transparent 70%), #F6F6FA; }
.hb-stage::before { background-image: linear-gradient(rgba(38, 48, 107, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(38, 48, 107, .07) 1px, transparent 1px); opacity: 1; }
.hb-top h2 { color: var(--ink); }
.hb-top h2 em { color: #D9871A; }
.hb-top .hb-lab { background: #FFF1DC; border-color: rgba(217, 135, 26, .5); color: #8a5200; }
.hb-top .hb-ta { color: #B8700F; }
.hb-shadow { background: rgba(26, 31, 61, .28); filter: blur(22px); }
.hb-face.hb-front { box-shadow: inset 1.6em 0 1.8em -1.2em rgba(0, 0, 0, .5), 0 1.4em 2em -1.2em rgba(26, 31, 61, .5); }
.hb-nav button { background: #fff; border-color: rgba(26, 31, 61, .18); color: var(--ink); box-shadow: 0 10px 24px -14px rgba(26, 31, 61, .5); }
.hb-nav button:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.hb-dots i { background: rgba(26, 31, 61, .2); }
.hb-dots i.hb-on { background: linear-gradient(90deg, #FFD08A, #F2A541); }
.hb-pn { color: var(--ink); }
.hb-hint { color: #5E6178; }
.hb-all { color: var(--ink); }

/* ---------- opening animation (see main.js, the hero opening script) ---------- */
.hero-intro {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 4;
    overflow: hidden;
    pointer-events: none;
    /* safety net: if the script never starts, the dark layer fades away by itself (main.js turns this off) */
    animation: intro-failsafe .6s 6s forwards;
}
.js-anim .hero-intro { display: block; }
@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; } }
.intro-cols { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: 12px; }
.intro-col { flex: none; width: 15vw; display: flex; flex-direction: column; gap: 12px; will-change: transform; }
.intro-tile, .intro-spacer { display: block; aspect-ratio: 3 / 4; border-radius: 14px; }
.intro-tile { overflow: hidden; background: var(--brand); }
.js-anim .intro-tile { opacity: 0; }   /* hidden until main.js pops them in */
.intro-spacer { visibility: hidden; }
.intro-tile img { width: 100%; height: 100%; object-fit: cover; }
/* the middle tile is a see-through window; its huge shadow is the dark layer around it, so the real hero video shows through */
.intro-main { position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 14px; box-shadow: 0 0 0 200vmax #0E1130; will-change: width, height, left, top; }
@media (max-width: 960px) {
    .intro-col { width: 34vw; }
    .intro-col:nth-child(-n+2), .intro-col:nth-child(n+6) { display: none; }
}
.hero.hero-video .hero-intro { background: transparent; }

/* ---- the book sits right under the hero words, where the video card used to be: same page colour, no seam ---- */
#hero.hero { min-height: 0; padding-bottom: 8px; }
.hb-story { background: #F6F7FB; }
.hb-stage { background: radial-gradient(800px 520px at 50% 68%, rgba(242, 165, 65, .24), transparent 70%), #F6F7FB; padding-top: calc(var(--offer-h) + 96px); }
.hb-stage::before { opacity: .35; mask-image: linear-gradient(#000, transparent 85%); -webkit-mask-image: linear-gradient(#000, transparent 85%); }
.hb-book { --ph: min(calc(100svh - var(--offer-h) - 270px), 58vw, 600px); }
.hb-book { margin: 0 auto auto; }

/* ---- the book looks like a real open book: paper pages, a dark hard cover showing around them, page edges, a table and a soft room behind it ---- */
.hb-stage { --ph: min(calc(100svh - var(--offer-h) - 270px), 56vw, 560px); background: #E8DDCB; }
.hb-book { --ph: inherit; position: relative; z-index: 2; margin: 0 auto auto; }
.hb-stage::before { content: ""; position: absolute; inset: -30px; z-index: 0; opacity: 1; mask-image: none; -webkit-mask-image: none;
    background: linear-gradient(180deg, #F6F7FB 0%, rgba(246, 247, 251, 0) 24%), linear-gradient(0deg, rgba(90, 55, 25, .35), transparent 45%), url(/assets/site/img/hero_1.webp) 34% 40% / cover;
    filter: blur(16px) saturate(.9) brightness(1.1); }
.hb-stage::after { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--offer-h) + 96px + var(--ph) - 14px); bottom: 0; z-index: 1;
    background: linear-gradient(180deg, #CDA678 0%, #B0804F 32%, #8B5D36 100%); box-shadow: inset 0 18px 26px -14px rgba(60, 35, 15, .55); }
.hb-nav, .hb-hint, .hb-all { z-index: 5; }
.hb-board { position: absolute; left: -.7em; right: -.7em; top: -.6em; bottom: -.8em; border-radius: .7em; transform: translateZ(-3px);
    background: linear-gradient(180deg, #212859, #10153d); box-shadow: 0 1.6em 1.8em -.8em rgba(40, 22, 8, .6), inset 0 0 0 1px rgba(255, 255, 255, .14); }
.hb-shadow { display: none; }
.hb-face { background: #F4F0E4; color: #26283f; border: 0; }
.hb-face.hb-front { background: linear-gradient(90deg, #D9D2BF 0, #F2EEE1 6%, #F7F3E8 100%); border-radius: 0 .35em .35em 0; box-shadow: .22em .14em 0 -.02em #E9E4D5, .44em .28em 0 -.04em #DCD6C5; }
.hb-face.hb-back { background: linear-gradient(270deg, #D9D2BF 0, #F2EEE1 6%, #F7F3E8 100%); border-radius: .35em 0 0 .35em; box-shadow: -.22em .14em 0 -.02em #E9E4D5, -.44em .28em 0 -.04em #DCD6C5; }
.hb-page, .hb-face.hb-back .hb-page { background: none; padding: 2.4em 2.1em 1.6em 2.5em; }
.hb-page::after { -webkit-text-stroke: 1px rgba(38, 40, 63, .14); }
.hb-page .hb-l { background: #F3E4C9; border: 0; color: #7a4a00; }
.hb-page h3 { color: #1f2240; }
.hb-page h3 em { background: linear-gradient(90deg, #E5A03A, #C9670F); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hb-page .hb-ta { color: #B8700F; }
.hb-page p.hb-d { color: #4b4d66; }
.hb-page li { color: #26283f; }
.hb-page li i { background: linear-gradient(135deg, #FFD08A, #F2A541); color: #1A1F3D; }
.hb-page .hb-foot { color: #9b9582; }
.hb-cert { background: #fff; border: 1px solid #e3dcc8; color: #26283f; }
.hb-cert small { color: #6b6f8a; }
.hb-cta { background: #1A1F3D; color: #fff; box-shadow: 0 .8em 1.6em -.8em rgba(26, 31, 61, .8); }
.hb-photo { inset: 1.5em; border-radius: .4em; box-shadow: 0 .5em 1.1em -.6em rgba(0, 0, 0, .55); }
.hb-tag { left: 2.5em; top: 2.5em; }
.hb-cap { left: 2.9em; right: 2.9em; bottom: 2.8em; }
.hb-hint { color: #3a3d57; text-shadow: 0 1px 0 rgba(255, 255, 255, .7); font-weight: 700; }
.hb-nav button { box-shadow: 0 .6em 1.2em -.5em rgba(40, 22, 8, .7); }
.hb-pn { color: #fff; text-shadow: 0 1px 4px rgba(40, 22, 8, .6); }
.hb-dots i { background: rgba(255, 255, 255, .5); }
.hb-dots i.hb-on { background: linear-gradient(90deg, #FFD08A, #F2A541); }
.hb-all { color: #fff; border-bottom-color: #FFD08A; text-shadow: 0 1px 4px rgba(40, 22, 8, .6); }
@media (max-width: 700px) { .hb-stage { --ph: min(calc(100svh - var(--offer-h) - 340px), 60vw, 520px); } }
.hb-page, .hb-face.hb-back .hb-page { padding: 1.9em 1.9em 1.2em 2.3em; gap: .55em; }
.hb-page h3 { font-size: 2.2em; }
.hb-page p.hb-d { font-size: .9em; line-height: 1.55; }
.hb-page li { font-size: .88em; }
.hb-page ul { gap: .4em; margin-top: .2em; }
.hb-page .hb-foot { padding-top: .4em; }
@media (max-width: 700px) {
    .hb-stage { padding-top: calc(var(--offer-h) + 150px); }
    .hb-stage::after { top: calc(var(--offer-h) + 150px + var(--ph) - 14px); }
    .hb-stage { --ph: min(calc(100svh - var(--offer-h) - 340px), 60vw, 520px); }
}

/* ---- the course book is the first screen: only the book, on the page colour (no table, no room), a course card on every page ---- */
.hb-stage { background: radial-gradient(900px 560px at 50% 52%, rgba(242, 165, 65, .2), transparent 70%), radial-gradient(760px 520px at 8% 8%, rgba(120, 100, 255, .14), transparent 70%), #F6F7FB; padding: calc(var(--offer-h) + 104px) 16px 96px; --ph: min(calc(100svh - var(--offer-h) - 270px), 56vw, 560px); }
.hb-stage::before { background: linear-gradient(rgba(38, 48, 107, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(38, 48, 107, .05) 1px, transparent 1px); background-size: 44px 44px; filter: none; inset: 0; }
.hb-stage::after { display: none; }
.hb-book { margin: auto; }
.hb-board { box-shadow: 0 2.2em 2.4em -1em rgba(26, 31, 61, .45), inset 0 0 0 1px rgba(255, 255, 255, .14); }
.hb-nav { bottom: clamp(16px, 3.4vh, 34px); }
.hb-pn { color: var(--ink); text-shadow: none; }
.hb-dots i { background: rgba(26, 31, 61, .22); }
.hb-all { color: var(--ink); text-shadow: none; }
.hb-hint { bottom: clamp(70px, 11vh, 100px); }
.hb-course { padding: 0; display: flex; flex-direction: column; gap: 0; }
.hb-course::after { display: none; }
.hb-cimg { position: relative; flex: 0 0 44%; display: block; margin: 1.1em 1.1em 0; border-radius: .6em; overflow: hidden; background: #E4DFD0; }
.hb-cimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-cph { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, #26306B, #F2A541); color: #fff; font-size: 4em; font-weight: 700; }
.hb-cbadge { position: absolute; left: .7em; top: .7em; padding: .3em .9em; border-radius: 999px; background: #1A1F3D; color: #fff; font-size: .72em; font-weight: 700; }
.hb-cbody { flex: 1; display: flex; flex-direction: column; gap: .45em; padding: .9em 1.3em 1.1em 1.4em; min-height: 0; }
.hb-cmeta { display: flex; flex-wrap: wrap; gap: .4em; margin: 0; }
.hb-cmeta span { padding: .25em .8em; border-radius: 999px; background: #F3E4C9; color: #7a4a00; font-size: .7em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hb-course h3 { margin: 0; font-size: 1.55em; line-height: 1.15; }
.hb-course h3 a { color: #1f2240; text-decoration: none; }
.hb-course .hb-ta { font-size: .85em; }
.hb-course .hb-d { margin: 0; font-size: .82em; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hb-cfoot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6em; }
.hb-price { margin: 0; color: #1f2240; }
.hb-price strong { font-size: 1.7em; }
.hb-price s { color: #8b8672; font-size: .9em; }
.hb-soon { padding: .35em 1em; border-radius: 999px; background: #E9E4D5; color: #5E6178; font-size: .8em; font-weight: 700; }
.hb-btns { display: flex; align-items: center; gap: .9em; }
.hb-course .hb-cta { margin: 0; height: 2.7em; padding: 0 1.4em; font-size: .85em; text-decoration: none; }
.hb-clink { color: #1f2240; font-size: .82em; font-weight: 700; text-decoration: underline; text-decoration-color: #F2A541; text-underline-offset: .25em; }
.hb-blank { display: grid; place-items: center; }
.hb-more { color: #9b9582; font-size: .9em; font-weight: 600; text-align: center; padding: 2em; }
.hb-blank::after { display: none; }
/* the hero words come after the book now */
#hero.hero { padding-top: calc(118px + var(--offer-h)); }   /* the "Loved by home tailors" line must not hide under the header */
.hv-watch { padding-top: clamp(24px, 4vw, 56px); background: #F6F7FB; }
@media (max-width: 700px) {
    .hb-stage { padding: calc(var(--offer-h) + 96px) 10px 150px; --ph: min(calc(100svh - var(--offer-h) - 360px), 60vw, 520px); }
    .hb-stage::after { display: none; }
    .hb-nav { bottom: 86px; }
    .hb-hint { bottom: 140px; }
    .hb-course h3 { font-size: 1.3em; }
    .hb-course .hb-d { display: none; }
}
/* ---- pure white pages ---- */
.hb-face { background: #fff; }
.hb-face.hb-front { background: linear-gradient(90deg, #E6E6EA 0, #fff 6%, #fff 100%); box-shadow: .22em .14em 0 -.02em #F1F1F4, .44em .28em 0 -.04em #E2E2E8; }
.hb-face.hb-back { background: linear-gradient(270deg, #E6E6EA 0, #fff 6%, #fff 100%); box-shadow: -.22em .14em 0 -.02em #F1F1F4, -.44em .28em 0 -.04em #E2E2E8; }
.hb-cimg { background: #F1F1F4; }
.hb-cmeta span { background: #FFF1DC; }
.hb-soon { background: #F1F1F4; }
.hb-blank { background: #fff; }
/* ---- the course card on a book page: picture across the page, even spacing, price and buttons at the bottom ---- */
.hb-course { padding: 1.35em 1.4em 1.25em 1.4em; gap: .85em; }
.hb-face.hb-front .hb-course { padding-left: 2.1em; }
.hb-face.hb-back .hb-course { padding-right: 2.1em; }
.hb-cimg { flex: none; width: 100%; margin: 0; aspect-ratio: 16 / 10; border-radius: .7em; box-shadow: 0 .5em 1.1em -.7em rgba(26, 31, 61, .55); }
.hb-cbody { flex: 1; padding: 0; gap: .5em; }
.hb-cmeta { gap: .35em; }
.hb-cmeta span { padding: .28em .8em; font-size: .66em; }
.hb-course h3 { font-size: 1.6em; margin-top: .1em; }
.hb-course .hb-ta { margin: 0; font-size: .9em; }
.hb-course .hb-d { color: #5a5d78; font-size: .82em; }
.hb-cfoot { margin-top: auto; display: grid; gap: .65em; padding-top: .75em; border-top: 1px solid #ECECF1; }
.hb-price { display: flex; align-items: baseline; gap: .5em; }
.hb-price strong { font-size: 1.85em; line-height: 1; }
.hb-btns { display: flex; align-items: center; gap: 1.1em; }
.hb-course .hb-cta { flex: 1; justify-content: center; height: 2.9em; padding: 0 1em; white-space: nowrap; }
.hb-clink { white-space: nowrap; }
.hb-face.hb-front .hb-course { padding: 1.35em 1.4em 1.25em 2.1em; }
.hb-face.hb-back .hb-course { padding: 1.35em 2.1em 1.25em 1.4em; }
.hb-course .hb-d { -webkit-line-clamp: 1; }
.hb-cbody { overflow: hidden; }

/* ---- the book starts closed (one white page in the middle), opens while you scroll, and closes again at the end ---- */
.hb-leaf.hb-first .hb-front { border-radius: .6em; box-shadow: .22em .14em 0 -.02em #F1F1F4, .44em .28em 0 -.04em #E2E2E8, 0 1.8em 2.4em -1em rgba(26, 31, 61, .5); background: #fff; }
.hb-leaf.hb-last .hb-back { border-radius: .6em; background: #fff; box-shadow: -.22em .14em 0 -.02em #F1F1F4, -.44em .28em 0 -.04em #E2E2E8, 0 1.8em 2.4em -1em rgba(26, 31, 61, .5); }
.hb-title { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .7em; padding: 2em 2em; background: none; }
.hb-title::after { display: none; }
.hb-title img { width: 8em; height: auto; margin-bottom: .6em; }
.hb-title .hb-k { font-size: .72em; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #B8700F; }
.hb-title h2 { margin: 0; font-size: 2.6em; line-height: 1.1; color: #1f2240; font-family: var(--font-display); }
.hb-title .hb-ta { font-size: 1em; }
.hb-title .hb-line { width: 6em; height: .22em; border-radius: 99px; background: linear-gradient(90deg, #FFD08A, #F2A541); margin: .3em 0; }
.hb-title .hb-open { margin-top: .4em; padding: .6em 1.4em; border-radius: 999px; background: #1A1F3D; color: #fff; font-size: .82em; font-weight: 700; }
.hb-title .hb-d { max-width: 20em; margin: 0; }
.hb-title .hb-cta { margin-top: .8em; }

/* ---- the sides of the open book: small facts that fade in as it opens (wide screens only) ---- */
.hb-chips { display: none; }
.hb-why { align-items: flex-start; text-align: left; justify-content: center; }
.hb-why ul { list-style: none; margin: .4em 0 0; padding: 0; display: grid; gap: .7em; }
.hb-why li { display: grid; grid-template-columns: 1.8em 1fr; gap: .6em; align-items: center; font-size: .95em; font-weight: 600; color: #26283f; }
.hb-why li i { display: grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 50%; background: linear-gradient(135deg, #FFD08A, #F2A541); color: #1A1F3D; font-style: normal; font-size: .8em; }
@media (min-width: 1240px) {
    .hb-chips { display: block; }
    .hb-chip { position: absolute; z-index: 1; display: flex; align-items: center; gap: 12px; width: 214px; padding: 11px 16px 11px 11px; border-radius: 18px; background: #fff; border: 1px solid rgba(38, 48, 107, .12); box-shadow: 0 24px 44px -26px rgba(26, 31, 61, .45);
        opacity: 1; animation: hero-bob 7s ease-in-out infinite; color: var(--ink); text-decoration: none; }
    .hb-chip b { display: block; font-size: 14px; line-height: 1.25; }
    .hb-chip small { display: block; font-size: 12px; color: var(--muted); }
    .hb-ci { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #FFF1DC; }
    .hb-ci svg { width: 21px; height: 21px; fill: none; stroke: #1A1F3D; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .hb-l { right: calc(50% + var(--ph) * .75 + 30px); }
    .hb-r { left: calc(50% + var(--ph) * .75 + 30px); }
    .hb-c1 { top: calc(var(--offer-h) + 150px); animation-delay: -1s; }
    .hb-c2 { top: calc(var(--offer-h) + 150px + var(--ph) * .36); animation-delay: -3s; margin-left: 18px; margin-right: 18px; }
    .hb-c3 { top: calc(var(--offer-h) + 150px + var(--ph) * .72); animation-delay: -5s; }
}
@media (prefers-reduced-motion: reduce) { .hb-chip { animation: none; } }
/* long course names must never push the price and the buttons off the page */
.hb-course h3 { font-size: 1.45em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hb-course .hb-ta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-cbody { min-height: 0; }
.hb-cfoot { flex: none; }
/* ---- smaller letters on the course cards ---- */
.hb-course h3 { font-size: 1.12em; line-height: 1.3; }
.hb-course .hb-ta { font-size: .78em; }
.hb-course .hb-d { font-size: .74em; }
.hb-cmeta span { font-size: .6em; padding: .26em .75em; }
.hb-price strong { font-size: 1.45em; }
.hb-price s { font-size: .78em; }
.hb-course .hb-cta { height: 2.6em; font-size: .76em; padding: 0 1em; }
.hb-clink { font-size: .74em; }
.hb-soon { font-size: .72em; }
.hb-cbody { gap: .42em; }
/* ---- modern book: no dark cover, no page edges; big rounded glassy pages with a soft coloured glow ---- */
.hb-stage { background: radial-gradient(620px 460px at 22% 38%, rgba(120, 100, 255, .26), transparent 70%), radial-gradient(640px 480px at 80% 62%, rgba(242, 165, 65, .3), transparent 70%), radial-gradient(520px 380px at 56% 6%, rgba(0, 190, 220, .18), transparent 70%), #F6F7FB; }
.hb-board { display: none; }
.hb-face .hb-edge { display: none; }
.hb-face { background: linear-gradient(150deg, rgba(255, 255, 255, .985), rgba(247, 245, 255, .97)); border: 1px solid rgba(120, 100, 255, .14); color: #1f2240; }
.hb-face.hb-front { border-radius: 0 1.7em 1.7em 0; box-shadow: inset 1px 0 0 rgba(26, 31, 61, .1), inset 1.8em 0 1.6em -1.6em rgba(26, 31, 61, .12), 0 2.2em 3.4em -1.8em rgba(70, 55, 190, .4); background: linear-gradient(150deg, #fff, #F7F5FF); }
.hb-face.hb-back { border-radius: 1.7em 0 0 1.7em; box-shadow: inset -1px 0 0 rgba(26, 31, 61, .1), inset -1.8em 0 1.6em -1.6em rgba(26, 31, 61, .12), 0 2.2em 3.4em -1.8em rgba(70, 55, 190, .4); background: linear-gradient(210deg, #fff, #F7F5FF); }
.hb-leaf.hb-first .hb-front { border-radius: 1.7em; box-shadow: 0 2.2em 3.4em -1.6em rgba(70, 55, 190, .45), inset 0 1px 0 #fff; }
.hb-leaf.hb-last .hb-back { border-radius: 1.7em; box-shadow: 0 2.2em 3.4em -1.6em rgba(70, 55, 190, .45), inset 0 1px 0 #fff; }
.hb-cimg { border-radius: 1.1em; box-shadow: 0 1em 1.6em -1em rgba(70, 55, 190, .5); }
.hb-cmeta span { background: linear-gradient(135deg, #EFEAFF, #FFF1DC); color: #3b2f8a; }
.hb-cta, .hb-title .hb-open { background: linear-gradient(135deg, #2D378A, #1A1F3D); box-shadow: 0 .8em 1.5em -.6em rgba(45, 55, 138, .75); border-radius: 999px; }
.hb-soon { background: #EFEAFF; color: #3b2f8a; }
.hb-price strong { background: linear-gradient(90deg, #1A1F3D, #3b2f8a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hb-clink { text-decoration-color: #F2A541; }
.hb-cfoot { border-top-color: rgba(120, 100, 255, .14); }
.hb-title .hb-line { background: linear-gradient(90deg, #7C6BFF, #F2A541); }
.hb-nav button { background: rgba(255, 255, 255, .85); border: 1px solid rgba(120, 100, 255, .2); box-shadow: 0 .8em 1.4em -.8em rgba(70, 55, 190, .5); }
.hb-dots i.hb-on { background: linear-gradient(90deg, #7C6BFF, #F2A541); }
/* ---- professional look: plain page, white pages with a thin grey border, navy text, one gold accent, no gradients or coloured glows ---- */
.hb-stage { background: #F6F7FB; }
.hb-stage::before { opacity: .6; }
.hb-face { background: #fff; border: 1px solid #E3E5EE; color: #1A1F3D; }
.hb-face.hb-front { background: #fff; border-radius: 0 .9em .9em 0; box-shadow: inset 1px 0 0 rgba(26, 31, 61, .08), inset 1.6em 0 1.4em -1.4em rgba(26, 31, 61, .1), 0 1.4em 2.2em -1.4em rgba(26, 31, 61, .35); }
.hb-face.hb-back { background: #fff; border-radius: .9em 0 0 .9em; box-shadow: inset -1px 0 0 rgba(26, 31, 61, .08), inset -1.6em 0 1.4em -1.4em rgba(26, 31, 61, .1), 0 1.4em 2.2em -1.4em rgba(26, 31, 61, .35); }
.hb-leaf.hb-first .hb-front, .hb-leaf.hb-last .hb-back { border-radius: .9em; box-shadow: 0 1.4em 2.2em -1.2em rgba(26, 31, 61, .4); }
.hb-cimg { border-radius: .6em; box-shadow: none; border: 1px solid #ECEEF4; }
.hb-cmeta span { background: #F1F2F7; color: #4a4f6e; letter-spacing: .05em; }
.hb-cta, .hb-title .hb-open { background: #1A1F3D; box-shadow: none; border-radius: .6em; }
.hb-course .hb-cta { border-radius: .6em; }
.hb-soon { background: #F1F2F7; color: #4a4f6e; }
.hb-price strong { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #1A1F3D; }
.hb-course h3 a { color: #1A1F3D; }
.hb-course .hb-ta { color: #8a5a10; }
.hb-clink { text-decoration-color: #D9871A; color: #1A1F3D; }
.hb-cfoot { border-top-color: #E3E5EE; }
.hb-title .hb-line { background: #D9871A; height: .16em; }
.hb-title .hb-k { color: #8a5a10; }
.hb-nav button { background: #fff; border: 1px solid #D5D8E4; box-shadow: 0 .4em .9em -.5em rgba(26, 31, 61, .35); }
.hb-dots i { background: #CDD0DD; }
.hb-dots i.hb-on { background: #1A1F3D; }
.hb-chip { box-shadow: 0 .8em 1.6em -1em rgba(26, 31, 61, .35); border-color: #E3E5EE; }
.hb-ci { background: #F1F2F7; }
.hb-why li i { background: #1A1F3D; color: #fff; }
/* ---- straight book: square corners on all four sides of the pages (like a real book), picture and buttons nearly square ---- */
.hb-face, .hb-face.hb-front, .hb-face.hb-back, .hb-leaf.hb-first .hb-front, .hb-leaf.hb-last .hb-back { border-radius: 0; }
.hb-cimg { border-radius: 0; }
.hb-cimg img { border-radius: 0; }
.hb-course .hb-cta, .hb-cta, .hb-title .hb-open { border-radius: .15em; }
.hb-cmeta span, .hb-soon { border-radius: .15em; }
.hb-cbadge { border-radius: .15em; }
.hb-why li i { border-radius: .15em; }
/* ---- a real measurement-book feel: graph-paper pages, a shaded gutter, stacked page edges, a cloth cover with a stitched spine, a ribbon bookmark ---- */
.hb-stage { --paper: #FEFCF6; --cover: #1d2859; }
.hb-face { background-color: var(--paper); border: 0; background-size: 100% 100%, 1.25em 1.25em, 1.25em 1.25em; }
.hb-face.hb-front { background-image: linear-gradient(90deg, rgba(26, 31, 61, .3) 0, rgba(26, 31, 61, .09) 2.2%, rgba(26, 31, 61, 0) 10%), linear-gradient(rgba(38, 48, 107, .075) 1px, transparent 1px), linear-gradient(90deg, rgba(38, 48, 107, .075) 1px, transparent 1px);
    box-shadow: .18em .1em 0 -.02em #F4F0E4, .36em .2em 0 -.04em #E6E1D2, .54em .3em 0 -.06em #D8D2C0, 0 1.4em 2em -1.2em rgba(0, 0, 0, .5); border-radius: 0 .2em .2em 0; }
.hb-face.hb-back { background-image: linear-gradient(270deg, rgba(26, 31, 61, .3) 0, rgba(26, 31, 61, .09) 2.2%, rgba(26, 31, 61, 0) 10%), linear-gradient(rgba(38, 48, 107, .075) 1px, transparent 1px), linear-gradient(90deg, rgba(38, 48, 107, .075) 1px, transparent 1px);
    box-shadow: -.18em .1em 0 -.02em #F4F0E4, -.36em .2em 0 -.04em #E6E1D2, -.54em .3em 0 -.06em #D8D2C0, 0 1.4em 2em -1.2em rgba(0, 0, 0, .5); border-radius: .2em 0 0 .2em; }
.hb-cimg { border: 0; box-shadow: 0 .3em .8em -.4em rgba(26, 31, 61, .5); }
.hb-board { display: block; left: -.6em; right: -.6em; top: -.55em; bottom: -.8em; border-radius: .3em; background-color: var(--cover);
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px), linear-gradient(180deg, #27357f, #141c48);
    box-shadow: 0 1.8em 2em -.8em rgba(26, 31, 61, .65), inset 0 0 0 1px rgba(255, 255, 255, .14); }
.hb-ribbon { position: absolute; left: calc(50% + 1.1em); top: -.7em; width: 1em; height: 34%; z-index: 40; transform: translateZ(2px); opacity: 0; pointer-events: none;
    background: linear-gradient(90deg, #A8201A, #D8473D 55%, #B8281F); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 86%, 0 100%); filter: drop-shadow(0 .2em .2em rgba(0, 0, 0, .35)); }
/* the closed book: a cloth cover edge round the front page, a stitched spine on the left, a thick edge on the right and the bottom */
.hb-leaf.hb-first .hb-front { border: .4em solid var(--cover); box-sizing: border-box; border-radius: .25em .15em .15em .25em; background-image: linear-gradient(rgba(38, 48, 107, .075) 1px, transparent 1px), linear-gradient(90deg, rgba(38, 48, 107, .075) 1px, transparent 1px); background-size: 1.25em 1.25em;
    box-shadow: .22em .16em 0 -.02em #E9E4D5, .44em .32em 0 -.04em #D8D2C0, 0 1.8em 2.4em -1em rgba(0, 0, 0, .55); }
.hb-leaf.hb-first .hb-front::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1.5em; z-index: 3; background: linear-gradient(90deg, #0f1642, #27357f); box-shadow: inset -1px 0 0 rgba(255, 255, 255, .18); }
.hb-leaf.hb-first .hb-front::after { content: ""; position: absolute; left: .75em; top: .6em; bottom: .6em; width: 0; z-index: 4; border-left: 2px dashed rgba(255, 255, 255, .55); }
.hb-leaf.hb-last .hb-back { border: .4em solid var(--cover); box-sizing: border-box; border-radius: .15em .25em .25em .15em; background-image: linear-gradient(rgba(38, 48, 107, .075) 1px, transparent 1px), linear-gradient(90deg, rgba(38, 48, 107, .075) 1px, transparent 1px); background-size: 1.25em 1.25em;
    box-shadow: -.22em .16em 0 -.02em #E9E4D5, -.44em .32em 0 -.04em #D8D2C0, 0 1.8em 2.4em -1em rgba(0, 0, 0, .55); }
.hb-leaf.hb-last .hb-back::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1.5em; z-index: 3; background: linear-gradient(270deg, #0f1642, #27357f); box-shadow: inset 1px 0 0 rgba(255, 255, 255, .18); }
.hb-leaf.hb-last .hb-back::after { content: ""; position: absolute; right: .75em; top: .6em; bottom: .6em; width: 0; z-index: 4; border-left: 2px dashed rgba(255, 255, 255, .55); }
.hb-title { padding-left: 2.6em; }
.hb-leaf.hb-last .hb-title { padding-left: 2em; padding-right: 2.6em; }
/* ---- the hero words and the book are on ONE screen: the words sit above the book inside the pinned stage and stay while the pages turn ---- */
.hb-stage { --ph: min(calc(100svh - var(--offer-h) - 440px), 56vw, 560px); }
.hb-top { gap: 0; margin-bottom: clamp(8px, 1.6vh, 18px); text-align: center; }
.hb-top .hero-proof { justify-content: center; margin: 0 0 6px; }
.hb-top .hero-title { margin: 0; font-size: clamp(30px, 3.9vw, 52px); line-height: 1.06; }
.hb-top .hero-title em::after { height: .12em; bottom: -.08em; }
.hb-top .hero-lead { margin: 8px auto 0; max-width: 34em; font-size: 0; line-height: 1.5; }
.hb-top .hero-tamil { display: block; font-size: clamp(15px, 1.3vw, 18px); margin: 0; }
@media (min-height: 880px) { .hb-top .hero-tamil { margin-bottom: 2px; } }
.hb-c1 { top: calc(var(--offer-h) + 250px + var(--ph) * .02); }
.hb-c2 { top: calc(var(--offer-h) + 250px + var(--ph) * .36); }
.hb-c3 { top: calc(var(--offer-h) + 250px + var(--ph) * .7); }
@media (max-width: 700px) {
    .hb-stage { --ph: min(calc(100svh - var(--offer-h) - 520px), 60vw, 520px); padding-top: calc(var(--offer-h) + 92px); }
    .hb-top .hero-proof-text { font-size: 12px; }
    .hb-top .hero-title { font-size: clamp(26px, 7.4vw, 34px); }
}
.hb-top { width: min(820px, 100%); }
.hb-top .hero-lead { max-width: none; }
.hb-top .hero-tamil { white-space: nowrap; }
.hb-stage { --ph: min(calc(100svh - var(--offer-h) - 410px), 56vw, 560px); }
.hb-c1 { top: calc(var(--offer-h) + 232px + var(--ph) * .02); }
.hb-c2 { top: calc(var(--offer-h) + 232px + var(--ph) * .36); }
.hb-c3 { top: calc(var(--offer-h) + 232px + var(--ph) * .7); }
@media (max-width: 700px) { .hb-stage { --ph: min(calc(100svh - var(--offer-h) - 500px), 60vw, 520px); } .hb-top .hero-tamil { white-space: normal; } }

/* ---- the Measurement Book pages: a measurement chart, a tape picture with three steps, the four lessons ---- */
.hb-chart, .hb-how { align-content: start; gap: .5em; }
.hb-chart h3, .hb-how h3 { font-size: 1.5em; }
.hb-ms { list-style: none; margin: .5em 0 0; padding: 0; display: grid; gap: .1em; }
.hb-ms li { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: .5em; padding: .42em 0; font-size: .9em; font-weight: 600; color: #26283f; border-bottom: 1px solid rgba(38, 48, 107, .12); }
.hb-ms i { border-bottom: 1px dotted rgba(38, 48, 107, .4); height: .7em; }
.hb-ms b { font-weight: 600; color: #8a5a10; font-size: .85em; white-space: nowrap; }
.hb-save { display: inline-block; margin-top: .7em; font-size: .78em; color: #1A1F3D; }
.hb-tape { width: 100%; height: auto; max-height: 38%; margin: .3em 0 .4em; }
.hb-tape text { font-family: var(--font-body); }
.hb-steps { margin: 0; padding-left: 1.3em; display: grid; gap: .5em; font-size: .86em; color: #26283f; font-weight: 500; }
.hb-steps li::marker { color: #D9871A; font-weight: 700; }
.hb-chart, .hb-how { grid-template-columns: minmax(0, 1fr); }
.hb-page .hb-ms li { display: grid; }
.hb-page .hb-ms li i { display: block; width: auto; height: .7em; border-radius: 0; background: none; color: inherit; font-size: inherit; border-bottom: 1px dotted rgba(38, 48, 107, .4); }
.hb-page .hb-steps li { display: list-item; grid-template-columns: none; font-weight: 500; }
.hb-tape { display: block; width: 100%; height: auto; max-height: none; }
.hb-page .hb-ms li { padding: .3em 0; font-size: .84em; }
.hb-chart h3 { font-size: 1.35em; }
.hb-chart { gap: .35em; }
.hb-save { margin-top: .4em; }

/* ---- pages that tell what the website is ---- */
.hb-name { font-size: 1.75em !important; line-height: 1.15; }
.hb-wel, .hb-what, .hb-mini, .hb-flow, .hb-teach, .hb-help { align-content: start; gap: .6em; grid-template-columns: minmax(0, 1fr); }
.hb-wel h3, .hb-what h3, .hb-mini h3, .hb-flow h3, .hb-teach h3, .hb-help h3 { font-size: 1.5em; }
.hb-rate { margin: .4em 0 0; padding: .6em .9em; border: 1px solid #E3E5EE; background: #fff; font-size: .85em; color: #4a4f6e; }
.hb-rate b { color: #1A1F3D; font-size: 1.15em; }
.hb-rows { display: grid; gap: .55em; margin-top: .3em; }
.hb-row { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); gap: .8em; align-items: center; padding: .45em; border: 1px solid #E3E5EE; background: #fff; text-decoration: none; color: #1A1F3D; }
.hb-th { width: 3.4em; height: 3.4em; overflow: hidden; background: #E9EAF1; display: grid; place-items: center; font-weight: 700; }
.hb-th img { width: 100%; height: 100%; object-fit: cover; }
.hb-rn { display: grid; gap: .1em; min-width: 0; }
.hb-rn b { font-size: .85em; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hb-rn small { font-size: .78em; color: #8a5a10; font-weight: 700; }
.hb-flow ol { list-style: none; margin: .4em 0 0; padding: 0; display: grid; gap: .8em; }
.hb-flow li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: .8em; align-items: center; font-size: .9em; font-weight: 600; color: #26283f; }
.hb-flow li b { display: grid; place-items: center; width: 2.2em; height: 2.2em; background: #1A1F3D; color: #fff; font-size: .95em; }
.hb-tp { height: 11em; background-size: cover; background-position: 50% 15%; border: 1px solid #E3E5EE; margin-bottom: .3em; }
.hb-teach .hb-d, .hb-wel .hb-d, .hb-help .hb-d { margin: 0; font-size: .86em; line-height: 1.6; }
.hb-help .hb-cta { margin-top: .5em; justify-self: start; }
.hb-help .hb-wa { background: #1E7B3C; }
/* ---- a modern e-book look: clean white pages, a thin dark edge, a soft spine shadow; no ribbon, no cloth, no graph grid, no stacked page edges ---- */
.hb-stage { --cover: #1A1F3D; }
.hb-ribbon { display: none; }
.hb-board { left: -.2em; right: -.2em; top: -.18em; bottom: -.3em; border-radius: .45em; background-image: none; background-color: var(--cover); box-shadow: 0 2em 2.6em -1.2em rgba(26, 31, 61, .45); }
.hb-face, .hb-face.hb-front, .hb-face.hb-back { background-color: #fff; background-size: auto; }
.hb-face.hb-front { background-image: linear-gradient(90deg, rgba(26, 31, 61, .14) 0, rgba(26, 31, 61, 0) 7%); box-shadow: none; border-radius: 0 .3em .3em 0; }
.hb-face.hb-back { background-image: linear-gradient(270deg, rgba(26, 31, 61, .14) 0, rgba(26, 31, 61, 0) 7%); box-shadow: none; border-radius: .3em 0 0 .3em; }
.hb-leaf.hb-first .hb-front { border: 0; border-radius: .45em; background-image: none; box-shadow: 0 2em 2.6em -1.2em rgba(26, 31, 61, .5), 0 0 0 1px rgba(26, 31, 61, .08); }
.hb-leaf.hb-last .hb-back { border: 0; border-radius: .45em; background-image: none; box-shadow: 0 2em 2.6em -1.2em rgba(26, 31, 61, .5), 0 0 0 1px rgba(26, 31, 61, .08); }
.hb-leaf.hb-first .hb-front::before { width: .55em; background: var(--cover); box-shadow: none; }
.hb-leaf.hb-first .hb-front::after { display: none; }
.hb-leaf.hb-last .hb-back::before { width: .55em; background: var(--cover); box-shadow: none; }
.hb-leaf.hb-last .hb-back::after { display: none; }
.hb-title { padding-left: 2em; }
.hb-leaf.hb-last .hb-title { padding-left: 2em; padding-right: 2em; }
.hb-cimg { box-shadow: none; }
.hb-page h3 { letter-spacing: -.02em; }
.hb-title .hb-name { font-size: 1.9em !important; letter-spacing: -.02em; }
/* ---- front and back cover: a designed navy hard cover with a gold frame, the logo on a white badge and gold lettering; the pages inside stay white ---- */
.hb-leaf.hb-first .hb-front, .hb-leaf.hb-last .hb-back { background-color: #171d4f; background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 7px), linear-gradient(160deg, #26307a 0%, #181f55 52%, #0e1338 100%); color: #fff; border-radius: .5em; box-shadow: 0 2.2em 2.8em -1.2em rgba(14, 19, 56, .65), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.hb-leaf.hb-first .hb-front::before { width: 1.3em; background: linear-gradient(90deg, #080c26, #1b2358); border-right: 1px solid rgba(242, 165, 65, .55); box-shadow: inset -.25em 0 .4em -.2em rgba(0, 0, 0, .5); }
.hb-leaf.hb-last .hb-back::before { width: 1.3em; background: linear-gradient(270deg, #080c26, #1b2358); border-left: 1px solid rgba(242, 165, 65, .55); box-shadow: inset .25em 0 .4em -.2em rgba(0, 0, 0, .5); }
.hb-leaf.hb-first .hb-front::after { display: block; content: ""; position: absolute; left: 2.2em; right: .9em; top: .9em; bottom: .9em; width: auto; border: 1px solid rgba(242, 165, 65, .7); box-shadow: inset 0 0 0 .35em rgba(14, 19, 56, .0), 0 0 0 .3em rgba(242, 165, 65, .0); z-index: 4; pointer-events: none; }
.hb-leaf.hb-last .hb-back::after { display: block; content: ""; position: absolute; right: 2.2em; left: .9em; top: .9em; bottom: .9em; width: auto; border: 1px solid rgba(242, 165, 65, .7); z-index: 4; pointer-events: none; }
.hb-leaf.hb-first .hb-title { padding: 2.6em 2.4em 2.2em 3.6em; gap: .8em; }
.hb-leaf.hb-last .hb-title { padding: 2.6em 3.6em 2.2em 2.4em; gap: .8em; }
.hb-leaf.hb-first .hb-title img, .hb-leaf.hb-last .hb-title img { width: 9.4em; padding: .55em 1em; background: #fff; border-radius: .3em; box-shadow: 0 .5em 1.2em -.5em rgba(0, 0, 0, .6); margin-bottom: .5em; }
.hb-leaf.hb-first .hb-k { color: #F2C27A; }
.hb-leaf.hb-first .hb-title h2, .hb-leaf.hb-last .hb-title h2 { color: #fff; text-shadow: 0 .06em .2em rgba(0, 0, 0, .35); }
.hb-leaf.hb-first .hb-title .hb-ta { color: #F2C27A; }
.hb-leaf.hb-first .hb-line { background: linear-gradient(90deg, transparent, #F2A541, transparent); width: 8em; height: .12em; }
.hb-leaf.hb-first .hb-open { background: #F2A541; color: #181f55; border-radius: .2em; box-shadow: 0 .7em 1.4em -.6em rgba(0, 0, 0, .7); }
.hb-leaf.hb-last .hb-title .hb-d { color: rgba(255, 255, 255, .82); }
.hb-leaf.hb-last .hb-title .hb-cta { background: #F2A541; color: #181f55; border-radius: .2em; box-shadow: 0 .7em 1.4em -.6em rgba(0, 0, 0, .7); }
/* ---- Home book in Tamil: no letter-spacing / capitals (it splits Tamil letters), a smaller headline so the book still fits on the screen ---- */
html[lang="ta"] .hb-k, html[lang="ta"] .hb-hint, html[lang="ta"] .hb-open, html[lang="ta"] .hb-top .hb-lab, html[lang="ta"] .hb-cta, html[lang="ta"] .hb-all { letter-spacing: 0; text-transform: none; }
html[lang="ta"] .hb-top .hero-title { font-size: clamp(22px, 2.5vw, 38px); line-height: 1.25; }
html[lang="ta"] .hb-top .hero-title em::after { bottom: .02em; }
html[lang="ta"] .hb-top .hero-lead { display: none; }
html[lang="ta"] .hb-title h2, html[lang="ta"] .hb-title .hb-name { font-size: 1.45em; line-height: 1.3; }
html[lang="ta"] .hb-title .hb-k { font-size: .8em; line-height: 1.5; }
html[lang="ta"] .hb-title { gap: .5em; }
html[lang="ta"] .hb-hint { font-size: 12px; }
/* the hint sits behind the book so it can never be printed over the dark cover */
.hb-hint { z-index: 1; }
.hb-book { z-index: 2; }
/* a bigger book: it takes the free height of the screen */
.hb-stage { --ph: min(calc(100svh - var(--offer-h) - 340px), 62vw, 680px); }
/* the book grows into the place of the words while it is open: the side cards move out and up with it */
.hb-top { transition: none; }
@media (min-width: 1240px) {
    .hb-chip { width: 200px; margin-top: calc(var(--hb-up, 0px) * -1); }
    .hb-l { right: calc(50% + var(--ph) * var(--hb-s, 1) * .75 + 14px); }
    .hb-r { left: calc(50% + var(--ph) * var(--hb-s, 1) * .75 + 14px); }
}
/* the middle side cards no longer sit further out than the others, so none of them is cut by the screen edge */
@media (min-width: 1240px) { .hb-c2 { margin-left: 0; margin-right: 0; } }

/* ---- Free pattern page ---- */
.fp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 380px)); gap: 22px; justify-content: center; }
.fp-card { display: grid; gap: 12px; padding: 28px 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 50px -34px rgba(26, 31, 61, .45); }
.fp-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: #FFF1DC; }
.fp-ico svg { width: 26px; height: 26px; fill: none; stroke: #1A1F3D; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fp-card h2 { margin: 4px 0 0; font-size: 22px; line-height: 1.25; }
.fp-card p { margin: 0; color: var(--muted); }
.fp-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #3a3d57; }
.fp-field input { padding: 13px 14px; border-radius: 12px; border: 1px solid #D9DCE8; font: inherit; font-size: 16px; background: #fff; }
.fp-field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.fp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fp-err { color: #B3261E; font-size: 14px; }
.fp-card .pill { justify-self: start; cursor: pointer; border: 0; }

/* ---- the video tab inside the open book ---- */
.hb-story { height: 300vh; }
.hb-vid { position: absolute; inset: 3% 3.2% 3% 3.2%; z-index: 20; opacity: 0; pointer-events: none; display: flex; flex-direction: column; transform-origin: 50% 50%; will-change: opacity, transform; }
.hb-vtab { align-self: flex-start; margin-left: 1.2em; padding: .5em 1.3em; border-radius: .5em .5em 0 0; background: #F2A541; color: #1A1F3D; font-size: .8em; font-weight: 700; line-height: 1.2; }
.hb-vbox { position: relative; flex: 1; background: #0E1130; border-radius: 0 .4em .4em .4em; overflow: hidden; box-shadow: 0 1.4em 2.4em -1.2em rgba(14, 17, 48, .6); }
.hb-vbox video, .hb-vbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; }

/* ---- the cards stay beside the book while it is closed, and two more columns fill the free space on very wide screens ---- */
@media (min-width: 1240px) {
    .hb-l:not(.hb-o) { right: calc(50% + var(--ph) * var(--hb-s, 1) * .375 * (1 + var(--hb-open, 0)) + 22px); }
    .hb-r:not(.hb-o) { left: calc(50% + var(--ph) * var(--hb-s, 1) * .375 * (1 + var(--hb-open, 0)) + 22px); }
    .hb-o { display: none; }
}
@media (min-width: 1600px) {
    .hb-o { display: flex; }
    .hb-l.hb-o { right: calc(50% + var(--ph) * var(--hb-s, 1) * .375 * (1 + var(--hb-open, 0)) + 22px + 226px); }
    .hb-r.hb-o { left: calc(50% + var(--ph) * var(--hb-s, 1) * .375 * (1 + var(--hb-open, 0)) + 22px + 226px); }
    .hb-o1 { top: calc(var(--offer-h) + 232px + var(--ph) * .19); animation-delay: -2s; }
    .hb-o2 { top: calc(var(--offer-h) + 232px + var(--ph) * .55); animation-delay: -4s; }
}

/* ---- cards in the style of the "floating cards": orange icon tile, scattered (not in straight lines), small photos between them ---- */
.hb-ci { background: linear-gradient(135deg, #FFD08A, #F2A541); }
.hb-ph { display: none; }
@media (min-width: 1600px) {
    .hb-l.hb-c2:not(.hb-o) { margin-right: 36px; }
    .hb-r.hb-c2:not(.hb-o) { margin-left: 36px; }
    .hb-o2 { margin-top: 28px; }
    .hb-l.hb-o2 { margin-right: -34px; }
    .hb-r.hb-o2 { margin-left: -34px; }
    .hb-ph { display: block; position: absolute; z-index: 1; width: 58px; height: 58px; border-radius: 14px; background-size: cover; background-position: center; border: 3px solid #fff; box-shadow: 0 1em 1.6em -.9em rgba(26, 31, 61, .55); margin-top: calc(var(--hb-up, 0px) * -1); animation: hero-bob 7s ease-in-out infinite; }
    .hb-ph.hb-l { right: calc(50% + var(--ph) * var(--hb-s, 1) * .375 * (1 + var(--hb-open, 0)) + 22px + 300px); }
    .hb-ph.hb-r { left: calc(50% + var(--ph) * var(--hb-s, 1) * .375 * (1 + var(--hb-open, 0)) + 22px + 300px); }
    .hb-p1 { top: calc(var(--offer-h) + 232px + var(--ph) * -.02); animation-delay: -1s; }
    .hb-p2 { top: calc(var(--offer-h) + 232px + var(--ph) * .9); animation-delay: -3s; }
    .hb-ph.hb-l.hb-p2 { right: calc(50% + var(--ph) * var(--hb-s, 1) * .375 * (1 + var(--hb-open, 0)) + 22px + 330px); }
    .hb-ph.hb-r.hb-p2 { left: calc(50% + var(--ph) * var(--hb-s, 1) * .375 * (1 + var(--hb-open, 0)) + 22px + 330px); }
}

/* ---- on wide screens the outer cards and photos spread out to the screen edges, so the whole banner is used ---- */
@media (min-width: 1600px) {
    .hb-l.hb-o { right: min(max(calc(50% + var(--ph) * var(--hb-s, 1) * .375 * (1 + var(--hb-open, 0)) + 248px), calc(100% - 4vw - 200px)), calc(100% - 16px - 200px)); }
    .hb-r.hb-o { left: min(max(calc(50% + var(--ph) * var(--hb-s, 1) * .375 * (1 + var(--hb-open, 0)) + 248px), calc(100% - 4vw - 200px)), calc(100% - 16px - 200px)); }
    .hb-ph.hb-l { right: auto; left: 21vw; }
    .hb-ph.hb-r { left: auto; right: 21vw; }
    .hb-ph.hb-l.hb-p2 { right: auto; left: 14vw; }
    .hb-ph.hb-r.hb-p2 { left: auto; right: 14vw; }
}

/* wide screens: the cards beside the book sit further from it and the first one drops below the headline, so the words are clear */
@media (min-width: 1600px) {
    .hb-l.hb-c1:not(.hb-o), .hb-l.hb-c3:not(.hb-o) { margin-right: 70px; }
    .hb-r.hb-c1:not(.hb-o), .hb-r.hb-c3:not(.hb-o) { margin-left: 70px; }
    .hb-l.hb-c2:not(.hb-o) { margin-right: 120px; }
    .hb-r.hb-c2:not(.hb-o) { margin-left: 120px; }
    .hb-c1:not(.hb-o) { top: calc(var(--offer-h) + 232px + var(--ph) * .08 + 20px); }
    .hb-c3:not(.hb-o) { top: calc(var(--offer-h) + 232px + var(--ph) * .74 + 10px); }
}

/* the icon tiles are one calm colour (soft cream with a navy icon), not many bright colours */
.hb-chips .hb-chip .hb-ci { background: #FBF1E0; box-shadow: inset 0 0 0 1px rgba(26, 31, 61, .08); }

/* fewer details: only the six cards beside the book and four small photos at the edges */
@media (min-width: 1600px) {
    .hb-ph.hb-l.hb-p1 { left: 9vw; }
    .hb-ph.hb-r.hb-p1 { right: 9vw; }
    .hb-ph.hb-l.hb-p2 { left: 15vw; }
    .hb-ph.hb-r.hb-p2 { right: 15vw; }
}

/* the dots under the video: the videos change by themselves, a dot picks one */
.hb-vdots { position: absolute; left: 50%; bottom: 1.2%; transform: translateX(-50%); display: flex; gap: .7em; z-index: 2; }
.hb-vdots button { width: .8em; height: .8em; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); cursor: pointer; box-shadow: 0 0 0 1px rgba(26, 31, 61, .25); }
.hb-vdots button.on { background: #F2A541; transform: scale(1.3); }
.hb-vbox video, .hb-vbox iframe { animation: hb-vin .7s ease both; }
@keyframes hb-vin { from { opacity: 0; transform: translateX(6%); } to { opacity: 1; transform: none; } }

/* ======== Home hero: the laptop (Default.aspx #lp-story) ======== */
.lp-story { height: 650vh; }
html.hero-book .lp-story { display: none; }
.lp-stage { --lw: min(74vw, calc((100svh - var(--offer-h, 0px) - 500px) * 1.5), 980px); }
.lp-bg { position: absolute; inset: 0; background: radial-gradient(900px 600px at 50% 55%, #2b2f6b, #07091f 70%); opacity: 0; pointer-events: none; }
.lp-cam { position: relative; width: var(--lw); margin-top: 18px; transform-origin: 0 0; will-change: transform; perspective: 1800px; z-index: 2; }
.lp-laptop { transform-origin: 50% 100%; transform-style: preserve-3d; will-change: transform; filter: drop-shadow(0 2.2em 2.4em rgba(26, 31, 61, .32)); }
.lp-lid { position: relative; aspect-ratio: 16 / 10.2; padding: 2.1% 2.5%; box-sizing: border-box; border-radius: 1.3em 1.3em .3em .3em; background: linear-gradient(160deg, #2a2d3f, #11131f); box-shadow: inset 0 0 0 .12em #4b4f66; }
.lp-lid::before { content: ""; position: absolute; top: .9%; left: 50%; width: .5%; aspect-ratio: 1; border-radius: 50%; background: #3e4259; transform: translateX(-50%); }
.lp-display { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: .4em; background: #fff; font-size: calc(var(--lw) / 62); color: #1A1F3D; }
.lp-base { position: relative; height: calc(var(--lw) * .034); width: 108%; margin-left: -4%; border-radius: 0 0 1.6em 1.6em / 0 0 1em 1em; background: linear-gradient(#e6e8f0, #b3b7c8); box-shadow: inset 0 .12em 0 #fff; }
.lp-notch { position: absolute; top: 0; left: 50%; width: 16%; height: 46%; transform: translateX(-50%); border-radius: 0 0 .8em .8em; background: #c4c8d8; }
.lp-hint { position: absolute; bottom: clamp(16px, 4vh, 38px); left: 0; right: 0; text-align: center; font-size: 13px; font-weight: 600; color: #6b6f8a; letter-spacing: .04em; z-index: 3; }

/* scenes on the screen */
.lp-sc { position: absolute; inset: 0; visibility: hidden; opacity: 0; box-sizing: border-box; transform-origin: 50% 50%; background: #fff; }
.lp-sc .rv { opacity: clamp(0, calc(var(--sp, 0) * 3 - var(--i, 0) * .45), 1); transform: translateY(calc((1 - clamp(0, calc(var(--sp, 0) * 3 - var(--i, 0) * .45), 1)) * 1.8em)); }
.lp-s0 { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1em; background: radial-gradient(60em 30em at 50% 40%, #FFF1DC, #fff 70%); }
.lp-s0 img { width: 15em; max-width: 50%; }
.lp-s0 span { font-size: 1.15em; font-weight: 600; color: #4a4e6b; }
.lp-s1 { display: grid; grid-template-columns: 1fr 3.4fr; background: #F6F7FB; }
.lp-side { background: #1A1F3D; color: #fff; padding: 1.6em 1.2em; }
.lp-side b { display: block; font-size: 1.2em; margin-bottom: 1.2em; }
.lp-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9em; font-size: .95em; }
.lp-side li { display: flex; align-items: center; gap: .6em; opacity: .85; }
.lp-side li i { flex: none; width: 1.1em; height: 1.1em; border-radius: 50%; border: .15em solid rgba(255, 255, 255, .5); }
.lp-side li.ok i { background: #5CC27A; border-color: #5CC27A; }
.lp-main { padding: 1.4em 1.8em; display: flex; flex-direction: column; gap: .8em; min-width: 0; }
.lp-vbox { position: relative; flex: 1; min-height: 0; border-radius: .7em; overflow: hidden; background: #0E1130; box-shadow: 0 1em 1.8em -1em rgba(14, 17, 48, .6); }
.lp-vbox iframe, .lp-vbox video, .lp-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: #000 center / cover; }
.lp-main h4 { margin: 0; font-size: 1.25em; }
.lp-bar { height: .5em; border-radius: 1em; background: #DDE0EC; overflow: hidden; }
.lp-bar i { display: block; width: 34%; height: 100%; background: linear-gradient(90deg, #FFD08A, #F2A541); }
.lp-s2 { display: grid; grid-template-columns: 1fr 1.25fr; background: linear-gradient(120deg, #FFF6E8, #fff); }
.lp-photo { background: center top / cover; }
.lp-txt { padding: 2.2em 2.4em; display: flex; flex-direction: column; justify-content: center; gap: .9em; }
.lp-tag { align-self: flex-start; padding: .35em 1em; border-radius: 99em; background: #FDF0DC; color: #7a4a00; font-weight: 700; font-size: .85em; letter-spacing: .08em; text-transform: uppercase; }
.lp-txt h3, .lp-s3 h3, .lp-s4 h3 { margin: 0; font-size: 2.2em; line-height: 1.15; }
.lp-txt p { margin: 0; font-size: 1.15em; line-height: 1.55; color: #4a4e6b; }
.lp-pills { display: flex; gap: .7em; flex-wrap: wrap; }
.lp-pills span { padding: .45em 1em; border-radius: 99em; background: #1A1F3D; color: #fff; font-weight: 600; font-size: .9em; }
.lp-s3 { padding: 1.8em 2.2em; display: flex; flex-direction: column; gap: .8em; background: linear-gradient(160deg, #F2F4FF, #fff); }
.lp-s3 h3 { font-size: 1.7em; }
.lp-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: .8em; }
.lp-grid span { border-radius: .8em; background: center / cover; box-shadow: 0 .8em 1.4em -1em rgba(26, 31, 61, .55); }
.lp-s4 { padding: 0 2.2em 1.6em; display: flex; flex-direction: column; gap: 1em; background: #F6F7FB; }
.lp-nav { display: flex; align-items: center; gap: 1.6em; margin: 0 -2.2em; padding: .9em 2.2em; background: #fff; border-bottom: 1px solid #E3E5EE; font-size: .9em; color: #6b6f8a; font-weight: 600; }
.lp-nav b { color: #1A1F3D; margin-right: auto; font-size: 1.15em; }
.lp-nav .on { color: #1A1F3D; border-bottom: .2em solid #F2A541; padding-bottom: .15em; }
.lp-s4 h3 { font-size: 1.6em; }
.lp-cards { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; }
.lp-card { display: flex; flex-direction: column; gap: .5em; padding: .8em; border-radius: .9em; background: #fff; box-shadow: 0 .9em 1.6em -1.2em rgba(26, 31, 61, .5); color: inherit; text-decoration: none; min-height: 0; }
.lp-cimg { flex: 1; min-height: 0; border-radius: .6em; background: #E8EAF3 center / cover; }
.lp-card b { font-size: .95em; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.lp-cp { height: .35em; border-radius: 1em; background: #E3E5EE; overflow: hidden; }
.lp-cp i { display: block; height: 100%; background: #5CC27A; }
.lp-card em { font-style: normal; font-weight: 700; color: #B5560B; }
.lp-go { align-self: flex-start; padding: .7em 1.5em; border-radius: .6em; background: #F2A541; color: #1A1F3D; font-weight: 700; text-decoration: none; }
@media (max-width: 700px) {
    .lp-stage { --lw: 92vw; }
    .lp-display { font-size: calc(var(--lw) / 48); }
    .lp-txt { padding: 1.2em; } .lp-txt h3 { font-size: 1.7em; }
}

/* hero buttons */
.lp-cta { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.lp-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid #1A1F3D; background: transparent; color: #1A1F3D; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; transition: background .2s, color .2s; }
.lp-ghost svg { width: 16px; height: 16px; fill: currentColor; }
.lp-ghost:hover, .lp-ghost:focus-visible { background: #1A1F3D; color: #fff; }

/* the three floating course cards that come out of the screen */
.lp-fcs { position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2.4vw, 36px); padding: calc(var(--offer-h, 0px) + 90px) 4vw 60px; box-sizing: border-box; perspective: 1500px; pointer-events: none; }
.lp-fw { visibility: hidden; opacity: 0; width: min(27vw, 330px); transform-style: preserve-3d; will-change: transform, opacity; }
.lp-fw:nth-child(2) { margin-top: -40px; }
.lp-fc { --rx: 0deg; --ry: 0deg; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; color: #fff; text-decoration: none; background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06)); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .3); transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0); transition: transform .25s ease, box-shadow .25s ease; }
.lp-fc:hover, .lp-fc:focus-visible { transform: rotateX(var(--rx)) rotateY(var(--ry)) translateY(-10px); box-shadow: 0 54px 70px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(242, 165, 65, .55), inset 0 1px 0 rgba(255, 255, 255, .35); outline: none; }
.lp-fi { aspect-ratio: 16 / 10; background: #1d2150 center / cover; }
.lp-fb { display: grid; gap: 6px; padding: 16px 18px 18px; }
.lp-fb b { font-size: 17px; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.lp-fb small { font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.lp-fd { font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .85); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s ease, opacity .3s ease; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.lp-fc:hover .lp-fd, .lp-fc:focus-visible .lp-fd { max-height: 6em; opacity: 1; }
.lp-fp { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.lp-fp em { font-style: normal; font-weight: 700; color: #FFD08A; font-size: 17px; }
.lp-fp i { font-style: normal; font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 999px; background: #F2A541; color: #1A1F3D; }
@media (hover: none) { .lp-fd { max-height: 6em; opacity: 1; } }
@media (max-width: 900px) {
    .lp-fcs { flex-direction: column; gap: 12px; padding-top: calc(var(--offer-h, 0px) + 84px); }
    .lp-fw { width: min(92vw, 420px); }
    .lp-fw:nth-child(2) { margin-top: 0; }
    .lp-fc { flex-direction: row; align-items: stretch; }
    .lp-fi { width: 34%; aspect-ratio: auto; flex: none; }
    .lp-fb { padding: 10px 12px; gap: 3px; }
    .lp-fb b { font-size: 14px; }
    .lp-fd { display: none; }
    .lp-fp i { padding: 6px 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .lp-fc { transition: none; } }

/* ---- the light: a warm glow behind the laptop, a glare on the glass, a reflection on the table, small tailoring icons floating around it ---- */
.lp-cam::before { content: ""; position: absolute; inset: -22% -14% -30%; z-index: -1; background: radial-gradient(closest-side, rgba(242, 165, 65, .30), rgba(98, 76, 255, .14) 62%, transparent); pointer-events: none; }
.lp-laptop::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -3.2em; height: 2.6em; background: radial-gradient(ellipse at center, rgba(26, 31, 61, .34), transparent 70%); filter: blur(5px); pointer-events: none; }
.lp-display::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .30) 0, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, .12) 100%); background-size: 240% 100%; background-position: var(--gl, 0%) 0; mix-blend-mode: soft-light; }
.lp-lid { box-shadow: inset 0 0 0 .12em #4b4f66, inset 0 .2em 0 rgba(255, 255, 255, .22); }
.lp-fl { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.lp-fl span { position: absolute; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: rgba(255, 255, 255, .85); border: 1px solid rgba(26, 31, 61, .08); box-shadow: 0 18px 30px -18px rgba(26, 31, 61, .55); backdrop-filter: blur(6px); animation: hero-bob 6s ease-in-out infinite; }
.lp-fl svg { width: 26px; height: 26px; fill: none; stroke: #1A1F3D; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lp-f1 { left: -7%; top: 6%; } .lp-f2 { right: -6%; top: 12%; animation-delay: -1.5s; } .lp-f3 { left: -10%; top: 58%; animation-delay: -3s; } .lp-f4 { right: -9%; top: 62%; animation-delay: -4.5s; } .lp-f5 { left: 18%; top: -10%; animation-delay: -2s; }
.lp-f1 svg { stroke: #E0734F; } .lp-f2 svg { stroke: #5B7BE0; } .lp-f3 svg { stroke: #F2A541; } .lp-f4 svg { stroke: #3FAE7A; } .lp-f5 svg { stroke: #B25BD6; }
@media (max-width: 900px) { .lp-fl { display: none; } }
@media (prefers-reduced-motion: reduce) { .lp-fl span { animation: none; } }

/* ---- after the laptop: the dark scene fades into the normal home page ---- */
.lp-find { position: relative; z-index: 1; padding: 190px 0 84px; text-align: center; background: linear-gradient(#0a0c26 0, #0a0c26 6%, #F6F7FB 190px); color: var(--ink, #1A1F3D); }
html.hero-book .lp-find { display: none; }
.lp-find .eyebrow { justify-content: center; color: #B5560B; }
.lp-fh { margin: 6px 0 22px; font-size: clamp(26px, 3.4vw, 40px); color: #1A1F3D; }
.lp-search { display: flex; gap: 10px; max-width: 560px; margin: 0 auto 46px; padding: 6px; border-radius: 999px; background: #fff; border: 1px solid #E3E5EE; box-shadow: 0 24px 40px -26px rgba(26, 31, 61, .55); }
.lp-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; padding: 0 18px; color: #1A1F3D; }
.lp-pop { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; text-align: left; }
.lp-pc { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid #E3E5EE; color: inherit; text-decoration: none; box-shadow: 0 24px 40px -30px rgba(26, 31, 61, .5); transition: transform .25s ease, box-shadow .25s ease; }
.lp-pc[hidden] { display: none; }
.lp-pc:hover, .lp-pc:focus-visible { transform: translateY(-6px); box-shadow: 0 34px 50px -30px rgba(26, 31, 61, .6); outline: none; }
.lp-pi { aspect-ratio: 16 / 10; background: #E8EAF3 center / cover; }
.lp-pb { display: grid; gap: 6px; padding: 14px 16px 16px; }
.lp-pb b { font-size: 16px; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.lp-pb small { color: #6b6f8a; font-size: 13px; }
.lp-pf { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.lp-pf em { font-style: normal; font-weight: 700; font-size: 17px; color: #B5560B; }
.lp-pf s { font-weight: 400; font-size: 13px; color: #8a8ea6; }
.lp-pf i { font-style: normal; font-weight: 700; font-size: 13px; padding: 7px 13px; border-radius: 999px; background: #F2A541; color: #1A1F3D; }
.lp-none { margin: 18px 0 0; color: #6b6f8a; }
.lp-why { list-style: none; margin: 56px 0 34px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; text-align: left; }
.lp-why li { display: grid; gap: 6px; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid #E3E5EE; }
.lp-why b { font-size: 16px; }
.lp-why span { color: #6b6f8a; font-size: 14px; line-height: 1.5; }
.lp-all { margin: 0; }
@media (prefers-reduced-motion: reduce) { .lp-pc { transition: none; } }

/* ---- Student wall page ---- */
.sw-grid { columns: 3 260px; column-gap: 22px; }
.sw-card { break-inside: avoid; margin: 0 0 22px; border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 50px -34px rgba(26, 31, 61, .45); }
.sw-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: #E8EAF3; }
.sw-card figcaption { display: grid; gap: 4px; padding: 16px 20px 20px; }
.sw-card blockquote { margin: 0 0 6px; font-size: 16px; line-height: 1.55; color: #26283f; }
.sw-card b { font-size: 16px; }
.sw-card figcaption span { font-size: 13px; color: var(--muted); }
.sw-cta { text-align: center; margin: 34px 0 0; }

/* ---- FAQ page ---- */
.faq-list.faq-page { max-width: 820px; margin: 0 auto; }
.faq-page-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* ---- Combo offers page ---- */
.cb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 440px)); gap: 24px; justify-content: center; }
.cb-card { display: grid; gap: 14px; align-content: start; padding: 28px 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 50px -34px rgba(26, 31, 61, .45); }
.cb-card h2 { margin: 0; font-size: 24px; line-height: 1.25; }
.cb-desc { margin: 0; color: var(--muted); }
.cb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cb-list li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; }
.cb-img { width: 52px; height: 52px; border-radius: 12px; background: #E8EAF3 center / cover; }
.cb-list a { color: inherit; font-weight: 600; text-decoration: none; line-height: 1.3; }
.cb-list s { color: #8a8ea6; font-size: 14px; }
.cb-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-top: 12px; border-top: 1px dashed #D9DCE8; }
.cb-price b { font-size: 30px; color: #B5560B; }
.cb-price span { color: var(--muted); font-size: 14px; }
.cb-price em { font-style: normal; font-weight: 700; color: #1F8A52; font-size: 14px; flex-basis: 100%; }
.cb-card .pill { justify-self: start; cursor: pointer; border: 0; }
.cb-msg { margin: 0; color: #B3261E; font-size: 14px; }

/* ---- Course finder (Which course is right for me?) ---- */
.fc-box { max-width: 760px; margin: 0 auto; padding: 32px 28px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 50px -34px rgba(26, 31, 61, .45); text-align: center; }
.fc-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; }
.fc-dots i { width: 34px; height: 6px; border-radius: 6px; background: #E3E5EE; }
.fc-dots i.done { background: #F2A541; } .fc-dots i.now { background: #1A1F3D; }
.fc-step { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.fc-q { margin: 0 0 22px; font-size: clamp(22px, 3vw, 30px); line-height: 1.3; outline: none; }
.fc-opts { display: grid; gap: 12px; }
.fc-opt { padding: 16px 20px; border-radius: 16px; border: 1.5px solid #D9DCE8; background: #fff; font: inherit; font-size: 17px; font-weight: 600; color: #1A1F3D; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.fc-opt:hover, .fc-opt:focus-visible { border-color: #F2A541; background: #FFF8EC; transform: translateY(-2px); outline: none; }
.fc-back, .fc-again { margin-top: 18px; padding: 8px 14px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: #6b6f8a; cursor: pointer; }
.fc-back:hover, .fc-again:hover { color: #1A1F3D; }
.fc-reason { margin: -8px 0 22px; color: #4a4e6b; line-height: 1.6; }
.fc-results { display: grid; gap: 14px; text-align: left; }
.fc-card { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; padding: 12px; border-radius: 18px; border: 1px solid #E3E5EE; background: #fff; color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.fc-card:hover, .fc-card:focus-visible { transform: translateY(-3px); box-shadow: 0 20px 36px -26px rgba(26, 31, 61, .6); outline: none; }
.fc-card.best { border-color: #F2A541; background: #FFFBF3; }
.fc-img { height: 86px; border-radius: 12px; background: #E8EAF3 center / cover; }
.fc-body { display: grid; gap: 4px; }
.fc-body em { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #B5560B; }
.fc-body b { font-size: 17px; line-height: 1.3; }
.fc-price { font-weight: 700; color: #B5560B; } .fc-price s { font-weight: 400; color: #8a8ea6; font-size: 13px; }
.fc-body i { font-style: normal; font-weight: 700; font-size: 13px; color: #1A1F3D; }
.fc-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 22px; }
.fc-actions .pill { cursor: pointer; }
@media (max-width: 560px) { .fc-box { padding: 24px 16px; } .fc-card { grid-template-columns: 84px 1fr; } .fc-img { height: 68px; } }
@media (prefers-reduced-motion: reduce) { .fc-opt, .fc-card { transition: none; } }
/* All Courses: quick help links above the course list, as small buttons with icons */
.course-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; }
.cq-lead { margin-right: 6px; font-size: 15px; font-weight: 600; color: var(--ink); }
.course-quick a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); box-shadow: 0 6px 16px -12px rgba(14, 17, 48, .35); transition: border-color .25s, transform .25s, box-shadow .25s; }
.course-quick a svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #B5560B; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.course-quick a:hover { border-color: #E9B47A; transform: translateY(-1px); box-shadow: 0 10px 22px -14px rgba(181, 86, 11, .55); }
@media (max-width: 640px) {
    .cq-lead { grid-column: 1 / -1; margin: 0 0 2px; }
    .course-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .course-quick a { justify-content: flex-start; height: 44px; padding: 0 12px; font-size: 13.5px; }
}

/* ---- Gift a course page ---- */
.gf-card { display: grid; gap: 14px; max-width: 520px; margin: 0 auto; padding: 28px 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 50px -34px rgba(26, 31, 61, .45); }
.gf-card select { padding: 13px 14px; border-radius: 12px; border: 1px solid #D9DCE8; font: inherit; font-size: 16px; background: #fff; }
.gf-card select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.gf-note { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.gf-card .pill { justify-self: start; cursor: pointer; border: 0; }
.gf-done { padding: 16px 18px; border-radius: 16px; background: #EAF7EF; display: grid; gap: 8px; }
.gf-done h2 { margin: 0; font-size: 20px; color: #1F6B42; }
.gf-done p { margin: 0; }
.gf-done[hidden], .cb-msg[hidden] { display: none; }

/* laptop screens (1240-1599px): the first side cards sit below the headline, so the Tamil line is not covered */
@media (min-width: 1240px) and (max-width: 1599px) {
    .hb-c1:not(.hb-o) { top: calc(var(--offer-h) + 232px + var(--ph) * .02 + 66px); }
    .hb-c2:not(.hb-o) { top: calc(var(--offer-h) + 232px + var(--ph) * .36 + 40px); }
    .hb-c3:not(.hb-o) { top: calc(var(--offer-h) + 232px + var(--ph) * .7 + 12px); }
}

/* inside the open book: the two pages behind the video are flat white (no paper shading, no fold shadow, no page edges) */
.hb-leaf.hb-first .hb-back, .hb-leaf.hb-last .hb-front { background: #fff !important; background-image: none !important; box-shadow: none !important; }
.hb-leaf.hb-first .hb-back .hb-fold, .hb-leaf.hb-last .hb-front .hb-fold, .hb-leaf.hb-first .hb-back .hb-edge, .hb-leaf.hb-last .hb-front .hb-edge { display: none; }
.hb-page.hb-blank { background: #fff; }

/* Gift page on a phone: a long course name must not make the form wider than the screen */
.gf-card { grid-template-columns: minmax(0, 1fr); }
.gf-card .fp-field { min-width: 0; }
.gf-card select { width: 100%; max-width: 100%; min-width: 0; text-overflow: ellipsis; }

/* the closed book floats a little at the very start of the page */
.hb-stage.hb-idle .hb-book { animation: hb-float 5s ease-in-out infinite; }
@keyframes hb-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@media (prefers-reduced-motion: reduce) { .hb-stage.hb-idle .hb-book { animation: none; } }

/* at the very start of the Home page only the book is seen: the offer strip and the menu fade away, and come back with the first scroll */
.site-header { transition: opacity .45s ease, background-color .5s, box-shadow .5s, transform .35s var(--ease); }
html.hb-focus .site-header { opacity: 0; pointer-events: none; }

/* the book falls from above when the Home page opens and a little dust flies up where it lands */
.hb-shift { animation: hb-fall 1.35s cubic-bezier(.55, 0, .75, .4) both; }
@keyframes hb-fall {
    0% { translate: 0 -120vh; rotate: -12deg; animation-timing-function: cubic-bezier(.5, 0, .8, .5); }
    54% { translate: 0 0; rotate: 2deg; animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
    70% { translate: 0 -2.2%; rotate: -.8deg; animation-timing-function: cubic-bezier(.5, 0, .8, .5); }
    84% { translate: 0 0; rotate: .3deg; }
    100% { translate: 0 0; rotate: 0deg; }
}
.hb-dust { --k: 1; position: absolute; left: 0; right: 0; bottom: 2%; height: 0; z-index: 4; pointer-events: none; }
.hb-dust i { position: absolute; left: 50%; bottom: 0; width: var(--w); height: var(--w); margin-left: calc(var(--w) / -2); border-radius: 50%; opacity: 0;
    background: radial-gradient(circle, rgba(140, 146, 180, .75), rgba(140, 146, 180, 0) 70%); filter: blur(2px); animation: hb-puff 1.5s ease-out var(--d) both; }
@keyframes hb-puff {
    0% { opacity: 0; transform: translate(0, 0) scale(.3); }
    14% { opacity: .9; }
    100% { opacity: 0; transform: translate(calc(var(--dx) * var(--k)), calc(var(--dy) * var(--k))) scale(var(--s)); }
}
@media (max-width: 700px) { .hb-dust { --k: .55; } }
@media (prefers-reduced-motion: reduce) { .hb-shift { animation: none; } .hb-dust { display: none; } }

/* ---- a more real landing: gravity, a squash and two small bounces, a shadow on the ground that grows as the book comes down, flat dust along the ground and tiny specks ---- */
.hb-shift { animation: hb-fall 1.5s linear both; }
@keyframes hb-fall {
    0% { translate: 0 -115vh; rotate: -7deg; scale: 1 1; animation-timing-function: cubic-bezier(.55, .05, .95, .45); }
    54% { translate: 0 0; rotate: 1.5deg; scale: 1.025 .955; animation-timing-function: cubic-bezier(.2, .6, .3, 1); }
    63% { translate: 0 -2.4%; rotate: -.6deg; scale: 1 1; animation-timing-function: cubic-bezier(.6, 0, .9, .4); }
    74% { translate: 0 0; rotate: .5deg; scale: 1.012 .985; animation-timing-function: cubic-bezier(.2, .6, .3, 1); }
    86% { translate: 0 -.6%; rotate: 0deg; scale: 1 1; animation-timing-function: cubic-bezier(.6, 0, .9, .4); }
    100% { translate: 0 0; rotate: 0deg; scale: 1 1; }
}
.hb-ground { position: absolute; left: 4%; right: 4%; bottom: -2.5%; height: 7%; border-radius: 50%; z-index: -1; pointer-events: none; opacity: 0;
    background: radial-gradient(ellipse at center, rgba(26, 31, 61, .55), rgba(26, 31, 61, 0) 70%); filter: blur(7px); animation: hb-ground 1.5s linear both; }
@keyframes hb-ground {
    0% { opacity: 0; transform: scale(.35, .5); }
    54% { opacity: .6; transform: scale(1.04, 1); }
    63% { opacity: .35; transform: scale(.88, .8); }
    74% { opacity: .55; transform: scale(1.02, 1); }
    86% { opacity: .4; transform: scale(.94, .9); }
    100% { opacity: .5; transform: scale(1, 1); }
}
.hb-dust { bottom: -1%; z-index: -1; }
.hb-dust i { height: calc(var(--w) * .55); margin-left: calc(var(--w) / -2); border-radius: 50%; background: radial-gradient(ellipse, rgba(150, 142, 138, .62), rgba(150, 142, 138, 0) 70%); filter: blur(3px); animation: hb-puff2 1.7s cubic-bezier(.2, .6, .3, 1) var(--d) both; }
@keyframes hb-puff2 {
    0% { opacity: 0; transform: translate(0, 0) scale(.25, .2); }
    14% { opacity: .85; }
    100% { opacity: 0; transform: translate(calc(var(--dx) * var(--k)), calc(var(--dy) * var(--k))) scale(var(--s), calc(var(--s) * .85)); }
}
.hb-dust b { position: absolute; left: 50%; bottom: 0; width: var(--w); height: var(--w); border-radius: 50%; background: rgba(120, 112, 108, .75); opacity: 0; animation: hb-speck 1.1s cubic-bezier(.2, .6, .4, 1) var(--d) both; }
@keyframes hb-speck {
    0% { opacity: 0; transform: translate(0, 0); }
    10% { opacity: .9; }
    45% { transform: translate(calc(var(--dx) * .65px * var(--k)), calc(var(--up) * -1px * var(--k))); }
    100% { opacity: 0; transform: translate(calc(var(--dx) * 1px * var(--k)), calc(var(--fall) * 1px)); }
}
@media (prefers-reduced-motion: reduce) { .hb-ground { animation: none; opacity: .5; } }

/* ---- premium covers: dark navy leather grain, gold page edges, gold foil lettering and a light that sweeps across the cover from time to time ---- */
.hb-leaf.hb-first .hb-front, .hb-leaf.hb-last .hb-back {
    background-color: #10163f;
    background-image: linear-gradient(115deg, rgba(255, 255, 255, 0) 38%, rgba(255, 236, 190, .17) 50%, rgba(255, 255, 255, 0) 62%), url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'180'%20height%3D'180'%3E%3Cfilter%20id%3D'n'%3E%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'.85'%20numOctaves%3D'2'%20stitchTiles%3D'stitch'%2F%3E%3CfeColorMatrix%20values%3D'0%200%200%200%200%20%200%200%200%200%200%20%200%200%200%200%200%20%200%200%200%20.9%20-.25'%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D'100%25'%20height%3D'100%25'%20filter%3D'url(%23n)'%20opacity%3D'.55'%2F%3E%3C%2Fsvg%3E"), radial-gradient(120% 90% at 30% 12%, #2d3d90 0%, #19225f 45%, #0b1034 100%);
    background-size: 260% 100%, 180px 180px, auto; background-position: 130% 0, 0 0, 0 0; background-repeat: no-repeat, repeat, no-repeat;
    box-shadow: .26em .16em 0 -.02em #E4C57A, .5em .3em 0 -.05em #B88F36, 0 2.2em 2.8em -1.2em rgba(8, 12, 40, .7), inset 0 0 0 1px rgba(255, 214, 140, .28), inset 0 0 2.6em rgba(0, 0, 0, .5);
    animation: hb-sheen 8s ease-in-out 2.6s infinite; }
.hb-leaf.hb-last .hb-back { box-shadow: -.26em .16em 0 -.02em #E4C57A, -.5em .3em 0 -.05em #B88F36, 0 2.2em 2.8em -1.2em rgba(8, 12, 40, .7), inset 0 0 0 1px rgba(255, 214, 140, .28), inset 0 0 2.6em rgba(0, 0, 0, .5); }
@keyframes hb-sheen { 0%, 55%, 100% { background-position: 130% 0, 0 0, 0 0; } 85% { background-position: -30% 0, 0 0, 0 0; } }
.hb-leaf.hb-first .hb-front::after, .hb-leaf.hb-last .hb-back::after { border: 1px solid #D9B25A; outline: 1px solid rgba(217, 178, 90, .4); outline-offset: .3em; }
.hb-leaf.hb-first .hb-title h2, .hb-leaf.hb-last .hb-title h2, .hb-leaf.hb-first .hb-name { background: linear-gradient(120deg, #b8862b 0%, #f7e2a1 28%, #d9a73f 50%, #fff3c4 66%, #b27a22 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .55)) drop-shadow(0 -1px 0 rgba(255, 235, 170, .22)); }
.hb-leaf.hb-first .hb-title img, .hb-leaf.hb-last .hb-title img { border: 1px solid #D9B25A; }
.hb-leaf.hb-first .hb-open, .hb-leaf.hb-last .hb-title .hb-cta { background: linear-gradient(180deg, #FFDC93, #E29A2A); box-shadow: 0 .7em 1.4em -.6em rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .6); }
.hb-leaf.hb-first .hb-front::before { background: linear-gradient(90deg, #060a24, #1b2358); border-right: 1px solid #D9B25A; }
.hb-leaf.hb-last .hb-back::before { background: linear-gradient(270deg, #060a24, #1b2358); border-left: 1px solid #D9B25A; }
@media (prefers-reduced-motion: reduce) { .hb-leaf.hb-first .hb-front, .hb-leaf.hb-last .hb-back { animation: none; } }

/* at the very start only the book is seen: the round WhatsApp button, "Browse all courses", the back-to-top button and the phone bottom bar also fade away until the first scroll */
.wa-float, .hb-all, .to-top, .mbar { transition: opacity .45s ease, transform .35s var(--ease); }
html.hb-focus .wa-float, html.hb-focus .hb-all, html.hb-focus .to-top, html.hb-focus .mbar { opacity: 0 !important; pointer-events: none; }

/* ---- a real 3D book: the closed book has a thick spine on the left, a block of pages on the right, top and bottom, and a back cover ---- */
.hb-solid { --t: 3em; position: absolute; inset: 0; pointer-events: none; transform-style: preserve-3d; }
.hb-solid i { position: absolute; display: block; backface-visibility: visible; }
.hb-s-spine { left: 50%; top: 0; width: var(--t); height: 100%; transform-origin: 0 50%; transform: rotateY(90deg); border-radius: .15em 0 0 .15em;
    background: linear-gradient(180deg, transparent 11%, #D9B25A 11% 12.2%, transparent 12.2% 14%, #D9B25A 14% 14.8%, transparent 14.8% 85.2%, #D9B25A 85.2% 86%, transparent 86% 87.8%, #D9B25A 87.8% 89%, transparent 89%), linear-gradient(90deg, #070b26, #1d2870 45%, #0a0f30); box-shadow: inset 0 0 1.2em rgba(0, 0, 0, .55); }
.hb-s-right { left: 100%; top: 0; width: var(--t); height: 100%; transform-origin: 0 50%; transform: rotateY(90deg);
    background: linear-gradient(90deg, #10163f 0 7%, transparent 7% 93%, #10163f 93%), repeating-linear-gradient(90deg, #F4E7C2 0 1px, #D8BF80 1px 3px); }
.hb-s-top { left: 50%; width: 50%; top: calc(var(--t) * -1); height: var(--t); transform-origin: 50% 100%; transform: rotateX(90deg);
    background: linear-gradient(0deg, #10163f 0 7%, transparent 7% 93%, #10163f 93%), repeating-linear-gradient(0deg, #F4E7C2 0 1px, #D8BF80 1px 3px); }
.hb-s-bottom { left: 50%; width: 50%; top: 100%; height: var(--t); transform-origin: 50% 0; transform: rotateX(-90deg);
    background: linear-gradient(0deg, #10163f 0 7%, transparent 7% 93%, #10163f 93%), repeating-linear-gradient(0deg, #F4E7C2 0 1px, #D8BF80 1px 3px); }
.hb-s-back { left: 50%; top: 0; width: 50%; height: 100%; transform: translateZ(calc(var(--t) * -1)); border-radius: .3em; background: linear-gradient(160deg, #1b256a, #0a0f30); box-shadow: 0 2.4em 3em -1.4em rgba(8, 12, 40, .75); }
/* the flat page-stack shadows used before are not needed: the thickness is real now */
.hb-leaf.hb-first .hb-front { box-shadow: 0 0 0 1px rgba(255, 214, 140, .28), inset 0 0 0 1px rgba(255, 214, 140, .28), inset 0 0 2.6em rgba(0, 0, 0, .5); }

/* ---- small touches: a press feel on buttons, a light that sweeps over the main button on hover ---- */
.pill, .fc-opt, .lp-ghost { transition: transform .2s var(--ease), box-shadow .25s ease, background .2s; }
.btn:active, .pill:active, .fc-opt:active, .lp-ghost:active { transform: scale(.96) !important; }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%); transform: translateX(-130%); }
.btn-primary:hover::after { transform: translateX(130%); transition: transform .75s ease; }
@media (prefers-reduced-motion: reduce) { .btn-primary::after { display: none; } }

/* ---- Home hero video: when the Home page opens, the classroom video plays in the place of the book (once per visit).
   The first scroll (or a tap on it) fades it away and the book falls in from the top. The book waits above the screen meanwhile. ---- */
.hb-vin { display: none; }
html.hb-vin-on .hb-vin, .hb-vin.is-out { position: absolute; left: 0; right: 0; bottom: 0; top: 40%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 0 12px 24px; cursor: pointer; }
.hb-vin video { display: block; width: min(94vw, 1100px); height: auto; background: transparent; transition: opacity .35s ease;
    /* no oval: only the four edges are feathered a little (the owner did not want the video in a white circle) */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 18%, #000 90%, transparent); -webkit-mask-composite: source-in;
            mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 18%, #000 90%, transparent); mask-composite: intersect; }
/* the video's own background is a light grey, not the page colour: it is lifted to white and laid on the page with "multiply", so its background
   becomes the page itself (the same colour and the faint grid lines) while the people keep their colours. .hb-vin has no z-index, so it blends with the hero background. */
.hb-vin video { filter: brightness(1.12) contrast(1.25); mix-blend-mode: multiply; }
.hb-vin-hint { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #1A1F3D; opacity: .75; }
.hb-vin-hint::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); animation: hb-vin-nod 1.4s ease-in-out infinite; }
@keyframes hb-vin-nod { 50% { translate: 0 4px; } }
.hb-vin.is-out { pointer-events: none; }
.hb-vin.is-out > * { opacity: 0; transform: scale(.96); transition: opacity .45s ease, transform .45s ease; }
html.hb-vin-on .hb-shift, html.hb-vin-on .hb-dust i, html.hb-vin-on .hb-dust b, html.hb-vin-on .hb-ground { animation-play-state: paused; }
html.hb-vin-on .hb-hint { opacity: 0 !important; visibility: hidden; }
/* the side cards and photos (wide screens) stay while the video plays: they stand where they stand beside the OPEN book, so the video fits between them;
   when the book comes they slide back beside the closed book */
html.hb-vin-on .hb-chip, html.hb-vin-on .hb-ph { --hb-open: 1; }
html.hb-vin-out .hb-chip, html.hb-vin-out .hb-ph { transition: left .8s cubic-bezier(.2, .7, .3, 1), right .8s cubic-bezier(.2, .7, .3, 1); }

/* ---- course player: the lesson boxes (progress, completed, mode, resources) go two by two up to large screens so the words are not cut ---- */
@media (max-width: 1700px) { .pl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- All Courses on phones: the search and filter box is not sticky (it covered a quarter of the screen and slid under the menu) ---- */
@media (max-width: 760px) { .course-toolbar { position: relative; top: auto; } }

/* ---- course cards: "Bestseller" pill for the course with the most students; All Courses: "Bestselling right now" top 3 ---- */
.course-rate > .cr-best { background: #F6C768; border-color: transparent; color: #1A1F3D; font-weight: 700; }
.top-sellers { margin: 0 0 26px; }
.top-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.top-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.top-list a { display: grid; grid-template-columns: auto 56px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 18px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: 0 16px 34px -30px rgba(14, 17, 48, .5); transition: transform .3s var(--ease), border-color .3s; }
.top-list a:hover { transform: translateY(-3px); border-color: var(--accent); }
.top-num { min-width: 34px; text-align: center; font-size: 18px; font-weight: 700; color: #B5560B; }
.top-list img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: #1A2060; }
.top-tx b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.top-tx small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) {
    .top-list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(250px, 80%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
    .top-list::-webkit-scrollbar { display: none; }
    .top-list li { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) { .top-list a { transition: none; } }

/* ---- Shop (/Shop.aspx): patterns, books and tools; Purchases: shop orders ---- */
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.sh-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -48px rgba(14, 17, 48, .5); }
.sh-media { position: relative; aspect-ratio: 1; background: #F3F5FB; }
.sh-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-media .course-badge { position: absolute; top: 14px; left: 14px; }
.sh-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px 20px 22px; }
.sh-cat { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #B5560B; }
.sh-body h2 { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.sh-desc { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.sh-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: auto 0 0; padding-top: 6px; }
.sh-price b { font-size: 22px; color: var(--ink); }
.sh-price s { font-size: 14px; color: var(--muted); }
.sh-price span { flex-basis: 100%; font-size: 13px; color: #1E7B4F; font-weight: 600; }
.sh-size { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.sh-size select { flex: 1; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 500; color: var(--ink); }
.sh-card .pill { justify-content: center; }
.sh-err { margin: 0; font-size: 13px; color: #C0392B; }
.sh-note { margin: 28px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.sh-dialog textarea { width: 100%; min-height: 76px; padding: 12px 16px; border: 1px solid var(--sand); border-radius: 14px; background: var(--bg); color: var(--ink); font: 500 16px var(--font-body); resize: vertical; }
.sh-dialog textarea:focus { outline: none; border-color: var(--brand); background: var(--white); box-shadow: 0 0 0 4px rgba(38, 48, 107, .12); }
.sh-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sh-total { margin: 4px 0 0; font-weight: 700; color: var(--ink); }
.sh-done { text-align: center; }
.sh-done h2 { margin: 0 0 6px; font-size: 22px; }
.st-subhead { margin: 34px 0 14px; font-size: 20px; font-weight: 600; color: var(--ink); }
.so-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: #FFF1DC; color: #8A4B0B; }
.so-status.so-shipped { background: #E6F0FF; color: #1D4FA8; }
.so-status.so-delivered { background: #E3F6EC; color: #1E7B4F; }
.so-status.so-cancelled { background: #F3F4F6; color: #6B7280; }
@media (max-width: 520px) { .sh-two { grid-template-columns: 1fr; } }
/* ---- Payment result of a combo, gift or shop order (no course picture) ---- */
.ps-item { margin: 4px 0 6px; font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--ink); }

/* =====================================================================
   Thread spool (Home): from the top of Courses down to the footer the thread winds from side to side; scrolling moves the spool along it
   ===================================================================== */
.spool-band { height: clamp(120px, 15vw, 190px); margin: calc(-1 * clamp(56px, 7vw, 96px)) 0 clamp(-36px, -2.5vw, -12px); }
.spool-svg { position: fixed; left: 0; top: 0; z-index: 5; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
/* the words and cards of each section stay in front, so the thread and the spool pass behind them */
.spool-on main > .section > .container { position: relative; z-index: 6; }
.spool-thread { fill: none; stroke: #2E8B57; stroke-opacity: .9; stroke-width: 2.2; stroke-dasharray: 9 8; stroke-linecap: round; }

/* =====================================================================
   Pinked edges: the information cards (icon and text, no photo) are cut like cloth with pinking shears (zig-zag on all four sides); course, product and photo cards keep their round corners
   Each mask layer is solid except a row of teeth on one side; the four layers are intersected.
   The mask also cuts off a card's own shadow, so the box around the cards draws the shadow instead.
   ===================================================================== */
:root {
    --zz: 18px;
    --pinked:
        conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--zz) 100% repeat-x,
        conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--zz) 100% repeat-x,
        conic-gradient(from 45deg at left, #0000, #000 1deg 89deg, #0000 90deg) left / 100% var(--zz) repeat-y,
        conic-gradient(from -135deg at right, #0000, #000 1deg 89deg, #0000 90deg) right / 100% var(--zz) repeat-y;
}
:is(.who-card, .step, .bento-card:not(.bento-image), .review, .story, .ct-card, .about-do-card, .mission-card, .vs2-card, .visit-card, .st-card) {
    border-radius: 0; border-color: transparent;
    -webkit-mask: var(--pinked); -webkit-mask-composite: source-in;
    mask: var(--pinked); mask-composite: intersect;
}
main :has(> :is(.who-card, .step, .bento-card:not(.bento-image), .review, .story, .ct-card, .about-do-card, .mission-card, .vs2-card, .visit-card, .st-card)) { filter: drop-shadow(0 1px 1.5px rgba(22, 28, 69, .22)) drop-shadow(0 12px 18px rgba(22, 28, 69, .08)); }
.who-card:hover { background: #FFFBF3; }
@media (max-width: 640px) { :root { --zz: 13px; } }
/* the small facts beside the open book in the hero get the same cut edge, with smaller teeth because they are small.
   The cut is drawn on a layer behind the text so the chip itself can carry the shadow
   (a filter on .hb-chips would move the chips, because it changes what they are placed against) */
.hb-chips .hb-chip { background: transparent; border-color: transparent; border-radius: 0; box-shadow: none; padding-left: 15px;
    filter: drop-shadow(0 1px 1.5px rgba(22, 28, 69, .22)) drop-shadow(0 12px 18px rgba(22, 28, 69, .1)); }
.hb-chips .hb-chip::before {
    --zz: 12px;
    content: ""; position: absolute; inset: 0; z-index: -1; background: #fff;
    -webkit-mask:
        conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--zz) 100% repeat-x,
        conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--zz) 100% repeat-x,
        conic-gradient(from 45deg at left, #0000, #000 1deg 89deg, #0000 90deg) left / 100% var(--zz) repeat-y,
        conic-gradient(from -135deg at right, #0000, #000 1deg 89deg, #0000 90deg) right / 100% var(--zz) repeat-y;
    -webkit-mask-composite: source-in;
    mask:
        conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--zz) 100% repeat-x,
        conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--zz) 100% repeat-x,
        conic-gradient(from 45deg at left, #0000, #000 1deg 89deg, #0000 90deg) left / 100% var(--zz) repeat-y,
        conic-gradient(from -135deg at right, #0000, #000 1deg 89deg, #0000 90deg) right / 100% var(--zz) repeat-y;
    mask-composite: intersect;
}

/* =====================================================================
   Tailoring room touches (each block can be taken out on its own)
   ===================================================================== */

/* 1. Measuring tape at the top of the screen: it fills as the page is scrolled (main.js adds it and the inch numbers) */
.tape-bar { position: fixed; left: 0; right: 0; top: 0; z-index: 55; height: 15px; pointer-events: none; transition: opacity .3s; }
/* hidden while the offer strip is still showing at the top, so the two do not sit on each other */
html.has-offer body:has(.site-header:not(.scrolled)) .tape-bar { opacity: 0; }
.tape-fill {
    position: absolute; inset: 0; overflow: hidden;
    clip-path: inset(0 calc(100% - var(--tape, 0%)) 0 0);
    background-color: var(--accent);
    background-image: linear-gradient(90deg, rgba(26, 31, 61, .8) 0 1px, transparent 1px), linear-gradient(90deg, rgba(26, 31, 61, .55) 0 1px, transparent 1px), linear-gradient(90deg, rgba(26, 31, 61, .4) 0 1px, transparent 1px);
    background-size: 48px 9px, 24px 6px, 6px 3.5px;
    background-repeat: repeat-x;
    box-shadow: 0 1px 3px rgba(22, 28, 69, .25);
}
.tape-fill span { position: absolute; bottom: 0; font-size: 7.5px; font-weight: 700; line-height: 1; color: #1A1F3D; transform: translateX(3px); }

/* 2a. A running stitch along the top of each section */
main > .section { position: relative; }
main > .section + .section::after {
    content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 2px; pointer-events: none;
    background: repeating-linear-gradient(90deg, rgba(242, 165, 65, .75) 0 14px, transparent 14px 24px);
}
/* 2b. Buttons have a stitch inside their edge, like a jeans label */
:is(.btn, .pill) { outline: 1.5px dashed color-mix(in srgb, currentColor 45%, transparent); outline-offset: -5px; }
:is(.btn, .pill):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* 3. The questions are white cards with a soft edge, like every other card on the website */
.faq-list details, .faq-list details:first-child {
    position: relative; margin-bottom: 12px; padding: 0 clamp(18px, 2.2vw, 26px);
    border: 1px solid var(--line); border-radius: 18px; background: #fff;
    outline: 0; outline-offset: 0;
    transition: border-color .3s, box-shadow .45s var(--ease);
}
.faq-list details:hover { border-color: color-mix(in srgb, var(--brand) 32%, var(--line)); }
.faq-list details[open] { border-color: color-mix(in srgb, var(--brand) 32%, var(--line)); box-shadow: var(--shadow-soft); }
.faq-list details::before { content: none; }
.faq-list details p { padding-right: 24px; }
.hp-faq { padding: 0; border: 0; border-radius: 0; background: transparent; }
.hp-faq summary { padding-top: 22px; padding-bottom: 22px; }
.hp-faq details p { padding-bottom: 22px; }

/* 5. The grid looks like a tailor's cutting mat: a darker line every fourth square */
/* every page: all the parts that had the plain grid */
body :is(.courses, .designs, .why, .how, .reviews, .faq, .teacher, .who, .path, .earn, .yt, .work, .page-hero, .about-story, .about-do, .about-promise, .about-visit, .about-mission, .course-help, .course-path, .mc-list, .gal-list, .pl-page, .st-body, .dm-more, .ct-body) {
    background-image: linear-gradient(rgba(14, 17, 48, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 17, 48, .07) 1px, transparent 1px),
        linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: calc(var(--grid-size) * 4) calc(var(--grid-size) * 4), calc(var(--grid-size) * 4) calc(var(--grid-size) * 4), var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size);
}

/* 6. Course tags look like woven cloth labels */
.course-badge, .course-rate > .cr-best { border-radius: 3px; outline: 1px dashed color-mix(in srgb, currentColor 50%, transparent); outline-offset: -4px; padding-left: 12px; padding-right: 12px; }

/* 7. The footer looks like denim: fine diagonal twill and a stitch near the top */
body .site-footer {
    background-image: repeating-linear-gradient(90deg, rgba(247, 199, 122, .6) 0 14px, transparent 14px 24px),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 6px),
        repeating-linear-gradient(-45deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 7px);
    background-size: 100% 2px, auto, auto;
    background-position: 0 18px, 0 0, 0 0;
    background-repeat: no-repeat, repeat, repeat;
}

/* 8. A highlighted word in a heading sits on a strip of measuring tape (marks every 8px, a longer mark every 40px).
      The strip is held in padding below the word, so the tails of g, y and p stay above it. */
body .section-title:not(.light) em, .page-title em {
    padding-bottom: .2em;
    background:
        linear-gradient(90deg, rgba(26, 31, 61, .7) 0 1.5px, transparent 1.5px) left 0 bottom .06em / 40px .2em repeat-x,
        linear-gradient(90deg, rgba(26, 31, 61, .5) 0 1px, transparent 1px) left 0 bottom .16em / 8px .1em repeat-x,
        linear-gradient(var(--accent), var(--accent)) left 0 bottom 0 / 100% .26em no-repeat;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* the title lines need room for the strip when a highlighted word runs onto a second line */
.page-title { line-height: 1.22; }

/* 9. The price on a course card hangs on a paper tag with a thread through its hole */
.course-foot .price:has(> strong) { position: relative; }
.course-foot .price:has(> strong)::before {
    content: ""; position: absolute; left: 12px; top: -20px; width: 10px; height: 41px; pointer-events: none;
    border-left: 2px solid var(--accent); border-top-left-radius: 10px 30px; opacity: .9;
}
.course-foot .price strong {
    padding: 9px 14px 9px 28px; line-height: 1; color: var(--brand-deep);
    background: #FBF1DC linear-gradient(135deg, rgba(255, 255, 255, .5), rgba(160, 120, 70, .12));
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
    -webkit-mask: radial-gradient(circle at 14px 50%, transparent 3.5px, #000 4px); mask: radial-gradient(circle at 14px 50%, transparent 3.5px, #000 4px);
}

/* 10. Reviews look like paper notes pinned to the board, each a little crooked (!important: the reveal script writes rotate: none on the card) */
.review-grid .review:nth-child(odd) { rotate: -1.2deg !important; }
.review-grid .review:nth-child(even) { rotate: 1deg !important; }
.review::after {
    content: ""; position: absolute; top: 20px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle at 35% 35%, #F59A8E, #C2412F 55%, #7A2216); box-shadow: 0 3px 4px rgba(22, 28, 69, .3);
}
@media (max-width: 640px) { .review-grid .review:nth-child(odd) { rotate: -.6deg !important; } .review-grid .review:nth-child(even) { rotate: .6deg !important; } }

/* 11. The back-to-top button is a thread spool; the ring round it fills like thread and the arrow sits in a small yellow dot */
.to-top { background: #fff url("/assets/site/img/thread-spool.webp?v=4") 52% 58% / 34px auto no-repeat; }
.to-top:hover { background-color: #FDF0DC; color: var(--ink); }
.to-top .tt-arrow { position: absolute; top: -5px; right: -5px; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--accent); color: var(--brand-deep); stroke-width: 3; }
.tt-track { stroke-dasharray: 3 3; }

/* 12. Shirt buttons: four holes, a raised rim and a little depth (--h is the hole size, --hx/--hy how far the holes sit from the middle) */
body .step-num, .eyebrow-line::after, .legal-body section ul > li::before {
    --h: 1.5px; --hx: 20%; --hy: 20%; --hole: rgba(26, 31, 61, .55);
    background-color: var(--accent);
    background-image:
        radial-gradient(circle at calc(50% - var(--hx)) calc(50% - var(--hy)), var(--hole) 0 var(--h), transparent calc(var(--h) + .6px)),
        radial-gradient(circle at calc(50% + var(--hx)) calc(50% - var(--hy)), var(--hole) 0 var(--h), transparent calc(var(--h) + .6px)),
        radial-gradient(circle at calc(50% - var(--hx)) calc(50% + var(--hy)), var(--hole) 0 var(--h), transparent calc(var(--h) + .6px)),
        radial-gradient(circle at calc(50% + var(--hx)) calc(50% + var(--hy)), var(--hole) 0 var(--h), transparent calc(var(--h) + .6px));
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35), inset 0 -2px 3px rgba(0, 0, 0, .18), 0 1px 2px rgba(22, 28, 69, .25);
}
/* the step number sits in the middle of a big button; the holes are pushed out so they do not touch the number */
body .step-num { --h: 2.6px; --hx: 25%; --hy: 25%; }
body .step:hover .step-num { --hole: rgba(255, 255, 255, .45); }
/* the short line beside a section label becomes a thread with a small button on the end next to the words */
.eyebrow-line { position: relative; height: 1.5px; background: repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 8px); }
.eyebrow-line::after { content: ""; position: absolute; top: 50%; right: -6px; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; --h: 1px; --hx: 19%; --hy: 19%; }
.eyebrow-line ~ .eyebrow-line::after { right: auto; left: -6px; }
/* bullet lists on the policy pages use small buttons for bullets */
.legal-body section ul { list-style: none; padding-left: 28px; }
.legal-body section ul > li { position: relative; }
.legal-body section ul > li::before { content: ""; position: absolute; left: -26px; top: .3em; width: 15px; height: 15px; border-radius: 50%; --h: 1.2px; --hx: 19%; --hy: 19%; }

/* ---------- Old students (OldStudent.aspx): ask for a course bought on the old website ---------- */
.os-wrap { max-width: 760px; }
.os-body { padding-top: 0; }
.os-form .co-grid { margin-bottom: 18px; }
.os-note { height: auto; min-height: 96px; padding: 14px 18px; line-height: 1.6; resize: vertical; font-family: inherit; }
/* the photo box: Chrome's own grey "Choose File" was the one unstyled control on the website */
.os-file {
    width: 100%; min-height: 56px; padding: 9px 14px; border-radius: 16px;
    border: 1.5px dashed var(--line); background: var(--bg-soft);
    font: inherit; font-size: 15px; color: var(--muted); cursor: pointer;
    transition: border-color .25s, background .25s;
}
.os-file::file-selector-button {
    height: 38px; margin-right: 14px; padding: 0 20px; border: 0; border-radius: 999px;
    background: var(--ink); color: #fff; font: 600 14px/1 var(--font-body); cursor: pointer;
    transition: background .25s;
}
.os-file:hover { border-color: var(--accent); background: #FDF6EA; }
.os-file:hover::file-selector-button { background: var(--brand); }
.os-file:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* the chosen date written out, so the picker and the printed bill read the same way round */
.tk-dhint { display: block; min-height: 1em; margin-top: 6px; font-weight: 600; color: var(--ink); }
.tk-dhint:empty { min-height: 0; margin-top: 0; }
.os-err { margin: 0 0 14px; color: #B42318; font-size: 14px; font-weight: 600; }
.os-ok { margin: 0; padding: 14px 18px; border-radius: 16px; background: #E7F6EC; color: #1F7A45; font-weight: 600; }
.os-list ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.os-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; }
.os-list li b { display: block; color: var(--ink); }
.os-list li span:not(.st-status) { font-size: 13px; color: var(--muted); }
.os-list li p { margin: 6px 0 0; font-size: 14px; color: var(--ink); }
.os-login .pill, .os-body .st-card > .pill { margin-top: 4px; }
.mc-old { margin: 10px 0 0; font-size: 14px; }
.mc-old a { color: var(--ink); font-weight: 600; text-decoration: underline; }

/* ---------- Student > My Notes: all the lesson notes together, and the printed sheet (Download PDF) ---------- */
.nt-tools { align-items: flex-end; }
.nt-tools .dl-chips { flex: 1 1 260px; }
.nt-tools-right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.nt-tools-right .dl-search { flex: 1 1 220px; }
.nt-pdf { flex: none; }
.nt-group { margin-bottom: 34px; }
.nt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.nt-card { display: grid; gap: 10px; padding: 18px 20px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 44px -40px rgba(14, 17, 48, .5); min-width: 0; }
.nt-card-head { display: grid; gap: 2px; }
.nt-card-head b { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #9A6B14; }
.nt-card-head span { font-size: 15.5px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.nt-body { margin: 0; font-size: 15px; line-height: 1.75; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.nt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 2px; }
.nt-actions .nt-open { margin-right: auto; font-size: 14px; }
.nt-actions .link-btn { font-size: 14px; }
.nt-card.is-editing { border-color: rgba(242, 165, 65, .7); box-shadow: 0 24px 44px -34px rgba(242, 165, 65, .6); }
.nt-text { height: auto; min-height: 120px; padding: 12px 16px; line-height: 1.7; resize: vertical; font-family: inherit; font-size: 15px; }
.pill.nt-small { padding: 9px 10px 9px 18px; font-size: 14px; }
.nt-empty { text-align: center; display: grid; justify-items: center; gap: 12px; padding: 40px 24px; }
.nt-empty h2 { margin: 0; font-size: clamp(20px, 2.4vw, 26px); }
.nt-empty .st-muted { max-width: 460px; }
.nt-empty-ic { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: #FFF6E8; }
.nt-empty-ic svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pl-notes-all { margin: 10px 0 0; font-size: 14px; }
@media (max-width: 640px) {
    .nt-grid { grid-template-columns: minmax(0, 1fr); }
    .nt-tools-right { width: 100%; }
    .nt-tools-right .dl-search { flex: 1 1 100%; max-width: none; }
}
/* the notes are printed on their own: the page itself is hidden while the print window is open */
#ntPrintArea { display: none; }
@media print {
    html.nt-printing body > *:not(#ntPrintArea) { display: none !important; }
    html.nt-printing #ntPrintArea { display: block; max-width: 680px; margin: 0 auto; color: #000; }
    html.nt-printing .ntp-head { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1.5px solid #000; }
    html.nt-printing .ntp-head b { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
    html.nt-printing .ntp-head h1 { margin: 4px 0 2px; font-size: 24px; }
    html.nt-printing .ntp-head p { margin: 0; font-size: 13px; }
    html.nt-printing .ntp-course { margin-bottom: 16px; page-break-inside: auto; }
    html.nt-printing .ntp-course h2 { margin: 18px 0 10px; font-size: 17px; border-bottom: 1px dashed #666; padding-bottom: 5px; page-break-after: avoid; }
    html.nt-printing .ntp-note { margin: 0 0 12px; page-break-inside: avoid; }
    html.nt-printing .ntp-note h3 { margin: 0 0 3px; font-size: 13.5px; }
    html.nt-printing .ntp-note p { margin: 0; font-size: 13px; line-height: 1.65; white-space: pre-wrap; }
}

/* ---------- Save a course for later: the heart on a course card and the button on the course page ---------- */
.save-btn { position: absolute; z-index: 3; top: 22px; right: 22px; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .94); color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; box-shadow: 0 8px 20px -10px rgba(14, 17, 48, .5); transition: background .3s, transform .4s var(--ease), color .3s; }
.save-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.save-btn:hover { background: var(--accent); transform: translateY(-2px); }
.save-btn.is-on { color: #C2334D; }
.save-btn.is-on svg { fill: #C2334D; stroke: #C2334D; }
.save-btn.is-low { top: 66px; }           /* the card already has a "Quick view" button in that corner */
.save-btn.is-wide { position: static; width: 100%; height: 48px; justify-content: center; margin-top: 10px; background: #fff; border: 1.5px solid var(--line); font-size: 15px; }
.save-btn.is-wide:hover { background: var(--accent); border-color: var(--accent); transform: none; }
.mc-saved[hidden] { display: none; }
@media (max-width: 640px) {
    .save-btn { top: 16px; right: 16px; height: 32px; padding: 0 10px; }
    .save-btn.is-low { top: 58px; }
}
@media print { .save-btn { display: none !important; } }

/* ---------- Find a lesson: the search box over the lesson list in the player ---------- */
.pl-search { position: relative; display: block; margin: 0 10px 10px; }
.pl-search svg { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.pl-search input { width: 100%; height: 42px; padding: 0 14px 0 40px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 14.5px; outline: 0; }
.pl-search input:focus { border-color: var(--accent); }
.pl-search-empty { margin: 0 10px 10px; font-size: 13.5px; color: var(--muted); }
.pl-search-empty[hidden] { display: none; }
.pl-list li[hidden], .pl-list ol[hidden], .pl-list .pl-sec[hidden] { display: none !important; }
body.pl-dark .pl-search input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #fff; }
body.pl-dark .pl-search svg { stroke: rgba(255, 255, 255, .6); }
@media print { .pl-search, .pl-search-empty { display: none !important; } }
