:root {
  --ast-global-color-0: #dca54a;
  --ast-global-color-1: #d09a40;
  --ast-global-color-2: #0f172a;
  --ast-global-color-3: #4a4a4a;
  --ast-global-color-4: #faf5e5;
  --ast-global-color-5: #ffffff;
  --ast-global-color-6: #f0e6c5;
  --ast-global-color-7: #141004;
  --ast-global-color-8: #222222;
  --burgundy: #6d1d32;
  --green: #176b4d;
  --red: #9b2335;
  --border: rgba(15, 23, 42, 0.13);
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
  --shadow-small: 0 10px 30px rgba(15, 23, 42, 0.09);
  --radius: 18px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ast-global-color-3);
  background: var(--ast-global-color-5);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--ast-global-color-2); text-decoration: none; transition: color .25s ease, background .25s ease, transform .25s ease; }
a:hover { color: var(--ast-global-color-1); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .55em;
  color: var(--ast-global-color-2);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.15;
}
h1 { font-size: clamp(2.55rem, 5.7vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.55rem); }
h3 { font-size: clamp(1.45rem, 2.6vw, 2.2rem); }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding-left: 1.2rem; }
::selection { background: var(--ast-global-color-0); color: var(--ast-global-color-2); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed !important;
  top: 12px; left: 12px;
  width: auto; height: auto;
  padding: 10px 16px; margin: 0;
  overflow: visible; clip: auto;
  z-index: 9999; background: #fff; color: #0f172a;
  border: 2px solid #dca54a; border-radius: 6px;
}
.ast-container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 800px); margin-inline: auto; }
.section { padding: 96px 0; position: relative; }
.section.compact { padding: 64px 0; }
.section.cream { background: var(--ast-global-color-4); }
.section.navy { background: var(--ast-global-color-2); color: rgba(255,255,255,.82); }
.section.navy h2, .section.navy h3, .section.navy h4 { color: #fff; }
.section.navy .card { color: var(--ast-global-color-3); }
.section.navy .card h3, .section.navy .card h4 { color: var(--ast-global-color-2); }
.section.gold-wash { background: linear-gradient(135deg, #faf5e5 0%, #fff 50%, #f0e6c5 100%); }
.section-header { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: end; margin-bottom: 52px; }
.section-header.single { grid-template-columns: 1fr; max-width: 760px; }
.section-header p { font-size: 1.08rem; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--burgundy); font-weight: 700; font-size: .76rem;
  letter-spacing: .15em; text-transform: uppercase; margin-bottom: 15px;
}
.eyebrow::before { content: ""; width: 36px; height: 2px; background: var(--ast-global-color-0); }
.section.navy .eyebrow { color: var(--ast-global-color-0); }
.gold-rule { width: 80px; height: 3px; background: var(--ast-global-color-0); margin: 18px 0 24px; }
.muted { color: #6b7280; }
.small { font-size: .875rem; }
.tiny { font-size: .76rem; }
.text-gold { color: var(--ast-global-color-0); }
.text-navy { color: var(--ast-global-color-2); }
.text-white { color: #fff; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .gold-rule { margin-inline: auto; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }

/* Header retains the Astra source naming and layout concepts. */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(15,23,42,.08);
  backdrop-filter: blur(14px);
}
.site-primary-header-wrap {
  min-height: 92px;
  display: grid; grid-template-columns: minmax(280px, 1fr) auto auto;
  align-items: center; gap: 28px;
}
.site-branding { display: flex; align-items: center; gap: 13px; min-width: 0; }
.custom-logo { width: 68px; height: 68px; flex: 0 0 auto; transition: transform .35s ease; }
.site-branding:hover .custom-logo { transform: rotate(3deg) scale(1.03); }
.site-title { display: block; color: var(--ast-global-color-2); font: 700 1.45rem/1 Georgia, serif; letter-spacing: .04em; }
.site-description { margin: 5px 0 0; color: #6b7280; font-size: .68rem; line-height: 1.25; max-width: 275px; }
.main-header-menu { display: flex; align-items: center; gap: 2px; list-style: none; padding: 0; }
.menu-item { position: relative; }
.menu-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 33px 10px;
  color: var(--ast-global-color-2);
  font: 700 .82rem/1 Georgia, serif;
  white-space: nowrap;
}
.menu-link:hover, .menu-item.current-menu-item > .menu-link { color: var(--ast-global-color-1); }
.menu-item.current-menu-item > .menu-link::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 23px; height: 2px; background: var(--ast-global-color-0);
}
.submenu-toggle { font-size: .68rem; transition: transform .25s ease; }
.sub-menu {
  position: absolute; top: calc(100% - 17px); left: 0;
  min-width: 250px; margin: 0; padding: 10px;
  list-style: none; background: #fff;
  border-top: 3px solid var(--ast-global-color-0);
  border-radius: 0 0 12px 12px; box-shadow: var(--shadow-small);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}
.menu-item:hover > .sub-menu, .menu-item:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.menu-item:hover .submenu-toggle { transform: rotate(180deg); }
.sub-menu .menu-link { display: block; padding: 12px 14px; font-family: Helvetica, Arial, sans-serif; font-weight: 600; line-height: 1.25; white-space: normal; border-radius: 7px; }
.sub-menu .menu-link:hover { background: var(--ast-global-color-4); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.header-actions .btn { padding: 11px 15px; font-size: .76rem; }
.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  color: #fff; background: var(--ast-global-color-0); border: 0; border-radius: 8px;
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.mobile-menu { display: none; }

.btn, .elementor-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px;
  border: 1px solid var(--ast-global-color-0); border-radius: 6px;
  background: var(--ast-global-color-0); color: var(--ast-global-color-2);
  font: 700 .9rem/1.15 Georgia, serif;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}
.btn:hover, .elementor-button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(220,165,74,.24); background: var(--ast-global-color-1); color: var(--ast-global-color-2); }
.btn-dark { background: var(--ast-global-color-2); border-color: var(--ast-global-color-2); color: #fff; }
.btn-dark:hover { background: #1f2d49; color: #fff; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: #fff; border-color: #fff; color: var(--ast-global-color-2); }
.btn-ghost { background: transparent; color: var(--ast-global-color-2); }
.btn-ghost:hover { background: var(--ast-global-color-4); }
.button-group { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ast-global-color-2); }
.link-arrow span { transition: transform .2s ease; }
.link-arrow:hover span { transform: translateX(5px); }

.hero {
  min-height: 720px; position: relative; display: flex; align-items: center; overflow: hidden;
  background: var(--ast-global-color-2) url('../img/afcp-hero-learning.png') center/cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,23,42,.98) 0%, rgba(15,23,42,.94) 34%, rgba(15,23,42,.44) 62%, rgba(15,23,42,.08) 100%); }
