/*
Theme Name:   AHEC Theme
Theme URI:    https://ahecglobal.com
Description:  Official theme for American Health Examiners & Certifications Inc. — a high-performance child theme of Kadence.
Author:       AHEC Development Team
Author URI:   https://ahecglobal.com
Template:     kadence
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  ahec-theme
Tags:         healthcare, certifications, professional
*/

/* ═══════════════════════════════════════════════════════════════════
   AHEC DESIGN SYSTEM
   ─────────────────────────────────────────────────────────────────
   Primary:   Navy   #0d1f5c
   Secondary: Gold   #c9a030
   Accent:    Light  #e8f0fe
   Text:      Dark   #1a1a2e
   Muted:     Gray   #6b7280
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --ahec-navy:         #0d1f5c;
  --ahec-navy-dark:    #081440;
  --ahec-navy-mid:     #1a3380;
  --ahec-navy-light:   #2d4fa0;
  --ahec-gold:         #c9a030;
  --ahec-gold-dark:    #a07a1a;
  --ahec-gold-light:   #e8c55a;
  --ahec-gold-pale:    #fdf6e3;
  --ahec-white:        #ffffff;
  --ahec-off-white:    #f8f9fc;
  --ahec-light:        #e8edf8;
  --ahec-text:         #1a1a2e;
  --ahec-muted:        #6b7280;
  --ahec-border:       #e2e8f0;
  --ahec-success:      #10b981;
  --ahec-error:        #ef4444;
  --ahec-warning:      #f59e0b;

  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;

  --shadow-sm:   0 1px 3px rgba(13,31,92,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:   0 4px 16px rgba(13,31,92,.12), 0 2px 6px rgba(0,0,0,.08);
  --shadow-lg:   0 10px 40px rgba(13,31,92,.15), 0 4px 12px rgba(0,0,0,.1);
  --shadow-xl:   0 20px 60px rgba(13,31,92,.2), 0 8px 24px rgba(0,0,0,.12);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base & Typography ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--ahec-text);
  background: var(--ahec-white);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ahec-navy);
  letter-spacing: -0.02em;
}

a {
  color: var(--ahec-navy);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--ahec-gold); }

img { max-width: 100%; height: auto; }

/* ── Site Header ────────────────────────────────────────────────── */
.site-header,
.header-wrap,
header.kadence-header {
  background: var(--ahec-navy) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}

/* Top bar */
.ahec-topbar {
  background: var(--ahec-navy-dark);
  color: rgba(255,255,255,.75);
  font-size: 0.8125rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(201,160,48,.3);
}
.ahec-topbar a { color: var(--ahec-gold-light); }
.ahec-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.ahec-topbar .tagline { font-style: italic; letter-spacing: 0.04em; }

/* Logo area */
.ahec-logo-wrap { display: flex; align-items: center; gap: 12px; }
.ahec-logo-wrap img { height: 56px; width: auto; }
.ahec-site-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ahec-white);
  line-height: 1.2;
}
.ahec-site-name span { display: block; font-size: 0.7rem; color: var(--ahec-gold); font-family: var(--font-sans); letter-spacing: 0.12em; font-weight: 400; text-transform: uppercase; }

