/*
 Theme Name:   AfBridge Child
 Theme URI:    https://afbridge.org
 Description:  AfBridge Centre of Innovative Studies — Child theme for Divi
 Author:       AfBridge Institute
 Author URI:   https://afbridge.org
 Template:     Divi
 Version:      1.0.0
*/

/* ============================================================
   AFBRIDGE DESIGN TOKENS
   ============================================================ */

:root {
  --navy:        #1A2B5E;
  --gold:        #B8962E;
  --light-gold:  #F5EDD0;
  --green:       #1A5E2E;
  --white:       #FFFFFF;
  --charcoal:    #1F1F1F;
  --mid-grey:    #555555;
  --light-grey:  #F2F2F2;

  /* Department accents */
  --dept-ministry:    #7B3FA0;   /* Purple — spiritual/theological */
  --dept-technology:  #0A6EBD;   /* Tech blue */
  --dept-business:    #C0550A;   /* Burnt orange — enterprise */
  --dept-creative:    #C42B6B;   /* Magenta — arts/design */
  --dept-community:   #1A7A5E;   /* Teal — community/social */

  /* Typography scale */
  --font-heading:  'Playfair Display', Georgia, serif;
  --font-body:     'Inter', system-ui, -apple-system, sans-serif;
  --font-tagline:  'Merriweather', Georgia, serif;
}

/* ============================================================
   GLOBAL RESET / BASE
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

/* Headings — only set font/weight, never color (Divi sets color per-module) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
}

/* Divi text modules — font + line-height only, no color override */
.et_pb_text p,
.et_pb_text li,
.et_pb_text td {
  font-family: var(--font-body);
  line-height: 1.75;
}

/* Tagline / pull quote style */
.afb-tagline,
.et_pb_text .afb-tagline,
.afb-pull-quote {
  font-family: var(--font-tagline);
  font-style: italic;
  color: var(--gold);
  font-size: 1.25rem;
  line-height: 1.6;
}

/* ============================================================
   DIVI CORE FIXES
   ============================================================ */

/* Remove the white gap Divi adds above first section for fixed header */
.et_fixed_nav #page-container,
.et_fixed_nav #main-content {
  padding-top: 0 !important;
}

/* On mobile, offset page content below the 70px fixed header */
@media (max-width: 980px) {
  body {
    padding-top: 70px !important;
  }
}

/* First section on every page — flush against header, no top gap */
.et_pb_section:first-of-type {
  margin-top: 0 !important;
}

/* Divi default section bottom border line — remove it */
.et_pb_row {
  border-bottom: none !important;
}

/* Buttons — let Divi's per-button colours win; just fix font */
.et_pb_button {
  font-family: var(--font-body) !important;
  letter-spacing: 0.3px !important;
  border-radius: 4px !important;
  transition: background 0.2s, color 0.2s, border-color 0.2s !important;
}

/* Breadcrumbs — affix below header, correct colour */
.et_pb_text .afb-breadcrumb,
.afb-breadcrumb {
  font-size: 13px !important;
  color: rgba(255,255,255,0.55) !important;
  margin-bottom: 12px !important;
  display: block;
}
.afb-breadcrumb a {
  color: rgba(255,255,255,0.75) !important;
  text-decoration: none !important;
}
.afb-breadcrumb a:hover { color: var(--gold) !important; }

/* ============================================================
   DIVI OVERRIDES — NAVIGATION
   ============================================================ */

/* ── Header bar ──────────────────────────────────────────────── */
#main-header,
.et-fixed-header {
  background-color: var(--navy) !important;
  border-bottom: 2px solid var(--gold) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.28) !important;
  transition: box-shadow 0.25s ease !important;
}

/* Slightly deeper shadow when scrolled (Divi adds .et-fixed-header) */
.et-fixed-header {
  box-shadow: 0 4px 32px rgba(0,0,0,0.40) !important;
}

/* Logo */
#logo { max-height: 60px; }

