/* =============================================================
   E-Academy — the application's own additions to the site template.

   learnhub.css is the template as shipped and is treated as vendor code, but
   it is NOT pristine — two edits were made to it and both must survive any
   re-copy of the template:
     1. data-theme -> data-scheme, because `data-theme` on <html> belongs to
        the application (see the note at the top of learnhub.js);
     2. the shipped violet/cyan literals below the :root blocks were replaced
        with the tokens they were copies of, which is what lets the academy's
        palette reach every hover border and glow (see the note at line ~197
        of learnhub.css, and app/Helpers/sitetheme_helper.php).
   Re-copying learnhub.css without redoing both will silently return the
   template's own violet. Anything the APPLICATION needs that the template has
   no component for goes here instead, so it survives a re-copy.

   Everything below is written in the template's own tokens, so it follows the
   academy palette and the light/dark scheme for free.
   ============================================================= */

/* -------------------------------------------------------------
   Status colours.

   The template has no success/error hue, so these are the application's. They
   need a per-scheme value for the same reason every brand colour does: the
   mid-tone that carries on the near-black dark ground disappears on the light
   one. Measured on the light ground, the shipped #22c55e reached only 1.93:1
   against its own 12% panel tint — an icon nobody could see. The light values
   below are the darkened equivalents.
   ------------------------------------------------------------- */
:root {
    /* `--surface` is used by several rules in this file (the home-page tiles,
     the checkout forms, and the review block below) but the template defines
     no such token — its card ground is `--card`, which it flips for the light
     scheme at the same time as everything else. An undefined custom property
     makes the whole declaration invalid, so those rules were silently getting
     NO background at all. This is the alias, in one place, rather than a
     find-and-replace that would have to be redone every time a rule is added. */
    --surface: var(--card);

    --ea-ok: #22c55e;
    --ea-ok-rgb: 34, 197, 94;
    --ea-bad: #ef4444;
    --ea-bad-rgb: 239, 68, 68;
    /* Neither good nor bad: "your money arrived, one thing still to do".
       Used by the guest-purchase pages, where an error palette would read as
       "the payment failed" and a success one would say the job is finished. */
    --ea-warn: #f59e0b;
    --ea-warn-rgb: 245, 158, 11;
}

:root[data-scheme="light"] {
    --ea-ok: #15803d;
    --ea-ok-rgb: 21, 128, 61;
    --ea-bad: #b91c1c;
    --ea-bad-rgb: 185, 28, 28;
    --ea-warn: #b45309;
    --ea-warn-rgb: 180, 83, 9;
}

/* -------------------------------------------------------------
   Flash messages.
   The application's convention is session('success') / session('error'),
   rendered once directly under the header (see home/public_layout.php).
   The template has no alert component, so this is it.
   ------------------------------------------------------------- */
.ea-flash-stack {
    width: min(var(--container), calc(100% - 40px));
    margin: 18px auto 0;
    display: grid;
    gap: 10px;
}

.ea-flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--radius-10);
    border: 1px solid rgba(var(--surface-rgb), 0.16);
    background: rgba(var(--surface-rgb), 0.06);
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
}

.ea-flash .ic {
    width: 20px;
    height: 20px;
    flex: none;
    margin-top: 1px;
}

.ea-flash--success {
    border-color: rgba(var(--ea-ok-rgb), 0.45);
    background: rgba(var(--ea-ok-rgb), 0.12);
}

.ea-flash--success .ic {
    color: var(--ea-ok);
}

.ea-flash--error {
    border-color: rgba(var(--ea-bad-rgb), 0.45);
    background: rgba(var(--ea-bad-rgb), 0.12);
}

.ea-flash--error .ic {
    color: var(--ea-bad);
}

.ea-flash--warn {
    border-color: rgba(var(--ea-warn-rgb), 0.45);
    background: rgba(var(--ea-warn-rgb), 0.12);
}

.ea-flash--warn .ic {
    color: var(--ea-warn);
}

/* -------------------------------------------------------------
   Guest purchase: the claim link, and the account it creates.

   These three pages (payment status, the claim form, "you are enrolled")
   are the only place a buyer with no account is ever asked to read
   something carefully, so they get a little structure of their own rather
   than borrowing the course-card rules. Everything below is scoped under
   .ea-pay, which already wraps them.
   ------------------------------------------------------------- */
.ea-pay .ea-claim-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.ea-pay .ea-claim-id {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: var(--radius-10);
    border: 1px solid rgba(var(--surface-rgb), 0.16);
    background: rgba(var(--surface-rgb), 0.06);
}

.ea-pay .ea-claim-id + .ea-claim-id {
    margin-top: 10px;
}

.ea-pay .ea-claim-id dt {
    font-size: 13px;
    opacity: 0.75;
}

.ea-pay .ea-claim-id dd {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* The login id is handed over once, to be copied. Says so, and says when it
   worked - ea-site.js sets data-copied for a moment after the write. */
[data-copy-value] {
    cursor: pointer;
    position: relative;
}

[data-copy-value]::after {
    content: attr(data-copied);
    margin-left: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ea-ok);
}

.ea-pay .ea-claim-steps {
    margin: 14px 0 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
    line-height: 1.55;
}

/* -------------------------------------------------------------
   Signed-in header chip.
   The template only ever shows "Log In / Sign Up"; it has no state for a
   visitor who is already signed in. This is that state: the person's name and
   a link into their dashboard, styled as a sibling of .eac-btn-ghost.
   ------------------------------------------------------------- */
.ea-user {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 16px 7px 7px;
    border-radius: 999px;
    border: 1px solid rgba(var(--surface-rgb), 0.18);
    color: var(--color-secondary-100);
    font-weight: var(--fw-medium);
    transition: var(--transition-4);
}

.ea-user:hover {
    border-color: var(--color-basic-100);
    /* NOT #fff: on the light ground that is white on #f6f7fb — 1.07:1, i.e.
     the name vanishes on hover. --text is the scheme's own ink. */
    color: var(--text);
}

.ea-user__avatar {
    width: 30px;
    height: 30px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--grad-btn);
    color: #fff;
    font-size: 14px;
    font-weight: var(--fw-bold);
    overflow: hidden;
}

.ea-user__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ea-user__name {
    max-width: 14ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ea-signout {
    display: inline-flex;
}

.ea-signout button {
    padding: 11px 16px;
    border-radius: var(--radius);
    border: 1px solid rgba(var(--surface-rgb), 0.18);
    background: none;
    color: var(--color-secondary-200);
    font: inherit;
    font-weight: var(--fw-medium);
    cursor: pointer;
    transition: var(--transition-4);
}

.ea-signout button:hover {
    border-color: var(--color-basic-100);
    /* see .ea-user:hover — #fff is invisible on the light ground */
    color: var(--text);
}

/* The nav's CTA row is hidden on desktop by the template (.eac-nav-cta
   {display:none}) and shown inside the slide-in menu on small screens. The
   signed-in chip has to follow exactly the same rule, so it is placed in the
   same containers and inherits it. Nothing to add here beyond making the
   mobile drawer copy stack. */
@media (max-width: 1199px) {

    .eac-nav-cta .ea-user,
    .eac-nav-cta .ea-signout,
    .eac-nav-cta .ea-signout button {
        width: 100%;
        justify-content: center;
    }
}

/* -------------------------------------------------------------
   A footer column of real contact details, in place of the template's
   app-store column. Same .eac-fcol shell, so the grid is unchanged.
   ------------------------------------------------------------- */
.ea-contact-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ea-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--color-secondary-700);
    font-size: 16px;
    line-height: 1.55;
}

.ea-contact-list .ic {
    width: 20px;
    height: 20px;
    flex: none;
    margin-top: 3px;
    color: var(--primary);
}

.ea-contact-list a:hover {
    color: var(--color-secondary-100);
}

/* -------------------------------------------------------------
   Rich text coming out of the CMS fields. The admin writes plain
   paragraphs; give them the same rhythm as the template's body copy.
   ------------------------------------------------------------- */
.ea-prose>p {
    margin: 0 0 18px;
}

.ea-prose>p:last-child {
    margin-bottom: 0;
}

/* -------------------------------------------------------------
   Instructor profile (site/instructor.php).

   Two gaps in the template, both tiny:

   1. .eac-profile .pf-card styles an <h1> for the teacher's name, but that
      page already has an <h1> in its page-head. Two <h1>s on one page is a
      broken document outline, so the card uses an <h2> and borrows the look.

   2. .eac-tagcloud styles its <a> children only. A teacher's subjects are not
      links -- subjects have no public route -- so the same pill is given to a
      plain <span>, minus the hover state a non-link must not have.
   ------------------------------------------------------------- */
.eac-profile .pf-card h2 {
    font-size: 25px;
    letter-spacing: -0.6px;
}

.eac-tagcloud span {
    padding: 7px 14px;
    border-radius: 100px;
    font-size: 13px;
    color: var(--color-body);
    border: 1px solid var(--primary-border-2);
}

/* -------------------------------------------------------------
   Contact page (site/contact.php).

   .eac-contact is the template's two-column grid: details, then the
   form. The details column now stacks the info cards above a social
   row, so it needs a box of its own; .eac-cinfo keeps its own
   `display:grid` untouched inside it.
   ------------------------------------------------------------- */
.ea-cinfo-col {
    display: grid;
    gap: 26px;
    align-content: start;
}

/* the phone number and the e-mail address in those cards are links,
   and the reset strips every link of its colour and underline */
.eac-cinfo a {
    color: inherit;
    transition: color var(--transition);
}

.eac-cinfo a:hover {
    color: var(--color-secondary-100);
}

/* the form heading comes from cont_form_heading; the template's form
   had no heading at all, so there is no rule in learnhub.css for it */
.ea-form-title {
    font-size: 22px;
    margin-bottom: 22px;
}

.ea-optional {
    font-weight: var(--fw-regular);
    color: var(--color-secondary-700);
}

/* -------------------------------------------------------------
   The "nothing here yet" panel.

   Facilities, both galleries and an unpublished legal page all need
   to say that a list is empty. The old public.css had .public-empty
   for this and site/layout.php does not load that sheet, so here it
   is in the template's own tokens: the same card shell as .eac-cate
   and .eac-post, centred and narrow.
   ------------------------------------------------------------- */
.ea-empty {
    max-width: 620px;
    margin-inline: auto;
    padding: 46px 34px;
    text-align: center;
    border-radius: var(--radius-15);
    background: var(--default-gradient-2);
    border: 1px solid rgba(var(--surface-rgb), 0.09);
}

.ea-empty h3 {
    font-size: 21px;
    margin-bottom: 10px;
}

.ea-empty p {
    margin-bottom: 24px;
}

.ea-empty p:last-child {
    margin-bottom: 0;
}

/* -------------------------------------------------------------
   Stored rich text: the privacy policy and the terms (site/legal.php).

   learnhub.css resets the document hard, and rightly so for a designed
   marketing page -- `p{margin:0}`, `ul{list-style:none;padding:0}`,
   `a{text-decoration:none;color:inherit}`, `h1..h5{margin:0}`. Dropped
   on a legal document, which is nothing but headings, paragraphs and
   lists, that renders one unbroken wall of text with invisible links.

   This gives those elements their spacing, bullets and underlines back
   INSIDE THIS WRAPPER ONLY, so no template component is affected. The
   markup is written by an admin in the editor and cannot be given
   classes, so these have to be element selectors.
   ------------------------------------------------------------- */
.ea-richtext h1,
.ea-richtext h2,
.ea-richtext h3,
.ea-richtext h4,
.ea-richtext h5,
.ea-richtext h6 {
    margin: 34px 0 12px;
    line-height: 1.3;
}

.ea-richtext> :first-child {
    margin-top: 0;
}

.ea-richtext h1 {
    font-size: 28px;
}

.ea-richtext h2 {
    font-size: 24px;
}

.ea-richtext h3 {
    font-size: 20px;
}

.ea-richtext h4,
.ea-richtext h5,
.ea-richtext h6 {
    font-size: 17px;
}

.ea-richtext p {
    margin: 0 0 18px;
}

.ea-richtext ul,
.ea-richtext ol {
    margin: 0 0 18px;
    padding-left: 24px;
}

/* spelled out rather than `list-style: revert`, so the marker is the same
   in every browser and a nested list still steps through the three shapes */
.ea-richtext ul {
    list-style: disc;
}

.ea-richtext ul ul {
    list-style: circle;
}

.ea-richtext ul ul ul {
    list-style: square;
}

.ea-richtext ol {
    list-style: decimal;
}

.ea-richtext li {
    margin-bottom: 8px;
}

