/* Corporate training pages (corporate_hub / corporate_program).
   Everything is scoped under .ct-page and prefixed ct- so nothing leaks into the rest of the theme. */

.ct-page {
    --ct-ink: #0e1b33;
    --ct-navy: #14294d;
    --ct-navy-700: #1e3a68;
    --ct-navy-500: #3a5a8f;
    --ct-muted: #4a5874;
    --ct-rule: #dde3ec;
    --ct-rule-strong: #c3cddd;
    --ct-tint: #f2f5fa;
    --ct-paper: #f9fafc;
    --ct-white: #fefefe;
    --ct-accent: #f9a134;
    --ct-accent-hover: #ffb24f;
    --ct-on-accent: #0e1b33;
    --ct-on-navy: #f2f5fa;
    --ct-on-navy-muted: #bcc7dc;
    --ct-danger: #b42318;
    --ct-radius: 14px;
    --ct-radius-sm: 10px;
    --ct-gutter: clamp(16px, 4vw, 40px);
    --ct-section: clamp(56px, 7vw, 104px);
    --ct-ease: cubic-bezier(.22, 1, .36, 1);

    display: block;
    overflow-x: clip;
    color: var(--ct-ink);
    background: var(--ct-white);
    font-family: 'Cairo', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    text-align: start;
    counter-reset: ct-sec;
    -webkit-font-smoothing: antialiased;
}

html[lang="ar"] .ct-page { line-height: 1.85; }

/* ---------- Neutralise legacy theme styles ---------- */
.ct-page *,
.ct-page *::before,
.ct-page *::after { box-sizing: border-box; }

.ct-page :where(h1, h2, h3, h4, p, ul, ol, li, figure) { margin: 0; padding: 0; }
.ct-page :where(ul, ol) { list-style: none; }
.ct-page :where(h1, h2, h3, h4) {
    color: var(--ct-ink);
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}
.ct-page :where(p, li) { font-size: inherit; color: inherit; line-height: inherit; }
.ct-page a,
.ct-page a:hover,
.ct-page a:focus { color: inherit; text-decoration: none; }
.ct-page :focus-visible { outline: 3px solid var(--ct-navy-500); outline-offset: 3px; border-radius: 4px; }
.ct-page .ct-dark :focus-visible { outline-color: var(--ct-accent); }

.ct-wrap {
    width: 100%;
    max-width: calc(1180px + 2 * var(--ct-gutter));
    margin-inline: auto;
    padding-inline: var(--ct-gutter);
}

.ct-page .ct-icon { width: 1.15em; height: 1.15em; flex: none; }
.ct-page .ct-icon--sm { width: .9em; height: .9em; }
[dir="rtl"] .ct-page .ct-icon--dir { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.ct-page .ct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 26px;
    border: 1px solid transparent;
    border-radius: var(--ct-radius-sm);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: background-color .2s var(--ct-ease), border-color .2s var(--ct-ease), color .2s var(--ct-ease);
}
.ct-page .ct-btn--primary,
.ct-page .ct-btn--primary:hover,
.ct-page .ct-btn--primary:focus { background: var(--ct-accent); border-color: var(--ct-accent); color: var(--ct-on-accent); }
.ct-page .ct-btn--primary:hover { background: var(--ct-accent-hover); border-color: var(--ct-accent-hover); }
.ct-page .ct-btn--primary .ct-icon { transition: translate .2s var(--ct-ease); }
.ct-page .ct-btn--primary:hover .ct-icon { translate: 3px 0; }
[dir="rtl"] .ct-page .ct-btn--primary:hover .ct-icon { translate: -3px 0; }
.ct-page .ct-btn--ghost,
.ct-page .ct-btn--ghost:focus { background: transparent; border-color: var(--ct-rule-strong); color: var(--ct-navy); }
.ct-page .ct-btn--ghost:hover { background: var(--ct-white); border-color: var(--ct-navy); color: var(--ct-navy); }

