/* =====================================================
   FPT Academy Website — Shared Stylesheet
   Brand: Green #6BBF3E | Blue #2E86AB | Navy #1B3A6B
   ===================================================== */

:root {
  --green:       #6BBF3E;
  --green-dark:  #5aad31;
  --green-light: #f0f9e8;
  --blue:        #2E86AB;
  --blue-dark:   #247090;
  --blue-light:  #e8f4f8;
  --navy:        #1B3A6B;
  --navy-dark:   #122850;
  --white:       #ffffff;
  --off-white:   #f8fafb;
  --gray-light:  #f1f5f9;
  --gray:        #94a3b8;
  --text:        #1e293b;
  --text-muted:  #64748b;
  --border:      #e2e8f0;
  --shadow:      0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg:   0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl:   0 20px 25px -5px rgba(0,0,0,0.12), 0 10px 10px -5px rgba(0,0,0,0.04);
  --radius:      12px;
  --radius-lg:   20px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p { color: var(--text-muted); line-height: 1.8; }
a { text-decoration: none; color: var(--blue); transition: all 0.2s; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---- Layout ---- */
.container      { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p  { max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ---- Labels / Eyebrows ---- */
.label {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.label-green { background: var(--green-light); color: #3d8020; }
.label-blue  { background: var(--blue-light);  color: var(--blue-dark); }
.label-navy  { background: #e8edf4;             color: var(--navy); }

/* ---- Badges ---- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.6;
}
.badge-nqf    { background: var(--navy);        color: white; }
.badge-qcto   { background: var(--green);       color: white; font-weight: 700; }
.badge-seta   { background: var(--blue-light);   color: var(--blue-dark); }
.badge-type   { background: var(--green-light);  color: #3d8020; }
.badge-legacy   { background: #fef3c7;             color: #92400e; }
.badge-oc       { background: var(--navy);         color: white; letter-spacing: 0.03em; }
.badge-awaiting { background: #fff7ed;             color: #c2410c; border: 1px solid #fed7aa; }
.badge-teachout { background: #f1f5f9;             color: #475569; }
.badge-assessed { background: var(--green-light);  color: #3d8020; border: 1px solid rgba(107,191,62,0.35); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s;
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
}
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

.btn-primary { background: var(--green); color: white; border-color: var(--green); }
.btn-primary:hover {
  background: var(--green-dark); border-color: var(--green-dark);
  color: white; transform: translateY(-2px); box-shadow: var(--shadow-lg);
}
.btn-secondary { background: transparent; color: white; border-color: rgba(255,255,255,0.8); }
.btn-secondary:hover { background: white; color: var(--navy); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: white; transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: white; border-color: white; }
.btn-outline-white:hover { background: white; color: var(--navy); transform: translateY(-2px); }
.btn-white { background: white; color: var(--navy); border-color: white; }
.btn-white:hover { background: var(--navy); color: white; transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ======================================================
   NAVIGATION
   ====================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo img { height: 50px; width: auto; }
.nav-logo-text { line-height: 1.2; }
.nav-logo-text strong { display: block; font-size: 0.95rem; color: var(--navy); }
.nav-logo-text span  { font-size: 0.68rem; color: var(--green); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-item { position: relative; }

.nav-links a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.8rem;
  border-radius: 7px;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--blue);
  background: var(--blue-light);
}
.nav-links .dropdown-icon { font-size: 0.65rem; opacity: 0.6; }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text) !important;
  font-size: 0.875rem !important;
  background: none !important;
}
.dropdown li a:hover { background: var(--green-light) !important; color: #3d8020 !important; }
.dropdown li a i { width: 18px; color: var(--green); font-size: 0.9rem; }

.nav-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

/* Mobile */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.3s; }

/* ======================================================
   HERO
   ====================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1920&q=85');
  background-size: cover;
  background-position: center 20%;
  transform: scale(1.03);
  transition: transform 8s ease-out;
}

.hero.loaded .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    130deg,
    rgba(27,58,107,0.90) 0%,
    rgba(27,58,107,0.80) 40%,
    rgba(46,134,171,0.65) 75%,
    rgba(107,191,62,0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 100px 0 160px;
  max-width: 800px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.22);
  color: white;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  background: #8fd94a;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(1.4); }
}

.hero h1 {
  color: white;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 24px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.hero h1 .accent { color: #8fd94a; }

.hero > .container > .hero-content > p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero stats bar */
.hero-stats-bar {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  z-index: 3;
  background: rgba(19,40,80,0.72);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero-stat {
  padding: 22px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.15);
  color: white;
}
.hero-stat:last-child { border-right: none; }
.hero-stat strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: #8fd94a;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat span { font-size: 0.78rem; opacity: 0.78; letter-spacing: 0.03em; }

/* ======================================================
   ACCREDITATION TICKER
   ====================================================== */
.accred-bar {
  background: var(--navy);
  padding: 0;
  overflow: hidden;
  height: 52px;
  display: flex;
  align-items: center;
}
.accred-track {
  display: flex;
  align-items: center;
  animation: ticker 28s linear infinite;
  white-space: nowrap;
  width: max-content;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.accred-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 40px;
  flex-shrink: 0;
}
.accred-item i { color: var(--green); font-size: 0.9rem; }
.accred-sep { color: rgba(255,255,255,0.2); padding: 0; font-size: 1.2rem; flex-shrink: 0; }

/* ======================================================
   VALUE PROPOSITIONS
   ====================================================== */
.value-section { background: var(--off-white); }
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.value-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.value-icon {
  width: 76px; height: 76px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
}
.value-icon.green { background: var(--green-light); color: var(--green); }
.value-icon.blue  { background: var(--blue-light);  color: var(--blue); }
.value-icon.navy  { background: #e8edf4;             color: var(--navy); }
.value-card h3 { margin-bottom: 14px; font-size: 1.3rem; }
.value-card p  { font-size: 0.93rem; }

/* ======================================================
   FEATURED QUALIFICATIONS
   ====================================================== */
.qual-section { background: white; }
.qual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.qual-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: white;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.qual-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}
.qual-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); border-color: transparent; }
.qual-card:hover::after { transform: scaleX(1); }

.qual-card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  background: var(--green-light);
  color: var(--green);
}
.qual-card-icon.blue { background: var(--blue-light); color: var(--blue); }
.qual-card-icon.navy { background: #e8edf4; color: var(--navy); }

.qual-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.qual-card h4 { margin-bottom: 10px; font-size: 1rem; color: var(--navy); line-height: 1.4; }
.qual-card p  { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.65; }
.qual-link {
  display: flex; align-items: center; gap: 6px;
  color: var(--blue); font-size: 0.85rem; font-weight: 600;
  transition: gap 0.2s;
}
.qual-card:hover .qual-link { gap: 10px; }

.section-footer { text-align: center; }

/* ======================================================
   STATS
   ====================================================== */
.stats-section {
  background: linear-gradient(135deg, var(--navy) 0%, #2a5298 100%);
  padding: 80px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #8fd94a;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item p { color: rgba(255,255,255,0.72); font-size: 0.92rem; }

/* ======================================================
   EMPLOYERS
   ====================================================== */
.employers-section { background: var(--off-white); }
.employers-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.employers-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-xl);
}
.employers-image img {
  width: 100%; height: 520px;
  object-fit: cover;
}
.employers-badge {
  position: absolute;
  bottom: 28px; left: 28px;
  background: white;
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-xl);
  text-align: center;
  border-left: 4px solid var(--green);
}
.employers-badge strong { display: block; font-size: 2rem; color: var(--green); font-weight: 800; line-height: 1; }
.employers-badge span  { font-size: 0.78rem; color: var(--text-muted); }

.employers-content .label { margin-bottom: 14px; }
.employers-content h2     { margin-bottom: 18px; }
.employers-content > p    { margin-bottom: 24px; }

.check-list { margin-bottom: 36px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.93rem;
  color: var(--text-muted);
}
.check-list li i { color: var(--green); margin-top: 3px; flex-shrink: 0; }

/* ======================================================
   PORTAL
   ====================================================== */
.portal-section { background: white; }
.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.portal-card {
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  transition: all 0.3s;
  text-decoration: none;
  border: 1.5px solid transparent;
}
.portal-card.green { background: var(--green-light); border-color: rgba(107,191,62,0.25); }
.portal-card.blue  { background: var(--blue-light);  border-color: rgba(46,134,171,0.25); }
.portal-card.navy  { background: #e8edf4;             border-color: rgba(27,58,107,0.2); }
.portal-card.purple{ background: #f5f0ff;             border-color: rgba(139,92,246,0.25); }
.portal-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }

.portal-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.green  .portal-icon { background: var(--green); color: white; }
.blue   .portal-icon { background: var(--blue);  color: white; }
.navy   .portal-icon { background: var(--navy);  color: white; }
.purple .portal-icon { background: #7c3aed;      color: white; }

.portal-info h4 { color: var(--navy); margin-bottom: 6px; }
.portal-info p  { font-size: 0.875rem; margin-bottom: 12px; }
.portal-link {
  font-size: 0.85rem; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  transition: gap 0.2s;
}
.green  .portal-link { color: #3d8020; }
.blue   .portal-link { color: var(--blue-dark); }
.navy   .portal-link { color: var(--navy); }
.purple .portal-link { color: #6d28d9; }
.portal-card:hover .portal-link { gap: 10px; }

/* ======================================================
   CTA BANNER
   ====================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--green) 0%, #4a9e27 100%);
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 500px; height: 500px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.cta-banner-inner { position: relative; z-index: 1; }
.cta-banner h2  { color: white; margin-bottom: 16px; }
.cta-banner p   { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-bottom: 36px; }
.cta-actions    { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ======================================================
   FOOTER
   ====================================================== */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { margin-bottom: 16px; }
.footer-logo img { height: 44px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.875rem; line-height: 1.8; margin-bottom: 24px; max-width: 300px; }
.social-row { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65);
  transition: all 0.2s;
}
.social-btn:hover { background: var(--green); color: white; transform: translateY(-2px); }

.footer-col h5 {
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  transition: all 0.2s;
}
.footer-links a:hover { color: var(--green); padding-left: 4px; }

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.875rem;
}
.footer-contact-list i { color: var(--green); margin-top: 3px; flex-shrink: 0; }
.footer-contact-list a { color: rgba(255,255,255,0.55); }
.footer-contact-list a:hover { color: var(--green); }

.accred-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.chip {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.6);
  padding: 4px 11px;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.footer-bottom {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.4); }
.footer-bottom-links a:hover { color: var(--green); }

/* ======================================================
   PAGE HEADERS (inner pages)
   ====================================================== */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -60%; left: -15%;
  width: 600px; height: 600px;
  background: rgba(107,191,62,0.08);
  border-radius: 50%;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -50%; right: -10%;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.page-header-inner { position: relative; z-index: 1; }
.page-header h1 { color: white; margin-bottom: 14px; }
.page-header h2,
.page-header h3,
.page-header h4 { color: white; }
.page-header p  { color: rgba(255,255,255,0.88); font-size: 1.08rem; max-width: 580px; margin: 0 auto; }

/* ── Force white text inside any dark/coloured hero or banner ── */
.qual-hero h1,
.qual-hero h2,
.qual-hero h3,
.qual-hero h4,
.qual-hero h5,
.qual-hero p,
.qual-hero a,
.qual-hero span { color: white; }
.qual-hero p.lead { color: rgba(255,255,255,0.95); }

.download-strip h1,
.download-strip h2,
.download-strip h3,
.download-strip h4,
.download-strip p { color: white; }

.hero h2,
.hero h3,
.hero h4,
.hero p { color: white; }

.breadcrumb {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 0.82rem;
  color: rgba(255,255,255,0.55); margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.65); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb i { font-size: 0.55rem; }

/* ======================================================
   QUALIFICATIONS HUB
   ====================================================== */
.filter-bar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 74px;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
.filter-inner {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.search-wrap { flex: 1; min-width: 240px; position: relative; }
.search-wrap i {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--gray); font-size: 0.875rem;
}
.search-input, .filter-select {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  outline: none;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s;
}
.search-input { width: 100%; padding-left: 38px; }
.search-input:focus, .filter-select:focus { border-color: var(--blue); }
.filter-select {
  padding-right: 36px;
  cursor: pointer;
  appearance: none;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%2364748b' d='M5 7L0 2h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.result-count { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; }

/* Mobile filter toggle button — hidden on desktop */
.filter-toggle-btn { display: none; }
@media (max-width: 768px) {
  .filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: white;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s;
  }
  .filter-toggle-btn:hover { border-color: var(--blue); }
  .filter-bar.filters-open .filter-toggle-btn {
    border-color: var(--blue);
    background: var(--blue-light);
    color: var(--blue);
  }
  /* Hide all filter selects until panel is open */
  .filter-bar .filter-select { display: none; }
  .filter-bar.filters-open .filter-select { display: block; width: 100%; }
  /* Result count always visible, pushed to its own line */
  .filter-bar .result-count { order: 20; width: 100%; padding-top: 4px; }
}

.qual-hub-area {
  padding: 48px 0;
  background: var(--off-white);
  min-height: 500px;
}
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* ======================================================
   ABOUT PAGE
   ====================================================== */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); }
.about-img img { width: 100%; height: 480px; object-fit: cover; }

.accred-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.accred-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s;
}
.accred-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.accred-card i { font-size: 2rem; color: var(--green); margin-bottom: 12px; display: block; }
.accred-card h4 { font-size: 0.95rem; margin-bottom: 6px; }
.accred-card p  { font-size: 0.8rem; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  text-align: center;
  background: white;
  border-radius: var(--radius);
  padding: 32px 20px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-light), var(--blue-light));
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--navy); font-weight: 700;
  overflow: hidden;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { font-size: 1rem; margin-bottom: 4px; }