/* ── Desktop nav links ───────────────────────────────────────── */
#main-header .nav li a,
#et-top-navigation .nav li a {
  color: var(--white) !important;
  text-decoration: none !important;
  position: relative;
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  letter-spacing: 0.3px !important;
  transition: color 0.2s ease !important;
}

/* Gold underline slides in from centre on hover / active */
#main-header .nav li a::after,
#et-top-navigation .nav li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: left 0.25s ease, right 0.25s ease;
  pointer-events: none;
}

#main-header .nav li a:hover::after,
#main-header .nav li.current-menu-item > a::after,
#main-header .nav li.current-menu-ancestor > a::after,
#et-top-navigation .nav li a:hover::after,
#et-top-navigation .nav li.current-menu-item > a::after,
#et-top-navigation .nav li.current-menu-ancestor > a::after {
  left: 0;
  right: 0;
}

#main-header .nav li a:hover,
#main-header .nav li.current-menu-item > a,
#main-header .nav li.current-menu-ancestor > a,
#et-top-navigation .nav li a:hover,
#et-top-navigation .nav li.current-menu-item > a,
#et-top-navigation .nav li.current-menu-ancestor > a {
  color: var(--gold) !important;
}

/* No underline stub on parent items with sub-menus */
#main-header .nav li.menu-item-has-children > a::after,
#et-top-navigation .nav li.menu-item-has-children > a::after {
  display: none !important;
}

/* ── "Apply Now" — gold pill CTA in the nav ─────────────────── */
#main-header .nav li a[href$="/apply"],
#et-top-navigation .nav li a[href$="/apply"] {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 8px 20px !important;
  border-radius: 5px !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  margin-left: 8px !important;
  box-shadow: 0 2px 10px rgba(184,150,46,0.35) !important;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease !important;
}

#main-header .nav li a[href$="/apply"]:hover,
#et-top-navigation .nav li a[href$="/apply"]:hover {
  background: #cfa832 !important;
  color: var(--navy) !important;
  box-shadow: 0 4px 18px rgba(184,150,46,0.55) !important;
  transform: translateY(-1px) !important;
}

/* No underline on Apply Now */
#main-header .nav li a[href$="/apply"]::after,
#et-top-navigation .nav li a[href$="/apply"]::after {
  display: none !important;
}

/* ── Containers must not clip drop-downs ─────────────────────── */
#main-header,
#et-top-navigation,
#main-header .nav,
#et-top-navigation .nav,
#main-header .nav li,
#et-top-navigation .nav li {
  overflow: visible !important;
}

/* ── Dropdown panel ──────────────────────────────────────────── */
#main-header .nav li > ul.sub-menu,
#et-top-navigation .nav li > ul.sub-menu {
  background: var(--navy) !important;
  border-top: 3px solid var(--gold) !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.40) !important;
  padding: 6px 0 8px !important;
  min-width: 210px !important;
  z-index: 999999 !important;
  position: absolute !important;
}

/* ── Dropdown links ──────────────────────────────────────────── */
#main-header .nav li > ul.sub-menu li a,
#et-top-navigation .nav li > ul.sub-menu li a {
  color: rgba(255,255,255,0.82) !important;
  font-family: var(--font-body) !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  padding: 11px 22px 11px 20px !important;
  display: block !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
  border-left: 3px solid transparent !important;
  transition: color 0.15s, background 0.15s, border-left-color 0.15s, padding-left 0.15s !important;
  white-space: nowrap !important;
  letter-spacing: 0.2px !important;
}

#main-header .nav li > ul.sub-menu li:last-child a,
#et-top-navigation .nav li > ul.sub-menu li:last-child a {
  border-bottom: none !important;
}

#main-header .nav li > ul.sub-menu li a:hover,
#et-top-navigation .nav li > ul.sub-menu li a:hover {
  color: var(--gold) !important;
  background: rgba(184,150,46,0.08) !important;
  border-left-color: var(--gold) !important;
  padding-left: 26px !important;
}

/* No underline pseudo-element on dropdown items */
#main-header .nav li > ul.sub-menu li a::after,
#et-top-navigation .nav li > ul.sub-menu li a::after {
  display: none !important;
}