/* a list nested inside a list item keeps the item's rhythm, not the
   block gap that separates one top-level list from the next paragraph */
.ea-richtext li>ul,
.ea-richtext li>ol {
    margin: 8px 0 0;
}

.ea-richtext a {
    color: var(--color-error-100);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ea-richtext a:hover {
    color: var(--color-secondary-100);
}

.ea-richtext strong,
.ea-richtext b {
    color: var(--color-secondary-100);
}

.ea-richtext blockquote {
    margin: 0 0 18px;
    padding: 4px 0 4px 20px;
    border-left: 3px solid rgba(var(--primary-rgb), 0.55);
    color: var(--color-secondary-200);
}

.ea-richtext hr {
    margin: 30px 0;
    border: 0;
    border-top: 1px solid rgba(var(--surface-rgb), 0.14);
}

.ea-richtext img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-10);
}

/* a table pasted from a word processor is the one thing here that can
   be wider than the column; let it scroll rather than the page */
.ea-richtext table {
    display: block;
    overflow-x: auto;
    width: 100%;
    margin: 0 0 18px;
    border-collapse: collapse;
}

.ea-richtext th,
.ea-richtext td {
    padding: 10px 14px;
    text-align: left;
    border: 1px solid rgba(var(--surface-rgb), 0.14);
}

.ea-richtext th {
    color: var(--color-secondary-100);
    font-weight: var(--fw-semiBold);
}

/* -------------------------------------------------------------
   Video cards (site/video_gallery.php).

   A YouTube row gets a play button in place of the card's thumb, so
   the whole picture area opens the site's lightbox. The thumb keeps
   its .pt-thumb / .ph-N classes -- this only makes a <button> behave
   like the <div> those rules were written for, and gives the mark on
   top of it somewhere to live.
   ------------------------------------------------------------- */
.ea-thumb-play {
    width: 100%;
    padding: 0;
    cursor: pointer;
}

.ea-thumb-play .tp-mark {
    position: relative;
    z-index: 1;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 24px;
    color: #fff;
    background: rgba(8, 11, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: var(--transition-4);
}

.ea-thumb-play:hover .tp-mark,
.eac-post:hover .ea-thumb-play .tp-mark {
    background: var(--grad-btn);
    border-color: transparent;
    transform: scale(1.08);
}

.ea-thumb-play:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -4px;
}

/* the "Watch video" action is a <button> on a YouTube row and an <a>
   on an outbound one; .pt-link styles the anchor, so the button has
   to be told it is inline-flex too */
.pt-body button.pt-link {
    display: inline-flex;
    padding: 0;
}

/* -------------------------------------------------------------
   Gallery cards (site/gallery.php).

   The photo cards reuse the template's blog card, whose .pt-body was
   designed around a meta row, a title, a paragraph and a "read more"
   link. A gallery item has a title and nothing else, so the title's
   bottom margin would leave a band of empty card under it.
   ------------------------------------------------------------- */
.pt-body h3:only-child {
    margin-bottom: 0;
}

/* -------------------------------------------------------------
   404 (app/Views/errors/html/error_404.php).

   That page does NOT extend site/layout -- it is rendered by the
   exception handler with a bare include, so it has no view, no
   controller and no layout variables. It loads this stylesheet
   directly, which is why these two rules live here.
   ------------------------------------------------------------- */
.ea-404-help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 34px;
    font-size: 15px;
    color: var(--color-secondary-700);
}

.ea-404-help a {
    color: var(--color-error-100);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ea-404-help .ic {
    color: var(--primary);
}

/* THE ERROR PAGES, FINISHED (400, 403, 404, 500 — all four share .eac-404).

   The help line had `margin-top: 34px` above, which `.eac-404 p` (margin
   0 auto 32px, more specific) quietly zeroed, so it sat jammed under the
   buttons. Its link was painted in the template's error pink, a third colour
   on a page otherwise in the academy's own. And being a flex row, the full
   stop after the link was a flex item of its own, a gap away from the word it
   ends. The sentence is one <span> now, and the line is a quiet pill in the
   brand colour, set clear of the buttons. */
.eac-404 .ea-404-help {
    width: fit-content;
    max-width: 100%;
    margin: 34px auto 0;
    padding: 9px 16px;
    border: 1px solid rgba(var(--primary-rgb), .2);
    border-radius: 999px;
    background: rgba(var(--primary-rgb), .06);
    font-size: 14px;
}

.eac-404 .ea-404-help a {
    color: var(--primary);
    font-weight: 600;
    text-decoration-color: rgba(var(--primary-rgb), .45);
}

.eac-404 .ea-404-help a:hover { text-decoration-color: currentColor; }

/* The status code in the brand colour with a soft glow of the same, so the
   figure reads as lit rather than as a flat block of ink. */
.eac-404 .big { text-shadow: 0 16px 56px rgba(var(--primary-rgb), .32); }

/* No header or footer on these pages, so the message is the whole screen:
   centred in the viewport rather than hung from learnhub's 120px top padding,
   which was sized to clear a navigation bar that is no longer there. */
.eac-404 {
    display: grid;
    align-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding-block: 56px;
}

/* development only: the failed controller/method, never shown in
   production -- see the note at the top of that view */
.ea-404-detail {
    max-width: 720px;
    margin: 30px auto 0;
    padding: 14px 18px;
    overflow-x: auto;
    text-align: left;
    font-size: 13px;
    line-height: 1.6;
    border-radius: var(--radius-10);
    background: rgba(var(--surface-rgb), 0.07);
    border: 1px solid rgba(var(--surface-rgb), 0.14);
    color: var(--color-secondary-700);
}

/* -------------------------------------------------------------
   BLOG — the parts the template has no component for.

   learnhub.css styles the blog grid, the article body, the pager and the
   sidebar widgets; blog.html and blog-detail.html have no comments on them
   at all, and their sidebar "Search" was an inert box. Everything below is
   the application's half of site/blog.php and site/blog_post.php, written
   in the template's own tokens so it follows the academy palette and the
   light/dark scheme without a single hard-coded colour.
   ------------------------------------------------------------- */

/* NOTE: the "nothing here yet" panel is .ea-empty, defined further up this
   file for the galleries and the facilities list. The blog reuses it rather
   than restyling it — a second .ea-empty rule down here would win the cascade
   and quietly change how those other pages look. */

/* The sidebar's search widget. It opens the site-wide search overlay
   (data-search-open), so it is a BUTTON that looks like the template's
   .w-search input rather than a second, differently-behaved text field. */
.ea-wsearch {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--radius-big);
    border: 1px solid var(--primary-border-2);
    background: rgba(var(--surface-rgb), 0.06);
    color: var(--color-secondary-700);
    font: inherit;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-4);
}

.ea-wsearch:hover,
.ea-wsearch:focus-visible {
    border-color: rgba(var(--primary-rgb), 0.55);
    color: var(--color-secondary-100);
}

.ea-wsearch .ic {
    width: 18px;
    height: 18px;
    flex: none;
    color: var(--color-primary-100);
}

/* -------------------------------------------------------------
   Comments on a post, and the replies underneath them.
   ------------------------------------------------------------- */
.ea-comments,
.ea-cform {
    margin-top: 44px;
    padding-top: 30px;
    border-top: 1px solid rgba(var(--surface-rgb), 0.09);
}

.ea-comments__title {
    font-size: clamp(21px, 2.4vw, 26px);
    letter-spacing: -0.5px;
    margin-bottom: 22px;
}

.ea-cmt-list {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ea-cmt {
    display: flex;
    gap: 16px;
    padding: 22px 24px;
    border-radius: var(--radius-15);
    background: var(--color-dark-400);
    border: 1px solid var(--primary-border-2);
    list-style: none;
}

/* the initial standing in for a photo nobody uploaded */
.ea-cmt__av {
    flex: none;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--grad-btn);
    color: #fff;
    font-size: 18px;
    font-weight: var(--fw-bold);
    line-height: 1;
}

.ea-cmt__main {
    flex: 1 1 0;
    min-width: 0;
}

.ea-cmt__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--color-secondary-700);
}

.ea-cmt__head b {
    font-size: 16px;
    font-weight: var(--fw-semiBold);
    color: var(--color-secondary-100);
}

.ea-cmt__badge {
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 12px;
    color: var(--color-primary-100);
    background: rgba(var(--primary-rgb), 0.12);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
}

.ea-cmt__body {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-body);
    /* a comment is one unbroken string away from pushing the page sideways */
    overflow-wrap: anywhere;
}

/* a reply is the same card, indented, on the section ground rather than the
   card ground so the nesting reads at a glance */
.ea-cmt__replies {
    display: grid;
    gap: 14px;
    margin: 18px 0 0;
    padding: 0 0 0 22px;
    border-left: 2px solid rgba(var(--primary-rgb), 0.25);
    list-style: none;
}

.ea-cmt--reply {
    padding: 16px 18px;
    background: rgba(var(--surface-rgb), 0.05);
}

.ea-cmt--reply .ea-cmt__av {
    width: 36px;
    height: 36px;
    font-size: 15px;
}

@media (max-width: 575px) {

    /* at phone width a 22px rail plus two avatars leaves no room for words */
    .ea-cmt__replies {
        padding-left: 12px;
    }

    .ea-cmt--reply .ea-cmt__av {
        display: none;
    }
}

/* The comment form. The form itself is the template's .eac-form; this is
   only the line above it explaining that comments are moderated. */
.ea-cform__note {
    margin: -8px 0 20px;
    font-size: 15px;
    color: var(--color-secondary-700);
}

/* -------------------------------------------------------------
   THE COURSE CATALOGUE (site/courses.php).

   The template ships the grid and the list as two separate pages with a
   dead "Sort by" select on each and no filter sidebar anywhere. This
   application serves both arrangements from one URL, so it needs a
   toggle the template never drew, and it puts real filters beside them
   in the template's own .eac-side / .eac-widget shell.

   Everything below is written in the template's tokens, so it follows
   the academy palette and the light/dark scheme without a second rule.
   ------------------------------------------------------------- */

/* ---- grid / list toggle, in the toolbar beside the result count ---- */
.ea-viewtoggle {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--primary-border-2);
    background: var(--color-dark-400);
}

.ea-viewtoggle__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: var(--fw-medium);
    color: var(--color-secondary-700);
    transition: var(--transition-4);
}

.ea-viewtoggle__btn:hover {
    color: var(--color-secondary-100);
}

.ea-viewtoggle__btn .ic {
    font-size: 16px;
}

/* the chosen arrangement carries the brand gradient, the other is quiet */
.ea-viewtoggle__btn.is-on {
    color: #fff;
    background: var(--grad-btn);
}

/* ---- the facet lists ----
   .eac-wlist is the template's sidebar link list (it lists blog
   categories on blog.html). All it lacks is a state for the link that
   is currently in force, because the template never had a live one. */
.eac-wlist a.is-on {
    color: var(--color-primary-100);
    font-weight: var(--fw-semiBold);
}

.eac-wlist a.is-on i {
    color: var(--color-primary-100);
}

/* ---- filters that are shown but cannot work yet ----
   Rating and level have no data behind them anywhere in this
   application. They are rendered disabled rather than omitted so the
   sidebar keeps the shape the design asks for, and disabled rather than
   live so that nothing here is a control that silently does nothing. */
.ea-facets {
    display: grid;
    gap: 12px;
}

.ea-facet {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--color-body);
}

.ea-facet input {
    width: 17px;
    height: 17px;
    flex: none;
    accent-color: var(--primary);
}

.ea-facet.is-off {
    opacity: 0.5;
    cursor: not-allowed;
}

.ea-facet.is-off input {
    cursor: not-allowed;
}

.ea-facet-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 13px;
    color: var(--color-warning);
}

.ea-facet-note {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-secondary-700);
}

/* ---- the card grid, once it has a sidebar next to it ----
   learnhub.css sets .eac-course-grid to four across, which is right for
   the full-width page the template drew it on. Inside .eac-layout the
   content column is the container minus a 340px sidebar, and four cards
   in that space are 210px wide. Three fit at the width the template
   itself uses for four. Below 1200px .eac-layout collapses to a single
   column and the template's own responsive rules take over unchanged. */
@media (min-width: 1200px) {
    .eac-layout .eac-course-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Home-page application sections built from the supplied LearnHub design. */
.ea-home-alt {
    background: rgba(var(--surface-rgb), .035)
}

.ea-home-categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px
}

.ea-home-category {
    display: grid;
    gap: 8px;
    padding: 24px;
    border: 1px solid var(--primary-border-2);
    border-radius: var(--radius-10);
    background: var(--surface);
    color: var(--text);
    transition: var(--transition-4)
}