.team-card p  { font-size: 0.82rem; }

/* ======================================================
   EMPLOYERS PAGE
   ====================================================== */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.benefit-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: all 0.3s;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.benefit-card i { font-size: 2.2rem; color: var(--blue); margin-bottom: 18px; display: block; }
.benefit-card h4 { margin-bottom: 12px; }
.benefit-card p  { font-size: 0.9rem; }

/* ======================================================
   CONTACT PAGE
   ====================================================== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; }
.contact-panel {
  background: linear-gradient(145deg, var(--navy) 0%, #2a5298 100%);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  color: white;
}
.contact-panel h3 { color: white; margin-bottom: 10px; }
.contact-panel > p { color: rgba(255,255,255,0.72); margin-bottom: 36px; }
.contact-item {
  display: flex; gap: 16px;
  margin-bottom: 24px; align-items: flex-start;
}
.contact-item-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--green); font-size: 1rem; flex-shrink: 0;
}
.contact-item h5 { color: white; font-size: 0.82rem; margin-bottom: 4px; }
.contact-item p, .contact-item a { color: rgba(255,255,255,0.65); font-size: 0.875rem; }

.form-panel {
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.form-panel h3 { margin-bottom: 8px; }
.form-panel > p { font-size: 0.9rem; margin-bottom: 32px; }

.form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group  { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.83rem; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46,134,171,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { appearance: none; cursor: pointer; background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%2364748b' d='M5 7L0 2h10z'/%3E%3C/svg%3E") no-repeat right 14px center; }

.form-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.85rem; color: var(--text-muted);
  margin: 22px 0;
}
.form-check input[type="checkbox"] { flex-shrink: 0; margin-top: 2px; accent-color: var(--blue); }
.form-check a { color: var(--blue); }

/* ======================================================
   PORTAL PAGE (standalone)
   ====================================================== */