/* ---------- Hero ---------- */
.ct-hero {
    position: relative;
    isolation: isolate;
    padding-block: clamp(12px, 2vw, 24px) clamp(48px, 7vw, 96px);
    background: var(--ct-paper);
    border-bottom: 1px solid var(--ct-rule);
}
.ct-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(var(--ct-rule) 1px, transparent 1px),
        linear-gradient(90deg, var(--ct-rule) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: center top;
    -webkit-mask-image: radial-gradient(ellipse 55% 85% at 100% 0%, #000 0%, transparent 75%);
            mask-image: radial-gradient(ellipse 55% 85% at 100% 0%, #000 0%, transparent 75%);
}
[dir="rtl"] .ct-hero::before {
    -webkit-mask-image: radial-gradient(ellipse 55% 85% at 0% 0%, #000 0%, transparent 75%);
            mask-image: radial-gradient(ellipse 55% 85% at 0% 0%, #000 0%, transparent 75%);
}

.ct-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; font-size: .875rem; color: var(--ct-muted); line-height: 1.5; }
.ct-crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.ct-crumbs .ct-icon { color: var(--ct-rule-strong); }
.ct-page .ct-crumbs a {
    display: inline-block;
    padding-block: 12px;
    color: var(--ct-navy-700);
    text-decoration: underline;
    text-decoration-color: var(--ct-rule-strong);
    text-underline-offset: 5px;
}
.ct-page .ct-crumbs a:hover { text-decoration-color: currentColor; }
.ct-crumbs [aria-current] { padding-block: 12px; color: var(--ct-ink); font-weight: 600; }

.ct-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: clamp(20px, 4vw, 44px) !important;
    font-size: .875rem;
    font-weight: 700;
    color: var(--ct-navy-700);
}
.ct-eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--ct-accent); }
html:not([lang="ar"]) .ct-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8125rem; }

.ct-page .ct-hero__title {
    margin-top: 14px;
    max-width: 21ch;
    font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem);
    line-height: 1.22;
    text-wrap: balance;
}
.ct-crumbs + .ct-hero__title { margin-top: clamp(20px, 4vw, 44px); }
.ct-hero__subtitle {
    margin-top: 14px !important;
    max-width: 44ch;
    font-size: clamp(1.0625rem, 1rem + .45vw, 1.375rem);
    font-weight: 600;
    line-height: 1.6;
    color: var(--ct-muted);
}
.ct-hero__subtitle--long { max-width: 62ch; font-weight: 400; }

/* Facts: stacked rows on phones, a three-column ruled strip from 640px. */
.ct-facts {
    display: grid;
    max-width: 880px;
    margin-top: clamp(28px, 4vw, 44px) !important;
    border-top: 1px solid var(--ct-rule-strong);
}
.ct-fact {
    display: grid;
    grid-template-columns: minmax(6.5rem, auto) 1fr;
    align-items: baseline;
    gap: 16px;
    padding-block: 14px;
    border-bottom: 1px solid var(--ct-rule);
}
.ct-fact__value {
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ct-navy);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.ct-fact__label { font-size: .9375rem; line-height: 1.5; color: var(--ct-muted); }
@media (min-width: 640px) {
    .ct-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--ct-rule-strong); }
    .ct-fact { grid-template-columns: 1fr; gap: 6px; padding: 20px 24px; border-bottom: 0; }
    .ct-fact:first-child { padding-inline-start: 0; }
    .ct-fact + .ct-fact { border-inline-start: 1px solid var(--ct-rule); }
    .ct-fact__value { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); }
}

@media (min-width: 992px) {
    .ct-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 72px; align-items: end; }
    .ct-page .ct-facts { grid-template-columns: 1fr; margin-top: 0 !important; border-bottom: 0; }
    .ct-page .ct-fact { grid-template-columns: 1fr; gap: 2px; padding: 18px 0; border-bottom: 1px solid var(--ct-rule); border-inline-start: 0; }
    .ct-page .ct-fact:last-child { border-bottom-color: var(--ct-rule-strong); }
}

.ct-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 4vw, 40px); }
@media (max-width: 479px) { .ct-actions .ct-btn { flex: 1 1 100%; } }

/* ---------- Sections ---------- */
.ct-section { padding-block: var(--ct-section); }
.ct-section--tint { background: var(--ct-tint); }
.ct-section:not(.ct-section--tint):not(.ct-dark) + .ct-section:not(.ct-section--tint):not(.ct-dark) { border-top: 1px solid var(--ct-rule); }

.ct-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: .8125rem;
    font-weight: 700;
    line-height: 1;
    color: var(--ct-navy-500);
    font-variant-numeric: tabular-nums;
}
.ct-kicker::before { counter-increment: ct-sec; content: counter(ct-sec, decimal-leading-zero); }
.ct-kicker::after { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .5; }