.ea-home-category:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-2)
}

.ea-home-category>span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--primary-10);
    color: var(--primary)
}

.ea-home-category>span .ic {
    width: 23px;
    height: 23px
}

.ea-home-category strong {
    font-size: 17px
}

.ea-home-category small {
    color: var(--color-secondary-700)
}

.ea-home-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    text-align: center
}

.ea-home-stats>div {
    padding: 28px 15px;
    border: 1px solid var(--primary-border-2);
    border-radius: var(--radius-10);
    background: var(--surface)
}

.ea-home-stats strong {
    display: block;
    color: var(--primary);
    font-size: 38px
}

.ea-home-stats span {
    color: var(--color-secondary-700)
}

.ea-home-cta {
    padding: 64px 24px;
    border: 1px solid var(--primary-border-2);
    border-radius: 24px;
    background: radial-gradient(circle at 80% 20%, rgba(var(--primary-rgb), .22), transparent 38%), var(--surface);
    text-align: center
}

.ea-home-cta h2 {
    margin: 10px 0;
    font-size: clamp(30px, 5vw, 52px)
}

.ea-home-cta p {
    margin: 0 0 24px;
    color: var(--color-secondary-700)
}

@media(max-width:991px) {

    .ea-home-categories,
    .ea-home-stats {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:575px) {

    .ea-home-categories,
    .ea-home-stats {
        grid-template-columns: 1fr
    }
}

.ea-home-center {
    display: flex;
    justify-content: center;
    margin-top: 42px
}

.eac-cate .ci .ic {
    width: 28px;
    height: 28px
}

.eac-cta>p {
    max-width: 680px;
    margin: 0 auto 24px;
    color: var(--color-secondary-700)
}

/* Checkout and payment lifecycle: existing server forms in the new shell. */
.public-page-title {
    padding: 72px max(20px, calc((100% - var(--container))/2));
    background: rgba(var(--surface-rgb), .04);
    text-align: center
}

.public-page-title h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px)
}

.public-section {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
    padding: 70px 0;
    color: var(--color-body)
}

.public-section h2,
.public-section h3 {
    color: var(--text)
}

.public-section table {
    width: 100%;
    border-collapse: collapse
}

.public-section th,
.public-section td {
    padding: 13px;
    border-bottom: 1px solid var(--primary-border-2);
    text-align: left
}

.public-button,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: var(--radius);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none
}

.public-button {
    border: 0;
    background: var(--grad-btn);
    color: #fff
}

.btn-outline {
    border: 1px solid var(--primary-border-2);
    background: transparent;
    color: var(--text)
}

.public-form {
    display: grid;
    gap: 16px
}

.public-form label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-weight: 600
}

.public-form input,
.public-form textarea,
.public-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--primary-border-2);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font: inherit
}

.public-form input:focus,
.public-form textarea:focus,
.public-form select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px
}

/* =============================================================
   THE RESTORED TEMPLATE SECTIONS
   -------------------------------------------------------------
   Almost every band brought back from the template — the countdown, the
   partner strip, the app download, the curriculum accordion, the instructor
   card, the pager, the tag cloud — is drawn ENTIRELY by learnhub.css, because
   the markup carries the template's own class names. Nothing for those is
   repeated here, which is what keeps them following the academy's palette.

   What follows is only the parts the template had no component for: the star
   glyphs (its ratings were static markup with no half state), the review
   block, the sort links, and a handful of small pieces the application added.
   All of it is written in the template's own tokens, so it follows the palette
   and the light and dark schemes for free — the same bargain the rest of this
   file strikes.
   ============================================================= */

/* -------------------------------------------------------------
   STARS.

   Built from ONE sprite symbol (#s-star) in three states, so 4.5 renders as
   four filled stars and one half-filled — not as a "½" glyph in the middle of
   a row, and not as a fifth empty star that quietly rounds 4.5 down to 4.

   The half is a mask over the same glyph rather than a second overlaid icon:
   one element, no alignment to drift, and the colour still comes from the
   palette.
   ------------------------------------------------------------- */
.stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    line-height: 0
}

.stars .star {
    width: 15px;
    height: 15px;
    flex: none
}

.star.is-full {
    color: var(--accent)
}

.star.is-empty {
    color: rgba(var(--surface-rgb), .32)
}

.star.is-half {
    color: var(--accent);
    -webkit-mask-image: linear-gradient(90deg, #000 50%, rgba(0, 0, 0, .28) 50%);
    mask-image: linear-gradient(90deg, #000 50%, rgba(0, 0, 0, .28) 50%)
}

/* The rating line on a course card. `.cs-rate` itself is the template's. */
.cs-rate {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px
}

.cs-rate b {
    color: var(--text);
    font-weight: 700
}

.cs-rate i {
    color: var(--color-secondary-700);
    font-style: normal
}

.tm-rate {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px
}

.tm-rate b {
    color: var(--text)
}

.tm-rate i {
    color: var(--color-secondary-700);
    font-style: normal
}

/* The rating under a course title, which is a link down to the reviews. */
.cd-rate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
    color: inherit;
    text-decoration: none
}

.cd-rate b {
    color: var(--text)
}

.cd-rate i {
    color: var(--color-secondary-700);
    font-style: normal;
    font-size: 13px
}

.cd-rate:hover i {
    color: var(--primary)
}

/* -------------------------------------------------------------
   THE REVIEW BLOCK on a course page.

   The template has no reviews component at all, so all of this is the
   application's — built to sit inside its `.eac-cd-body` and use its surfaces.
   ------------------------------------------------------------- */
.eac-reviews {
    margin-top: 26px
}

.rv-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 26px;
    align-items: center;
    padding: 22px;
    border: 1px solid var(--primary-border-2);
    border-radius: var(--radius-10);
    background: rgba(var(--surface-rgb), .04)
}

.rv-score {
    text-align: center;
    min-width: 120px
}

.rv-score b {
    display: block;
    font-size: 44px;
    line-height: 1.05;
    color: var(--text)
}

.rv-score i {
    display: block;
    margin-top: 5px;
    font-style: normal;
    font-size: 13px;
    color: var(--color-secondary-700)
}

.rv-bars {
    display: grid;
    gap: 7px
}

.rv-bar {
    display: grid;
    grid-template-columns: 44px 1fr 34px;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--color-secondary-700)
}

.rv-bar__label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--text)
}

.rv-bar__label .star {
    width: 12px;
    height: 12px
}

.rv-bar__track {
    height: 7px;
    border-radius: 99px;
    background: rgba(var(--surface-rgb), .16);
    overflow: hidden
}

.rv-bar__fill {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: var(--grad-btn);
    width: 0
}

.rv-bar__count {
    text-align: right;
    font-variant-numeric: tabular-nums
}

/* WHY THE BAR WIDTHS ARE ATTRIBUTE SELECTORS AND NOT style="width:…".
   This application's Content Security Policy sets style-src-attr to 'none', so
   an inline style attribute is IGNORED by the browser and every bar would
   render at 0. The percentage therefore travels as `data-pct` and is matched
   here in 5% steps, which is finer than the eye reads on a 7px bar. */
.rv-bar__fill[data-pct="0"] {
    width: 0
}

.rv-bar__fill[data-pct="1"],
.rv-bar__fill[data-pct="2"],
.rv-bar__fill[data-pct="3"],
.rv-bar__fill[data-pct="4"],
.rv-bar__fill[data-pct="5"] {
    width: 5%
}

.rv-bar__fill[data-pct="6"],
.rv-bar__fill[data-pct="7"],
.rv-bar__fill[data-pct="8"],
.rv-bar__fill[data-pct="9"],
.rv-bar__fill[data-pct="10"] {
    width: 10%
}

.rv-bar__fill[data-pct="11"],
.rv-bar__fill[data-pct="12"],
.rv-bar__fill[data-pct="13"],
.rv-bar__fill[data-pct="14"],
.rv-bar__fill[data-pct="15"] {
    width: 15%
}

.rv-bar__fill[data-pct="16"],
.rv-bar__fill[data-pct="17"],
.rv-bar__fill[data-pct="18"],
.rv-bar__fill[data-pct="19"],
.rv-bar__fill[data-pct="20"] {
    width: 20%
}

.rv-bar__fill[data-pct="21"],
.rv-bar__fill[data-pct="22"],
.rv-bar__fill[data-pct="23"],
.rv-bar__fill[data-pct="24"],
.rv-bar__fill[data-pct="25"] {
    width: 25%
}

.rv-bar__fill[data-pct="26"],
.rv-bar__fill[data-pct="27"],
.rv-bar__fill[data-pct="28"],
.rv-bar__fill[data-pct="29"],
.rv-bar__fill[data-pct="30"] {
    width: 30%
}

.rv-bar__fill[data-pct="31"],
.rv-bar__fill[data-pct="32"],
.rv-bar__fill[data-pct="33"],
.rv-bar__fill[data-pct="34"],
.rv-bar__fill[data-pct="35"] {
    width: 35%
}

.rv-bar__fill[data-pct="36"],
.rv-bar__fill[data-pct="37"],
.rv-bar__fill[data-pct="38"],
.rv-bar__fill[data-pct="39"],
.rv-bar__fill[data-pct="40"] {
    width: 40%
}

.rv-bar__fill[data-pct="41"],
.rv-bar__fill[data-pct="42"],
.rv-bar__fill[data-pct="43"],
.rv-bar__fill[data-pct="44"],
.rv-bar__fill[data-pct="45"] {
    width: 45%
}

.rv-bar__fill[data-pct="46"],
.rv-bar__fill[data-pct="47"],
.rv-bar__fill[data-pct="48"],
.rv-bar__fill[data-pct="49"],
.rv-bar__fill[data-pct="50"] {
    width: 50%
}

.rv-bar__fill[data-pct="51"],
.rv-bar__fill[data-pct="52"],
.rv-bar__fill[data-pct="53"],
.rv-bar__fill[data-pct="54"],
.rv-bar__fill[data-pct="55"] {
    width: 55%
}

.rv-bar__fill[data-pct="56"],
.rv-bar__fill[data-pct="57"],
.rv-bar__fill[data-pct="58"],
.rv-bar__fill[data-pct="59"],
.rv-bar__fill[data-pct="60"] {
    width: 60%
}

.rv-bar__fill[data-pct="61"],
.rv-bar__fill[data-pct="62"],
.rv-bar__fill[data-pct="63"],
.rv-bar__fill[data-pct="64"],
.rv-bar__fill[data-pct="65"] {
    width: 65%
}

.rv-bar__fill[data-pct="66"],
.rv-bar__fill[data-pct="67"],
.rv-bar__fill[data-pct="68"],
.rv-bar__fill[data-pct="69"],
.rv-bar__fill[data-pct="70"] {
    width: 70%
}

.rv-bar__fill[data-pct="71"],
.rv-bar__fill[data-pct="72"],
.rv-bar__fill[data-pct="73"],
.rv-bar__fill[data-pct="74"],
.rv-bar__fill[data-pct="75"] {
    width: 75%
}

.rv-bar__fill[data-pct="76"],
.rv-bar__fill[data-pct="77"],
.rv-bar__fill[data-pct="78"],
.rv-bar__fill[data-pct="79"],
.rv-bar__fill[data-pct="80"] {
    width: 80%
}

.rv-bar__fill[data-pct="81"],
.rv-bar__fill[data-pct="82"],
.rv-bar__fill[data-pct="83"],
.rv-bar__fill[data-pct="84"],
.rv-bar__fill[data-pct="85"] {
    width: 85%
}

.rv-bar__fill[data-pct="86"],
.rv-bar__fill[data-pct="87"],
.rv-bar__fill[data-pct="88"],
.rv-bar__fill[data-pct="89"],
.rv-bar__fill[data-pct="90"] {
    width: 90%
}

.rv-bar__fill[data-pct="91"],
.rv-bar__fill[data-pct="92"],
.rv-bar__fill[data-pct="93"],
.rv-bar__fill[data-pct="94"],
.rv-bar__fill[data-pct="95"] {
    width: 95%
}

.rv-bar__fill[data-pct="96"],
.rv-bar__fill[data-pct="97"],
.rv-bar__fill[data-pct="98"],
.rv-bar__fill[data-pct="99"],
.rv-bar__fill[data-pct="100"] {
    width: 100%
}

.rv-list {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: grid;
    gap: 18px
}

.rv-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--primary-border-2)
}

.rv-item:last-child {
    border-bottom: 0;
    padding-bottom: 0
}

.rv-av {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: var(--grad-btn);
    color: #fff;
    font-weight: 800
}