.portal-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.portal-page-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  transition: all 0.3s;
  cursor: pointer;
}
.portal-page-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); border-color: var(--blue); }
.portal-page-card .p-icon {
  width: 72px; height: 72px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin-bottom: 24px;
}
.portal-page-card h3 { color: var(--navy); margin-bottom: 10px; }
.portal-page-card p  { font-size: 0.9rem; margin-bottom: 24px; }
.portal-page-card .p-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.9rem;
  transition: gap 0.2s;
}
.portal-page-card:hover .p-link { gap: 13px; }

/* ======================================================
   MOBILE MENU — open state
   ====================================================== */

/* Burger → X animation */
.nav-burger span { transition: transform 0.3s, opacity 0.3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  /* Full-width panel drops from the sticky navbar */
  .navbar.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 2px solid var(--green);
    box-shadow: 0 8px 32px rgba(27,58,107,0.14);
    z-index: 200;
    padding: 8px 16px 16px;
    max-height: calc(100svh - 74px);
    overflow-y: auto;
  }

  /* Each top-level link — large tap target */
  .navbar.menu-open .nav-links > li > a {
    padding: 13px 12px;
    font-size: 0.97rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: normal;
  }

  /* Chevron rotates when submenu is open */
  .navbar.menu-open .nav-item.sub-open > a .dropdown-icon {
    transform: rotate(180deg);
    opacity: 1;
    transition: transform 0.2s;
  }

  /* Qualifications dropdown — inline, not absolute */
  .navbar.menu-open .dropdown {
    display: none;
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    border: none !important;
    background: var(--gray-light);
    border-radius: 8px;
    padding: 6px;
    margin: 2px 0 6px 12px;
    min-width: 0 !important;
  }
  .navbar.menu-open .nav-item.sub-open .dropdown { display: block; }
  .navbar.menu-open .dropdown li a {
    padding: 11px 14px !important;
    font-size: 0.88rem !important;
    border-radius: 6px;
  }

  /* Mobile action buttons (Log In / Enquire Now) at the bottom */
  .mobile-nav-actions {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
    list-style: none;
  }
  .mobile-nav-actions a {
    display: block !important;
    text-align: center;
    padding: 13px 16px !important;
    font-size: 0.95rem;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
  }
}