/* ============================================================
   DIVI OVERRIDES — BUTTONS
   ============================================================ */

/* Primary button */
.et_pb_button.afb-btn-primary,
.afb-btn-primary .et_pb_button {
  background-color: var(--navy) !important;
  color: var(--white) !important;
  border: 2px solid var(--gold) !important;
  border-radius: 4px !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  padding: 14px 32px !important;
  transition: background 0.2s, color 0.2s !important;
}
.et_pb_button.afb-btn-primary:hover,
.afb-btn-primary .et_pb_button:hover {
  background-color: var(--gold) !important;
  color: var(--navy) !important;
}

/* Gold CTA button */
.et_pb_button.afb-btn-gold,
.afb-btn-gold .et_pb_button {
  background-color: var(--gold) !important;
  color: var(--navy) !important;
  border: 2px solid var(--gold) !important;
  border-radius: 4px !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  padding: 14px 32px !important;
}
.et_pb_button.afb-btn-gold:hover,
.afb-btn-gold .et_pb_button:hover {
  background-color: #d4aa35 !important;
  border-color: #d4aa35 !important;
}

/* Gold outline button */
.et_pb_button.afb-btn-outline,
.afb-btn-outline .et_pb_button {
  background-color: transparent !important;
  color: var(--gold) !important;
  border: 2px solid var(--gold) !important;
  border-radius: 4px !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  padding: 14px 32px !important;
}
.et_pb_button.afb-btn-outline:hover,
.afb-btn-outline .et_pb_button:hover {
  background-color: var(--gold) !important;
  color: var(--navy) !important;
}

/* ============================================================
   SECTION UTILITIES
   ============================================================ */

/* Navy section */
.afb-section-navy,
.afb-section-navy .et_pb_section {
  background-color: var(--navy) !important;
}

.afb-section-navy h1,
.afb-section-navy h2,
.afb-section-navy h3,
.afb-section-navy p,
.afb-section-navy li {
  color: var(--white) !important;
}

/* Light gold panel */
.afb-section-light-gold {
  background-color: var(--light-gold) !important;
}

/* Light grey section */
.afb-section-grey {
  background-color: var(--light-grey) !important;
}

/* ============================================================
   CONVICTION STRIP
   ============================================================ */

.afb-conviction-strip {
  background-color: var(--navy);
  padding: 80px 10%;
  text-align: center;
}

.afb-conviction-strip p,
.afb-conviction-strip .et_pb_text_inner {
  font-family: var(--font-tagline) !important;
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  color: var(--white) !important;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
}

/* ============================================================
   DEPARTMENT CARDS
   ============================================================ */

.afb-dept-card {
  background: var(--white);
  border-radius: 8px;
  padding: 40px 32px;
  box-shadow: 0 4px 24px rgba(26,43,94,0.10);
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.afb-dept-card::before {
  content: '';
  display: block;
  height: 5px;
  background: var(--gold);
  position: absolute;
  top: 0; left: 0; right: 0;
}

.afb-dept-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26,43,94,0.18);
}

.afb-dept-card__number {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--light-gold);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
}

.afb-dept-card__name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.afb-dept-card__desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--mid-grey);
  line-height: 1.65;
  margin-bottom: 20px;
}

.afb-dept-card__count {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.afb-dept-card__link {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.15s;
}

.afb-dept-card__link:hover { color: var(--gold); }

/* Department accent overrides */
.afb-dept--ministry .afb-dept-card::before   { background: var(--dept-ministry); }
.afb-dept--technology .afb-dept-card::before { background: var(--dept-technology); }
.afb-dept--business .afb-dept-card::before   { background: var(--dept-business); }
.afb-dept--creative .afb-dept-card::before   { background: var(--dept-creative); }
.afb-dept--community .afb-dept-card::before  { background: var(--dept-community); }

/* ============================================================
   HOW IT WORKS — 3-STEP
   ============================================================ */

.afb-step {
  text-align: center;
  padding: 40px 24px;
}

.afb-step__number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.afb-step__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.afb-step__desc {
  font-family: var(--font-body);
  color: var(--mid-grey);
  line-height: 1.65;
}

.afb-step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 2rem;
  padding-top: 40px;
}