.ct-page .ct-h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.25rem); line-height: 1.35; text-wrap: balance; }
.ct-page .ct-h3 { font-size: 1.25rem; line-height: 1.4; }
.ct-lead { margin-top: 14px !important; color: var(--ct-muted); font-size: 1.0625rem; }

.ct-split { display: grid; gap: clamp(24px, 3vw, 32px) clamp(40px, 6vw, 88px); }
@media (min-width: 992px) {
    .ct-split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
    .ct-split > .ct-head { position: sticky; top: 32px; }
}

/* Overview + audience */
.ct-duo { display: grid; gap: clamp(32px, 4vw, 56px); }
@media (min-width: 992px) { .ct-duo--both { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } }
.ct-prose { margin-top: 18px !important; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.9; color: var(--ct-ink); max-width: 62ch; }
.ct-panel { padding: clamp(22px, 3vw, 32px); background: var(--ct-tint); border-radius: var(--ct-radius); }
.ct-checks { display: grid; gap: 14px; margin-top: 18px !important; }
.ct-checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.ct-page .ct-icon--check {
    width: 26px;
    height: 26px;
    padding: 4px;
    border-radius: 50%;
    background: var(--ct-navy);
    color: var(--ct-on-navy);
    margin-top: .15em;
}
.ct-panel > .ct-checks:first-child { margin-top: 0 !important; }
@media (min-width: 720px) { .ct-checks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }

/* Numbered ledger (benefits) */
.ct-numlist { display: grid; counter-reset: ct-item; border-top: 1px solid var(--ct-rule-strong); }
@media (min-width: 720px) { .ct-numlist { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; } }
.ct-numlist li {
    counter-increment: ct-item;
    display: grid;
    grid-template-columns: 2.25rem 1fr;
    gap: 12px;
    padding-block: 16px;
    border-bottom: 1px solid var(--ct-rule);
    line-height: 1.75;
}
.ct-numlist li::before {
    content: counter(ct-item, decimal-leading-zero);
    font-size: .8125rem;
    font-weight: 700;
    color: var(--ct-navy-500);
    font-variant-numeric: tabular-nums;
    padding-top: .3em;
}

/* ---------- Journey (signature): three stops, reads in the page direction ---------- */
.ct-journey__track {
    display: grid;
    gap: 24px;
    margin-top: clamp(28px, 4vw, 48px) !important;
    counter-reset: none;
}
.ct-stop {
    position: relative;
    padding: clamp(22px, 2.4vw, 32px);
    background: var(--ct-white);
    border: 1px solid var(--ct-rule);
    border-radius: var(--ct-radius);
}
/* connector to the next stop: vertical on phones, horizontal from 992px */
.ct-stop:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 100%;
    inset-inline-start: calc(clamp(22px, 2.4vw, 32px) + 23px);
    width: 2px;
    height: 24px;
    background: var(--ct-navy);
}
.ct-stop__head { display: flex; align-items: center; gap: 14px; }
.ct-stop__num {
    display: grid;
    place-items: center;
    flex: none;
    width: 48px;
    height: 48px;
    border: 2px solid var(--ct-navy);
    border-radius: 50%;
    background: var(--ct-white);
    color: var(--ct-navy);
    font-size: .9375rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.ct-stop:nth-child(2) .ct-stop__num { background: var(--ct-navy); color: var(--ct-on-navy); }
.ct-stop__label { font-size: .875rem; font-weight: 700; color: var(--ct-navy-500); }
.ct-page .ct-stop__title { margin-top: 18px; font-size: 1.25rem; line-height: 1.45; }
.ct-stop__text { margin-top: 10px !important; color: var(--ct-muted); }
.ct-stop__list { display: grid; gap: 10px; margin-top: 16px !important; }
.ct-stop__list li {
    position: relative;
    padding-inline-start: 18px;
    font-size: .9375rem;
    line-height: 1.75;
    color: var(--ct-muted);
}
.ct-stop__list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: .78em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ct-navy-500);
}
@media (min-width: 992px) {
    .ct-journey__track { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: stretch; }
    .ct-stop:not(:last-child)::after {
        top: calc(clamp(22px, 2.4vw, 32px) + 23px);
        inset-inline-start: 100%;
        width: 32px;
        height: 2px;
    }
}