/* Nav */
.header-navigation .nav-menu > li > a {
  color: rgba(255,255,255,.9) !important;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.header-navigation .nav-menu > li > a:hover,
.header-navigation .nav-menu > li.current-menu-item > a {
  color: var(--ahec-gold) !important;
  background: rgba(201,160,48,.12) !important;
}

/* Dropdown */
.header-navigation .sub-menu {
  background: var(--ahec-white) !important;
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid var(--ahec-border);
  border-radius: var(--radius-md) !important;
  padding: 8px !important;
  min-width: 220px;
}
.header-navigation .sub-menu li a {
  color: var(--ahec-text) !important;
  font-size: 0.875rem;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
}
.header-navigation .sub-menu li a:hover {
  color: var(--ahec-navy) !important;
  background: var(--ahec-light) !important;
}

/* Header CTA buttons */
.ahec-header-cta {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ahec-header-cta .btn-verify {
  background: var(--ahec-gold);
  color: var(--ahec-navy-dark);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.ahec-header-cta .btn-verify:hover {
  background: var(--ahec-gold-dark);
  transform: translateY(-1px);
}
.ahec-header-cta .btn-portal {
  border: 1px solid rgba(255,255,255,.3);
  color: var(--ahec-white);
  font-size: 0.8125rem;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.ahec-header-cta .btn-portal:hover {
  border-color: var(--ahec-gold);
  color: var(--ahec-gold);
}

/* ── Hero Section ───────────────────────────────────────────────── */
.ahec-hero {
  position: relative;
  background: linear-gradient(135deg, var(--ahec-navy-dark) 0%, var(--ahec-navy) 50%, var(--ahec-navy-mid) 100%);
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ahec-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(201,160,48,.08) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.ahec-hero-content { position: relative; z-index: 2; max-width: 700px; }
.ahec-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,160,48,.15);
  border: 1px solid rgba(201,160,48,.4);
  color: var(--ahec-gold-light);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.ahec-hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--ahec-gold);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(0.7); }
}
.ahec-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 800;
  color: var(--ahec-white);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.ahec-hero h1 .highlight {
  color: var(--ahec-gold);
  display: block;
}
.ahec-hero p {
  font-size: 1.1875rem;
  color: rgba(255,255,255,.8);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 580px;
}
.ahec-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--ahec-gold);
  color: var(--ahec-navy-dark);
  border-color: var(--ahec-gold);
  box-shadow: 0 4px 14px rgba(201,160,48,.4);
}
.btn-primary:hover {
  background: var(--ahec-gold-dark);
  border-color: var(--ahec-gold-dark);
  color: var(--ahec-white);
  box-shadow: 0 6px 20px rgba(201,160,48,.5);
}
.btn-secondary {
  background: transparent;
  color: var(--ahec-white);
  border-color: rgba(255,255,255,.4);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--ahec-white);
  color: var(--ahec-white);
}
.btn-outline-navy {
  background: transparent;
  color: var(--ahec-navy);
  border-color: var(--ahec-navy);
}
.btn-outline-navy:hover { background: var(--ahec-navy); color: var(--ahec-white); }

.btn-outline-gold {
  background: transparent;
  color: var(--ahec-gold-dark);
  border-color: var(--ahec-gold);
}
.btn-outline-gold:hover { background: var(--ahec-gold); color: var(--ahec-navy-dark); }

.btn-navy {
  background: var(--ahec-navy);
  color: var(--ahec-white);
  border-color: var(--ahec-navy);
  box-shadow: var(--shadow-sm);
}
.btn-navy:hover { background: var(--ahec-navy-dark); box-shadow: var(--shadow-md); }

.btn-sm { font-size: 0.875rem; padding: 9px 20px; }
.btn-lg { font-size: 1.0625rem; padding: 17px 36px; }

/* ── Hero Stats ─────────────────────────────────────────────────── */
.ahec-hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.ahec-hero-stat {}
.ahec-hero-stat .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ahec-gold);
  font-family: var(--font-sans);
  line-height: 1;
  display: block;
}
.ahec-hero-stat .label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.65);
  margin-top: 4px;
  display: block;
}
.ahec-hero-visual {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 42%;
  overflow: hidden;
}
.ahec-hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--ahec-navy) 0%, transparent 40%);
  z-index: 1;
}
.ahec-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .3;
}

/* Decorative globe */
.ahec-hero-globe {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(201,160,48,.18), rgba(13,31,92,.6));
  border: 1px solid rgba(201,160,48,.2);
  box-shadow: 0 0 120px rgba(201,160,48,.1);
}
.ahec-hero-globe::before {
  content: '';
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
}
.ahec-hero-globe::after {
  content: '';
  position: absolute;
  inset: 80px;
  border-radius: 50%;
  border: 1px solid rgba(201,160,48,.15);
}