.rv-av img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.rv-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 5px
}

.rv-who {
    color: var(--text);
    font-weight: 700
}

.rv-when {
    font-size: 12px;
    color: var(--color-secondary-700)
}

.rv-title {
    margin: 0 0 4px;
    font-size: 16px
}

.rv-body p {
    margin: 0;
    color: var(--color-body)
}

.rv-empty {
    color: var(--color-secondary-700)
}

.rv-pending {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 11px 14px;
    border-radius: var(--radius);
    background: rgba(var(--accent-rgb), .12);
    color: var(--text);
    font-size: 14px
}

.rv-pending .ic {
    width: 16px;
    height: 16px;
    flex: none;
    color: var(--accent)
}

.rv-form {
    margin-top: 28px;
    padding: 22px;
    border: 1px solid var(--primary-border-2);
    border-radius: var(--radius-10);
    background: rgba(var(--surface-rgb), .04)
}

.rv-form h3 {
    margin: 0 0 14px;
    font-size: 19px
}

.rv-fields {
    display: grid;
    gap: 16px
}

.rv-field {
    display: grid;
    gap: 7px
}

.rv-field>span {
    color: var(--text);
    font-weight: 600;
    font-size: 14px
}

.rv-field>span i {
    color: var(--color-secondary-700);
    font-style: normal;
    font-weight: 400
}

.rv-field input,
.rv-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--primary-border-2);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font: inherit
}

.rv-field input:focus,
.rv-field textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px
}

/* The star picker: real radio buttons drawn as stars.
   `row-reverse` with the 5-star input FIRST in the DOM is what lets the
   sibling selector below light up every star to the LEFT of the one hovered —
   the effect everybody expects from a star rating, with no JavaScript and with
   the keyboard and screen-reader behaviour of a radio group intact. */
.rv-stars {
    border: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap
}

.rv-stars legend {
    float: left;
    width: 100%;
    margin: 0 0 8px;
    padding: 0;
    color: var(--text);
    font-weight: 600;
    font-size: 14px
}

.rv-star {
    position: relative
}

.rv-star input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0
}

.rv-star>span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    cursor: pointer;
    color: rgba(var(--surface-rgb), .34);
    transition: var(--transition-4)
}

.rv-star>span .ic {
    width: 24px;
    height: 24px
}

.rv-star>span i {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%)
}

.rv-star:hover>span,
.rv-star:hover~.rv-star>span,
.rv-star:has(input:checked)>span,
.rv-star:has(input:checked)~.rv-star>span {
    color: var(--accent)
}

.rv-star:has(input:focus-visible)>span {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 6px
}

.rv-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap
}

.rv-note {
    margin: 0;
    font-size: 13px;
    color: var(--color-secondary-700)
}

/* -------------------------------------------------------------
   SORT — the template's "Sort by" <select>, as links.
   A select needs JavaScript to do anything and the CSP refuses inline
   handlers, so the order lives in the URL instead. Same visual weight as the
   grid/list toggle it sits beside.
   ------------------------------------------------------------- */
.ea-sort {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap
}

.ea-sort__label {
    font-size: 13px;
    color: var(--color-secondary-700)
}

.ea-sort__link {
    padding: 7px 12px;
    border: 1px solid var(--primary-border-2);
    border-radius: 99px;
    font-size: 13px;
    color: var(--color-secondary-700);
    text-decoration: none;
    transition: var(--transition-4);
    white-space: nowrap
}

.ea-sort__link:hover {
    border-color: var(--primary);
    color: var(--text)
}

.ea-sort__link.is-on {
    border-color: transparent;
    background: var(--grad-btn);
    color: #fff
}

/* The pager's arrows and gap; `.eac-pager a` itself is the template's. */
.eac-pager .pg-arrow {
    display: grid;
    place-items: center
}

.eac-pager .pg-arrow .ic {
    width: 15px;
    height: 15px
}

/* The catalogue pager uses the template's own `.gap`, so learnhub.css:4840's
   `border:none` strips the 44x44 button chrome from the elision. Only the
   padding is added here. */
.eac-pager .gap {
    padding: 0 4px;
    color: var(--color-secondary-700)
}

/* Which filter a listing is under, and how to leave it. */
.ea-filter-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0 0 22px;
    padding: 11px 16px;
    border: 1px solid var(--primary-border-2);
    border-radius: 99px;
    background: rgba(var(--surface-rgb), .05);
    font-size: 14px
}

.ea-filter-chip b {
    color: var(--text)
}

.ea-filter-chip a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600
}

.ea-filter-chip a .ic {
    width: 13px;
    height: 13px
}

/* A category chip is an <a> here, not the template's <span>. It inherits
   .pt-cat and only loses the underline. */
a.pt-cat {
    text-decoration: none
}

a.pt-cat:hover {
    background: var(--primary);
    color: #fff
}

/* The tag row under a post body. */
.eac-posttags {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 26px 0 0
}

.eac-posttags b {
    color: var(--text)
}

/* Curriculum accordion: the template styles <details class="eac-cu">, but not
   what this application puts INSIDE one — chapters rather than its timed
   video rows. */
.cu-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--color-secondary-700)
}

.cu-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.cu-meta .ic {
    width: 14px;
    height: 14px
}

.cu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px
}

/* `justify-content:flex-start` is the point of this rule. learnhub.css:5132
   sets `.eac-cu li{justify-content:space-between}` because the template's row
   is TWO flex items — a `.ls` group holding the icon and the label, and a
   `<time>`. This application has no per-lesson duration, so there is no
   `<time>`; the chapter rows now use the template's `.ls` wrapper (course.php)
   and this keeps the single item at the left instead of letting
   space-between strand it. */
.cu-list li {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--color-body)
}

.cu-list .ic {
    width: 15px;
    height: 15px;
    flex: none;
    margin-top: 3px;
    color: var(--primary)
}

.cu-empty {
    margin: 0;
    font-size: 14px;
    color: var(--color-secondary-700)
}

/* `.eac-cu ul` gets its 22px inset from learnhub.css; this wrapper is the
   application's own, so the prose inside it needs the same inset or it sits
   flush left of the chapter list it introduces. */
.cu-body {
    padding: 0 22px 14px
}

/* The index number. `.cu-n` is the template's MUTED META class and now carries
   the chapter count, where learnhub.css:5115 expects it; the index gets its
   own class rather than borrowing that one. `margin-right:auto` on the title
   is what keeps the summary's space-between pinning the meta and the caret
   right, now that the row has four children instead of three. */
.eac-cu>summary .cu-i {
    font-size: 14px;
    font-weight: var(--fw-regular);
    color: var(--primary)
}

.eac-cu>summary .cu-t {
    margin-right: auto
}

/* Several instructors, not the template's one. `.eac-author` is the
   template's card; this is only the grid that holds more than one. */
.eac-authors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin: 6px 0 10px
}

/* The two lines the instructor profile card gained. */
.pf-spec {
    margin: -6px 0 0;
    font-size: 14px;
    color: var(--color-secondary-700)
}

.pf-rate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 0 0;
    font-size: 14px
}

.pf-rate b {
    color: var(--text)
}

.pf-rate i {
    font-style: normal;
    color: var(--color-secondary-700)
}

/* A step with a sentence under it, in the About page's tick list. */
.eac-ticks li>span {
    display: grid;
    gap: 3px
}

.eac-ticks li>span b {
    color: var(--text)
}

.eac-ticks li>span i {
    font-style: normal;
    font-size: 14px;
    color: var(--color-secondary-700)
}

/* The reply-time line above the contact form, and an event's summary. */
.ea-form-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -6px 0 18px;
    font-size: 14px;
    color: var(--color-secondary-700)
}

.ea-form-note .ic {
    width: 15px;
    height: 15px;
    color: var(--primary)
}

.ev-sum {
    margin: 4px 0 8px;
    color: var(--color-body)
}

/* An event row's cover, which `upcoming_exams` never had. */
.eac-event-row .ev-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit
}

/* The small print beside the store badges. */
.app-alt span {
    color: var(--color-secondary-700)
}

/* A partner with no logo: its name, in the template's wordmark style. Four of
   the six entries the template shipped were exactly this. */
/* learnhub.css:2593 already styles `.eac-brands span` — including through
   the new <a> wrapper, because it uses a descendant combinator — so the
   wordmark needs nothing here. It previously carried `font-weight:800`, a
   value that exists nowhere on the template's 400/500/600/700/900 scale and
   which overrode var(--fw-bold) purely because this sheet loads second.

   The LOGO half of the strip did need a rule: nothing anywhere targeted
   `.eac-brands img`, so an uploaded mark rendered at its natural pixel size
   (uploads are never resized) and a wide one took a whole row to itself while
   the name-only pills beside it stayed pill-sized. This gives it the same chip
   the wordmark gets, from the same tokens, plus a height cap. */
.eac-brands img {
    height: 125px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
    padding: 13px 30px;
    border-radius: var(--radius-big);
    background: rgba(var(--surface-rgb), .05);
    border: 1px solid rgba(var(--surface-rgb), .09);
    transition: var(--transition-4)
}

.eac-brands img:hover {
    border-color: rgba(var(--primary-dark-rgb), .45);
    transform: translateY(-4px)
}

.eac-brands a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-4)
}

.eac-brands a:hover {
    color: var(--primary)
}

/* A testimonial with no photograph: the initial over the card's gradient, the
   same no-photo state the team cards use. */
/* Only the box. learnhub.css:2233 owns the type: 70px, var(--fw-black) and
   rgba(255,255,255,.26) — the same watermark `.tm-thumb b` and `.ab-shot b`
   use, and those two are NOT overridden. Re-declaring size, weight and colour
   here made the testimonial deck's initial a hard white letter while the
   instructor cards below it kept the soft ghost, on the same page. */
.tst-shot b {
    width: 100%;
    height: 100%
}

/* The testimonial author's name. learnhub.css:2242 carries the ONLY styling
   for it and is scoped to `.tst-id a` — but a testimonial author has no page
   to link to, so this is a <span>, and without this rule the name rendered at
   body size in body colour, indistinguishable from the job title beneath it.
   Same values as the vendor rule, from the same tokens; no :hover, because it
   is not a link. */
.tst-id span {
    display: inline-block;
    font-size: 18px;
    font-weight: var(--fw-semi-bold);
    color: var(--color-secondary-100)
}

/* The logo inside the sign-in dialog, which reuses site/partials/logo. */
/* HEIGHT-driven, like learnhub.css:4272's own `.auth-mark{height:44px}`.
   Sizing by width instead only matched the shipped 3:1 artwork — a squarer
   uploaded logo came out several times too tall. */
.auth-mark-wrap {
    display: block;
    margin: 0 auto 14px;
    text-align: center
}

.auth-mark-wrap .eac-logo-img {
    height: 44px;
    width: auto;
    margin: 0 auto
}

/* A section that follows another with no gap of its own (the exam calendar
   under the events list). */
.eac-section.pt-0 {
    padding-top: 0
}

/* A course-card avatar that is a real photograph rather than an initial. */
.cs-av img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover
}

/* The map on the Contact page. 16:9, because that is the ratio a Google embed
   is generated at, and a border that matches every other card on the page. */
/* `height:auto; display:block` undo learnhub.css:5590, which sizes this as a
   fixed 340px grid placeholder holding a pin and a caption. With a real
   iframe in it that height crops the map; letting the frame's own
   aspect-ratio set the box is what makes it a map rather than a letterbox.
   `display:block` also retires the inherited place-items/gap/text-align,
   which existed only for the placeholder's contents. */
.eac-map {
    display: block;
    height: auto;
    margin-top: 36px;
    border: 1px solid var(--primary-border-2);
    border-radius: var(--radius-10);
    overflow: hidden;
    background: rgba(var(--surface-rgb), .04)
}

.eac-map iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16/7;
    min-height: 320px;
    border: 0
}

@media (max-width: 767px) {
    .rv-summary {
        grid-template-columns: 1fr;
        gap: 18px
    }

    .rv-score {
        min-width: 0
    }
}

/* Superadmin shortcuts on the public home page. They sit at the right edge of
   the section heading and are never rendered for ordinary visitors. */
.eac-section-head:has(.eac-section-edit) {
    position: relative;
}

.eac-section-edit {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--edu-border, rgba(15, 23, 42, .14));
    border-radius: 50%;
    background: var(--edu-card, #fff);
    color: var(--edu-accent);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .1);
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.eac-section-edit svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.eac-section-edit:hover {
    transform: translateY(-2px);
    background: var(--edu-accent);
    color: #fff;
}