/* ---------- Curriculum: days ---------- */
.ct-days { border-top: 1px solid var(--ct-rule-strong); }
.ct-day {
    display: grid;
    grid-template-columns: clamp(48px, 7vw, 88px) minmax(0, 1fr);
    gap: clamp(16px, 3vw, 32px);
    padding-block: clamp(22px, 3vw, 32px);
    border-bottom: 1px solid var(--ct-rule);
}
.ct-day__num {
    font-size: clamp(2.75rem, 2rem + 2.4vw, 4.25rem);
    font-weight: 700;
    line-height: .9;
    color: var(--ct-navy);
    font-variant-numeric: tabular-nums;
}
.ct-day__label { font-size: .875rem; font-weight: 700; color: var(--ct-navy-500); }
.ct-page .ct-day__title { margin-top: 4px; font-size: 1.25rem; line-height: 1.45; }

.ct-points { display: grid; gap: 8px; margin-top: 14px !important; }
@media (min-width: 720px) { .ct-points { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
.ct-points li { position: relative; padding-inline-start: 18px; color: var(--ct-muted); line-height: 1.75; }
.ct-points li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: .8em;
    width: 8px;
    height: 2px;
    background: var(--ct-navy-500);
}

/* ---------- Curriculum: chapters accordion ---------- */
.ct-acc { border-top: 1px solid var(--ct-rule-strong); }
.ct-acc details { border-bottom: 1px solid var(--ct-rule); }
.ct-acc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    padding-block: 18px;
    cursor: pointer;
    list-style: none;
}
.ct-acc summary::-webkit-details-marker { display: none; }
.ct-acc__text { display: grid; gap: 2px; }
.ct-acc__label { font-size: .8125rem; font-weight: 700; color: var(--ct-navy-500); }
.ct-acc__title { font-size: 1.125rem; font-weight: 700; line-height: 1.5; color: var(--ct-ink); }
.ct-acc__chev {
    flex: none;
    width: 36px;
    height: 36px;
    padding: 8px;
    border: 1px solid var(--ct-rule-strong);
    border-radius: 50%;
    color: var(--ct-navy);
    transition: transform .25s var(--ct-ease), background-color .2s;
}
.ct-acc summary:hover .ct-acc__chev { background: var(--ct-tint); }
.ct-acc details[open] .ct-acc__chev { transform: rotate(180deg); background: var(--ct-navy); color: var(--ct-on-navy); border-color: var(--ct-navy); }
.ct-acc__body { margin: 0 0 24px !important; }

.ct-badge {
    display: inline-block;
    margin-inline-start: 8px;
    padding: 1px 10px;
    border-radius: 999px;
    background: #fdecd3;
    color: #7a4300;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.7;
    vertical-align: middle;
}

/* ---------- Formats ---------- */
.ct-formats { display: grid; gap: 16px; }
@media (min-width: 720px) { .ct-formats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ct-format {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: clamp(22px, 2.6vw, 32px);
    border: 1px solid var(--ct-rule);
    border-radius: var(--ct-radius);
    background: var(--ct-white);
}
.ct-format + .ct-format { background: var(--ct-tint); border-color: var(--ct-tint); }
.ct-format__name { font-size: .875rem; font-weight: 700; color: var(--ct-navy-500); }
.ct-format__hours { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); font-weight: 700; line-height: 1.25; color: var(--ct-navy); }
.ct-format__text { margin-top: 8px !important; color: var(--ct-muted); }
.ct-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px !important; font-size: .9375rem; color: var(--ct-muted); }
.ct-note .ct-icon { margin-top: .3em; color: var(--ct-navy-500); }

/* ---------- Metrics ---------- */
.ct-metrics {
    display: grid;
    gap: 1px;
    margin-top: clamp(28px, 4vw, 40px) !important;
    background: var(--ct-rule);
    border: 1px solid var(--ct-rule);
    border-radius: var(--ct-radius);
    overflow: hidden;
}
@media (min-width: 560px) { .ct-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .ct-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ct-metric { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.4vw, 30px); background: var(--ct-white); }
.ct-metric__idx { font-size: .8125rem; font-weight: 700; color: var(--ct-navy-500); font-variant-numeric: tabular-nums; }
.ct-metric__idx::after { content: ""; display: block; width: 24px; height: 2px; margin-top: 10px; background: var(--ct-accent); }
.ct-metric__text { font-size: 1.0625rem; font-weight: 600; line-height: 1.6; color: var(--ct-ink); }

