/* ==========================================================================
   MMDP v2: inner pages (method, program, ai-practice, events, coach, faq,
   contact, a4m, thank-you, privacy, earnings-disclaimer, 404).
   Loaded after styles.css + mmdp.css. Everything is scoped to <main>, so the
   shared header and footer are untouched. RTL via logical properties.
   Emerald + gold, Fraunces + Plus Jakarta Sans, with the Akoury Institute
   family heading ornament (KICKER-SPEC): ──── 01 ◆ EYEBROW ────
   ========================================================================== */
main {
  --k-gold: #C5A059;
  --k-num: #9C7A3C;          /* number on light */
  --k-eye: #7A5A1C;          /* eyebrow on light */
  --k-num-dk: #E3C78A;       /* number on dark */
  --k-eye-dk: #C5A059;       /* eyebrow on dark */
  --k-line: 40px;
  --v2-r: 22px;
  --v2-shadow: 0 30px 60px -38px rgba(10, 42, 36, .42), 0 2px 10px -6px rgba(10, 42, 36, .10);
  --v2-shadow-up: 0 40px 70px -36px rgba(10, 42, 36, .5), 0 4px 14px -8px rgba(10, 42, 36, .14);
  --v2-border: rgba(15, 59, 51, .09);
  --v2-num-font: "Fraunces", Georgia, "Times New Roman", serif;
  --v2-diamond: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 .8 9.2 5 5 9.2.8 5z' fill='%23C5A059'/%3E%3C/svg%3E");
  --v2-hair-l: linear-gradient(to left, #C5A059, rgba(197, 160, 89, 0));
  --v2-hair-r: linear-gradient(to right, #C5A059, rgba(197, 160, 89, 0));
  counter-reset: mk;
  display: block;
}
@media (max-width: 600px) { main { --k-line: 24px; } }
main :is(h1, h2, h3) { text-wrap: balance; font-variant-numeric: lining-nums; }

/* ---------- Section rhythm ---------- */
main .m-sec { padding-block: clamp(84px, 9vw, 132px); }
main .m-cream { background: linear-gradient(180deg, #F7F3EA 0%, #F4EFE3 100%); }
main .m-dark { background: radial-gradient(900px 480px at 88% -12%, rgba(29, 92, 79, .95) 0%, rgba(29, 92, 79, 0) 62%), radial-gradient(700px 420px at 6% 112%, rgba(197, 160, 89, .10) 0%, rgba(197, 160, 89, 0) 60%), #0F3B33; }
@media (max-width: 560px) { main .m-sec { padding-block: 68px; } }

/* ==========================================================================
   Section heading ornament (KICKER-SPEC)
   The eyebrow <p> is a centred flex row: [hairline] number ◆ EYEBROW [hairline].
   Hairlines are backgrounds of the row; number = ::before (CSS counter, no text);
   diamond = ::after moved between number and eyebrow with `order`.
   ========================================================================== */
main .m-sec .m-eyebrow {
  counter-increment: mk;
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 12px;
  width: fit-content; max-width: 100%; margin: 0 auto 22px;
  padding-inline: calc(var(--k-line) + 12px);
  background: var(--v2-hair-l) left center / var(--k-line) 1px no-repeat, var(--v2-hair-r) right center / var(--k-line) 1px no-repeat;
  font: 600 .76rem/1.35 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--k-eye);
  text-wrap: balance; text-align: center;
}
main .m-sec .m-eyebrow::before {
  content: counter(mk, decimal-leading-zero); order: -2; flex: none;
  font: italic 400 1.35rem/1 var(--v2-num-font); letter-spacing: 0; text-transform: none;
  font-variant-numeric: lining-nums; color: var(--k-num);
  width: auto; height: auto; background: none;
}
main .m-sec .m-eyebrow::after {
  content: ""; order: -1; flex: none; width: 6px; height: 6px; background: var(--k-gold); transform: rotate(45deg);
}
main .m-dark .m-eyebrow { color: var(--k-eye-dk); }
main .m-dark .m-eyebrow::before { color: var(--k-num-dk); }
/* Left-aligned contexts (heading block beside a photo, or beside the form): number ◆ EYEBROW ──── */
main .m-sec :is(.m-split, .m-contact-side) .m-eyebrow {
  justify-content: flex-start; margin-inline: 0; text-align: start;
  padding-inline: 0 calc(var(--k-line) + 12px);
  background: var(--v2-hair-r) right center / var(--k-line) 1px no-repeat;
}
html[dir="rtl"] main .m-sec :is(.m-split, .m-contact-side) .m-eyebrow { background: var(--v2-hair-l) left center / var(--k-line) 1px no-repeat; }
/* Phones: tighter tracking keeps long eyebrows on one line between the hairlines */
@media (max-width: 420px) { main .m-sec .m-eyebrow { letter-spacing: .13em; font-size: .72rem; gap: 10px; padding-inline: calc(var(--k-line) + 10px); } main .m-sec :is(.m-split, .m-contact-side) .m-eyebrow { padding-inline: 0 calc(var(--k-line) + 10px); } }
html[lang="ar"] main .m-eyebrow { letter-spacing: 0; font-size: .9rem; }

/* ---------- Section head ---------- */
main .m-head { max-width: 860px; margin: 0 auto clamp(44px, 5vw, 70px); }
main .m-head h2 { margin: 0; font-size: clamp(2.15rem, 4vw, 3.25rem); line-height: 1.1; letter-spacing: -.018em; }
main .m-head h2::after { display: none; }
main .m-head p:not(.m-eyebrow) { margin: 20px auto 0; max-width: 58ch; font-size: clamp(1.05rem, 1.3vw, 1.15rem); line-height: 1.7; color: var(--ink-2); text-wrap: balance; }
main .m-dark .m-head p:not(.m-eyebrow) { color: rgba(236, 242, 238, .76); }
main .m-head .m-actions { margin-top: 34px; }

/* ==========================================================================
   Page header: eyebrow, H1, one line
   ========================================================================== */
main .m-pagehead { isolation: isolate; padding-block: clamp(88px, 9.5vw, 140px) clamp(76px, 8.5vw, 120px); background: #0A2A24; }
main .m-pagehead-bg { opacity: .34; filter: saturate(.8); transform: scale(1.02); }
main .m-pagehead::after {
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(197, 160, 89, .16), rgba(197, 160, 89, 0) 66%),
    linear-gradient(180deg, rgba(10, 42, 36, .55) 0%, rgba(10, 42, 36, .80) 55%, rgba(10, 42, 36, .95) 100%);
}
main .m-pagehead::before { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; z-index: 2; background: linear-gradient(90deg, rgba(197, 160, 89, 0), rgba(197, 160, 89, .7) 20%, #E3C78A 50%, rgba(197, 160, 89, .7) 80%, rgba(197, 160, 89, 0)); }
main .m-pagehead .wrap { max-width: 920px; }
main .m-pagehead .m-eyebrow { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 26px; font: 600 .76rem/1.35 var(--ui); letter-spacing: .22em; color: var(--k-num-dk); }
main .m-pagehead .m-eyebrow::before, main .m-pagehead .m-eyebrow::after { content: ""; flex: none; width: var(--k-line); height: 1px; background: var(--v2-hair-l); }
main .m-pagehead .m-eyebrow::after { background: var(--v2-hair-r); }
main .m-pagehead h1 { margin: 0; font-size: clamp(2.6rem, 5.4vw, 4.5rem); line-height: 1.04; letter-spacing: -.022em; }
main .m-pagehead p:not(.m-eyebrow) { margin: 24px auto 0; max-width: 56ch; font-size: clamp(1.06rem, 1.4vw, 1.2rem); line-height: 1.65; color: rgba(236, 242, 238, .8); text-wrap: balance; }
main .m-pagehead .m-actions { margin-top: 36px; }
@media (max-width: 560px) {
  main .m-pagehead { padding-block: 64px 56px; }
  main .m-pagehead .m-eyebrow::before, main .m-pagehead .m-eyebrow::after { display: block; }
}
/* Light variant (legal pages and 404): calm cream head */
main .m-pagehead.m-pagehead-light { background: radial-gradient(900px 380px at 50% -20%, rgba(197, 160, 89, .16), rgba(197, 160, 89, 0) 70%), linear-gradient(180deg, #F7F3EA, #F2ECDF); color: var(--ink); }
main .m-pagehead.m-pagehead-light::after { display: none; }
main .m-pagehead.m-pagehead-light .m-pagehead-bg { display: none; }
main .m-pagehead.m-pagehead-light h1 { color: var(--green); }
main .m-pagehead.m-pagehead-light h1 em { color: var(--gold-ink); }
main .m-pagehead.m-pagehead-light .m-eyebrow { color: var(--k-eye); }
main .m-pagehead.m-pagehead-light p:not(.m-eyebrow) { color: var(--ink-2); }
main .m-pagehead.m-pagehead-light { padding-block: clamp(72px, 8vw, 116px) clamp(64px, 7vw, 100px); }
/* Compact variant (contact): the form comes up sooner */
main .m-pagehead.m-pagehead-compact { padding-block: clamp(64px, 7vw, 96px) clamp(56px, 6vw, 84px); }

/* ==========================================================================
   Buttons and links (same family as the header button)
   ========================================================================== */
main .m-btn { min-height: 54px; padding: 0 28px; justify-content: center; text-align: center; line-height: 1.2; }
main .m-btn-gold { box-shadow: 0 16px 36px -16px rgba(197, 160, 89, .85), inset 0 1px 0 rgba(255, 255, 255, .4); }
main .m-btn-gold:hover { box-shadow: 0 22px 44px -16px rgba(197, 160, 89, .95), inset 0 1px 0 rgba(255, 255, 255, .4); }
main .m-btn-dark { box-shadow: 0 16px 32px -18px rgba(15, 59, 51, .85); }
main .m-btn:focus-visible, main .m-link:focus-visible, main a:focus-visible, main summary:focus-visible, main button:focus-visible { outline: 2px solid #7A5A1C; outline-offset: 3px; }
main .m-dark :is(a, button):focus-visible, main .m-pagehead:not(.m-pagehead-light) a:focus-visible, main .m-cta-in a:focus-visible { outline-color: #E3C78A; }
main .m-link { display: inline-block; padding-block: 12px 4px; }

/* ==========================================================================
   Cards
   ========================================================================== */
main .m-cards { gap: clamp(18px, 2vw, 26px); }
main .m-cards > li { position: relative; overflow: hidden; border-radius: var(--v2-r); border: 1px solid var(--v2-border); background: #fff; box-shadow: var(--v2-shadow); padding: clamp(30px, 3vw, 40px) clamp(24px, 2.4vw, 32px) clamp(28px, 3vw, 36px); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
main .m-cards > li::before { content: ""; position: absolute; inset-inline: 22%; top: 0; height: 2px; background: linear-gradient(90deg, rgba(197, 160, 89, 0), #C5A059, rgba(197, 160, 89, 0)); }
main .m-cards > li:hover { transform: translateY(-5px); box-shadow: var(--v2-shadow-up); }
main .m-cards h3 { font-size: clamp(1.25rem, 1.6vw, 1.42rem); margin: 0 0 10px; }
main .m-cards p { line-height: 1.65; }
main .m-ico { width: 60px; height: 60px; border-radius: 50%; margin-bottom: 22px; background: radial-gradient(circle at 32% 26%, #1D5C4F, #0F3B33 72%); color: #E3C78A; box-shadow: inset 0 0 0 1px rgba(227, 199, 138, .45), 0 14px 26px -14px rgba(15, 59, 51, .8); }
main .m-ico svg { width: 25px; height: 25px; stroke-width: 1.6; }
main .m-dark .m-cards > li { background: rgba(255, 255, 255, .045); border-color: rgba(197, 160, 89, .28); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .7); }
main .m-dark .m-ico { background: rgba(197, 160, 89, .12); color: #E3C78A; box-shadow: inset 0 0 0 1px rgba(197, 160, 89, .45); }
@media (max-width: 560px) {
  main .m-cards > li { padding: 22px 20px; }
  main .m-cards > li .m-ico { width: 48px; height: 48px; margin: 0; }
  main .m-cards > li::before { inset-inline: 20px auto; width: 60px; }
  main .m-link { padding-block: 10px 2px; }
}

/* ---------- Split (photo + text) ---------- */
main .m-split { gap: clamp(40px, 6vw, 96px); }
main .m-split-img { isolation: isolate; }
main .m-split-img img { border-radius: 24px; box-shadow: 0 44px 80px -44px rgba(10, 42, 36, .6); }
main .m-split-img::before { border: 1px solid rgba(197, 160, 89, .75); border-radius: 26px; }
main .m-split h2 { font-size: clamp(2.05rem, 3.6vw, 2.95rem); line-height: 1.1; }
main .m-split p:not(.m-eyebrow):not(.m-sub) { font-size: 1.08rem; line-height: 1.75; }
main .m-split .m-sub { margin-top: 14px; font-size: 1.28rem; }
main .m-ticks { gap: 14px; margin-top: 26px; }
main .m-ticks li { padding-block: 2px; }
main .m-ticks li::before { content: ""; width: 22px; height: 22px; top: 2px; background: var(--k-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230F3B33' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
main .m-split .m-actions { margin-top: 34px; }
@media (max-width: 860px) { main .m-split { gap: 40px; } }

/* ---------- Method: the letter emblem carries the section number (MM 01 ────) ---------- */
main .m-letter-big { counter-increment: mk; position: relative; width: 80px; height: 80px; border-radius: 22px; margin-bottom: 26px; background: radial-gradient(circle at 30% 24%, #1D5C4F, #0F3B33 72%); color: #E3C78A; box-shadow: inset 0 0 0 1px rgba(227, 199, 138, .5), 0 18px 34px -18px rgba(15, 59, 51, .85); font: 500 2.6rem/1 var(--v2-num-font); }
main .m-dark .m-letter-big { background: linear-gradient(135deg, #E3C27D, #C5A059 55%, #A8843C); color: #0F3B33; box-shadow: 0 18px 34px -18px rgba(0, 0, 0, .7); }
main .m-letter-big::after {
  content: counter(mk, decimal-leading-zero); position: absolute; inset-inline-start: calc(100% + 18px); top: 50%; transform: translateY(-50%);
  padding-inline-end: calc(var(--k-line) + 12px);
  background: var(--v2-hair-r) right center / var(--k-line) 1px no-repeat;
  font: italic 400 1.35rem/1 var(--v2-num-font); color: var(--k-num); white-space: nowrap;
}
html[dir="rtl"] main .m-letter-big::after { background: var(--v2-hair-l) left center / var(--k-line) 1px no-repeat; }
main .m-dark .m-letter-big::after { color: var(--k-num-dk); }

/* ---------- Curriculum modules (dark) ---------- */
main .m-modules { gap: 16px; }
main .m-modules li { min-height: 76px; padding: 20px 24px; border-radius: 18px; gap: 18px; background: rgba(255, 255, 255, .045); border-color: rgba(197, 160, 89, .28); line-height: 1.4; transition: border-color .3s, background-color .3s; }
main .m-modules li:hover { border-color: rgba(227, 199, 138, .6); background: rgba(255, 255, 255, .07); }
main .m-modules li::before { font: italic 400 1.45rem/1 var(--v2-num-font); color: #E3C78A; min-width: 1.6em; }

/* ---------- Chips + note ---------- */
main .m-chips { gap: 14px; max-width: 900px; margin-inline: auto; }
main .m-chips li { display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px; border: 1px solid rgba(197, 160, 89, .55); box-shadow: 0 14px 28px -22px rgba(10, 42, 36, .5); font-weight: 600; }
main .m-chips li::before { content: ""; width: 6px; height: 6px; background: var(--k-gold); transform: rotate(45deg); flex: none; }
main .m-note { margin-top: 34px; max-width: 60ch; line-height: 1.7; text-wrap: balance; }

/* ---------- Steps ---------- */
main .m-steps { gap: clamp(18px, 2vw, 26px); }
main .m-steps li { position: relative; border-radius: var(--v2-r); border-color: var(--v2-border); box-shadow: var(--v2-shadow); padding: 38px 30px 34px; }
main .m-steps li::before { width: 54px; height: 54px; margin-bottom: 20px; background: radial-gradient(circle at 30% 24%, #1D5C4F, #0F3B33 72%); color: #E3C78A; font: italic 400 1.35rem/1 var(--v2-num-font); box-shadow: inset 0 0 0 1px rgba(227, 199, 138, .5), 0 14px 26px -14px rgba(15, 59, 51, .8); content: counter(s, decimal-leading-zero); }
main .m-steps h3 { font-size: 1.32rem; margin-bottom: 10px; }
main .m-steps p { line-height: 1.65; }
@media (max-width: 560px) {
  main .m-steps li { padding: 22px 20px; }
  main .m-steps li::before { width: 46px; height: 46px; margin: 0; }
}

/* ---------- Gallery ---------- */
main .m-gallery { gap: 16px; grid-template-rows: 260px 260px; }
main .m-gallery li { border-radius: 20px; box-shadow: 0 30px 60px -36px rgba(10, 42, 36, .55); }
main .m-gallery span { display: flex; align-items: center; gap: 12px; padding: 48px 22px 18px; background: linear-gradient(180deg, rgba(10, 42, 36, 0), rgba(10, 42, 36, .88)); font: italic 400 1.12rem/1.25 var(--display); }
main .m-gallery span::before { content: ""; flex: none; width: 22px; height: 1px; background: #E3C78A; }
@media (max-width: 760px) { main .m-gallery { grid-template-rows: 230px 170px 170px; gap: 12px; } main .m-gallery span { padding: 34px 14px 12px; font-size: 1rem; } }

/* ---------- Coach: facts and quotes ---------- */
main .m-facts { margin-top: 28px; border-top-color: rgba(197, 160, 89, .45); }
main .m-facts li { padding: 14px 0; grid-template-columns: 150px 1fr; }
main .m-facts span { color: var(--ink); font-weight: 500; }
main .m-pull { position: relative; margin: 22px 0 0; padding: 22px 26px 22px 28px; background: #F7F3EA; border-radius: 18px; border-inline-start: 2px solid var(--k-gold); font-size: 1.16rem; line-height: 1.5; box-shadow: 0 20px 40px -34px rgba(10, 42, 36, .5); }
main .m-pull + .m-pull { margin-top: 14px; }
main .m-pull cite { margin-top: 10px; letter-spacing: .02em; }
main .m-founder-img img { aspect-ratio: 4 / 4.8; }
@media (max-width: 520px) { main .m-facts li { grid-template-columns: 1fr; } }

/* ---------- Videos ---------- */
main .m-videos { gap: clamp(18px, 2vw, 26px); }
main .m-videos li { display: flex; flex-direction: column; }
main .m-video { border-radius: 20px; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(197, 160, 89, .3); }
main .m-videos h3 { margin-top: 18px; font-size: 1.2rem; }
main .m-play { width: 68px; height: 68px; margin: -34px 0 0 -34px; background: linear-gradient(135deg, #E3C27D, #C5A059 55%, #A8843C); box-shadow: 0 0 0 8px rgba(197, 160, 89, .22), 0 12px 30px rgba(0, 0, 0, .45); transition: transform .4s var(--ease); }
main .m-play::after { left: 28px; top: 23px; }
main .m-video:hover .m-play { transform: scale(1.06); }

/* ---------- Coach: Institute block ---------- */
main .m-institute { background: #fff; }
main .m-institute .m-head { margin-bottom: 0; }

/* ---------- Free guides (dark): form markup unchanged, layout only ---------- */
main .m-guides-form { max-width: 820px; border-radius: 24px; border-color: rgba(197, 160, 89, .45); background: rgba(255, 255, 255, .055); box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .8); padding: clamp(26px, 3.4vw, 40px); }
main .m-guides-title { font-size: clamp(1.45rem, 2.2vw, 1.75rem); margin-bottom: 20px; }
main .m-guides-row input { min-height: 54px; }
main .m-guides-row .m-btn { min-height: 54px; }
@media (max-width: 560px) { main .m-guides-row input { flex: 0 0 auto; } }
main .m-books { gap: clamp(18px, 2vw, 28px); }
main .m-books li { border-radius: var(--v2-r); padding: 36px 26px 30px; background: rgba(255, 255, 255, .045); border-color: rgba(197, 160, 89, .28); }

/* ==========================================================================
   CTA band (the next step at the end of each page)
   ========================================================================== */
main .m-cta { padding-block: clamp(76px, 8vw, 116px); background: linear-gradient(180deg, #F7F3EA, #F2ECDF); }
main :is(.m-cream, .m-pagehead-light) + .m-cta, main .m-cta.on-white { background: #fff; }
main .m-cta-in { border-radius: 28px; padding: clamp(52px, 6vw, 88px) clamp(24px, 5vw, 72px); box-shadow: 0 50px 90px -50px rgba(10, 42, 36, .75);
  background: radial-gradient(620px 300px at 50% -12%, rgba(197, 160, 89, .24), rgba(197, 160, 89, 0) 70%), radial-gradient(800px 420px at 100% 110%, rgba(29, 92, 79, .9), rgba(29, 92, 79, 0) 62%), #0F3B33; }
main .m-cta-in::before { inset: 14px; border-color: rgba(197, 160, 89, .3); border-radius: 18px; }
main .m-cta-in h2 { font-size: clamp(2.05rem, 3.9vw, 3.05rem); line-height: 1.12; }
main .m-cta-in h2::before { content: ""; display: block; width: calc(2 * var(--k-line) + 34px); height: 10px; margin: 0 auto 24px; background: var(--v2-diamond) center / 9px 9px no-repeat, var(--v2-hair-l) left center / var(--k-line) 1px no-repeat, var(--v2-hair-r) right center / var(--k-line) 1px no-repeat; }
main .m-cta-in p { margin-top: 18px; color: rgba(236, 242, 238, .8); text-wrap: balance; }
main .m-cta-in .m-actions { margin-top: 34px; }

/* ==========================================================================
   FAQ: centred groups, clean +/− accordions (questions and answers unchanged)
   ========================================================================== */
main .m-faq-sec { background: linear-gradient(180deg, #fff 0%, #FBF8F2 100%); }
main .m-faq { max-width: 860px; }
main .m-faq-group + .m-faq-group { margin-top: clamp(56px, 6vw, 84px); }
main .m-faq-group h2 { counter-increment: mk; margin: 0 0 28px; text-align: center; font-size: clamp(1.75rem, 2.8vw, 2.3rem); }
main .m-faq-group h2::before {
  content: counter(mk, decimal-leading-zero); display: block; width: fit-content; margin: 0 auto 16px;
  padding-inline: calc(var(--k-line) + 12px);
  background: var(--v2-hair-l) left center / var(--k-line) 1px no-repeat, var(--v2-hair-r) right center / var(--k-line) 1px no-repeat;
  font: italic 400 1.35rem/1 var(--v2-num-font); letter-spacing: 0; color: var(--k-num);
}
main .m-faq-list { background: #fff; border: 1px solid var(--v2-border); border-radius: 24px; box-shadow: var(--v2-shadow); overflow: hidden; }
main .m-faq-list details { margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; border-top: 1px solid rgba(15, 59, 51, .08); transition: background-color .3s; }
main .m-faq-list details:first-child { border-top: 0; }
main .m-faq-list details[open] { background: #FCFAF5; box-shadow: none; border-color: rgba(15, 59, 51, .08); }
main .m-faq-list summary { display: block; padding: 24px 76px 24px 30px; font: 500 clamp(1.08rem, 1.5vw, 1.24rem)/1.4 var(--display); letter-spacing: -.005em; color: var(--green); transition: color .25s; }
html[dir="rtl"] main .m-faq-list summary { padding: 24px 30px 24px 76px; }
main .m-faq-list summary:hover { color: var(--gold-ink); }
main .m-faq-list summary::after {
  content: ""; inset-inline-end: 26px; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  color: #9C7A3C; box-shadow: inset 0 0 0 1px rgba(197, 160, 89, .55); transition: background-color .3s, color .3s, box-shadow .3s;
}
main .m-faq-list details[open] summary::after { content: ""; background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, var(--k-gold); color: #0F3B33; box-shadow: none; }
main .m-faq-list summary:focus-visible { outline-offset: -4px; border-radius: 6px; }
main .m-faq-list details p { padding: 0 30px 26px; max-width: 66ch; font-size: 1.02rem; line-height: 1.75; color: var(--ink-2); }
@media (max-width: 560px) {
  main .m-faq-list summary { padding: 20px 62px 20px 20px; }
  html[dir="rtl"] main .m-faq-list summary { padding: 20px 20px 20px 62px; }
  main .m-faq-list summary::after { inset-inline-end: 16px; }
  main .m-faq-list details p { padding: 0 20px 22px; }
}

/* ==========================================================================
   Contact + A4M request: the form is the hero of the section (markup unchanged)
   ========================================================================== */
main .m-contact { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(36px, 5.5vw, 80px); }
main .m-contact-side { top: 120px; padding-top: 8px; }
main .m-contact-side h2 { font-size: clamp(2.05rem, 3.4vw, 2.75rem); line-height: 1.1; }
main .m-contact-side > p:not(.m-eyebrow) { margin-top: 16px; font-size: 1.08rem; line-height: 1.7; }
main .m-info { margin-top: 30px; gap: 12px; }
main .m-info li { padding: 16px 18px; border-radius: 18px; border-color: var(--v2-border); box-shadow: 0 18px 36px -30px rgba(10, 42, 36, .5); line-height: 1.5; }
main .m-info .m-ico { width: 46px; height: 46px; border-radius: 50%; }
main .m-info .m-ico svg { width: 20px; height: 20px; }
main .m-info a { display: inline-block; padding-block: 4px; }
/* Latin phone numbers and the street address keep their order in Arabic */
main .m-info a[href^="tel:"] { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] main .m-info li > div { unicode-bidi: plaintext; text-align: right; }
main .m-contact .form-col { position: relative; isolation: isolate; }
main .m-contact .form-col::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1; border: 1px solid rgba(197, 160, 89, .7); border-radius: 28px; pointer-events: none; }
html[dir="rtl"] main .m-contact .form-col::before { inset: 18px 18px -18px -18px; }
main .m-contact .form-card { border-radius: 26px; border: 1px solid var(--v2-border); box-shadow: 0 50px 90px -50px rgba(10, 42, 36, .55), 0 4px 16px -8px rgba(10, 42, 36, .1); padding: clamp(28px, 3.6vw, 48px); }
main .m-contact .form-card::after { inset: 8px; border-radius: 19px; border-color: rgba(197, 160, 89, .3); }
main .m-contact .form-card h3 { font: 500 clamp(1.8rem, 2.6vw, 2.25rem)/1.12 var(--display); color: var(--green); letter-spacing: -.015em; }
main .m-sec:not(.m-cream) .m-contact .form-card { background: #fff; }
main .m-sec.m-cream .m-contact .form-card { background: #fff; }
@media (max-width: 900px) {
  main .m-contact { gap: 16px; }
  main .m-contact .form-col { margin-top: 14px; }
  main .m-contact .form-col::before { display: none; }
  main .m-contact-side > .m-eyebrow { margin-bottom: 0; }
  main .m-contact-side > h2 { margin: 0; }
  main .m-contact-side > p:not(.m-eyebrow) { margin: 0; }
}
main .m-contact-next .m-actions { margin-top: clamp(36px, 4vw, 52px); }

/* A4M hero: the family's gold hairline under the hero */
main .m-a4m-hero { position: relative; padding-block: clamp(64px, 7vw, 108px); }
main .m-a4m-hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, rgba(197, 160, 89, 0), rgba(197, 160, 89, .7) 20%, #E3C78A 50%, rgba(197, 160, 89, .7) 80%, rgba(197, 160, 89, 0)); }
main .m-a4m-hero .m-collage .c1, main .m-a4m-hero .m-collage .c2 { border-radius: 24px; }
main .m-a4m-hero .m-badge { border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(197, 160, 89, .5), 0 24px 44px -20px rgba(0, 0, 0, .6); }

/* ==========================================================================
   Thank you: booking card + what to explore next
   ========================================================================== */
main .m-booking { max-width: 980px; margin: 0 auto; background: #fff; border: 1px solid var(--v2-border); border-radius: 26px; box-shadow: var(--v2-shadow); padding: clamp(14px, 2vw, 26px); overflow: hidden; }
main .m-booking .booking-frame { display: block; border-radius: 16px; }
main .m-booking .m-note { margin: 18px auto; }
main .m-explore { padding-block: clamp(64px, 7vw, 100px); }
main .m-explore .m-head { margin-bottom: 0; }
main .m-explore-links { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
main .m-explore-links .m-link span { border-bottom: 2px solid var(--k-gold); padding-bottom: 4px; }

/* ==========================================================================
   Legal pages: a clean reading column (~70ch), wording unchanged
   ========================================================================== */
main .m-legal-sec { background: #fff; }
main .m-prose { max-width: 700px; counter-reset: lg; } /* about 70 characters per line */
main .m-prose > p { font-size: 1.07rem; line-height: 1.8; color: #3F4D48; margin: 0 0 18px; }
main .m-prose h2 { counter-increment: lg; display: flex; align-items: baseline; gap: 14px; margin: 44px 0 14px; padding-top: 40px; border-top: 1px solid rgba(15, 59, 51, .1); font-size: clamp(1.45rem, 2.2vw, 1.8rem); }
main .m-prose h2::before { content: counter(lg, decimal-leading-zero); flex: none; font: italic 400 1.15rem/1 var(--v2-num-font); color: var(--k-num); }
main .m-prose > h2:first-child, main .m-prose > .m-draft + h2 { margin-top: 10px; padding-top: 0; border-top: 0; }
main .m-prose > p:first-child:not(.m-draft) { font: 400 clamp(1.18rem, 1.6vw, 1.32rem)/1.65 var(--display); color: var(--green); margin-bottom: 26px; padding-bottom: 28px; border-bottom: 1px solid rgba(15, 59, 51, .1); }
main .m-draft { margin: 0 0 40px; padding: 16px 20px 16px 22px; border: 1px solid rgba(197, 160, 89, .6); border-inline-start: 3px solid var(--k-gold); border-radius: 14px; background: #FFF9EC; font-size: .97rem; color: #5C4A1E; }

/* ==========================================================================
   404: guided links
   ========================================================================== */
main .m-404 .m-eyebrow { font: italic 400 1.6rem/1 var(--v2-num-font); letter-spacing: 0; color: var(--k-num); }
main .m-404 .m-actions { margin-top: 34px; }
main .m-paths-sec { padding-block: clamp(64px, 7vw, 104px) clamp(84px, 9vw, 128px); background: #fff; }
main .m-paths { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
main .m-paths a { position: relative; display: flex; flex-direction: column; height: 100%; padding: 30px 28px 26px; border-radius: var(--v2-r); background: #fff; border: 1px solid var(--v2-border); box-shadow: var(--v2-shadow); text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
main .m-paths a::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 2px; background: linear-gradient(90deg, rgba(197, 160, 89, 0), #C5A059, rgba(197, 160, 89, 0)); }
main .m-paths a:hover { transform: translateY(-5px); box-shadow: var(--v2-shadow-up); }
main .m-paths .m-ico { width: 52px; height: 52px; margin-bottom: 18px; }
main .m-paths .m-ico svg { width: 22px; height: 22px; }
main .m-paths h2 { margin: 0 0 8px; font-size: 1.32rem; line-height: 1.2; }
main .m-paths p { margin: 0; color: var(--ink-2); font-size: .97rem; line-height: 1.6; }
main .m-paths .m-go { display: grid; place-items: center; width: 38px; height: 38px; margin-top: auto; border-radius: 50%; color: #0F3B33; background: linear-gradient(135deg, #E3C27D, #C5A059 55%, #A8843C); box-shadow: 0 10px 20px -10px rgba(197, 160, 89, .9); transition: transform .45s var(--ease); }
main .m-paths p + .m-go { margin-top: 22px; }
main .m-paths .m-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html[dir="rtl"] main .m-paths .m-go svg { transform: scaleX(-1); }
main .m-paths a:hover .m-go { transform: translateX(4px); }
html[dir="rtl"] main .m-paths a:hover .m-go { transform: translateX(-4px); }
@media (max-width: 900px) { main .m-paths { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  main .m-paths { grid-template-columns: 1fr; }
  main .m-paths a { display: grid; grid-template-columns: 48px 1fr auto; column-gap: 16px; align-items: center; padding: 18px 20px; }
  main .m-paths .m-ico { grid-row: span 2; width: 48px; height: 48px; margin: 0; }
  main .m-paths h2 { font-size: 1.15rem; margin: 0 0 2px; }
  main .m-paths p { grid-column: 2; font-size: .9rem; }
  main .m-paths .m-go { grid-column: 3; grid-row: 1 / span 2; padding: 0; }
}

/* ---------- Magazine funnel pages: Medicine in Music, 52 weeks ---------- */
main .m-tracks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
main .m-tracks > li { border-radius: var(--radius); padding: clamp(26px, 3.4vw, 40px); display: flex; flex-direction: column; background: var(--navy-deep); color: #fff; }
main .m-tracks > li.alt { background: #6f1d2a; }
main .m-tracks .m-trk { margin: 0; font: 600 .76rem/1.35 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); }
html[lang="ar"] main .m-tracks .m-trk { letter-spacing: 0; font-size: .9rem; }
main .m-tracks h3 { color: #fff; font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 6px 0 14px; }
main .m-tracks p { color: #dfe7e3; margin: 0; }
main .m-tracks ul { margin: 14px 0 0; padding: 0 0 0 1.1em; color: #dfe7e3; display: grid; gap: 8px; }
main .m-tracks .m-actions { margin-top: auto; padding-top: 24px; justify-content: flex-start; }
main .m-tag { display: inline-block; font: 700 .72rem/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; margin-bottom: 14px; }
main .m-cards.left > li { text-align: start; align-items: flex-start; }
main .m-box { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3.4vw, 40px); }
main .m-box ol, main .m-box ul { margin: 0; padding: 0 0 0 1.3em; display: grid; gap: 12px; color: var(--ink); }
main .m-box ol ol { list-style: upper-alpha; margin-top: 8px; gap: 4px; color: var(--ink-2); }
main .m-box .m-result { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 600; color: var(--green); }
main .m-legal { max-width: 820px; margin: 0 auto; text-align: center; font-size: .86rem; color: var(--ink-2); }
@media (max-width: 760px) { main .m-tracks { grid-template-columns: 1fr; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  main .m-cards > li, main .m-paths a, main .m-play, main .m-modules li { transition: none; }
  main .m-cards > li:hover, main .m-paths a:hover { transform: none; }
}