.eac-section-edit:focus-visible {
    outline: 3px solid var(--edu-accent-soft);
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .eac-section-edit {
        width: 36px;
        height: 36px;
    }
}


/* =============================================================
   THE GALLERY LIGHTBOX

   The template has no image-viewer component — its only overlay is the video
   modal — so this is the application's, built from the same parts so the two
   feel like one thing: the same backdrop blur, the same close button, the same
   fade, and every colour from the template's tokens so it follows the academy
   palette and both schemes.

   `.eac-lightbox` mirrors `.eac-video`'s structure deliberately. If the
   template ever grows a real image viewer, replacing this is a matter of
   swapping the class names.
   ============================================================= */
.eac-lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .26s var(--ease-premium), visibility .26s
}

.eac-lightbox.is-open {
    opacity: 1;
    visibility: visible
}

.eac-lightbox[hidden] {
    display: none
}

.lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(var(--bg-rgb), .88);
    backdrop-filter: blur(6px)
}

.lb-dialog {
    position: relative;
    width: min(1100px, calc(100% - 40px));
    max-height: calc(100vh - 80px);
    display: grid;
    place-items: center;
    transform: scale(.96);
    transition: transform .26s var(--ease-premium)
}

.eac-lightbox.is-open .lb-dialog {
    transform: none
}

.lb-frame {
    margin: 0;
    display: grid;
    gap: 14px;
    justify-items: center;
    max-height: calc(100vh - 80px)
}

/* `min-height:0` on the grid item is what lets the picture actually shrink to
   fit — without it a tall photograph overflows the viewport instead of
   scaling, which is the classic CSS-grid image trap. */
.lb-frame img {
    min-height: 0;
    max-width: 100%;
    max-height: calc(100vh - 170px);
    border-radius: var(--radius-10);
    object-fit: contain;
    box-shadow: var(--shadow-2)
}

.lb-caption {
    display: grid;
    gap: 3px;
    justify-items: center;
    text-align: center;
    color: var(--text)
}

.lb-caption span {
    font-size: 16px;
    font-weight: 600
}

.lb-caption small {
    color: var(--color-secondary-700);
    font-size: 13px;
    font-variant-numeric: tabular-nums
}

/* The three controls. 44px is the smallest comfortable touch target, and the
   arrows sit outside the picture on a wide screen and over it on a narrow one
   — where there is no room beside it. */
.lb-x,
.lb-nav {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--primary-border-2);
    border-radius: 50%;
    background: rgba(var(--card-rgb), .9);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition-4)
}

.lb-x:hover,
.lb-nav:hover {
    border-color: var(--primary);
    color: var(--primary)
}

.lb-x:focus-visible,
.lb-nav:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px
}

.lb-x {
    top: -8px;
    right: -8px
}

.lb-nav {
    top: 50%;
    transform: translateY(-50%)
}

.lb-prev {
    left: -58px
}

.lb-next {
    right: -58px
}

.lb-x .ic,
.lb-nav .ic {
    width: 18px;
    height: 18px
}

/* One photograph: the arrows would be two controls that do nothing. */
.eac-lightbox.is-single .lb-nav {
    display: none
}

@media(max-width:1220px) {
    .lb-prev {
        left: 8px
    }

    .lb-next {
        right: 8px
    }

    .lb-x {
        top: 6px;
        right: 6px
    }
}

@media(max-width:575px) {
    .lb-dialog {
        width: calc(100% - 20px)
    }

    .lb-frame img {
        max-height: calc(100vh - 200px)
    }
}

/* ---- the gallery card itself ---- */
/* The thumb is a LINK now, so it needs the pointer and the hover state the
   template's <div> never had. */
.ea-photo .pt-thumb {
    display: block;
    position: relative;
    cursor: zoom-in;
    overflow: hidden
}

.ea-photo .pt-thumb img {
    transition: transform .45s var(--ease-premium)
}

.ea-photo .pt-thumb:hover img {
    transform: scale(1.05)
}

.ea-photo .pt-thumb:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px
}

/* The magnifier badge. Hidden until hover or keyboard focus, so the grid stays
   a grid of photographs rather than a grid of buttons. */
.ea-photo__zoom {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    background: rgba(var(--bg-rgb), .45);
    transition: opacity .3s var(--ease-premium)
}

.ea-photo .pt-thumb:hover .ea-photo__zoom,
.ea-photo .pt-thumb:focus-visible .ea-photo__zoom {
    opacity: 1
}

.ea-photo__zoom .ic {
    width: 26px;
    height: 26px;
    color: #fff
}

/* The "N further pictures could not be loaded" line under the gallery grid.
   It is a quiet aside about files missing from disk, not something the visitor
   can act on — but with no rule of its own it rendered at full body weight and
   colour, hard against the left edge, reading as a page-level error. Centred
   under the grid, muted, at the size the rest of the site uses for meta. */
.ea-photo-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 26px;
    font-size: 13px;
    color: var(--color-secondary-700);
}

.ea-photo-note .ic {
    font-size: 14px;
}


/* =============================================================
   FIDELITY CORRECTIONS

   Each of these restores a template behaviour that the implementation's own
   markup had quietly changed. Every value comes from a template token, and
   learnhub.css is never edited — it is vendor code.
   ============================================================= */

/* The top bar is `justify-content:space-between` over TWO children. With no
   announcement and no site description the note is not rendered at all, and a
   lone child under space-between sits at the LEFT. The design puts the contact
   links hard right. */
.eac-topbar-in>.eac-topbar-links:only-child {
    margin-left: auto
}

/* `.cs-tag` carries `margin-left:auto` because the template guarantees exactly
   one trailing chip. A card that also has a level or a sub-category has two,
   and two auto margins split the free space between them — so the category
   chip floated into the middle of the byline instead of sitting flush right.
   Only the first chip keeps the push. */
.cs-top .cs-tag~.cs-tag {
    margin-left: 0
}

/* The counter panel is a fixed four-column grid because the template always
   printed four. This application prints only the counters that have a real
   number behind them, so three is the ordinary case for a new academy — and
   three items in a four-column grid leave a whole empty column, with the row
   visibly off-centre inside the panel.

   Scoped by width band so the template's own 991px and 575px collapses still
   win below them. */
@media (min-width: 992px) {
    .eac-counter-grid[data-count="1"] {
        grid-template-columns: 1fr
    }

    .eac-counter-grid[data-count="2"] {
        grid-template-columns: repeat(2, 1fr)
    }

    .eac-counter-grid[data-count="3"] {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .eac-counter-grid[data-count="1"] {
        grid-template-columns: 1fr
    }
}

/* Between 992 and 1199px the template shrinks the header's sign-in control to
   a 40px circle, because the bar runs out of room there. The signed-IN chip is
   `.ea-user`, not `.btn-login`, so it never collapsed and the signed-in header
   was crowded in exactly the window the design was trimming.

   Scoped to `.eac-nav-tools` so the slide-in drawer's copy of the chip, which
   has room for the name, is untouched. */
@media (max-width: 1199px) {
    .eac-nav-tools .ea-user {
        width: 40px;
        height: 40px;
        padding: 0;
        gap: 0;
        border-radius: 50%;
        justify-content: center
    }

    .eac-nav-tools .ea-user .ea-user__name {
        display: none
    }

    .eac-nav-tools .ea-user .ea-user__avatar {
        width: 38px;
        height: 38px
    }
}

/* The sign-in dialog's provider row. `.auth-oauth` is the template's own grid,
   but the template put two bare <button>s in it; ours wraps the one real
   provider in a <form> so the POST carries a CSRF token. `display:contents`
   lets that form disappear from the layout so the button is still the grid's
   own child, and the single-column rule stops one provider being stretched
   across a two-column track. */
.auth-oauth-form {
    display: contents
}

.auth-oauth:has(.auth-oauth-form:only-child) {
    grid-template-columns: 1fr
}

/* The sign-up tab on one screen. At the template's 452px the five fields
   stacked to 970px of content against an 839px dialog on a 1615x889 window,
   so the form scrolled and the submit button sat below the fold. Wider, with
   the fields in two columns, it is ~735px. Both tabs share the width: a
   dialog that resizes itself as you switch tabs reads as a glitch.

   Scoped to >=576px because learnhub.css turns the dialog into a bottom sheet
   below that, and a bare `.auth-dialog` rule here would override the sheet's
   padding by source order. */
.au-check__text {
    display: block
}

.auth-form .au-field--terms {
    margin: 2px 0 18px
}

@media (min-width: 576px) {
    .auth-dialog {
        max-width: 620px;
        padding: 32px 38px 28px
    }

    /* The eye button already leaves a gap on the right; the input's own
       14px on top of it clipped "At least 10 characters" in a half column. */
    .au-input:has(.au-eye) input {
        padding-right: 4px
    }

    .au-grid {
        display: grid;
        /* minmax(0, …): a bare 1fr has an `auto` minimum, and an <input>'s
           intrinsic width pushed both tracks past the dialog's edge. */
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 16px;
        align-items: start
    }

    .au-grid > .au-field--wide {
        grid-column: 1 / -1
    }
}

/* Short windows (a 1366x768 laptop leaves ~650px): tighten the rhythm rather
   than scroll. The dialog keeps overflow-y:auto as the last resort. */
@media (min-width: 576px) and (max-height: 820px) {
    .eac-auth {
        padding: 16px
    }

    .auth-dialog {
        max-height: calc(100vh - 32px);
        padding: 24px 34px 22px
    }

    .auth-head {
        margin-bottom: 16px
    }

    .auth-mark {
        height: 34px;
        margin-bottom: 8px
    }

    .auth-title {
        font-size: 23px
    }

    .auth-tabs {
        margin-bottom: 14px
    }

    .auth-tab {
        padding: 8px
    }

    .oa-btn {
        padding: 9px 10px
    }

    .auth-or {
        margin: 12px 0
    }

    .au-field {
        margin-bottom: 11px
    }

    .au-label {
        margin-bottom: 5px
    }

    .au-input input {
        padding: 10px 14px
    }

    .au-eye {
        height: 36px
    }

    .auth-form .au-field--terms {
        margin: 2px 0 14px
    }

    .auth-submit {
        padding: 11px 24px
    }

    .auth-swap {
        margin-top: 12px
    }
}

/* Very short: the subtitle is mood, and the sign-up tab's "Log in instead"
   repeats the tab bar directly above it. The log-in tab's line stays — it is
   the only route to one-time-code sign-in. */
@media (min-width: 576px) and (max-height: 700px) {
    .auth-sub,
    #authSignup .auth-swap {
        display: none
    }

    .auth-mark {
        height: 28px;
        margin-bottom: 6px
    }
}

/* A 1280x720 window (~600px of page): the page behind already carries the
   logo, so the dialog's copy of it is the first thing to go. */
@media (min-width: 576px) and (max-height: 640px) {
    .auth-mark-wrap {
        display: none
    }

    .auth-dialog {
        padding-top: 20px
    }
}

/* -------------------------------------------------------------------------
   APP DOWNLOAD — a store badge for an app that is not published yet.

   The template's band always shows two badges, so this application draws two
   as well; the one with no URL behind it is a <span>, not an anchor, and says
   "Coming soon to" rather than "Download on the".

   `.store` and `.store:hover` (learnhub.css:2710, 2720) are written for an
   anchor and apply to any `.store`, so the hover lift and the gradient fill
   have to be taken back off here — a chip that rises under the pointer reads
   as clickable, and this one is not. The dimming is what separates it from a
   badge beside it that IS a link.
   ------------------------------------------------------------------------- */
.store.is-soon {
    opacity: .6;
    cursor: default
}

.store.is-soon:hover {
    transform: none;
    background: rgba(var(--surface-rgb), .07);
    border-color: rgba(var(--surface-rgb), .14)
}

/* Brand-coloured, unobtrusive scrollbars across the public site.  This lives
   in the application override (not the vendor template) so upgrades retain it. */
html {
    scroll-behavior: smooth;
    scrollbar-color: var(--primary) transparent;
    scrollbar-width: thin;
}

body,
body * {
    scrollbar-color: var(--primary) transparent;
    scrollbar-width: thin;
}

body::-webkit-scrollbar,
body *::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

body::-webkit-scrollbar-track,
body *::-webkit-scrollbar-track { background: transparent; }

body::-webkit-scrollbar-thumb,
body *::-webkit-scrollbar-thumb {
    min-height: 32px;
    background: var(--primary);
    background-clip: padding-box;
    border: 1px solid transparent;
    border-radius: 999px;
}

body::-webkit-scrollbar-thumb:hover,
body *::-webkit-scrollbar-thumb:hover {
    background: var(--secondary, var(--primary));
    background-clip: padding-box;
}