/* ── Section System ─────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-lg { padding: 128px 0; }
.section-dark { background: var(--ahec-navy); color: var(--ahec-white); }
.section-dark h2, .section-dark h3 { color: var(--ahec-white); }
.section-navy-mid { background: var(--ahec-navy-mid); }
.section-off-white { background: var(--ahec-off-white); }
.section-gold-pale { background: var(--ahec-gold-pale); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide { max-width: 1400px; }
.container-narrow { max-width: 800px; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-header.left { text-align: left; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ahec-gold-dark);
  margin-bottom: 14px;
}
.section-tag::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--ahec-gold);
}
.section-dark .section-tag { color: var(--ahec-gold-light); }
.section-dark .section-tag::before { background: var(--ahec-gold-light); }

.section-title {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  margin-bottom: 18px;
  letter-spacing: -0.025em;
}
.section-subtitle {
  font-size: 1.0625rem;
  color: var(--ahec-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
}
.section-dark .section-subtitle { color: rgba(255,255,255,.7); }

/* ── Stats Bar ──────────────────────────────────────────────────── */
.ahec-stats-bar {
  background: var(--ahec-white);
  border-top: 3px solid var(--ahec-gold);
  box-shadow: var(--shadow-lg);
  padding: 40px 0;
}
.ahec-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.ahec-stat-item {
  text-align: center;
  padding: 24px 16px;
  border-right: 1px solid var(--ahec-border);
  position: relative;
}
.ahec-stat-item:last-child { border-right: none; }
.ahec-stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ahec-navy);
  font-family: var(--font-sans);
  line-height: 1;
  letter-spacing: -0.03em;
}
.ahec-stat-unit { color: var(--ahec-gold); font-size: 1.75rem; }
.ahec-stat-label {
  font-size: 0.875rem;
  color: var(--ahec-muted);
  margin-top: 6px;
  font-weight: 500;
}
.ahec-stat-desc {
  font-size: 0.75rem;
  color: var(--ahec-muted);
  margin-top: 4px;
}

/* ── Services Grid ──────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--ahec-white);
  border: 1px solid var(--ahec-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ahec-navy), var(--ahec-gold));
  transform: scaleX(0);
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px;
  height: 56px;
  background: var(--ahec-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--ahec-navy);
  transition: all var(--transition);
}
.service-card:hover .service-icon {
  background: var(--ahec-navy);
  color: var(--ahec-gold);
}
.service-card h3 {
  font-size: 1.125rem;
  margin-bottom: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--ahec-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.service-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ahec-navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}
.service-link:hover { gap: 10px; color: var(--ahec-gold-dark); }

/* ── Qualifications Cards ───────────────────────────────────────── */
.qual-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.qual-card {
  background: var(--ahec-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.qual-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.qual-card-header {
  background: linear-gradient(135deg, var(--ahec-navy) 0%, var(--ahec-navy-mid) 100%);
  padding: 32px 32px 28px;
  color: var(--ahec-white);
  position: relative;
  overflow: hidden;
}
.qual-card-header::after {
  content: '';
  position: absolute;
  right: -24px;
  top: -24px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(201,160,48,.2);
}
.qual-badge {
  display: inline-block;
  background: rgba(201,160,48,.2);
  border: 1px solid rgba(201,160,48,.4);
  color: var(--ahec-gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.qual-card-header h3 { color: var(--ahec-white); font-size: 1.375rem; margin-bottom: 10px; }
.qual-code { font-size: 0.8125rem; color: rgba(255,255,255,.6); font-family: monospace; }
.qual-card-body { padding: 28px 32px; flex: 1; display: flex; flex-direction: column; }
.qual-card-body p { color: var(--ahec-muted); margin-bottom: 20px; font-size: 0.9375rem; }
.qual-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.qual-meta-item { font-size: 0.8125rem; }
.qual-meta-item .label { color: var(--ahec-muted); display: block; margin-bottom: 2px; }
.qual-meta-item .value { font-weight: 600; color: var(--ahec-navy); }
.qual-areas { margin-bottom: 24px; }
.qual-areas h4 { font-size: 0.875rem; font-weight: 700; color: var(--ahec-navy); margin-bottom: 10px; font-family: var(--font-sans); }
.qual-area-list { display: flex; flex-wrap: wrap; gap: 6px; }
.qual-area-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: var(--ahec-light);
  color: var(--ahec-navy);
  border-radius: 100px;
  font-weight: 500;
}
.qual-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Process Steps ──────────────────────────────────────────────── */
.process-steps { display: flex; flex-direction: column; gap: 0; position: relative; }
.process-steps::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 60px;
  bottom: 60px;
  width: 2px;
  background: linear-gradient(to bottom, var(--ahec-navy), var(--ahec-gold), var(--ahec-navy));
  opacity: .2;
}
.process-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 20px 0;
  position: relative;
  z-index: 1;
}
.step-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ahec-navy);
  color: var(--ahec-gold);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  box-shadow: var(--shadow-md);
}
.step-content h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; font-family: var(--font-sans); }
.step-content p { font-size: 0.875rem; color: var(--ahec-muted); }

/* ── Countries List ─────────────────────────────────────────────── */
.countries-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.country-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 100px;
  color: rgba(255,255,255,.9);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
}
.country-chip:hover {
  background: rgba(201,160,48,.15);
  border-color: rgba(201,160,48,.4);
  color: var(--ahec-gold-light);
}

