/* Accurate English – course pages (template-ae-courses.php). Builds on ae-home.css tokens and components. */

/* ---------- Page hero (compact: height follows content; price card on the right) ---------- */
.phero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--dark); }
.ae-site .phero__bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: -2; }
.phero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16,14,18,.82) 0%, rgba(16,14,18,.6) 50%, rgba(16,14,18,.3) 100%); }
.phero__inner { display: grid; gap: 24px 48px; align-items: center; padding-block: clamp(36px, 5vw, 68px); }
@media (min-width: 960px) { .phero--card .phero__inner { grid-template-columns: minmax(0, 1fr) 340px; } }
.phero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: .9rem; }
.ae-site .phero h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem); line-height: 1.12; max-width: 20ch; margin-bottom: .3em; letter-spacing: -.01em; }
.ae-site .phero__sub { font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); color: #ece6ea; max-width: 38rem; margin-bottom: 1.2rem; }
.ae-site .phero__eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.phero__eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); flex: none; }
.ae-site .phero__badge { display: inline-flex; align-items: center; min-height: 30px; padding: 3px 12px; margin: 0; border-radius: 999px; background: #e8f6ee; color: #157a3c; font-weight: 700; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
.phero .btn-row { margin-top: .2rem; }
/* Glass price card */
.phero__card { display: grid; gap: 14px; padding: 22px; border-radius: calc(var(--radius) + 4px); background: rgba(20,18,22,.55); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 18px 40px rgba(0,0,0,.28); }
.ae-site .phero__price { margin: 0; font: 700 clamp(2rem, 1.7rem + 1vw, 2.6rem)/1 var(--font-head); color: #fff; }
.phero__price span { font: 500 .85rem var(--font); color: #ddd4d9; margin-left: 4px; }
.ae-site .phero__card .bf-tag { margin: 0; }
.phero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ae-site .phero__chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); color: #fff; font-size: .86rem; font-weight: 600; text-decoration: none; transition: background .2s, border-color .2s; }
.ae-site .phero__chips a:hover { background: #fff; color: var(--burgundy); border-color: #fff; }
.ae-site p.bf-tag--dark { background: rgba(242,182,50,.14); border-color: rgba(242,182,50,.55); color: #fbe7b8; }
.ae-site p.bf-tag--dark strong { color: #fff; }
.ae-site p.bf-tag--dark svg { color: var(--gold); }
.ae-site p.bf-tag--center { display: inline-flex; margin-inline: auto; text-align: left; }
@media (max-width: 959px) { .phero__card { max-width: 460px; } }
@media (max-width: 760px) {
  .phero::after { background: linear-gradient(180deg, rgba(16,14,18,.7) 0%, rgba(16,14,18,.86) 100%); }
  .phero .btn-row .btn { flex: 1 1 100%; }
  .phero__card { max-width: none; padding: 18px; }
}

/* Logo strip without heading */
.clients--bare .marquee { margin-bottom: 0; border-bottom: 0; }
.ae-site .clients--bare { padding-block: 0; }

/* ---------- Course rows (image + details) ---------- */
.crows { display: grid; gap: clamp(28px, 4vw, 44px); margin-top: clamp(24px, 3vw, 36px); }
.crow { display: grid; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: 0 6px 22px rgba(20,24,31,.06); scroll-margin-top: calc(var(--header-h) + 16px); }
@media (min-width: 900px) {
  .crow { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.crow__media { position: relative; margin: 0; padding: 0; background: var(--tint); }
/* Image fills the left column edge to edge (no top/left/bottom gap); only the text column has padding */
.ae-site .crow__media img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; object-position: center; border-radius: 0; box-shadow: none; }
@media (max-width: 899px) { .ae-site .crow__media img { height: auto; min-height: 0; aspect-ratio: 16 / 9; } }
.crow .badge--bf { top: 14px; right: 14px; }
.crow__body { padding: clamp(22px, 3vw, 40px); }
.ae-site .crow h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); margin-bottom: .6rem; }
.ae-site .crow h4 { font: 700 .82rem/1.3 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin: 1.3rem 0 .7rem; }
.crow__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.ae-site .crow__price { margin: 0; font: 700 1.5rem/1.2 var(--font-head); color: var(--burgundy); }
.crow__price span { font: 500 .8rem var(--font); color: var(--muted); }
.ae-site .crow .bf-tag { margin: 0; padding: 8px 12px; }
.crow__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 1.5rem; }
.ae-site .crow--photo .crow__media img { min-height: 280px; }
.ae-site .checklist--cols { gap: 8px 28px; }
@media (min-width: 1100px) { .ae-site .crow .checklist--cols { grid-template-columns: 1fr 1fr; } }
.checklist--plain li { font-size: .95rem; }
.ae-site .numlist { list-style: none; counter-reset: n; display: grid; gap: 8px; margin: 0; }
.numlist li { counter-increment: n; position: relative; padding-left: 40px; min-height: 28px; font-weight: 600; color: var(--ink); }
.numlist li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--burgundy); color: #fff; font-size: .8rem; font-weight: 700; }
.price-card__media--soft { background: linear-gradient(180deg, #f3f6fa, #e7edf4); padding: 18px 18px 0; }

/* ---------- Cards ---------- */
.cards3, .cards4 { display: grid; gap: 22px; margin-top: clamp(24px, 3vw, 36px); }
@media (min-width: 860px) { .cards3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 600px) { .cards4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards4 { grid-template-columns: repeat(4, 1fr); } }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ae-site .card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 18px; }
.ae-site .card h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.ae-site .card p { font-size: .95rem; }
.ae-site .card__kicker { font: 700 .74rem/1.3 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-bottom: .4rem; }
.card .text-link { margin-top: auto; }

/* ---------- Numbered tiles ---------- */
.tiles { display: grid; gap: 18px; margin-top: clamp(24px, 3vw, 36px); }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .tiles { grid-template-columns: repeat(4, 1fr); } .tiles--3 { grid-template-columns: repeat(3, 1fr); } }
.tile { position: relative; padding: 24px 22px 20px; border-radius: var(--radius); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.ae-site .tile h3 { color: #fff; font-size: 1.12rem; margin-bottom: .4rem; }
.ae-site .tile p { margin: 0; color: #e7e3e6; font-size: .95rem; }
.tile__num { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; margin-bottom: 14px; border-radius: 10px; background: var(--gold); color: #1a1206; font: 700 .9rem var(--font-head); }
.tile--light { background: #fff; border-color: var(--line); backdrop-filter: none; transition: transform .25s, box-shadow .25s; }
.tile--light:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ae-site .tile--light h3 { color: var(--ink); }
.ae-site .tile--light p { color: var(--text); }
.tile--light .tile__num { background: var(--tint); color: var(--slate); }
.ae-site .tile--compact p { color: var(--ink); font-weight: 500; }
.sub-h { margin-top: clamp(20px, 3vw, 32px); }

/* Dark "why" band */
.why { color: #fff; isolation: isolate; overflow: hidden; }
.why::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgba(14,18,28,.92), rgba(28,22,36,.88)); }
.ae-site .why h2 { color: #fff; }
.why__cta { margin-top: clamp(28px, 4vw, 44px); }
.ae-site .why__statement { max-width: 46rem; margin: 0 auto 1.4rem; font: 600 clamp(1.05rem, 1rem + .4vw, 1.3rem)/1.5 var(--font-head); color: #fff; }
.ae-site .btn--gold { background: linear-gradient(180deg, #ffd970, var(--gold) 55%, #e29a12); border-color: transparent; color: #1a1206; }
.ae-site .btn--gold:hover { color: #1a1206; filter: brightness(1.05); background: linear-gradient(180deg, #ffd970, var(--gold) 55%, #e29a12); box-shadow: 0 8px 20px rgba(242,182,50,.35); }
.ae-site .btn--lg { min-height: 56px; padding: .85em 2em; font-size: 1.05rem; }

/* Pull quote + save strip */
.pull-quote { margin: 0 auto clamp(32px, 5vw, 56px); max-width: 52rem; text-align: center; }
.ae-site .pull-quote blockquote { margin: 0 0 .6rem; font: 500 clamp(1.1rem, 1rem + .7vw, 1.45rem)/1.55 var(--font-head); color: var(--ink); }
.pull-quote figcaption { font-weight: 600; color: var(--slate); }
.pull-quote figcaption::before { content: "— "; }
.save-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 28px; padding: 18px 22px; border-radius: var(--radius); background: #e8f6ee; border: 1px solid #bfe3cc; }
.ae-site .save-strip p { margin: 0; color: #14532d; font-weight: 500; }
.save-strip strong { color: #157a3c; }

.features--icons .feature img { width: 48px; height: 48px; }
.features--icons .feature { grid-template-columns: 48px 1fr; }

/* Statement band */
.statement { background: linear-gradient(120deg, var(--slate-dark), var(--slate)); color: #fff; }
.ae-site .statement p { margin: 0 auto; max-width: 48rem; font: 600 clamp(1.25rem, 1rem + 1.2vw, 1.9rem)/1.4 var(--font-head); color: #fff; }

/* Two panels */
.twocol { display: grid; gap: 22px; }
@media (min-width: 900px) { .twocol { grid-template-columns: 1fr 1fr; align-items: start; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 3vw, 36px); }
.ae-site .panel h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); }
.panel--accent { border-top: 4px solid var(--burgundy); box-shadow: var(--shadow); }
.panel--accent .checklist { margin-bottom: 1.4rem; }

/* ---------- FAQ ---------- */
.faq__list { max-width: 52rem; margin: clamp(20px, 3vw, 32px) auto 0; display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s, border-color .2s; }
.faq__item[open] { border-color: #cfd8e3; box-shadow: 0 6px 18px rgba(20,24,31,.06); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 20px; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.ae-site .faq__item summary h3 { margin: 0; font-size: 1.02rem; line-height: 1.4; }
.faq__item summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tint); color: var(--burgundy); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 20px 18px; }
.ae-site .faq__a p:last-child { margin-bottom: 0; }
.ae-site .faq__a ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 4px; }

/* ---------- Enrol box ---------- */
.enroll { isolation: isolate; overflow: hidden; }
.enroll::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,18,28,.55), rgba(14,18,28,.75)); }
.enroll__card { display: grid; max-width: 980px; margin-inline: auto; background: #fff; border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
@media (min-width: 860px) { .enroll__card { grid-template-columns: 1fr 1.1fr; } }
.enroll__head { padding: clamp(24px, 4vw, 44px); background: linear-gradient(160deg, var(--burgundy), #6d1840); color: #fff; }
.ae-site .enroll__head h2 { color: #fff; }
.ae-site .enroll__head .lede { color: #f6e7ee; }
.ae-site .enroll__price { margin: 1.2rem 0 .8rem; font: 700 clamp(2.4rem, 2rem + 2vw, 3.4rem)/1 var(--font-head); color: #fff; }
.enroll__price span { font: 500 .9rem var(--font); color: #f1dbe5; margin-left: 6px; }
.ae-site .enroll__head .bf-tag { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; margin: 0; }
.ae-site .enroll__head .bf-tag svg { color: var(--gold); }
.enroll__body { padding: clamp(24px, 4vw, 44px); }
.enroll__body .checklist { margin-bottom: 1.6rem; }

/* ---------- People, guarantee, ready ---------- */
.people { display: grid; gap: 22px; margin-top: clamp(24px, 3vw, 36px); }
@media (min-width: 900px) { .people { grid-template-columns: 1fr 1fr; } }
.person { background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 3vw, 32px); }
.ae-site .person__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; box-shadow: 0 0 0 4px var(--gold-soft); }
.ae-site .person h3 { font-size: 1.2rem; }
.more summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; font-weight: 700; color: var(--burgundy); list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-size: 1.2rem; transition: transform .2s; }
.more[open] summary::after { transform: rotate(45deg); }
.guarantee { display: grid; gap: 24px; align-items: center; max-width: 60rem; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 4vw, 40px); }
@media (min-width: 720px) { .guarantee { grid-template-columns: 180px 1fr; } }
.ae-site .guarantee img { width: 180px; margin-inline: auto; }
.ae-site .guarantee p:last-child { margin: 0; }
.cta-split { background: linear-gradient(135deg, #1c1614, #120f0e); color: #fff; }
.ae-site .cta-split h2 { color: #fff; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); }
.split--top { align-items: start; }
.prose { max-width: 52rem; margin-top: clamp(28px, 4vw, 44px); padding-top: clamp(24px, 3vw, 32px); border-top: 1px solid var(--line); }
.ready-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 1.2rem 0; }
.ae-site .ready-buy .enroll__price { margin: 0; font-size: 2rem; color: var(--burgundy); }
.ready-buy .enroll__price span { color: var(--muted); }
.ae-site .ready-buy .bf-tag { margin: 0; }
.ae-site .ready-photo img { margin-inline: auto; max-height: 520px; width: auto; }

/* Testimonials without photos */
.avatar--quote { font: 700 1.8rem/1 var(--font-head); padding-top: 10px; }

/* ---------- Slim closable Black Friday bar (course pages) ---------- */
.bfbar { position: relative; background: radial-gradient(120% 220% at 50% 0%, #241d1b 0%, #120f0e 60%), #120f0e; color: #fff; border-bottom: 1px solid rgba(242,182,50,.35); overflow: hidden; transition: opacity .25s, transform .25s; }
.bfbar::before, .bfbar::after { content: ""; position: absolute; top: 0; bottom: 0; width: 160px; pointer-events: none; opacity: .55; background: radial-gradient(circle, rgba(242,182,50,.9) 0 1px, transparent 1.6px) 0 0 / 14px 14px, radial-gradient(circle, rgba(242,182,50,.6) 0 1px, transparent 1.4px) 7px 7px / 18px 18px; -webkit-mask-image: linear-gradient(90deg, #000, transparent); mask-image: linear-gradient(90deg, #000, transparent); }
.bfbar::before { left: 0; }
.bfbar::after { right: 0; transform: scaleX(-1); }
.ae-bf-closed .bfbar { display: none; }
.bfbar.is-closing { opacity: 0; transform: translateY(-8px); }
.bfbar__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 10px 24px; width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; padding: 18px 52px 18px 0; min-height: 76px; }
.ae-site .bfbar p { margin: 0; }
.ae-site .bfbar__title { font: 900 1.25rem/1 var(--font); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.bfbar__black { background: linear-gradient(180deg, #ffd567, var(--gold) 50%, #e29a12); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bfbar__sale { color: #fff; }
.ae-site .bfbar__offer { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: .98rem; }
.ae-site .bfbar__offer a { color: #fff; text-decoration: none; }
.ae-site .bfbar__offer a:hover { color: var(--gold); }
.bfbar__offer strong { font-weight: 800; font-style: italic; font-size: 1.15em; color: var(--gold); margin-right: 2px; }
.bfbar__dates { padding: 2px 8px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-size: .78rem; color: #e9dfd2; }
.ae-site .bfbar__bonus { display: flex; align-items: center; gap: 12px; padding-left: 24px; border-left: 1px solid rgba(242,182,50,.45); font-size: .88rem; line-height: 1.3; color: #f1ece6; }
.bfbar__bonus-text > span { display: block; white-space: nowrap; }
.bfbar__bonus svg { flex: none; width: 2.6em; height: 2.6em; color: var(--gold); filter: drop-shadow(0 0 .3em rgba(242,182,50,.35)); }
.bfbar__bonus strong { color: var(--gold); font-weight: 800; }
.ae-site .bfbar__cta { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 20px; line-height: 1.2; border-radius: 999px; background: linear-gradient(180deg, #ffe08a, var(--gold) 50%, #e29a12); color: #1a1206; font: 700 .85rem/1.2 var(--font); text-decoration: none; white-space: nowrap; transition: filter .2s, transform .2s; }
.ae-site .bfbar__cta:hover { color: #1a1206; filter: brightness(1.06); transform: translateY(-1px); }
.bfbar__close { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #d9d2cc; cursor: pointer; }
.bfbar__close:hover { background: rgba(255,255,255,.1); color: #fff; }
.bfbar__close svg { width: 20px; height: 20px; }
.bfbar a:focus-visible, .bfbar__close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 1360px) { .ae-site .bfbar__bonus { display: none; } }
@media (max-width: 900px) { .bfbar__dates { display: none; } .bfbar__inner { gap: 8px 14px; } .ae-site .bfbar__title { font-size: 1.05rem; } .ae-site .bfbar__offer { font-size: .9rem; } }
@media (max-width: 780px) {
  /* Phones: title + offer stacked on the left, short "See Offers" button on the right, close at the edge */
  .bfbar__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 16px 44px 16px 0; min-height: 0; }
  .ae-site .bfbar__title { grid-column: 1; font-size: 1.02rem; }
  .ae-site .bfbar__offer { grid-column: 1; font-size: .86rem; white-space: normal; }
  .bfbar__dates { display: none; }
  .ae-site .bfbar__cta { grid-column: 2; grid-row: 1 / 3; min-height: 42px; padding: 0 16px; font-size: .82rem; }
  .bfbar__cta-long { display: none; }
  .bfbar__close { top: 50%; transform: translateY(-50%); }
}
/* Hero with price card: text → card → secondary button on small screens; text + button left, card right on desktop */
.phero--card .phero__inner { grid-template-areas: "text" "card" "btns"; }
.phero--card .phero__text { grid-area: text; }
.phero--card .phero__aside { grid-area: card; }
.phero--card .phero__btns { grid-area: btns; margin: 0; }
.ae-site .phero--card .phero__sub { margin-bottom: 0; }
@media (min-width: 960px) {
  .phero--card .phero__inner { grid-template-areas: "text card" "btns card"; row-gap: 22px; }
  .phero--card .phero__text { align-self: end; }
  .phero--card .phero__btns { align-self: start; }
}

/* Price lines in the hero card and enrol box: big price + struck regular price on one line, label below */
.ae-site .phero__price, .ae-site .enroll__price { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; justify-content: start; column-gap: 12px; row-gap: 10px; }
.ae-site .phero__price del, .ae-site .enroll__price del { font: 600 .5em/1 var(--font); color: #c9bfc5; text-decoration-thickness: 2px; text-decoration-color: rgba(255,255,255,.55); }
.ae-site .ready-buy .enroll__price del { color: var(--muted); text-decoration-color: currentColor; }

/* Price lines: green sale price, red struck regular price, Black Friday tag + saving below */
.ae-site .phero__price > .price-meta, .ae-site .enroll__price > .price-meta { grid-column: 1 / -1; justify-self: start; }
.ae-site .phero__price { color: #86e4a8; }
.ae-site .phero__price del { color: #ff8f99; text-decoration-color: currentColor; }
.ae-site .phero .save-note { color: #f3eef0; }
.enroll__head { background: linear-gradient(160deg, #241d1b, #120f0e); border-right: 1px solid rgba(242,182,50,.25); }
.ae-site .enroll__price { color: #86e4a8; }
.ae-site .enroll__price del { color: #ff8f99; text-decoration-color: currentColor; }
.ae-site .enroll__head .save-note { color: #fff; }
.ae-site .enroll__head .eyebrow, .ae-site .enroll__head h2 { color: #fff; }
.ae-site .ready-buy .enroll__price { color: #157a3c; }
.ae-site .ready-buy .enroll__price del { color: #c8102e; }
.ae-site .ready-buy .save-note { color: var(--ink); }
/* "You save" pill on dark backgrounds (hero card, enrol box) */
.ae-site .phero .save-note, .ae-site .enroll__head .save-note { background: rgba(28,154,77,.2); border-color: rgba(110,214,150,.45); color: #a8ecc2; }
/* Sale price on dark cards: light tint of the CTA colour so it stays readable */
.ae-site .phero__price, .ae-site .enroll__price { color: #f7a8cb; }
.ae-site .ready-buy .enroll__price { color: var(--burgundy); }
/* Dark price cards (hero + bottom box): white sale price, red struck regular price */
.ae-site .phero__price, .ae-site .enroll__price { color: #fff; }
.ae-site .phero__price del, .ae-site .enroll__price del { color: #ff6b7a; text-decoration-color: currentColor; }
.ae-site .ready-buy .enroll__price { color: var(--burgundy); }
.ae-site .ready-buy .enroll__price del { color: #c8102e; }

/* ---------- Sticky buy bar (phones, course sales pages) ---------- */
.buybar { display: none; }
@media (max-width: 760px) {
  .buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(20,24,31,.12); transform: translateY(110%); transition: transform .25s ease; }
  .buybar.is-on { transform: none; }
  .buybar__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
  .ae-site .buybar__price strong { font: 700 1.2rem/1.1 var(--font-head); color: var(--burgundy); }
  .ae-site .buybar__price del { font-size: .85rem; color: #c8102e; }
  .buybar__price .save-note { flex-basis: auto; }
  .ae-site .buybar__cta { flex: none; min-height: 44px; }
}
@media (max-width: 360px) { .buybar__price .save-note { display: none; } }
/* Hero photo framing per page (desktop strip vs tall phone crop) */
.ae-site .phero__bg { object-position: var(--pos, 50% 50%); }
@media (max-width: 760px) { .ae-site .phero__bg { object-position: var(--pos-m, var(--pos, 50% 50%)); } }
/* The image optimiser wraps images in <picture> and moves our class onto it: make the hero <picture> and its <img> fill the hero */
.ae-site picture.phero__bg { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; }
.ae-site picture.phero__bg img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--pos, 50% 50%); }
@media (max-width: 760px) { .ae-site picture.phero__bg img { object-position: var(--pos-m, var(--pos, 50% 50%)); } }
/* Course rows: "Save 25%" badge on the left */
.crow .badge--bf { left: 14px; right: auto; }

/* Phrasal Verbs intro: text + video side by side, then a "Your guide" panel with two balanced columns */
.split--intro { align-items: center; }
.ae-site .split--intro h2 { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.1rem); }
.ae-site .split--intro .lede { margin-bottom: 1.2rem; }
.split--intro .video { box-shadow: 0 18px 40px rgba(20,24,31,.18); }
.guide { margin-top: clamp(36px, 5vw, 60px); padding: clamp(22px, 3.5vw, 40px); background: linear-gradient(160deg, #f6f9fc, var(--tint)); border: 1px solid #dfe8f1; border-radius: calc(var(--radius) + 6px); }
.guide__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ae-site .guide__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold-soft); }
.ae-site .guide__head .eyebrow { margin: 0 0 2px; }
.ae-site .guide__name { margin: 0; font: 700 1.1rem/1.2 var(--font-head); color: var(--ink); }
.guide__cols { display: grid; gap: 0 clamp(24px, 4vw, 48px); }
@media (min-width: 900px) { .guide__cols { grid-template-columns: 1fr 1fr; } }
.ae-site .guide__cols p { font-size: .98rem; line-height: 1.7; }
.guide__cta { margin-top: .4rem; }
@media (max-width: 760px) { .guide__cta .btn { flex: 1 1 100%; text-align: center; } }

/* Articles Course page */
.split--lisa { align-items: center; }
.ae-site .lisa-point img { width: min(100%, 460px); margin-inline: auto; filter: drop-shadow(0 20px 30px rgba(20,24,31,.12)); }
@media (min-width: 900px) { .split--lisa { grid-template-columns: .9fr 1.1fr; } }
.ae-site .split--lisa h2 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.95rem); }
.ae-site .why-note { max-width: 44rem; margin: clamp(24px, 3vw, 36px) auto 0; font: 600 1.05rem/1.55 var(--font-head); color: var(--ink); }
.ae-site .panel h3 { font-size: 1.2rem; }
.ae-site .panel__h { margin-top: 1.4rem; }
.ae-site .statement .statement__sub { margin-top: .8rem; font: 500 1.02rem/1.5 var(--font); color: #e3ebf3; }
.ae-site .enroll__note { margin: 1rem 0 0; }
.video--embed { cursor: default; }
/* Five testimonials: 3 + 2, second row centred */
@media (min-width: 860px) { .ae-view-articles .testimonials { grid-template-columns: repeat(6, 1fr); } .ae-view-articles .testimonial { grid-column: span 2; } .ae-view-articles .testimonial:nth-child(4) { grid-column: 2 / span 2; } }
.ae-site .lisa-point img { filter: none; }

/* One red for every struck-through regular price (readable on light and dark backgrounds) */
.ae-site .phero__price del, .ae-site .enroll__price del, .ae-site .ready-buy .enroll__price del, .ae-site .buybar__price del, .ae-site .price-bf del, .ae-site .price-rows del { color: #e5484d; text-decoration-color: currentColor; }

/* Hero: "Black Friday" + "You save" tags sit above the price card */
.phero__aside { display: grid; gap: 10px; align-content: start; }
.ae-site .phero__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.ae-site .phero__tags .save-note { background: rgba(28,154,77,.22); border-color: rgba(110,214,150,.5); color: #b6f0cc; }
@media (max-width: 959px) { .phero__aside { max-width: 460px; } }
@media (max-width: 760px) { .phero__aside { max-width: none; } }
/* "Save 25%" badge: even top/bottom padding, clear space below */
.ae-site .phero__badge { min-height: 0; padding: 6px 12px; line-height: 1; }
.phero__meta { margin-bottom: 1.1rem; }
/* Divi's style-static.css removes bottom padding from the last <p> in a block; keep the badge evenly padded */
.ae-site p.phero__badge { padding: 6px 12px; }

/* BLACK FRIDAY countdown in the course-page bar (same timing as the homepage banner; shown by ae-home.js). Remove after the sale. */
.ae-site .bfbar__cd { display: flex; align-items: center; gap: 12px; padding-left: 24px; border-left: 1px solid rgba(242,182,50,.45); white-space: nowrap; }
.ae-site .bfbar__cd-label { color: #f6d37a; font: 700 .78rem/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; }
.ae-site .bfbar__cd-sep { opacity: .6; }
.ae-site .bfbar__cd .cd-units { font-size: 13px; }
.ae-site .bfbar__cd-long { display: none; } /* the dates pill already says "extended until Dec 4" on wide screens */
@media (max-width: 900px) { .ae-site .bfbar__cd { gap: 8px; padding-left: 14px; } .ae-site .bfbar__cd .cd-units { font-size: 12px; } .ae-site .bfbar__cd-long { display: inline; } }
/* Medium screens: the countdown gets its own centred second row so the first row keeps the original bar layout */
@media (max-width: 1360px) and (min-width: 781px) {
  .ae-site .bfbar__inner:has(> .bfbar__cd:not([hidden])) { flex-wrap: wrap; row-gap: 8px; padding-bottom: 12px; }
  .ae-site .bfbar__cd { order: 5; flex-basis: 100%; justify-content: center; padding: 8px 0 0; border-left: 0; border-top: 1px solid rgba(242,182,50,.3); }
}
@media (max-width: 780px) {
  .ae-site .bfbar__cd { grid-column: 1 / -1; padding: 8px 0 0; margin-top: 4px; border-left: 0; border-top: 1px solid rgba(242,182,50,.3); white-space: normal; flex-wrap: wrap; gap: 6px 10px; }
  .ae-site .bfbar__cd-label { font-size: .72rem; }
}