body::-webkit-scrollbar-corner,
body *::-webkit-scrollbar-corner { background: transparent; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* =============================================================
   EDUCO HEADER — the two places this site needs more than the
   design gave it. Both are ADDITIONS to learnhub.css, which is
   loaded before this file; nothing there is overwritten.
   ============================================================= */

/* 1. SEARCH STAYS ON PHONES.
      learnhub.css hides .edu-searchbox outright below 575px. The design can
      afford that — its search is decoration. Here it opens a real overlay that
      queries real courses, and it is the only way to reach that overlay: the
      burger menu has no search field in it. So instead of disappearing, the
      pill keeps the 44px round shape it already takes at the tablet
      breakpoint. Same control, same id, same handler — just still present. */
@media (max-width: 575px) {
    .edu-searchbox {
        display: inline-flex;
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
    }
    .edu-searchbox span {
        display: none;
    }
}

/* =============================================================
   EDUCO BANNER — the two things this site's data needs that the
   design's own markup never had to cope with. Additions only.
   ============================================================= */

/* 1. THE FACULTY PANEL IS A LIST OF LINKS.
      The design's .edu-reslt-flex is an inert <div> holding an invented
      student. Here each row is a real teacher with a real profile page, so it
      is an <a> — which needs the link colour and underline taken back off, and
      wants to say so on hover. */
.edu-banner-reslt-box a.edu-reslt-flex {
    color: inherit;
    text-decoration: none;
    border-radius: 14px;
    transition: background var(--transition), transform var(--transition);
}

.edu-banner-reslt-box a.edu-reslt-flex:hover {
    background: var(--edu-accent-soft);
    transform: translateX(2px);
}

.edu-banner-reslt-box a.edu-reslt-flex:focus-visible {
    outline: 2px solid var(--edu-accent);
    outline-offset: 3px;
}

/* 2. THE NO-PHOTO FALLBACK.
      Every face in the design is a supplied .webp. A teacher here may have no
      avatar on disk, and the alternative to this is a broken-image icon in the
      middle of the hero. Same 50px circle as .edu-reslt-flex > img, carrying
      the initial instead — the treatment the course cards already use. */
.edu-reslt-initial {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--edu-accent-soft);
    color: var(--edu-accent);
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    user-select: none;
}

/* 3. THE PLAY CONTROL IS A BUTTON, NOT A LINK.
      learnhub.css styles `.edu-banner-play-icon a`, because the design's
      control is an <a href="https://youtu.be/..."> that leaves the site. Here
      it is a <button data-video> so the video opens in the page's own modal
      and nothing is requested from YouTube until it is pressed — which means
      that `a` selector no longer reaches it. Same declarations, plus the
      resets a <button> needs and an <a> does not. */
.edu-banner-play-icon button.video-popup {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 16px;
    font-weight: 400;
    color: var(--title-color);
    text-transform: capitalize;
    cursor: pointer;
}

.edu-banner-play-icon button.video-popup:focus-visible {
    outline: 2px solid var(--edu-accent);
    outline-offset: 6px;
    border-radius: 8px;
}

/* 4. THE STEP COLOURS, AS CLASSES.
      The design carries them on the element: style="--step-c: #4a9df8". This
      application sets style-src-attr 'none', so that attribute is dropped
      before it reaches the cascade and all four cards come out the same
      accent — the four inline styles in learnhub.html are the ONLY ones in the
      whole design, and this is why. Same four values, keyed off a class, in
      the shape .ph-1..8 already uses elsewhere on this page.

      They cycle: a fifth step written in the CMS gets step 1's blue back
      rather than falling through to an unset token. */