/* ── Verification Widget ────────────────────────────────────────── */
.ahec-verify-widget {
  background: var(--ahec-white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--ahec-border);
}
.ahec-verify-widget h3 {
  font-size: 1.375rem;
  margin-bottom: 8px;
  color: var(--ahec-navy);
}
.ahec-verify-widget p { color: var(--ahec-muted); margin-bottom: 24px; font-size: 0.9375rem; }
.verify-tabs {
  display: flex;
  gap: 4px;
  background: var(--ahec-off-white);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}
.verify-tab {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  background: none;
  color: var(--ahec-muted);
  transition: all var(--transition);
}
.verify-tab.active {
  background: var(--ahec-navy);
  color: var(--ahec-white);
  box-shadow: var(--shadow-sm);
}
.verify-input-group { display: flex; gap: 10px; }
.verify-input-group input {
  flex: 1;
  padding: 13px 18px;
  border: 2px solid var(--ahec-border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  transition: border-color var(--transition);
  outline: none;
}
.verify-input-group input:focus { border-color: var(--ahec-navy); }
.verify-input-group input::placeholder { color: var(--ahec-muted); }
.verify-result {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  display: none;
}
.verify-result.valid {
  display: block;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.verify-result.invalid {
  display: block;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* ── Form Styles ────────────────────────────────────────────────── */
.ahec-form .form-group {
  margin-bottom: 20px;
}
.ahec-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ahec-text);
  margin-bottom: 6px;
}
.ahec-form input,
.ahec-form select,
.ahec-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--ahec-border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  color: var(--ahec-text);
  background: var(--ahec-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.ahec-form input:focus,
.ahec-form select:focus,
.ahec-form textarea:focus {
  border-color: var(--ahec-navy);
  box-shadow: 0 0 0 3px rgba(13,31,92,.1);
}
.ahec-form input.error,
.ahec-form select.error { border-color: var(--ahec-error); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Cards (generic) ────────────────────────────────────────────── */
.card {
  background: var(--ahec-white);
  border: 1px solid var(--ahec-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card-body { padding: 28px; }
.card-header { padding: 20px 28px; border-bottom: 1px solid var(--ahec-border); }

/* ── Table ──────────────────────────────────────────────────────── */
.ahec-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.ahec-table th {
  background: var(--ahec-navy);
  color: var(--ahec-white);
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ahec-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--ahec-border);
  color: var(--ahec-text);
}
.ahec-table tr:hover td { background: var(--ahec-off-white); }
.ahec-table tr:last-child td { border-bottom: none; }

/* ── Badge / Pill ───────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef9c3; color: #713f12; }
.badge-error   { background: #fee2e2; color: #991b1b; }
.badge-navy    { background: var(--ahec-light); color: var(--ahec-navy); }
.badge-gold    { background: #fef3c7; color: #92400e; }

/* ── Alert ──────────────────────────────────────────────────────── */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* ── CTA Banner ─────────────────────────────────────────────────── */
.ahec-cta-banner {
  background: linear-gradient(135deg, var(--ahec-navy-dark), var(--ahec-navy-mid));
  border-radius: var(--radius-xl);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ahec-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(201,160,48,.12), transparent 70%);
}
.ahec-cta-banner h2 { color: var(--ahec-white); font-size: 2.25rem; margin-bottom: 16px; }
.ahec-cta-banner p { color: rgba(255,255,255,.75); max-width: 540px; margin: 0 auto 36px; font-size: 1.0625rem; }
.ahec-cta-banner .cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Values Grid ────────────────────────────────────────────────── */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ahec-border);
  transition: all var(--transition);
}
.value-card:hover { box-shadow: var(--shadow-md); border-color: var(--ahec-light); }
.value-icon { font-size: 2rem; margin-bottom: 14px; }
.value-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; font-family: var(--font-sans); color: var(--ahec-navy); }
.value-card p { font-size: 0.875rem; color: var(--ahec-muted); line-height: 1.6; }

/* ── Testimonial ────────────────────────────────────────────────── */
.testimonial-card {
  background: var(--ahec-white);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--ahec-border);
}
.testimonial-stars { color: var(--ahec-gold); font-size: 1.125rem; margin-bottom: 14px; }
.testimonial-card blockquote {
  font-size: 1.0625rem;
  color: var(--ahec-text);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 20px;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ahec-light);
  border: 2px solid var(--ahec-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ahec-navy);
  font-weight: 700;
  font-size: 1.125rem;
}
.testimonial-info .name { font-weight: 700; font-size: 0.9375rem; color: var(--ahec-navy); }
.testimonial-info .role { font-size: 0.8125rem; color: var(--ahec-muted); }