.hero::after { content: ""; position: absolute; left: -8%; bottom: -140px; width: 460px; height: 300px; border: 2px solid rgba(220,165,74,.25); border-radius: 50%; transform: rotate(-12deg); }
.hero-content { position: relative; z-index: 2; max-width: 660px; padding: 112px 0 122px; color: rgba(255,255,255,.83); }
.hero h1 { color: #fff; font-size: clamp(3rem, 6vw, 5.6rem); }
.hero .lead { max-width: 610px; font-size: 1.12rem; }
.hero-notice { display: inline-flex; gap: 10px; align-items: center; margin-top: 28px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: rgba(255,255,255,.74); font-size: .78rem; background: rgba(255,255,255,.06); }
.pulse { width: 8px; height: 8px; background: var(--ast-global-color-0); border-radius: 50%; box-shadow: 0 0 0 0 rgba(220,165,74,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(220,165,74,0); } 100% { box-shadow: 0 0 0 0 rgba(220,165,74,0); } }

.page-hero { padding: 92px 0 80px; background: linear-gradient(135deg, #0f172a 0%, #17233c 72%, #6d1d32 140%); color: rgba(255,255,255,.8); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 420px; height: 420px; right: -150px; top: -215px; border: 55px solid rgba(220,165,74,.08); border-radius: 50%; }
.page-hero .ast-container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 880px; }
.page-hero p { max-width: 780px; font-size: 1.08rem; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; color: rgba(255,255,255,.58); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.breadcrumbs a { color: var(--ast-global-color-0); }

.metrics-strip { position: relative; z-index: 5; margin-top: -48px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.metric { min-height: 150px; padding: 30px; border-right: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; }
.metric:last-child { border-right: 0; }
.metric-number { color: var(--ast-global-color-2); font: 400 2.9rem/1 Georgia, serif; }
.metric-number .plus { color: var(--ast-global-color-0); }
.metric-label { margin-top: 8px; color: #6b7280; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 72px; align-items: center; }
.split.reverse { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
.split-image { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); position: relative; }
.split-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .7s ease; }
.split-image:hover img { transform: scale(1.035); }
.split-image .caption { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 13px 16px; color: #fff; background: rgba(15,23,42,.88); border-radius: 9px; font-size: .76rem; }
.image-frame { border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.image-frame img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.card {
  position: relative; padding: 30px; background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15,23,42,.04);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-small); border-color: rgba(220,165,74,.6); }
.card-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 12px; background: var(--ast-global-color-4); color: var(--burgundy); font: 700 1.15rem Georgia, serif; }
.card h3 { font-size: 1.45rem; }
.card p:last-child { margin-bottom: 0; }
.card-footer { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.value-card { padding-top: 38px; }
.value-card::before { content: ""; position: absolute; top: 0; left: 30px; width: 54px; height: 4px; background: var(--ast-global-color-0); }

.programme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.programme-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.programme-card:hover { transform: translateY(-5px); }
.programme-top { min-height: 164px; padding: 27px 27px 20px; background: linear-gradient(135deg, #0f172a, #1d2c4a); color: #fff; position: relative; }
.programme-top h3 { color: #fff; font-size: 1.36rem; }
.programme-number { position: absolute; right: 18px; bottom: 9px; color: rgba(255,255,255,.08); font: 700 4.3rem/1 Georgia, serif; }
.programme-body { padding: 24px 27px 27px; display: flex; flex: 1; flex-direction: column; }
.programme-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; background: var(--ast-global-color-4); color: var(--ast-global-color-2); font-size: .68rem; font-weight: 700; letter-spacing: .03em; }
.tag.public { background: #e8f4ee; color: var(--green); }
.tag.private { background: #edf1f7; color: #34507b; }
.tag.restricted { background: #f7e8eb; color: var(--red); }
.tag.virtual { background: #fff6df; color: #7b5411; }
.programme-outcomes { margin: 0 0 22px; padding-left: 1.05rem; font-size: .9rem; }
.programme-outcomes li { margin-bottom: 6px; }
.programme-actions { margin-top: auto; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.programme-actions .btn { padding: 11px 15px; font-size: .78rem; }

.notice { padding: 22px 24px; border-left: 4px solid var(--ast-global-color-0); background: var(--ast-global-color-4); border-radius: 0 10px 10px 0; }
.notice.restricted { border-color: var(--red); background: #fff7f8; }
.notice.success { border-color: var(--green); background: #f3faf6; }
.notice h4 { margin-bottom: 7px; }
.notice p:last-child { margin-bottom: 0; }
.eligibility-box { padding: 32px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-small); }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding: 9px 0 9px 31px; border-bottom: 1px solid rgba(15,23,42,.08); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 9px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--ast-global-color-6); color: var(--ast-global-color-2); font-size: .72rem; font-weight: 700; }
.numbered-list { counter-reset: steps; list-style: none; padding: 0; }
.numbered-list li { counter-increment: steps; display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.numbered-list li::before { content: counter(steps); display: grid; place-items: center; width: 38px; height: 38px; background: var(--ast-global-color-2); color: var(--ast-global-color-0); border-radius: 50%; font-weight: 700; }

.filter-bar { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 12px; margin-bottom: 32px; padding: 18px; background: var(--ast-global-color-4); border: 1px solid var(--ast-global-color-6); border-radius: 12px; }
.form-control { width: 100%; padding: 13px 14px; border: 1px solid #cfd4dd; border-radius: 6px; background: #fff; color: var(--ast-global-color-2); transition: border .2s ease, box-shadow .2s ease; }
.form-control:focus { outline: 0; border-color: var(--ast-global-color-0); box-shadow: 0 0 0 3px rgba(220,165,74,.18); }
textarea.form-control { min-height: 130px; resize: vertical; }
.form-label { display: block; margin-bottom: 6px; color: var(--ast-global-color-2); font-weight: 700; font-size: .82rem; }
.form-help { margin-top: 5px; color: #6b7280; font-size: .75rem; }
.field { margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-card { padding: 34px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-small); }
.status-message { display: none; margin-top: 16px; padding: 12px; border-radius: 6px; background: #f3faf6; color: var(--green); font-size: .84rem; }
.status-message.show { display: block; }

.calendar-list { display: grid; gap: 14px; }
.calendar-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: center; padding: 22px; border: 1px solid var(--border); border-radius: 12px; background: #fff; transition: transform .25s ease, box-shadow .25s ease, border .25s ease; }
.calendar-item:hover { transform: translateX(4px); box-shadow: var(--shadow-small); border-color: rgba(220,165,74,.55); }
.calendar-item[hidden] { display: none; }
.calendar-date { padding-right: 20px; border-right: 1px solid var(--border); color: var(--ast-global-color-2); text-align: center; }
.calendar-month { display: block; color: var(--burgundy); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; }
.calendar-day { display: block; font: 400 1.75rem Georgia, serif; }
.calendar-item h3 { margin: 0 0 5px; font-size: 1.14rem; }
.calendar-details { display: flex; flex-wrap: wrap; gap: 13px; color: #6b7280; font-size: .78rem; }
.calendar-price { min-width: 150px; text-align: right; }
.calendar-price strong { display: block; color: var(--ast-global-color-2); font-family: Georgia, serif; }
.calendar-price span { color: #6b7280; font-size: .7rem; }
.calendar-disclaimer { margin-bottom: 28px; }

.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
caption { text-align: left; padding: 18px 20px; color: var(--ast-global-color-2); font: 700 1.08rem Georgia, serif; background: var(--ast-global-color-4); }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
th { color: #fff; background: var(--ast-global-color-2); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fffdf8; }
td.numeric, th.numeric { text-align: right; white-space: nowrap; }
.price-card { text-align: center; }
.price { margin: 18px 0 4px; color: var(--ast-global-color-2); font: 400 2.4rem/1 Georgia, serif; }
.price small { font: 400 .85rem Helvetica, Arial, sans-serif; color: #6b7280; }
.fee-highlight { border: 2px solid var(--ast-global-color-0); }

.tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.tab-button { padding: 13px 17px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #6b7280; font-weight: 700; }
.tab-button.active { color: var(--ast-global-color-2); border-bottom-color: var(--ast-global-color-0); }
.tab-panel { display: none; animation: fade .35s ease; }
.tab-panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.accordion { border-top: 1px solid var(--border); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-button { width: 100%; padding: 20px 0; border: 0; background: transparent; color: var(--ast-global-color-2); display: flex; justify-content: space-between; gap: 24px; text-align: left; font: 700 1.03rem Georgia, serif; }
.accordion-icon { color: var(--ast-global-color-0); font-size: 1.35rem; transition: transform .25s ease; }
.accordion-button[aria-expanded="true"] .accordion-icon { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.accordion-panel-inner { padding: 0 0 20px; }

.gallery-grid { display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: repeat(2, 280px); gap: 18px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 14px; background: #ddd; }
.gallery-item:first-child { grid-row: 1 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption { position: absolute; inset: auto 0 0; padding: 36px 20px 17px; color: #fff; background: linear-gradient(transparent, rgba(15,23,42,.9)); font-size: .8rem; }

.career-card { display: flex; flex-direction: column; }
.career-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 18px; }
.career-card .link-arrow { margin-top: auto; }

.cta-band { padding: 58px 0; background: var(--ast-global-color-0); }
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.cta-inner h2 { max-width: 760px; margin: 0; font-size: clamp(1.8rem, 3.5vw, 3rem); }

.map-placeholder { min-height: 330px; display: grid; place-items: center; text-align: center; padding: 35px; border-radius: var(--radius); color: rgba(255,255,255,.8); background: linear-gradient(rgba(15,23,42,.74),rgba(15,23,42,.9)), repeating-linear-gradient(45deg,#17233c 0,#17233c 16px,#1d2c4a 16px,#1d2c4a 32px); }
.location-list { display: grid; gap: 14px; }
.location { padding: 18px 20px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.location strong { display: block; color: var(--ast-global-color-2); }

.site-footer { background: var(--ast-global-color-4); color: #59606c; }
.site-primary-footer-wrap { padding: 70px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr; gap: 48px; }
.footer-brand { display: flex; gap: 13px; align-items: center; margin-bottom: 18px; }
.footer-brand img { width: 58px; }
.footer-brand strong { color: var(--ast-global-color-2); font: 700 1.2rem Georgia, serif; }
.footer-title { margin-bottom: 18px; font-size: 1.05rem; }
.footer-menu { list-style: none; padding: 0; }
.footer-menu li { margin: 8px 0; }
.footer-menu a { color: #59606c; font-size: .86rem; }
.footer-menu a:hover { color: var(--ast-global-color-1); }
.footer-contact { font-size: .86rem; }
.site-below-footer-wrap { padding: 22px 0; border-top: 1px solid rgba(15,23,42,.1); }
.copyright-row { display: flex; justify-content: space-between; gap: 20px; font-size: .75rem; }
.copyright-row p { margin: 0; }
.legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.legal-links a { color: #59606c; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.no-js .reveal { opacity: 1; transform: none; }
.back-to-top { position: fixed; right: 20px; bottom: 20px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--ast-global-color-2); color: #fff; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s ease; z-index: 800; box-shadow: var(--shadow-small); }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.offline-ribbon { padding: 7px 20px; text-align: center; background: var(--ast-global-color-2); color: rgba(255,255,255,.7); font-size: .69rem; letter-spacing: .04em; }

@media (max-width: 1120px) {
  .site-primary-header-wrap { grid-template-columns: minmax(255px, 1fr) auto; }
  .main-header-navigation, .header-actions { display: none; }
  .menu-toggle { display: inline-flex; justify-self: end; }
  .mobile-menu {
    position: absolute; top: 100%; right: 0; bottom: auto; left: auto; width: min(92vw, 390px); height: calc(100vh - 92px);
    display: block; padding: 24px; background: #fff; box-shadow: -20px 30px 60px rgba(15,23,42,.2); overflow-y: auto;
    transform: translateX(105%); transition: transform .3s ease;
  }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-menu .main-header-menu { display: block; }
  .mobile-menu .menu-link { width: 100%; padding: 15px 8px; border-bottom: 1px solid var(--border); font-size: .95rem; }
  .mobile-menu .menu-item.current-menu-item > .menu-link::after { display: none; }
  .mobile-menu .sub-menu { position: static; display: none; min-width: 0; padding: 5px 0 8px 14px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .mobile-menu .menu-item.open > .sub-menu { display: block; }
  .mobile-menu .sub-menu .menu-link { padding: 11px; font-size: .84rem; }
  .mobile-menu .mobile-submenu-button { position: absolute; right: 0; top: 6px; width: 42px; height: 42px; border: 0; background: transparent; color: var(--ast-global-color-2); }
  .mobile-menu .button-group { margin-top: 24px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .programme-grid, .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .section { padding: 72px 0; }
  .section-header, .split, .split.reverse { grid-template-columns: 1fr; gap: 34px; }
  .section-header { margin-bottom: 38px; }
  .hero { min-height: 660px; background-position: 62% center; }
  .hero::before { background: linear-gradient(90deg, rgba(15,23,42,.98), rgba(15,23,42,.78)); }
  .hero-content { max-width: 610px; }
  .filter-bar { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .calendar-item { grid-template-columns: 90px 1fr; }
  .calendar-price { grid-column: 2; text-align: left; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 320px); }
  .gallery-item:first-child { grid-row: auto; }
  .cta-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 580px) {
  .ast-container, .narrow { width: min(calc(100% - 28px), var(--container)); }
  .offline-ribbon { padding-inline: 10px; }
  .site-primary-header-wrap { min-height: 76px; grid-template-columns: 1fr auto; gap: 8px; }
  .custom-logo { width: 52px; height: 52px; }
  .site-title { font-size: 1.15rem; }
  .site-description { font-size: .58rem; max-width: 205px; }
  .mobile-menu { height: calc(100vh - 76px); }
  .hero { min-height: 720px; }
  .hero-content { padding: 85px 0 110px; }
  .hero h1 { font-size: 2.8rem; }
  .button-group { align-items: stretch; flex-direction: column; }
  .metrics-strip { margin-top: -36px; }
  .metrics-grid, .grid-2, .grid-3, .grid-4, .programme-grid, .form-grid, .filter-bar, .footer-grid { grid-template-columns: 1fr; }
  .metric { min-height: 125px; border-right: 0; border-bottom: 1px solid var(--border); }
  .metric:last-child { border-bottom: 0; }
  .calendar-item { grid-template-columns: 1fr; }
  .calendar-date { display: flex; gap: 10px; align-items: baseline; padding: 0 0 12px; border-right: 0; border-bottom: 1px solid var(--border); text-align: left; }
  .calendar-price { grid-column: auto; }
  .gallery-grid { grid-template-rows: repeat(3, 260px); }
  .copyright-row { flex-direction: column; }
  .page-hero { padding: 70px 0 60px; }
  .card, .form-card, .eligibility-box { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .back-to-top, .offline-ribbon, .filter-bar, .button-group, .btn { display: none !important; }
  body { color: #111; background: #fff; font-size: 10pt; }
  .section, .page-hero { padding: 20px 0; background: #fff !important; color: #111 !important; }
  .page-hero h1, .section.navy h2, .section.navy h3 { color: #111; }
  .card, .table-wrap { box-shadow: none; break-inside: avoid; }
}

/* Expanded course catalogue and detail views */
.programme-actions { flex-wrap: wrap; row-gap: 10px; }
.programme-actions .btn { padding: 10px 15px; font-size: .82rem; }
.course-detail-link { display: inline-block; margin-top: 10px; color: var(--navy); font-weight: 700; font-size: .86rem; text-decoration: underline; text-decoration-color: rgba(220,165,74,.65); text-underline-offset: 3px; }
.course-detail-link:hover, .course-detail-link:focus { color: var(--gold-dark); }
.restricted-price span:first-child { text-decoration: line-through; color: var(--muted); }
.restricted-price strong { color: var(--red); }
.calendar-price small { color: var(--muted); font-size: .72rem; }
.course-hero { background: linear-gradient(115deg, rgba(15,23,42,.98), rgba(15,23,42,.88)), url('../img/afcp-hero-learning.png') center/cover; }
.course-hero h1, .course-hero p, .course-hero .breadcrumbs, .course-hero .breadcrumbs a { color: #fff; }
.course-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--border); box-shadow: var(--shadow-small); }
.course-summary > div { display: grid; gap: 6px; align-content: center; min-height: 112px; padding: 22px; background: #fff; }
.course-summary span { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.course-summary strong { color: var(--navy); font-family: Georgia, Times, serif; font-size: 1.06rem; line-height: 1.25; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, .8fr); gap: 32px; align-items: start; }
.detail-main, .detail-sidebar { display: grid; gap: 24px; }
.detail-sidebar { position: sticky; top: 112px; }
.detail-panel { padding: 30px; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: var(--shadow-small); }
.detail-panel h2, .detail-panel h3 { margin-bottom: 16px; }
.detail-list, .module-list { display: grid; gap: 10px; margin: 0; padding-left: 22px; }
.module-list { counter-reset: module; list-style: none; padding: 0; }
.module-list li { counter-increment: module; position: relative; padding: 14px 14px 14px 52px; border: 1px solid var(--border); border-radius: 9px; background: var(--cream); }
.module-list li::before { content: counter(module, decimal-leading-zero); position: absolute; left: 15px; top: 13px; color: var(--gold-dark); font-weight: 800; }
.fee-detail { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--border); }
.fee-detail > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px; background: var(--cream); }
.fee-detail span { color: var(--muted); font-size: .82rem; }
.fee-detail strong { color: var(--navy); }
.fee-detail .fee-payable { background: var(--navy); }
.fee-detail .fee-payable span, .fee-detail .fee-payable strong { color: #fff; }
.table-wrap table a { color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(220,165,74,.55); text-underline-offset: 2px; }
.table-wrap table a:hover { color: var(--gold-dark); }

@media (max-width: 921px) {
  .course-summary { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
}

@media (max-width: 544px) {
  .course-summary { grid-template-columns: 1fr; }
  .course-summary > div { min-height: 0; }
  .detail-panel { padding: 22px; }
  .programme-actions { align-items: flex-start; }
  .calendar-price { text-align: left; }
}