/* ---------- Request (dark) ---------- */
.ct-dark { background: var(--ct-navy); color: var(--ct-on-navy); }
.ct-request { position: relative; isolation: isolate; scroll-margin-top: 0; }
.ct-request::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(242, 245, 250, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(242, 245, 250, .06) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 60% 80% at 0% 100%, #000 0%, transparent 75%);
            mask-image: radial-gradient(ellipse 60% 80% at 0% 100%, #000 0%, transparent 75%);
}
[dir="rtl"] .ct-request::before {
    -webkit-mask-image: radial-gradient(ellipse 60% 80% at 100% 100%, #000 0%, transparent 75%);
            mask-image: radial-gradient(ellipse 60% 80% at 100% 100%, #000 0%, transparent 75%);
}
.ct-request__grid { display: grid; gap: clamp(28px, 4vw, 48px); }
@media (min-width: 992px) { .ct-request__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.ct-dark .ct-kicker { color: var(--ct-accent); }
.ct-page .ct-dark .ct-h2 { color: var(--ct-on-navy); }
.ct-dark .ct-lead { color: var(--ct-on-navy-muted); }
.ct-request__program {
    display: grid;
    gap: 4px;
    margin-top: clamp(24px, 3vw, 36px) !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(242, 245, 250, .18);
    font-size: .875rem;
    color: var(--ct-on-navy-muted);
}
.ct-request__program strong { font-size: 1.125rem; color: var(--ct-on-navy); }

.ct-card {
    padding: clamp(20px, 3vw, 36px);
    background: var(--ct-white);
    color: var(--ct-ink);
    border-radius: var(--ct-radius);
    box-shadow: 0 30px 60px -30px rgba(3, 10, 25, .6);
}
.ct-card :focus-visible { outline-color: var(--ct-navy-500) !important; }

.ct-form__grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .ct-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; } }
.ct-field--full { grid-column: 1 / -1; }
.ct-field label {
    display: block;
    margin-bottom: 6px;
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--ct-ink);
}
.ct-optional { font-weight: 400; color: var(--ct-muted); }
.ct-page .ct-input {
    display: block;
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--ct-rule-strong);
    border-radius: var(--ct-radius-sm);
    background: var(--ct-white);
    color: var(--ct-ink);
    font: inherit;
    font-size: 1rem;
    line-height: 1.5;
    text-align: start;
    box-shadow: none;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    transition: border-color .15s, box-shadow .15s;
}
.ct-page .ct-input:hover { border-color: var(--ct-navy-500); }
.ct-page .ct-input:focus,
.ct-page .ct-input:focus-visible { outline: none; border-color: var(--ct-navy-500); box-shadow: 0 0 0 3px rgba(58, 90, 143, .35); }
[dir="rtl"] .ct-page .ct-input[dir="ltr"] { text-align: right; }
.ct-page textarea.ct-input { min-height: 120px; resize: vertical; }
.ct-page .ct-select {
    padding-inline-end: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 7.5 5 5 5-5' fill='none' stroke='%2314294d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 18px;
    background-position: right 14px center;
}
[dir="rtl"] .ct-page .ct-select { background-position: left 14px center; }
.ct-field.is-invalid .ct-input { border-color: var(--ct-danger); }
.ct-field__error { margin-top: 6px !important; font-size: .8125rem; font-weight: 600; color: var(--ct-danger); line-height: 1.5; }
.ct-alert {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: var(--ct-radius-sm);
    background: #fdecea;
    color: #8a1c13;
    font-weight: 600;
    font-size: .9375rem;
}
.ct-page .ct-form__submit { width: 100%; margin-top: 24px; }
@media (min-width: 640px) { .ct-page .ct-form__submit { width: auto; min-width: 220px; } }

.ct-hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