.edu-step--1 { --step-c: #4a9df8; }
.edu-step--2 { --step-c: #ff7a59; }
.edu-step--3 { --step-c: #5fc25f; }
.edu-step--4 { --step-c: #a56ff0; }

/* =============================================================
   NEWSLETTER — .eac-nlx, plus the one row this site has that the
   design's band does not.
   ============================================================= */

/* The "No ads / No Spam / Unsubscribe anytime" row, carried over from the
   .eac-newsletter panel this replaced. It is a promise about what the academy
   does with an address rather than decoration, so it survived the restyle —
   but .eac-nlx is a two-column grid (copy | form) and a third child would
   otherwise drop into column one, under the copy and nowhere near the field it
   is reassuring anyone about.

   Placed explicitly instead: second row, second column, so it sits directly
   beneath the form. */
.eac-nlx .nlx-note {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, .62);
    font-size: 12.5px;
}

.eac-nlx .nlx-note li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.eac-nlx .nlx-note .ic {
    font-size: 13px;
    opacity: .8;
}

/* Below 991px the band is a single centred column, so the explicit placement
   above has to go — column 2 does not exist any more. */
@media (max-width: 991px) {
    .eac-nlx .nlx-note {
        grid-column: 1;
        grid-row: auto;
        justify-content: center;
    }
}

/* =============================================================
   SECTION HEADINGS — one step up from the design's own size.
   ============================================================= */

/* learnhub.css caps `.eac-section-head .eac-title` at
   clamp(26px, 3vw, 38px) — 10px under the --h2 the rest of the sheet is built
   around, and the reason "Our Syllabus" and its neighbours read light against
   the banner's h1.

   This is a DELIBERATE STEP AWAY FROM THE REFERENCE, asked for directly, and
   it is applied to the shared rule rather than to one section: making a single
   heading bigger would leave one section shouting at ten others. The clamp
   keeps the same shape — a floor that still fits a narrow phone, a ceiling
   that stays inside --h2 (48px) so these never outgrow a page title. */
.eac-section-head .eac-title {
    font-size: clamp(30px, 3.6vw, 46px);
    letter-spacing: -1px;
}

/* The lead under it grows a little with the heading, so the pair still reads
   as one block rather than a large title with fine print under it. */
.eac-section-head .eac-section-sub {
    font-size: clamp(15px, 1.25vw, 17px);
}

/* =============================================================
   COURSE CARD — the meta row and the byline avatar.
   ============================================================= */
/* TWO PER ROW, THE THIRD UNDERNEATH — and no phrase broken across lines.
   learnhub.css lays .cs-meta out as one flex row that cannot wrap, so at the
   grid's ~300px card width "1 lesson", "4 students" and "Starts 10 Feb 2025"
   fought for a single line and the longest of them broke inside its own span.
   That is how "Starts 10" ended up above "Feb 2025".

   A wrapping row where each item is atomic. Two facts fit side by side, the
   third drops to its own line INTACT, and nothing splits mid-phrase. A rigid
   two-column grid was tried first and was worse: it forced the date into a
   ~140px cell, which broke it again. */
.cs-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}

.cs-meta span {
    white-space: nowrap;
}

/* The icon must not shrink when the label beside it is long. */
.cs-meta span .ic {
    flex: none;
}

/* THE BYLINE AVATAR.
   .cs-av is a 30px grid box, but `flex: none` alone does not stop a flex
   parent from reading the IMAGE's intrinsic width when the row runs out of
   room — a 400px portrait then dragged the box wider and the circle spilled
   past the card edge. Pinned on all three axes, and clipped, so the photo can
   only ever be the circle it is meant to be. */
.cs-av {
    flex: 0 0 30px;
    width: 30px;
    min-width: 30px;
    overflow: hidden;
}

.cs-av img {
    display: block;
}

/* The name beside it takes what is left rather than pushing the row wide. */
.cs-au {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* THE FOOTER ROW: PRICE LEFT, ACTION RIGHT, NEITHER BROKEN.
   .cs-foot is space-between, but nothing stopped either side from wrapping —
   so "View course" split into "View" / "course" on a card whose price carried
   a struck-through original beside it. The action is the fixed part and the
   price is the part that may shrink. */
.cs-foot {
    /* .cs-meta below now carries the margin-top:auto that pushes this block
       to the bottom of the card. Leaving it on BOTH would split the free
       space between them and open a gap above the price. */
    margin-top: 0;
    flex-wrap: nowrap;
}

.cs-foot .cs-btn {
    flex: none;
    white-space: nowrap;
}

/* The price may wrap between the old and new figure if it truly must, but it
   gives up its own width first rather than pushing the action off. */
.cs-price {
    min-width: 0;
}

/* EQUAL CARDS.
   The grid's rows are as tall as their tallest card, and .cs-body already
   pushes .cs-foot down with margin-top:auto — but a title running to two lines
   on one card and one on the next still left the meta rows at different
   heights across a row, which is what made the grid look ragged. Clamping the
   title to two lines gives every card the same block to hang the rest off. */
.eac-course .cs-body h3 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  font-weight: var(--fw-semi-bold);
}

/* The rating line is optional and the meta row is not, so without this a card
   with no reviews pulled its meta up level with a rated card's stars. */
.eac-course .cs-meta {
    margin-top: auto;
    padding-top: 0px;
}

/* =============================================================
   COURSE CARD FOOTER — price left, a real button right.
   ============================================================= */

/* learnhub.css draws .cs-btn as a bare text link with an arrow that spreads on
   hover. The card wants a filled pill: at the foot of a card whose top half is
   a photograph, a line of coloured text does not read as the thing you press.
   Same accent as every other primary action on the page. */
.cs-foot .cs-btn {
    padding: 10px;
    border-radius: 999px;
    background: var(--edu-accent);
    color: #fff;
    font-size: 13.5px;
    box-shadow: 0 8px 18px -10px rgba(var(--primary-rgb), .9);
}

.cs-foot .cs-btn:hover {
    background: var(--edu-accent-2);
    color: #fff;
    /* the parent rule widens the gap on hover; the pill has a fixed width to
       keep, so the arrow nudges instead */
    gap: 7px;
}

.cs-foot .cs-btn .ic {
    font-size: 20px;
    transition: transform var(--transition);
}

.cs-foot .cs-btn:hover .ic {
    transform: translateX(3px);
}

/* The struck original now follows the current price (see the note in the
   view), so its spacing has to move with it. Smaller and quieter — it is
   context for the number beside it, not a second price. */
.cs-price del {
    margin-right: 0;
    margin-left: 7px;
    font-size: 13px;
    opacity: .75;
}

/* =============================================================
   CATEGORY CARD — smaller badge, larger words.
   ============================================================= */

/* The icon was carrying the card: at 54px it outweighed the name under it.
   Pulled back so the category — which is what somebody is actually scanning
   for — is the first thing read. */
.eac-cate .ci {
    width: 66px;
    height: 66px;
    margin-bottom: 16px;
    border-radius: 50px;
    font-size: 19px;
    background:var(--edu-accent) !important;
}

.eac-cate h3 {
    font-size: 20px;
}

.eac-cate p {
    font-size: 14px;
}

/* =============================================================
   TOP BAR — the design's navy, in both colour schemes.
   ============================================================= */

/* The strip carries BOTH classes: `.eac-topbar edu-topbar`. learnhub.css gives
   .eac-topbar a pale three-stop brand gradient and .edu-topbar the flat navy,
   and the two are the same specificity — so which one paints the bar depends
   entirely on source order inside a 10,000-line file. It was coming out as the
   gradient.

   Settled here instead, in the sheet that loads last, and stated as a literal
   rather than var(--edu-navy): that token is #141d33 on the dark ground and
   #0e2c48 on the light one, and this bar should be the same navy either way.
   --edu-navy itself is left alone, because the drop shadows and hairlines that
   read from it are surface colours and do follow the scheme. */
.eac-topbar.edu-topbar {
    /* background: #0e2c48; */
    background-image: none;
    border-bottom: 0;
}

/* The e-mail link is the one part of this bar that is still the OLD topbar's
   markup — `.eac-topbar-links a`, kept when the EDUCO strip replaced the rest,
   because the design dropped e-mail entirely and an academy that publishes one
   should not lose it to a restyle. Its colour is var(--color-body), a near
   black that was right on the pale gradient and is unreadable on the navy. */
.eac-topbar.edu-topbar .eac-topbar-links a {
    color: rgba(255, 255, 255, .86);
}

.eac-topbar.edu-topbar .eac-topbar-links a:hover {
    color: #fff;
}

/* Same for the announcement line, which carries .tb-note from the old bar
   alongside .edu-welcome. */
.eac-topbar.edu-topbar .tb-note {
    color: rgba(255, 255, 255, .92);
}

/* RESPONSIVE — one row while everything fits, then two centred rows, and the
   message is never cut short.

   learnhub.css left the bar as a wrapping flex row with the message capped at
   500px and clipped with an ellipsis. Below about 1300px the contact group
   dropped under the message, both rows sat against the left edge, and the
   sentence ended in "eAca…" — at every tablet width and on every page.

     ≥ 1400   one row: message, phone with its lead-in, e-mail, socials
     < 1400   the "For any question call us at" lead-in goes; the icon and the
              number say the same thing in a fifth of the room
     < 1280   two centred rows: the message, whole (it may wrap), then the
              contacts. learnhub.css already drops the e-mail below 992.
     < 576    the contacts stay one row where they fit, smaller icons */
.eac-topbar.edu-topbar .edu-topbar-in {
    flex-wrap: nowrap;
}

/* No ellipsis anywhere: a long message set on Front-End Settings wraps onto a
   second line rather than losing its end. */
.eac-topbar.edu-topbar .edu-welcome {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.eac-topbar.edu-topbar .edu-topbar-right {
    flex: none;
}

/* the number is one unit: never "555-" on one line and "0187" on the next */
.eac-topbar.edu-topbar .edu-call {
    white-space: nowrap;
}

@media (max-width: 1399px) {
    .edu-call__lead {
        display: none;
    }
}

@media (max-width: 1279px) {
    .eac-topbar.edu-topbar .edu-topbar-in {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 24px;
        padding-block: 10px;
        text-align: center;
    }

    .eac-topbar.edu-topbar .edu-welcome {
        flex-basis: 100%;
    }

    .eac-topbar.edu-topbar .edu-topbar-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 24px;
    }
}

@media (max-width: 575px) {
    .eac-topbar.edu-topbar .edu-welcome {
        font-size: 14px;
        line-height: 1.5;
    }

    /* learnhub.css stacks these in a column here; a row that wraps only
       when it has to keeps the bar two lines shorter on most phones */
    .eac-topbar.edu-topbar .edu-topbar-right {
        flex-direction: row;
        gap: 8px 16px;
        font-size: 14px;
    }

    .eac-topbar.edu-topbar .edu-social {
        gap: 6px;
    }

    .eac-topbar.edu-topbar .edu-social a {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
}

/* =============================================================
   BANNER — the faculty panel.
   ============================================================= */

/* EVEN ROWS.
   learnhub.css sets .edu-reslt-info p to 16px inside a 130px min-width column,
   which was drawn for "M.Sc. Students" — two short words. A real qualification
   ("M.Sc. Computer Science") wrapped to a second line, so one row stood taller
   than the two beside it and the card read as broken rather than as three
   people. Smaller, and held to one line with an ellipsis; the full text is on
   the teacher's own page, which this row links to. */
.edu-reslt-info {
    min-width: 0;
    flex: 1;
}

.edu-reslt-info h4,
.edu-reslt-info p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.edu-reslt-info p {
    font-size: 13.5px;
    line-height: 1.5;
}

.edu-reslt-info h4 {
    font-size: 15px;
    line-height: 1.4;
}

/* The rating sits at the row's end and must not be squeezed by a long name. */
.edu-reslt-grade {
    flex: none;
    margin-left: auto;
}

/* =============================================================
   CATEGORY CARD — the hover flicker, and the bar under it.
   ============================================================= */

/* THE FLICKER.
   .eac-cate:hover lifts the card 12px. Bring the pointer in from BELOW and the
   card slides up out from under it, which un-hovers it, which drops it back
   down onto the pointer, which hovers it again — a loop that reads as the card
   vibrating and never settling.

   ::before is free here (learnhub.css sets it to display:none once the EDUCO
   block lands) so it becomes an invisible strip bridging the gap the lift
   opens up. Full width, taller than the 12px travel, no background and no
   radius — it exists only to keep the pointer inside the element while the
   card moves. */
.eac-cate::before {
    display: block;
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 18px;
    /* the base rule sets inset:0, so bottom must be released or the box is
       over-constrained by top + bottom + height */
    bottom: auto;
    background: none;
    opacity: 1;
    border-radius: 0;
}

/* THE BAR.
   It used to be the second layer of the hover box-shadow —
   `0 26px 0 -10px <colour>` — and a shadow's spread is an absolute length, so
   the bar was always the card's width minus 20px however wide the card got.
   There is no way to say "70%" in a box-shadow, which is why it moves to
   ::after: a real element that can be sized in percent and centred. */
.eac-cate:hover,
.eac-cate:focus-visible {
    box-shadow: 0 20px 36px -18px rgba(var(--edu-navy-rgb), 0.28);
}

:root:not([data-scheme="light"]) .eac-cate:hover,
:root:not([data-scheme="light"]) .eac-cate:focus-visible {
    box-shadow: 0 20px 36px -16px rgba(0, 0, 0, 0.8);
}

.eac-cate::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    width: 70%;
    height: 14px;
    transform: translateX(-50%);
    border-radius: 0 0 12px 12px;
    /* --ci-b is the per-category accent the .ci tile is painted from, so the
       bar under each card matches its own icon rather than one shared hue. */
    background: rgba(var(--ci-b, 235, 127, 28), 0.34);
    opacity: 0;
    transition: opacity 0.32s cubic-bezier(0.2, 0.8, 0.25, 1);
    pointer-events: none;
}

.eac-cate:hover::after,
.eac-cate:focus-visible::after {
    opacity: 1;
}

:root:not([data-scheme="light"]) .eac-cate::after {
    background: rgba(var(--ci-b, 235, 127, 28), 0.42);
}

/* =============================================================
   SECTION BANDS — alternating grounds instead of a rule between.
   ============================================================= */

/* THE DIVIDER GOES.
   learnhub.css ends every .eac-section with a ::after: a full-width gradient
   hairline plus a 20px glow, on the reasoning that it should always be obvious
   where one band stops and the next begins. Alternating grounds say the same
   thing without drawing a line to say it, so the rule is now noise on top of a
   boundary the colour already makes. */
.eac-section::after {
    content: none;
}

/* EVERY SECOND SECTION SITS ON --bg-2.
   Scheme-aware already: #ffffff against the #f6f7fb page ground in light,
   #101625 against #0b0f1a in dark — a step in both, subtle in both.

   nth-of-type, not nth-child: the banner, the stats strip and the newsletter
   band are divs between these sections, and nth-child would count them and
   break the rhythm. nth-of-type sees only <section>. */
.eac-section:nth-of-type(even) {
    background: var(--bg-2);
}

/* .eac-cta-area is a <section> too, so it keeps its place in the count and the
   alternation stays regular. It no longer needs a special case: the gradient
   it used to paint has been replaced by the timer-bg artwork on the .eac-cta
   card INSIDE it, so the section itself is now just ground like any other and
   takes its turn in the alternation. */


@media (max-width: 991px) {
    .edu-tools .eac-btn-ghost.btn-login {
        height: 44px;
        padding: 0 16px;
    }
}

/* =============================================================
   HEADER — menu centred, without taking it out of the flow.
   ============================================================= */

/* .eac-nav carries `margin-left: auto`, which pushes the menu up against the
   tools. That reads as left-of-centre because the two sides are not the same
   width: the logo is around 200px, the tools are the 224px search pill plus
   the account button plus the burger. The menu was centred in the gap, and the
   gap is not centred on the page.

   A THREE-COLUMN GRID, not absolute positioning. The two outer tracks are both
   1fr, so they take an equal share whatever their contents weigh, and the
   middle track is sized to the menu — which lands it on the page's centre line
   while every element stays in normal flow.

   Desktop only: below 992px .eac-nav is the fixed slide-in drawer and must not
   be a grid item. */
@media (min-width: 992px) {
    .edu-nav-wrap {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }

    /* the auto margin was what pushed it right; the grid places it now */
    .edu-nav-wrap .edu-nav {
        margin-left: 0;
        justify-self: center;
    }

    .edu-nav-wrap .edu-tools {
        justify-self: end;
    }
}

/* THE ACCOUNT CHIP, IN THE BRAND COLOUR.
   The header shows .btn-login to a signed-out visitor and .ea-user — avatar
   plus name — to a signed-in one. Only the first was filled with the accent,
   so anyone actually logged in still saw a hairline outline. Both now carry
   the same fill, at the same height and radius as the search pill beside
   them. */
.edu-tools .ea-user {
    height: 50px;
    padding: 0 18px 0 7px;
    border-color: transparent;
    background: var(--edu-accent);
    color: #fff;
}

.edu-tools .ea-user:hover {
    background: var(--edu-accent-2);
    border-color: transparent;
    color: #fff;
}

/* The avatar sits on the fill, so its ring is white rather than the border
   colour it used against the old outline. */
.edu-tools .ea-user__avatar {
    border: 2px solid rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

@media (max-width: 991px) {
    .edu-tools .ea-user {
        height: 44px;
    }
}

/* THE COLLAPSED CHIP IS A CIRCLE.
   Below 1200px the chip shrinks to the avatar alone (see the rule near the
   top of the "max-width: 1199px" block above that hides the name). But the
   brand-colour rule just above is the same weight and comes later, so it put
   back the 50px height and the 18px/7px side padding: the "circle" came out
   as a lopsided orange lozenge with the photo pushed to its left. Stated
   once more here, one class heavier, with the photo filling the ring. */
@media (max-width: 1199px) {
    .eac-nav-tools.edu-tools .ea-user {
        width: 50px;
        height: 50px;
        padding: 3px;
        gap: 0;
        border-radius: 50%;
        justify-content: center;
    }

    .eac-nav-tools.edu-tools .ea-user__avatar {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 991px) {
    .eac-nav-tools.edu-tools .ea-user {
        width: 44px;
        height: 44px;
    }
}

/* =============================================================
   THE TEXT-SWAP BUTTON — vertical centring.
   ============================================================= */

/* .eac-btn-primary stacks two copies of its label in a column and clips them
   to a fixed height (30px, or 24px at .btn-sm), then slides the pair up by
   100% on hover so the second copy takes the first one's place.

   The label was never centred inside that clip: the spans are ordinary inline
   text whose line box is whatever the font metrics make it, so at 16px inside
   a 24px window it sat high — visible on the search dialog's button, which is
   the only place the effect runs at .btn-sm against a tall pill.

   Each copy is now a flex box exactly one window tall, centring its own text.
   The swap still moves by exactly 100%, so the animation is untouched. */
.eac-btn-primary .btn-text {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    line-height: 1;
}

/* Those nudges were compensating for the mis-centring above by eye. With the
   text properly centred they push it back off by a pixel. */
.eac-btn-primary .btn-text-wrap,
.eac-btn-primary.btn-sm .btn-text-wrap {
    transform: none;
}

/* =============================================================
   NO GRADIENT TEXT — the brand colour, flat, everywhere.
   ============================================================= */

/* learnhub.css paints five things by clipping a gradient to the glyphs:
   .eac-gradient-500 (the badge labels), .eac-grad-text (static headlines),
   .eac-logo-text .grad, .cd-box b (the countdown figures) and
   .eac-count .plus. Each needs three declarations undone, not one — the clip
   and the transparent fill both have to go, or the text stays invisible. */
.eac-gradient-500,
.eac-grad-text,
.eac-logo-text .grad,
.cd-box b,
.eac-count .plus {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: var(--primary);
    color: var(--primary);
}

/* .eac-gradient-splite is the sixth, and it is not done in CSS at all:
   learnhub.js splits the run into one <span class="reveal-child"> per
   character and writes an interpolated `color` straight onto each as an
   INLINE style (see retintGradients()). Inline styles outrank any stylesheet
   rule, so !important is the only thing that reaches them — the same reason
   the .eac-section-head rule already shipped in learnhub.css uses it.

   The JS keeps running and keeps writing its colours; this simply wins. That
   is deliberate: gutting retintGradients() would also break the per-character
   reveal animation, which is a separate effect worth keeping. */
.eac-gradient-splite,
.eac-gradient-splite .reveal-child {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: var(--primary) !important;
    color: var(--primary) !important;
}

/* =============================================================
   THE DOODLE PATTERNS — painted from the palette, not frozen.
   ============================================================= */

/* .edu-doodles (behind the banner) and .eac-pagehead::before (behind the inner
   page heads) are data: URI SVGs with stroke='%23eb7f1c' baked into the URL.
   A data URI cannot read a CSS custom property, so those two patterns stayed
   the design's original orange no matter what palette the academy picked —
   the one pair of marks on the site that never followed the theme.

   Flipped from background-image to mask-image: the same artwork now punches a
   hole that `background-color` fills, and that colour IS a token. Change the
   palette and the doodles change with it. */
.edu-doodles,
.eac-pagehead::before {
    -webkit-mask-image: var(--doodle-art);
    mask-image: var(--doodle-art);
    -webkit-mask-repeat: repeat;
    mask-repeat: repeat;
    -webkit-mask-size: 320px 320px;
    mask-size: 320px 320px;
    background-image: none;
    background-color: var(--primary);
}
:root {
    /* The doodle artwork, stroke switched to white so the mask is a clean
       alpha channel and the colour comes entirely from background-color. */
    --doodle-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 34h26v34H20zM50 34h26v34H50zM46 34v34'/%3E%3Cpath d='m130 18 6 13 14 2-10 10 3 14-13-7-13 7 3-14-10-10 14-2z'/%3E%3Cpath d='M190 62a10 10 0 0 1 3-19 14 14 0 0 1 26-4 10 10 0 0 1 2 23z'/%3E%3Cpath d='m26 152 6-20 22-22 8 8-22 22z'/%3E%3Ccircle cx='122' cy='128' r='19'/%3E%3Cpath d='M103 128h38M122 109a28 28 0 0 1 0 38 28 28 0 0 1 0-38'/%3E%3Cpath d='M206 148c-14-9-18-16-18-22a9 9 0 0 1 18-4 9 9 0 0 1 18 4c0 6-4 13-18 22z'/%3E%3Cpath d='M32 194h18M36 194v15l-11 21a4 4 0 0 0 4 6h26a4 4 0 0 0 4-6l-11-21v-15'/%3E%3Cpath d='M118 232a6 6 0 1 0 6-6v-30l20-6v29a6 6 0 1 0 6 6'/%3E%3Cpath d='M196 214h20M206 204v20'/%3E%3C/svg%3E");
}

/* =============================================================
   BANNER FINDER — the three select fields.
   ============================================================= */

/* Given colours: text #b9906d, ground #fffaf3, border #f7dfbe.
   learnhub.css builds .mySelect from --edu-input and --edu-line, which are
   scheme tokens shared with several other surfaces — so these are set on the
   field itself rather than by moving those tokens, which would have repainted
   the video-box, the faculty card and the topbar hairlines with them. */
.edu-banner-box .mySelect {
    color: #b9906d;
    background-color: #fffaf3;
    border-color: #f7dfbe;
}

/* The chevron is a data: URI baked into background-image, so recolouring the
   text does not reach it — it shipped as %238f86ab, a lilac-grey left over
   from the violet palette. Re-stated here as the field's own text colour so
   the two agree. */
.edu-banner-box .mySelect {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23b9906d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
}

/* The hairlines between the three fields, so the rules inside the panel match
   its inputs instead of staying on the shared --edu-line grey. */
.edu-banner-box .edu-banner-form-info::before {
    background-color: #f7dfbe;
}

/* =============================================================
   CATEGORY TILES — one family of oranges, not eight hues.
   ============================================================= */

/* learnhub.css gives each of the eight tiles its own hue: pink, green, blue,
   purple, orange, amber, indigo, teal. One --ci-a / --ci-b pair per card feeds
   three things at once — the icon tile's gradient, the slab that slides out
   below on hover, and the focus pulse ring — so a card hovered in the green
   slot lit up green on a page whose every other accent is orange.

   The eight are now shades of the one family, ordered light to deep, so the
   cards still read as eight distinct tiles without any of them leaving the
   brand. Only the hue changed; the light-to-dark direction inside each pair is
   the original's, which is what keeps the 135deg gradient reading as a
   gradient rather than a flat fill. */
.eac-cate:has(.ci-1) { --ci-a: 255, 196, 110; --ci-b: 255, 166, 64; }
.eac-cate:has(.ci-2) { --ci-a: 255, 183, 94;  --ci-b: 255, 148, 51; }
.eac-cate:has(.ci-3) { --ci-a: 253, 170, 80;  --ci-b: 249, 134, 38; }
.eac-cate:has(.ci-4) { --ci-a: 250, 157, 66;  --ci-b: 242, 120, 28; }
.eac-cate:has(.ci-5) { --ci-a: 255, 205, 124; --ci-b: 252, 175, 72; }
.eac-cate:has(.ci-6) { --ci-a: 252, 163, 72;  --ci-b: 244, 126, 30; }
.eac-cate:has(.ci-7) { --ci-a: 245, 145, 58;  --ci-b: 232, 108, 22; }
.eac-cate:has(.ci-8) { --ci-a: 240, 138, 52;  --ci-b: 224, 100, 16; }

/* =============================================================
   OFFER BAND — the timer-bg artwork, and the tiles on it.
   ============================================================= */

/* The band is now a photograph, not a gradient: public/assets/site/images/
   timer-bg.png, a 1964x592 illustration with the two students already in it
   and a pale centre column left clear for the copy.

   cover + center, so the middle stays put and it is the two students at the
   edges that get cropped as the viewport narrows — they are decoration, the
   words are not. A min-height near the artwork's own 3.3:1 keeps the band from
   collapsing under short copy and showing a sliver of the picture. */
.eac-cta {
    /* padding: 62px 40px 66px; */
    border: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.eac-cta-area .fx-canvas{
    display: none;
}
/* The artwork carries its own light and shape; the template's radial wash and
   glow orb sat on top of it as a grey film. */
.eac-cta::after {
    content: none;
}

.eac-cta .eac-glow {
    display: none;
}

/* ---- the badge -------------------------------------------------------- */

/* A soft apricot pill with the em-dashes the reference sets around the label.
   .eac-badge-gradient ships with a border and a sparkle icon; on this ground
   the pill reads better flat and wordless. */
.eac-cta .eac-badge-gradient {
    padding: 9px 22px;
    border: 0;
    border-radius: 999px;
    background: #fde8cd;
    box-shadow: none;
}

.eac-cta .eac-badge-gradient .ic {
    display: none;
}

.eac-cta .eac-gradient-500 {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.eac-cta .eac-gradient-500::before,
.eac-cta .eac-gradient-500::after {
    content: "—";
    margin: 0 9px;
    opacity: .75;
    display:none
}

/* ---- the headline ----------------------------------------------------- */

/* Two lines: the first in the deep navy the artwork is drawn against, the
   second in the brand orange. $gradientTitle() already wraps the closing words
   in .eac-gradient-splite, so the split needs no markup change. */
.eac-cta .eac-title {
    max-width: 15ch;
    margin: 0  auto 34px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.16;
    letter-spacing: -1px;
    color: #16324f;
}

/* ---- the four tiles --------------------------------------------------- */

.eac-cta .eac-countdown {
    gap: 16px;
    margin-bottom: 38px;
}

/* Near-white tiles on the warm ground, no blur film — the reference's are
   opaque and sit slightly cool against the paper. */
.eac-cta .cd-box {
    min-width: 104px;
    padding: 18px 16px 16px;
    border-radius: 16px;
    background: #fbfbfd;
    border: 1px solid rgba(22, 50, 79, .05);
    backdrop-filter: none;
    box-shadow: 0 10px 26px -18px rgba(22, 50, 79, .35);
}

/* The figures were gradient-clipped; they are flat brand orange now, like
   every other number on the site. */
.eac-cta .cd-box b {
    font-size: clamp(30px, 3.4vw, 42px);
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: var(--primary);
    color: var(--primary);
}

.eac-cta .cd-box span {
    margin-top: 6px;
    font-size: 13.5px;
    color: #6b7c8e;
}

/* ---- the button ------------------------------------------------------- */

/* A wide orange pill with the arrow after the label. .eac-btn-primary paints
   itself from --grad-btn; flattened to the brand colour so it matches the
   figures above it rather than running a second gradient across the band. */
.eac-cta .eac-btn-primary {
    padding: 17px 34px;
    border-radius: 999px;
    background: var(--primary);
    background-image: none;
    font-size: 17px;
    box-shadow: 0 16px 30px -14px rgba(var(--primary-rgb), .85);
}

.eac-cta .eac-btn-primary:hover {
    background: var(--primary);
}

/* THE SWEEP, MOVED OFF ::after.

   learnhub.css's "BUTTONS — one hover, everywhere" block puts the light band
   that crosses every button on ::after. This band's arrow was already there,
   and the two collided: the arrow inherited the sweep's absolute, top-left,
   full-bleed box and printed in the button's CORNER over the label, while
   this button became the only one on the site with no sweep at all.

   ::before is free here. .eac-btn-primary normally paints its gradient face
   on it, and the rule above flattens this button to a solid colour, so the
   layer sits empty. The sweep moves onto it and the arrow gets its inline
   box back — one hover shared with every other button, arrow still after
   the label. Keep the two declarations in sync with learnhub.css. */
.eac-cta .eac-btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
        112deg,
        transparent 30%,
        rgba(255, 255, 255, 0.4) 47%,
        rgba(255, 255, 255, 0.4) 53%,
        transparent 70%
    );
    transform: translateX(-135%);
    transition: transform 0.62s cubic-bezier(0.3, 0.85, 0.3, 1);
}

.eac-cta .eac-btn-primary:hover::before {
    transform: translateX(135%);
}

/* The arrow the reference sets after the label. ::after on the button rather
   than markup, because .btn-text-wrap holds two stacked copies of the label
   and an icon inside it would be duplicated and clipped by the swap.
   `position: static` and `transform: none` undo the shared block's box: it
   parks the sweep off-screen at translateX(-135%), which on a 20px arrow is
   27px of leftward shift — the arrowhead was landing on the "w" of the
   label, 27px short of the box the layout had given it. */
.eac-cta .eac-btn-primary::after {
    content: "";
    position: static;
    transform: none;
    flex: none;
    width: 20px;
    height: 20px;
    margin-left: 12px;
    background: currentColor;
    -webkit-mask: var(--cta-arrow) center / contain no-repeat;
    mask: var(--cta-arrow) center / contain no-repeat;
    transition: transform .28s var(--ease-out);
}

.eac-cta .eac-btn-primary:hover::after {
    transform: translateX(4px);
}

/* The arrow is a flex ITEM again, so it takes 32px of the button's inner
   width that it did not take while it was absolutely positioned. The label
   wrap is the only flexible item beside it, so the browser shrank the wrap
   by that much — and the wrap's own overflow is visible here, so the label
   did not clip, it spilled straight over the arrowhead. Pinning the wrap to
   its content width makes the BUTTON grow instead, which is what a pill
   sized by its label should do. */
.eac-cta .eac-btn-primary .btn-text-wrap {
    flex: none;
}

@media (prefers-reduced-motion: reduce) {
    .eac-cta .eac-btn-primary::before {
        display: none;
    }
}

:root {
    --cta-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
}

@media (max-width: 767px) {
    .eac-cta {
        padding: 46px 20px 50px;
        min-height: 0;
    }

    .eac-cta .cd-box {
        min-width: 74px;
        padding: 14px 10px 12px;
    }
}

/* =============================================================
   SCRIPTS THAT JOIN THEIR LETTERS — Hindi first
   -------------------------------------------------------------
   Devanagari hangs every letter of a word from one continuous
   headline stroke (the shirorekha), and Arabic joins its letters
   outright. Tracking pulls those words apart into loose glyphs,
   so the template's letter-spaced eyebrows and badges ("हमारे
   शिक्षक" on the Instructors banner) read as broken type. Latin
   keeps its tracking; these locales get none.

   The font stack gains the platforms' own Devanagari faces.
   Lexend and DM Sans carry no Devanagari at all, so the browser
   was already falling back glyph by glyph — naming the fallbacks
   picks a matching weight and keeps one face across a heading
   rather than whatever each platform reaches first.

   Both rules key off <html lang>, which site/layout.php sets from
   the request's locale.
   ============================================================= */
html:lang(hi),
html:lang(mr),
html:lang(ne) {
    --font-primary:
        "Lexend", "DM Sans", "Nirmala UI", "Noto Sans Devanagari",
        "Kohinoor Devanagari", "Mangal", -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
}

html:lang(hi) body *,
html:lang(mr) body *,
html:lang(ne) body *,
html:lang(ar) body * {
    letter-spacing: normal !important;
}

/* Title case is an English habit. The template capitalises every word of
   its hero heading, buttons, finder labels and figures — harmless in
   English, wrong elsewhere: German capitals mark nouns, so "Kurse laufen"
   printed as "Kurse Laufen", and Spanish or French would read the same way.
   A translation already carries the capitals its language wants. */
html:not(:lang(en)) :is(
    .edu-banner-left h1,
    .edu-banner-play-icon a,
    .edu-banner-play-icon button.video-popup,
    .edu-banner-form-info label,
    .edu-video-content h4,
    .edu-video-content p,
    .edu-banner-reslt-box > h4,
    .edu-reslt-info h4,
    .edu-reslt-info p,
    .edu-banner-btns .edu-btn
) {
    text-transform: none;
}