/* ============================================================
   OUTCOME BOX (Forest Green)
   ============================================================ */

.afb-outcome-box,
.afb-outcome-box.et_pb_blurb,
.et_pb_text.afb-outcome-box {
  background-color: var(--green) !important;
  border-radius: 8px;
  padding: 36px 40px !important;
  border-left: 6px solid #2d9d4e;
}

.afb-outcome-box *,
.afb-outcome-box h3,
.afb-outcome-box p,
.afb-outcome-box li {
  color: var(--white) !important;
}

.afb-outcome-box h3 {
  font-family: var(--font-heading) !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================================
   PROGRAMME CARDS
   ============================================================ */

.afb-programme-card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 32px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.afb-programme-card:hover {
  box-shadow: 0 8px 32px rgba(26,43,94,0.12);
  transform: translateY(-2px);
}

.afb-programme-card__code {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.afb-programme-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.3;
}

.afb-programme-card__meta {
  font-size: 0.85rem;
  color: var(--mid-grey);
  margin-bottom: 16px;
}

.afb-programme-card__link {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

/* ============================================================
   MODULE TABLE
   ============================================================ */

.afb-module-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.afb-module-table thead th {
  background-color: var(--navy);
  color: var(--white);
  font-weight: 600;
  padding: 14px 16px;
  text-align: left;
}

.afb-module-table tbody tr:nth-child(even) {
  background-color: var(--light-grey);
}

.afb-module-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
  line-height: 1.5;
}

.afb-module-table tbody tr:last-child td {
  background-color: var(--light-gold);
  font-weight: 600;
}

/* ============================================================
   ADMISSION ROUTES
   ============================================================ */

.afb-admission-routes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.afb-route-card {
  background: var(--light-gold);
  border-radius: 8px;
  padding: 28px 24px;
  border-top: 4px solid var(--gold);
}

.afb-route-card__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.afb-route-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.afb-route-card__desc {
  font-size: 0.9rem;
  color: var(--charcoal);
  line-height: 1.65;
}

/* ============================================================
   GRADUATE SHOWCASE CARDS
   ============================================================ */

.afb-showcase-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(26,43,94,0.08);
  transition: box-shadow 0.2s;
}

.afb-showcase-card:hover {
  box-shadow: 0 8px 32px rgba(26,43,94,0.15);
}

.afb-showcase-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.afb-showcase-card__body {
  padding: 24px;
}

.afb-showcase-card__dept {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.afb-showcase-card__outcome {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.afb-showcase-card__desc {
  font-size: 0.88rem;
  color: var(--mid-grey);
  line-height: 1.6;
}

.afb-showcase-card__name {
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
}

/* ============================================================
   TESTIMONIAL
   ============================================================ */

.afb-testimonial {
  background: var(--white);
  border-radius: 8px;
  padding: 40px 36px;
  box-shadow: 0 4px 20px rgba(26,43,94,0.08);
  position: relative;
}

.afb-testimonial::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--light-gold);
  line-height: 0.6;
  position: absolute;
  top: 32px;
  left: 28px;
}

.afb-testimonial__quote {
  font-family: var(--font-tagline);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--charcoal);
  line-height: 1.75;
  margin-bottom: 20px;
  padding-left: 24px;
}