/* Hide the injected mobile-only item on desktop */
.mobile-nav-actions { display: none; }

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 1024px) {
  .value-grid    { grid-template-columns: repeat(2, 1fr); }
  .qual-grid     { grid-template-columns: repeat(2, 1fr); }
  .hub-grid      { grid-template-columns: repeat(2, 1fr); }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .team-grid     { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid  { grid-template-columns: repeat(2, 1fr); }
  .employers-inner { gap: 48px; }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .nav-links, .nav-actions { display: none; }
  .nav-burger { display: flex; }

  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }

  .value-grid     { grid-template-columns: 1fr; }
  .qual-grid      { grid-template-columns: 1fr; }
  .hub-grid       { grid-template-columns: 1fr; }
  .stats-grid     { grid-template-columns: repeat(2, 1fr); }
  .employers-inner{ grid-template-columns: 1fr; }
  .portal-grid    { grid-template-columns: 1fr; }
  .about-split    { grid-template-columns: 1fr; }
  .accred-cards   { grid-template-columns: repeat(2, 1fr); }
  .team-grid      { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }
  .portal-page-grid { grid-template-columns: 1fr; }
  .benefit-grid   { grid-template-columns: 1fr; }
  .form-row       { grid-template-columns: 1fr; }
  .hero-actions   { flex-direction: column; align-items: flex-start; }

  /* Footer bottom row wraps on mobile */
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 12px; }

  /* Page-header text sizes */
  .page-header h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .page-header p  { font-size: 0.97rem; }

  /* Blog / article inner content */
  .blog-content img, .post-content img, .article-body img { max-width: 100%; height: auto; }
  .blog-content table, .post-content table, .article-body table {
    display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
  }

  /* Qual filter bar wraps cleanly */
  .qual-filter { flex-wrap: wrap; gap: 6px; }
  .qual-filter button { font-size: 0.8rem; padding: 7px 12px; }

  /* Accreditation detail table on qual page */
  .qual-detail-table { font-size: 0.85rem; }
}