.ct-success { display: grid; justify-items: start; gap: 16px; padding-block: clamp(12px, 3vw, 32px); }
.ct-success:focus { outline: none; }
.ct-success__icon .ct-icon--check { width: 52px; height: 52px; padding: 12px; margin: 0; background: #e7f6ec; color: #17663a; }
.ct-success__text { font-size: 1.25rem; font-weight: 700; line-height: 1.6; color: var(--ct-ink); }

/* ---------- Other programs ---------- */
.ct-others { display: grid; gap: 16px; margin-top: clamp(24px, 3vw, 36px) !important; }
@media (min-width: 768px) { .ct-others { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.ct-other {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: clamp(22px, 2.6vw, 32px);
    background: var(--ct-white);
    border: 1px solid var(--ct-rule);
    border-radius: var(--ct-radius);
    transition: border-color .2s var(--ct-ease);
}
.ct-other:hover { border-color: var(--ct-navy-500); }
.ct-other:focus-within { outline: 3px solid var(--ct-navy-500); outline-offset: 3px; }
.ct-other:focus-within :focus-visible { outline: none; }
.ct-page .ct-other__title { font-size: 1.25rem; line-height: 1.45; }
.ct-other__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ct-other__text { color: var(--ct-muted); }
.ct-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; font-weight: 700; color: var(--ct-navy-700); }
.ct-other:hover .ct-more .ct-icon,
.ct-program:hover .ct-more .ct-icon { translate: 3px 0; }
[dir="rtl"] .ct-other:hover .ct-more .ct-icon,
[dir="rtl"] .ct-program:hover .ct-more .ct-icon { translate: -3px 0; }
.ct-more .ct-icon { transition: translate .2s var(--ct-ease); }

/* ---------- Hub: program ledger ---------- */
.ct-programs { border-top: 1px solid var(--ct-rule-strong); }
.ct-program {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px 20px;
    padding-block: clamp(28px, 4vw, 44px);
    border-bottom: 1px solid var(--ct-rule-strong);
}
.ct-program:focus-within { outline: 3px solid var(--ct-navy-500); outline-offset: 4px; border-radius: 4px; }
.ct-program:focus-within :focus-visible { outline: none; }
.ct-program__idx { grid-row: span 3; font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); font-weight: 700; line-height: 1; color: var(--ct-rule-strong); font-variant-numeric: tabular-nums; transition: color .2s; }
.ct-program:hover .ct-program__idx { color: var(--ct-navy); }
.ct-page .ct-program__title { font-size: clamp(1.375rem, 1.15rem + .9vw, 1.875rem); line-height: 1.35; text-wrap: balance; }
.ct-program__title a::after { content: ""; position: absolute; inset: 0; }
.ct-program__subtitle { margin-top: 4px !important; font-weight: 600; color: var(--ct-navy-700); }
.ct-program__text { margin-top: 10px !important; color: var(--ct-muted); max-width: 60ch; }
.ct-program__facts { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-program__facts li {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--ct-rule);
    border-radius: 999px;
    background: var(--ct-paper);
    font-size: .875rem;
    line-height: 1.5;
    color: var(--ct-muted);
}
.ct-program__facts strong { color: var(--ct-navy); font-weight: 700; }
.ct-program .ct-more { min-height: 48px; }
@media (min-width: 992px) {
    .ct-program { grid-template-columns: 96px minmax(0, 6fr) minmax(0, 4fr) auto; align-items: start; gap: 12px 40px; }
    .ct-program__idx { grid-row: auto; }
    .ct-program__facts { flex-direction: column; align-items: flex-start; padding-top: 6px !important; }
    .ct-program .ct-more { margin-top: 0; padding-top: 0; min-height: 0; align-self: start; padding-top: 8px; }
}

/* ---------- Mobile sticky CTA ---------- */
.ct-stickybar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 99;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
    background: var(--ct-white);
    border-top: 1px solid var(--ct-rule);
    box-shadow: 0 -10px 24px -14px rgba(14, 27, 51, .35);
    transition: transform .25s var(--ct-ease), visibility .25s;
}
.ct-page .ct-stickybar .ct-btn { width: 100%; min-height: 48px; }
.ct-stickybar.is-hidden { transform: translateY(110%); visibility: hidden; }
@media (min-width: 992px) { .ct-stickybar { display: none; } }

@media (prefers-reduced-motion: reduce) {
    .ct-page *,
    .ct-page *::before,
    .ct-page *::after { transition: none !important; animation: none !important; }
}

/* ---------- Homepage embed (index.blade.php): the program list only, no page chrome ---------- */
.ct-page.ct-home { background: transparent; padding-block: clamp(40px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.ct-home__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 40px;
    margin-bottom: clamp(24px, 3vw, 40px);
}
.ct-home__head > div { max-width: 64ch; }
.ct-home__accent { display: block; width: 56px; height: 4px; margin-bottom: 18px; border-radius: 2px; background: var(--ct-accent); }
.ct-page .ct-home__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    font-weight: 700;
    color: var(--ct-navy-700);
    text-decoration: underline;
    text-decoration-color: var(--ct-rule-strong);
    text-underline-offset: 6px;
}
.ct-page .ct-home__all:hover { color: var(--ct-navy); text-decoration-color: currentColor; }