.afb-testimonial__name {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.afb-testimonial__programme {
  font-size: 0.85rem;
  color: var(--gold);
}

/* ============================================================
   PARTNERSHIP STRIP
   ============================================================ */

.afb-partner-strip {
  background: var(--light-grey);
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.afb-partner-strip p {
  font-size: 0.9rem;
  color: var(--mid-grey);
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================================
   COMING SOON / NOTIFY ME
   ============================================================ */

.afb-coming-soon-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.afb-notify-form {
  max-width: 480px;
  display: flex;
  gap: 12px;
}

.afb-notify-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--light-grey);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.15s;
}

.afb-notify-form input[type="email"]:focus {
  border-color: var(--gold);
  outline: none;
}

/* ============================================================
   FOOTER
   ============================================================ */

#footer-widgets,
.footer-widget {
  background-color: var(--navy) !important;
}

#footer-info {
  background-color: #0f1a3a !important;
  color: rgba(255,255,255,0.6) !important;
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.footer-widget h4,
.footer-widget .widget-title {
  font-family: var(--font-heading);
  color: var(--white) !important;
  font-size: 1rem;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.footer-widget p,
.footer-widget a,
.footer-widget li {
  color: rgba(255,255,255,0.7) !important;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.75;
}

.footer-widget a:hover {
  color: var(--gold) !important;
  text-decoration: none;
}

/* Social icons in footer */
.et_pb_social_media_follow li a.icon {
  background-color: rgba(255,255,255,0.1) !important;
  transition: background-color 0.2s;
}
.et_pb_social_media_follow li a.icon:hover {
  background-color: var(--gold) !important;
}

/* ============================================================
   DEPARTMENT HERO BANNER
   ============================================================ */

.afb-dept-hero {
  min-height: 480px;
  background-color: var(--navy);
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  position: relative;
}

.afb-dept-hero__number {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.afb-dept-hero__name {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
}

.afb-dept-hero__conviction {
  font-family: var(--font-tagline);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--light-gold);
  max-width: 680px;
  line-height: 1.65;
}

/* ============================================================
   PROGRAMME HERO BANNER
   ============================================================ */

.afb-prog-hero {
  background-color: var(--navy);
  padding: 80px 0 60px;
}

.afb-prog-hero__code {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.afb-prog-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}

.afb-prog-hero__dept {
  font-size: 0.9rem;
  color: var(--light-gold);
  margin-bottom: 24px;
}

.afb-prog-hero__meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.afb-prog-hero__meta-item {
  text-align: center;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 14px 24px;
  min-width: 100px;
}

.afb-prog-hero__meta-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.afb-prog-hero__meta-value {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */

.afb-breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}

.afb-breadcrumb a {
  color: var(--light-gold);
  text-decoration: none;
}

.afb-breadcrumb a:hover { color: var(--white); }

.afb-breadcrumb span { color: rgba(255,255,255,0.4); margin: 0 6px; }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */

@keyframes afb-wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.afb-whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.40);
  z-index: 99990;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: afb-wa-pulse 2.4s ease-out infinite;
  text-decoration: none;
}

.afb-whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.60);
  animation: none;
}

/* Tooltip */
.afb-whatsapp-float::before {
  content: 'Chat with us';
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #1a1a1a;
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.afb-whatsapp-float:hover::before { opacity: 1; }

.afb-whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* Smaller on very small screens */
@media (max-width: 480px) {
  .afb-whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  .afb-whatsapp-float svg { width: 26px; height: 26px; }
  .afb-whatsapp-float::before { display: none; }
}







/* ============================================================
   PROGRAMMES OVERVIEW PAGE
   ============================================================ */

.afb-programmes-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.afb-filter-pill {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 24px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  cursor: pointer;
  background: var(--light-grey);
  color: var(--charcoal);
}

.afb-filter-pill:hover,
.afb-filter-pill.active {
  background: var(--navy);
  color: var(--white);
}

.afb-filter-pill--ministry  { border-color: var(--dept-ministry);  }
.afb-filter-pill--technology { border-color: var(--dept-technology); }
.afb-filter-pill--business  { border-color: var(--dept-business);  }
.afb-filter-pill--creative  { border-color: var(--dept-creative);  }
.afb-filter-pill--community { border-color: var(--dept-community); }

.afb-filter-pill--ministry.active  { background: var(--dept-ministry);  }
.afb-filter-pill--technology.active { background: var(--dept-technology); }
.afb-filter-pill--business.active  { background: var(--dept-business);  }
.afb-filter-pill--creative.active  { background: var(--dept-creative);  }
.afb-filter-pill--community.active { background: var(--dept-community); }