/* ── Portal Cards ───────────────────────────────────────────────── */
.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.portal-card {
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.portal-card.candidate { background: linear-gradient(135deg, #0d1f5c, #1a3380); }
.portal-card.partner { background: linear-gradient(135deg, #7c3209, #c9a030); }
.portal-card h3 { color: var(--ahec-white); font-size: 1.5rem; margin-bottom: 12px; }
.portal-card p { color: rgba(255,255,255,.75); font-size: 0.9375rem; line-height: 1.65; margin-bottom: 24px; }
.portal-card ul { list-style: none; padding: 0; margin-bottom: 32px; display: flex; flex-direction: column; gap: 8px; }
.portal-card ul li {
  font-size: 0.875rem;
  color: rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  gap: 8px;
}
.portal-card ul li::before {
  content: '✓';
  width: 18px;
  height: 18px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  color: var(--ahec-gold-light);
}
.portal-card .btn { margin-top: auto; align-self: flex-start; }

/* ── Site Footer ────────────────────────────────────────────────── */
.ahec-footer {
  background: var(--ahec-navy-dark);
  color: rgba(255,255,255,.75);
  padding-top: 64px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .ahec-logo-wrap { margin-bottom: 20px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,.6); margin-bottom: 24px; }
.footer-tagline {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ahec-gold);
  padding: 4px 14px;
  border: 1px solid rgba(201,160,48,.3);
  border-radius: 100px;
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ahec-gold);
  margin-bottom: 20px;
  font-family: var(--font-sans);
}
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a:hover { color: var(--ahec-gold-light); }
.footer-col .contact-info { display: flex; flex-direction: column; gap: 12px; }
.footer-col .contact-item { display: flex; gap: 10px; font-size: 0.875rem; color: rgba(255,255,255,.65); }
.footer-col .contact-item svg { flex-shrink: 0; margin-top: 2px; opacity: .7; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.8125rem;
  color: rgba(255,255,255,.4);
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: var(--ahec-gold-light); }

/* ── Breadcrumb ─────────────────────────────────────────────────── */
.ahec-breadcrumb {
  background: var(--ahec-navy);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ahec-breadcrumb ol { list-style: none; padding: 0; display: flex; align-items: center; gap: 8px; }
.ahec-breadcrumb li { font-size: 0.8125rem; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 8px; }
.ahec-breadcrumb li::after { content: '/'; opacity: .4; }
.ahec-breadcrumb li:last-child::after { display: none; }
.ahec-breadcrumb li a { color: rgba(255,255,255,.8); }
.ahec-breadcrumb li.current { color: var(--ahec-gold); }

/* ── Page Hero ──────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--ahec-navy-dark), var(--ahec-navy));
  padding: 72px 0 64px;
  color: var(--ahec-white);
  text-align: center;
}
.page-hero h1 {
  color: var(--ahec-white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}
.page-hero p { color: rgba(255,255,255,.75); font-size: 1.0625rem; max-width: 560px; margin: 0 auto; }

/* ── Sticky announcement bar ────────────────────────────────────── */
.ahec-notice-bar {
  background: var(--ahec-gold);
  color: var(--ahec-navy-dark);
  text-align: center;
  padding: 10px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  position: relative;
}
.ahec-notice-bar a { color: var(--ahec-navy-dark); text-decoration: underline; }
.ahec-notice-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--ahec-navy);
  opacity: .7;
  line-height: 1;
}

/* ── Scroll animations ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .ahec-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .qual-grid { grid-template-columns: 1fr; }
  .portal-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .ahec-hero { min-height: auto; padding: 80px 0 64px; }
  .ahec-hero-globe { display: none; }
  .ahec-hero h1 { font-size: 2rem; }
  .ahec-cta-banner { padding: 40px 24px; }
  .ahec-cta-banner h2 { font-size: 1.625rem; }
  .footer-main { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .ahec-stats-grid { grid-template-columns: 1fr 1fr; }
  .ahec-hero-cta { flex-direction: column; }
  .ahec-hero-stats { flex-direction: column; gap: 16px; }
  .btn { width: 100%; justify-content: center; }
  .ahec-cta-banner .cta-buttons { flex-direction: column; }
}

/* ── Print styles ───────────────────────────────────────────────── */
@media print {
  .ahec-topbar, .site-header, .ahec-notice-bar, .ahec-footer { display: none; }
  .section { padding: 32px 0; }
}

/* ── SVG icon sizing ────────────────────────────────────────────── */
/* All inline SVGs default to 1em so they scale with surrounding text */
svg { width: 1em; height: 1em; vertical-align: middle; flex-shrink: 0; }

/* Size utility classes */
.icon-xs  { width: 14px; height: 14px; }
.icon-sm  { width: 18px; height: 18px; }
.icon-md  { width: 20px; height: 20px; }
.icon-lg  { width: 24px; height: 24px; }
.icon-xl  { width: 32px; height: 32px; }

/* Buttons: small fixed icon next to text */
.btn svg  { width: 18px; height: 18px; flex-shrink: 0; }

/* Service cards: large icon block */
.service-icon svg { width: 32px; height: 32px; }

/* Service card "learn more" chevron */
.service-link svg { width: 16px; height: 16px; }

/* Qualification card area list icons */
.qual-areas li svg { width: 16px; height: 16px; }

/* Heading icons (portal cards, verify widget h3) */
h3 > svg { width: 22px; height: 22px; }

/* Footer contact items */
.footer-col .contact-item svg,
.ahec-footer [style*="display:flex"] > svg { width: 16px; height: 16px; }

/* Topbar & notice bar */
.ahec-topbar svg,
.ahec-notice-bar svg { width: 14px; height: 14px; }

/* Values grid icons */
.value-icon svg { width: 28px; height: 28px; }

/* Header nav / CTA area */
.ahec-header-cta svg { width: 16px; height: 16px; }

/* Process steps */
.step-number svg { width: 20px; height: 20px; }

/* ── Header nav layout fix ──────────────────────────────────────── */
/* Make the nav ul horizontal and strip default list styling */
.header-navigation .nav-menu {
  display: flex !important;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  flex-wrap: nowrap;
}
.header-navigation .nav-menu > li {
  position: relative;
  list-style: none;
}
/* Keep dropdowns positioned correctly */
.header-navigation .nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 9999;
  display: none;
  flex-direction: column;
  min-width: 220px;
}
.header-navigation .nav-menu > li:hover > .sub-menu,
.header-navigation .nav-menu > li:focus-within > .sub-menu {
  display: flex;
}
/* Compact the header row */
.site-header .container {
  min-height: 72px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  gap: 24px;
}

/* ── AHEC Header v2: sticky, logo, dropdown nav ── */
/* Sticky header shell */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #0d1f5c;
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.35);
}
/* Inner flex row */
.ahec-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  gap: 32px;
}
/* Logo — horizontal lockup: official emblem + type wordmark */
.ahec-logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.ahec-logo-emblem {
  height: 46px;
  width: auto;
  display: block;
}
.ahec-logo-type {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
}
.ahec-logo-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
}
.ahec-logo-sub {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 3px;
  white-space: nowrap;
}
/* Below ~500px the descriptor crowds the burger — emblem + AHEC is enough. */
@media (max-width: 500px) {
  .ahec-logo-sub { display: none; }
  .ahec-logo-name { font-size: 1.4rem; }
  .ahec-logo-emblem { height: 38px; }
}
/* Nav wrapper */
.ahec-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
/* Top-level menu list */
.ahec-menu {
  display: flex !important;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
/* Menu items */
.ahec-menu > li {
  position: relative;
  list-style: none;
}
.ahec-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-family: 'Inter','Helvetica Neue',Arial,sans-serif;
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  border-radius: 6px;
  transition: color .18s, background .18s;
  line-height: 1;
  white-space: nowrap;
}
.ahec-menu > li > a:hover,
.ahec-menu > li:focus-within > a {
  color: #fff;
  background: rgba(255,255,255,.1);
}
.ahec-menu > li.current-menu-item > a,
.ahec-menu > li.current-menu-ancestor > a {
  color: #c9a030;
}
/* Dropdown chevron */
.ahec-menu > li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 2px;
  transition: transform .18s;
}
.ahec-menu > li.menu-item-has-children:hover > a::after,
.ahec-menu > li.menu-item-has-children:focus-within > a::after {
  transform: rotate(-135deg) translateY(-2px);
}
/* Sub-menu (dropdown) */
.ahec-menu .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  z-index: 9999;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  min-width: 220px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(13,31,92,.18), 0 2px 8px rgba(0,0,0,.08);
  border-top: 3px solid #c9a030;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.ahec-menu .sub-menu::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: #c9a030;
}
.ahec-menu > li:hover > .sub-menu,
.ahec-menu > li:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
/* Sub-menu items */
.ahec-menu .sub-menu > li {
  list-style: none;
}
.ahec-menu .sub-menu > li > a {
  display: block;
  padding: 10px 20px;
  font-family: 'Inter','Helvetica Neue',Arial,sans-serif;
  font-size: .85rem;
  font-weight: 400;
  color: #1a2a5e;
  text-decoration: none;
  transition: background .15s, color .15s, padding-left .15s;
  white-space: nowrap;
}
.ahec-menu .sub-menu > li > a:hover {
  background: #f0f4ff;
  color: #0d1f5c;
  padding-left: 26px;
}
.ahec-menu .sub-menu > li:first-child > a { border-radius: 7px 7px 0 0; }
.ahec-menu .sub-menu > li:last-child > a  { border-radius: 0 0 7px 7px; }
/* Header actions */
.ahec-header-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ahec-btn-verify {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: .8rem;
  font-weight: 600;
  color: #c9a030;
  border: 1.5px solid #c9a030;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.ahec-btn-verify svg { width: 14px; height: 14px; flex-shrink: 0; }
.ahec-btn-verify:hover { background: #c9a030; color: #fff; }
.ahec-btn-portal {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  font-size: .8rem;
  font-weight: 600;
  background: #c9a030;
  color: #0d1f5c;
  border: 1.5px solid #c9a030;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.ahec-btn-portal:hover { background: #b8901f; border-color: #b8901f; color: #fff; }
.ahec-btn-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.ahec-btn-logout:hover { color: #fff; border-color: rgba(255,255,255,.5); }
/* Hamburger */
.ahec-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 6px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 6px;
  cursor: pointer;
}
.ahec-hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
/* Override Kadence nav if it bleeds in */
.site-header .header-navigation { display: none !important; }
.site-header .ahec-menu { display: flex !important; }
/* Mobile */
@media (max-width: 960px) {
  .ahec-hamburger { display: flex; }
  .ahec-nav {
    position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    background: #0d1f5c;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 24px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .28s ease;
    z-index: 999;
  }
  .ahec-nav.open { transform: translateX(0); }
  .ahec-menu { flex-direction: column; gap: 0; width: 100%; }
  .ahec-menu > li > a {
    padding: 14px 0; font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .ahec-menu .sub-menu {
    position: static; transform: none;
    opacity: 1; pointer-events: auto;
    background: rgba(255,255,255,.06);
    box-shadow: none; border: none; border-radius: 0; padding: 0;
    display: none;
  }
  .ahec-menu > li.open > .sub-menu { display: block; }
  .ahec-menu .sub-menu > li > a {
    color: rgba(255,255,255,.75); padding: 10px 16px; font-size: .9rem;
  }
  .ahec-menu .sub-menu > li > a:hover {
    background: rgba(255,255,255,.08); color: #fff; padding-left: 22px;
  }
  .ahec-btn-verify, .ahec-btn-portal { display: none; }
}

/* ── Qualification card image header ─────────────────────────────── */
.qual-card {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--ahec-border, #e5e7eb);
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: box-shadow .2s, transform .2s;
}
.qual-card:hover {
  box-shadow: 0 8px 32px rgba(13,31,92,.12);
  transform: translateY(-2px);
}
.qual-card-image {
  position: relative;
  overflow: hidden;
}
.qual-card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.qual-card:hover .qual-card-image img {
  transform: scale(1.03);
}
.qual-card-image .qual-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

/* ── Hero SVG illustration sizing ────────────────────────────────── */
.ahec-hero { position: relative; overflow: hidden; }
.ahec-hero > img[aria-hidden] {
  position: absolute;
  right: 0; top: 0;
  height: 100%; width: auto;
  max-width: 65%;
  object-fit: cover;
  object-position: left center;
  pointer-events: none;
  user-select: none;
}

/* ══════════════════════════════════════════════════════════════
   OFFICE LOCATIONS — Head Office (primary) + Registered Office
══════════════════════════════════════════════════════════════ */
.ahec-office-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.office-card {
  padding: 26px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.office-card-head { border-left: 4px solid var(--ahec-navy, #0d1f5c); }
.office-card-registered { border-left: 4px solid var(--ahec-gold, #c9a030); }

.ahec-office {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-style: normal;
  line-height: 1.6;
  color: #475569;
}
.ahec-office .office-label {
  margin-bottom: 6px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ahec-navy, #0d1f5c);
}
.office-card-registered .ahec-office .office-label { color: var(--ahec-gold, #c9a030); }
.ahec-office .office-org { font-weight: 600; color: #0f172a; margin-bottom: 4px; }
.ahec-office .office-map {
  margin-top: 10px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ahec-navy, #0d1f5c);
}

/* Footer offices */
.footer-offices { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.footer-office { font-size: .875rem; line-height: 1.6; }
.footer-office a { color: rgba(255, 255, 255, .65); }
.footer-office a:hover { color: #fff; }
.footer-office-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ahec-gold, #c9a030);
}
.footer-office-secondary .footer-office-label { color: rgba(255, 255, 255, .45); }
.footer-office-secondary a { color: rgba(255, 255, 255, .5); font-size: .82rem; }

/* ══════════════════════════════════════════════════════════════
   ABOUT US — Quality Manual alignment
══════════════════════════════════════════════════════════════ */
.about-lead {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #475569;
}
.about-lead p + p { margin-top: 18px; }

/* Vision + Mission */
.vision-mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.vm-card {
  padding: 34px;
  background: #fff;
  border-radius: 14px;
  border-top: 4px solid var(--ahec-navy, #0d1f5c);
  box-shadow: 0 4px 18px rgba(13, 31, 92, .06);
}
.vm-card.vm-mission { border-top-color: var(--ahec-gold, #c9a030); }
.vm-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 14px;
  background: var(--ahec-navy, #0d1f5c);
  color: #fff;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.vm-card.vm-mission .vm-tag { background: var(--ahec-gold, #c9a030); }
.vm-card p { margin: 0; line-height: 1.8; color: #475569; }

/* Core values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.value-card {
  padding: 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: transform .15s, box-shadow .15s;
}
.value-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(13, 31, 92, .08);
}
.value-card h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--ahec-navy, #0d1f5c);
}
.value-card p { margin: 0; font-size: .9rem; line-height: 1.65; color: #64748b; }

.ahec-motto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 44px;
  padding: 30px;
  background: linear-gradient(135deg, #0d1f5c 0%, #16307f 100%);
  border-radius: 14px;
  text-align: center;
}
.ahec-motto .motto-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .6);
}
.ahec-motto strong { font-size: 1.4rem; color: var(--ahec-gold, #c9a030); letter-spacing: .02em; }

/* Governance hierarchy */
.governance-hierarchy {
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: gov;
}
.gov-level {
  position: relative;
  display: flex;
  gap: 20px;
  padding: 20px 24px;
  margin-bottom: 12px;
  background: #fff;
  border-radius: 12px;
  border-left: 4px solid var(--ahec-navy, #0d1f5c);
}
/* Each successive tier steps further in, showing the chain of authority. */
.gov-level:nth-child(2) { margin-left: 14px; }
.gov-level:nth-child(3) { margin-left: 28px; }
.gov-level:nth-child(4) { margin-left: 42px; }
.gov-level:nth-child(5) { margin-left: 56px; }
.gov-level:nth-child(6) { margin-left: 70px; }
.gov-level:nth-child(7) { margin-left: 84px; }
.gov-level:nth-child(8) { margin-left: 98px; border-left-color: var(--ahec-gold, #c9a030); }

.gov-num {
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--ahec-navy, #0d1f5c);
  color: #fff;
  border-radius: 50%;
  font-size: .82rem;
  font-weight: 700;
}
.gov-level:nth-child(8) .gov-num { background: var(--ahec-gold, #c9a030); }
.gov-body h4 { margin: 0 0 4px; font-size: 1rem; color: var(--ahec-navy, #0d1f5c); }
.gov-body p { margin: 0; font-size: .875rem; line-height: 1.6; color: #64748b; }

/* Approved Centre committees */
.committees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.committee-card {
  padding: 26px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid var(--ahec-gold, #c9a030);
  border-radius: 12px;
}
.committee-card h4 { margin: 0 0 8px; font-size: 1rem; color: var(--ahec-navy, #0d1f5c); }
.committee-card p { margin: 0; font-size: .9rem; line-height: 1.65; color: #64748b; }

@media (max-width: 720px) {
  .gov-level { margin-left: 0 !important; }
}