/* Extra-small screens (≤ 480 px) */
@media (max-width: 480px) {
  .accred-cards { grid-template-columns: 1fr; }
  .team-grid    { grid-template-columns: 1fr; }
  .stats-grid   { grid-template-columns: 1fr; }
  .hero-stats-inner { grid-template-columns: 1fr; }
  .hero-stat    { border-bottom: 1px solid rgba(255,255,255,0.12); }

  /* Nav: ensure logo text doesn't overflow */
  .nav-logo-text strong { font-size: 0.82rem; }
  .nav-logo-text span   { font-size: 0.62rem; }

  /* Buttons full-width in hero */
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Section headings */
  h1 { font-size: clamp(1.5rem, 7vw, 2.2rem); }
  h2 { font-size: clamp(1.3rem, 5vw, 1.9rem); }
}

/* ===== Membership / Newsletter Banner ===== */
.membership-banner { background: var(--navy); color: #fff; padding: 64px 0; }
.membership-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.membership-inner h2 { color: #fff; font-size: 1.9rem; line-height: 1.2; margin-bottom: 14px; }
.membership-inner p.membership-sub { color: rgba(255,255,255,0.85); font-size: 1.02rem; line-height: 1.65; max-width: 640px; margin: 0 auto 28px; }
.membership-form { display: flex; gap: 12px; max-width: 560px; margin: 0 auto; flex-wrap: wrap; }
.membership-form input {
  flex: 1 1 180px; min-width: 0; padding: 14px 16px; font-size: 0.95rem; font-family: inherit;
  border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius, 8px);
  background: rgba(255,255,255,0.08); color: #fff; box-sizing: border-box;
}
.membership-form input::placeholder { color: rgba(255,255,255,0.6); }
.membership-form input:focus { outline: none; border-color: var(--green); background: rgba(255,255,255,0.14); }
.membership-form .btn-subscribe {
  flex: 0 0 auto; padding: 14px 30px; font-size: 0.95rem; font-weight: 700; font-family: inherit;
  background: var(--green); color: #fff; border: none; border-radius: var(--radius, 8px); cursor: pointer;
  transition: background 0.2s;
}
.membership-form .btn-subscribe:hover { background: var(--green-dark); }
.membership-form .btn-subscribe:disabled { opacity: 0.7; cursor: default; }
.membership-fineprint { color: rgba(255,255,255,0.6); font-size: 0.8rem; margin-top: 16px; }
.membership-msg { display: none; margin-top: 16px; font-size: 0.9rem; font-weight: 600; }
@media (max-width: 600px) {
  .membership-form { flex-direction: column; }
  .membership-form .btn-subscribe { width: 100%; }
  .membership-inner h2 { font-size: 1.5rem; }
}
