/* ==========================================================================
   IPA — Institute of Power BI & Advanced Excel
   Global Stylesheet — Design System
   Author: IPA Web Team
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Color — Primary (Deep Emerald) */
  --emerald-900: #06231b;
  --emerald-800: #0a3a2c;
  --emerald-700: #0e4e3c;
  --emerald-600: #146449;
  --emerald-500: #1c7f5c;
  --emerald-50: #eaf4ef;

  /* Color — Secondary (Charcoal) */
  --charcoal-900: #191d1b;
  --charcoal-700: #363c39;
  --charcoal-500: #5d655f;
  --charcoal-300: #97a099;

  /* Color — Accent (Professional Orange) */
  --orange-700: #b85c0a;
  --orange-600: #d9720c;
  --orange-500: #ea8a26;
  --orange-50: #fdf1e2;

  /* Color — Neutrals */
  --white: #ffffff;
  --gray-50: #f6f8f7;
  --gray-100: #eef2f0;
  --gray-200: #e1e7e3;
  --gray-300: #cad3ce;

  /* Semantic */
  --color-bg: var(--white);
  --color-bg-alt: var(--gray-50);
  --color-text: var(--charcoal-900);
  --color-text-muted: var(--charcoal-500);
  --color-primary: var(--emerald-700);
  --color-primary-dark: var(--emerald-900);
  --color-accent: var(--orange-600);
  --color-border: var(--gray-200);

  /* Typography */
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --fs-2xs: 0.75rem;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: 2.375rem;
  --fs-4xl: 3rem;
  --fs-5xl: 3.75rem;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  /* Layout */
  --container-max: 1280px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(9, 30, 22, 0.08);
  --shadow-md: 0 8px 24px rgba(9, 30, 22, 0.10);
  --shadow-lg: 0 24px 48px rgba(9, 30, 22, 0.16);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-base: 300ms;
  --dur-slow: 600ms;

  /* Header height (used for scroll-offset anchors) */
  --header-h: 70px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg {
  max-width: 100%;
  display: block;
}

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--charcoal-900);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-5xl); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-md); }

p { color: var(--color-text-muted); }

/* Focus states — accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--emerald-900);
  color: var(--white);
  padding: var(--sp-3) var(--sp-5);
  z-index: 9999;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   3. LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.section {
  padding-block: var(--sp-9);
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-dark {
  background: var(--emerald-900);
  color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark p { color: var(--white); }

.section-dark .section-eyebrow { color: var(--orange-500); }

.grid {
  display: grid;
  gap: var(--sp-6);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Section heading pattern */
.section-head {
  max-width: 720px;
  margin-bottom: var(--sp-7);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--sp-3);
}

.section-eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--color-accent);
  display: inline-block;
}

.section-head p {
  margin-top: var(--sp-4);
  font-size: var(--fs-md);
}

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--orange-700);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: inherit;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--charcoal-300);
  color: var(--charcoal-900);
}

.btn-outline-dark:hover {
  border-color: var(--emerald-700);
  color: var(--emerald-700);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--emerald-700);
  padding: 0.6rem 0.2rem;
  border-radius: 0;
}

.btn-ghost::after {
  content: "→";
  transition: transform var(--dur-fast) var(--ease-out);
  display: inline-block;
}

.btn-ghost:hover::after {
  transform: translateX(4px);
}

.btn-block { width: 100%; }
.btn-sm { padding: 0.65rem 1.2rem; font-size: var(--fs-xs); }

/* --------------------------------------------------------------------------
   5. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-h);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--emerald-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--fs-md);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 700;
  font-size: var(--fs-md);
  color: var(--charcoal-900);
}

.brand-tagline {
  font-size: 0.6875rem;
  font-family: var(--font-body);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.nav-list > li {
  position: relative;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-sm);
  padding: var(--sp-3) var(--sp-1);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--charcoal-700);
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-link:hover,
.nav-link[aria-expanded="true"] { color: var(--emerald-700); }

.nav-caret {
  width: 9px;
  height: 9px;
  transition: transform var(--dur-fast) var(--ease-out);
}

.has-mega:hover .nav-caret,
.nav-link[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

/* Mega menu */
.mega-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(880px, 90vw);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  padding: var(--sp-6);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
}

.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-col-title {
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: var(--sp-4);
}

.mega-course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
}

.mega-course-link {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease-out);
}

.mega-course-link:hover { background: var(--emerald-50); }

.mega-course-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--emerald-50);
  color: var(--emerald-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mega-course-link:hover .mega-course-icon { background: var(--emerald-700); color: var(--white); }

.mega-course-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--charcoal-900);
  display: block;
}

.mega-course-desc {
  font-size: var(--fs-2xs);
  color: var(--color-text-muted);
}

.mega-panel {
  background: var(--emerald-900);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mega-panel h4 { color: var(--white); font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.mega-panel p { color: rgba(255,255,255,0.75); font-size: var(--fs-xs); margin-bottom: var(--sp-4); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.header-phone {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--charcoal-900);
}

.header-phone svg { color: var(--color-accent); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.nav-toggle-bars {
  position: relative;
  width: 22px;
  height: 16px;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--charcoal-900);
  border-radius: 2px;
  transition: all var(--dur-base) var(--ease-out);
}

.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 7px; }
.nav-toggle-bars span:nth-child(3) { top: 14px; }

.nav-open .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--white);
  z-index: 999;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
  padding: var(--sp-5);
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.nav-open .mobile-nav {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.mobile-nav-list > li {
  border-bottom: 1px solid var(--color-border);
  width: 100%;
}

.mobile-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-4) var(--sp-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--charcoal-900);
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-base) var(--ease-out);
  padding-left: var(--sp-3);
}

.mobile-submenu.is-open { max-height: 640px; }

.mobile-submenu a {
  display: block;
  padding: var(--sp-3) var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.mobile-nav-cta {
  margin-top: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  width: 100%;
}

@media (min-width: 1201px) {
  .mobile-nav { display: none !important; }
}

/* --------------------------------------------------------------------------
   6. BREADCRUMB
   -------------------------------------------------------------------------- */
.breadcrumb-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--sp-3);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.breadcrumb-list a { color: var(--emerald-700); font-weight: 500; }
.breadcrumb-list a:hover { text-decoration: underline; }
.breadcrumb-list li:not(:last-child)::after {
  content: "/";
  margin-left: var(--sp-2);
  color: var(--gray-300);
}

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--emerald-900);
  color: var(--white);
  overflow: hidden;
  padding-top: var(--sp-9);
  padding-bottom: var(--sp-10);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 75%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-8);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 500;
  margin-bottom: var(--sp-5);
}

.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange-500);
}

.hero h1 {
  font-size: clamp(2.25rem, 4vw + 1rem, var(--fs-5xl));
  color: var(--white);
  margin-bottom: var(--sp-5);
}

.hero h1 em {
  font-style: normal;
  color: var(--orange-500);
}

.hero-sub {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin-bottom: var(--sp-6);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-7);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.7);
}

.hero-trust-item strong {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--white);
  display: block;
  line-height: 1;
}

/* Hero visual — signature dashboard card */
.hero-visual {
  position: relative;
}

.dash-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-lg);
  color: var(--charcoal-900);
}

.dash-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-5);
}

.dash-card-head span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
}

.dash-pill {
  font-size: var(--fs-2xs);
  font-weight: 600;
  background: var(--emerald-50);
  color: var(--emerald-700);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
}

.dash-bars {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-3);
  height: 140px;
  margin-bottom: var(--sp-4);
  border-bottom: 1px dashed var(--gray-200);
  padding-bottom: var(--sp-3);
}

.dash-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--emerald-500), var(--emerald-800));
  border-radius: 6px 6px 2px 2px;
  transform: scaleY(0);
  transform-origin: bottom;
  animation: growBar 1.1s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}

.dash-bar.accent { background: linear-gradient(180deg, var(--orange-500), var(--orange-700)); }

@keyframes growBar {
  to { transform: scaleY(1); }
}

.dash-legend {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-2xs);
  color: var(--color-text-muted);
  margin-bottom: var(--sp-5);
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.dash-stat {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: var(--sp-3);
  text-align: center;
}

.dash-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--emerald-800);
}

.dash-stat span {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
}

.dash-float {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: 600;
  animation: floatY 4s ease-in-out infinite;
}

.dash-float-1 { top: -18px; right: -10px; }
.dash-float-2 { bottom: 30px; left: -28px; animation-delay: 0.6s; }

.dash-float .ico {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--orange-50);
  color: var(--orange-600);
  display: flex; align-items: center; justify-content: center;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --------------------------------------------------------------------------
   8. LOGO / TOOLS STRIP
   -------------------------------------------------------------------------- */
.strip {
  padding-block: var(--sp-6);
  border-bottom: 1px solid var(--color-border);
}

.strip-label {
  font-size: var(--fs-2xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: var(--sp-4);
  text-align: center;
}

.strip-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-7);
}

.strip-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--charcoal-700);
  font-size: var(--fs-sm);
  opacity: 0.75;
  transition: opacity var(--dur-fast);
}

.strip-item:hover { opacity: 1; }

/* --------------------------------------------------------------------------
   9. CARDS — Courses / Career / Blog
   -------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.course-card-top {
  padding: var(--sp-5);
  background: var(--emerald-50);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--emerald-800);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-level {
  font-size: var(--fs-2xs);
  font-weight: 700;
  background: var(--white);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  color: var(--emerald-800);
}

.card-body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h3 { margin-bottom: var(--sp-2); }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; }
.card-body h3 a { position: static; }
.card { position: relative; }

.card-body p {
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-4);
  flex-grow: 1;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.tag {
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--charcoal-700);
  background: var(--gray-100);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  padding-top: var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--emerald-700);
}

/* Career cards */
.career-card {
  padding: var(--sp-5);
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--dur-base), transform var(--dur-base);
}

.career-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.career-card .figure {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  color: var(--emerald-700);
  margin-bottom: var(--sp-2);
}

/* --------------------------------------------------------------------------
   10. STATS / COUNTERS
   -------------------------------------------------------------------------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  text-align: center;
}

.stat-item strong {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  color: var(--white);
  display: block;
  line-height: 1;
}

.stat-item span {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.7);
}

/* --------------------------------------------------------------------------
   11. TIMELINE — Learning Journey
   -------------------------------------------------------------------------- */
.journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  counter-reset: step;
}

.journey-step {
  position: relative;
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.journey-step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-2xl);
  color: var(--gray-200);
  display: block;
  margin-bottom: var(--sp-3);
}

.journey-step h3 { margin-bottom: var(--sp-2); font-size: var(--fs-lg); }
.journey-step p { font-size: var(--fs-sm); }

.journey-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 44px;
  right: -28px;
  width: 20px;
  height: 2px;
  background: var(--gray-300);
  display: none;
}

@media (min-width: 1024px) {
  .journey-step:not(:last-child)::after { display: block; }
}

/* --------------------------------------------------------------------------
   12. COMPARISON TABLE
   -------------------------------------------------------------------------- */
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.compare-table {
  min-width: 640px;
}

.compare-table th,
.compare-table td {
  padding: var(--sp-4) var(--sp-5);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-sm);
}

.compare-table thead th {
  font-family: var(--font-display);
  background: var(--emerald-900);
  color: var(--white);
  font-weight: 600;
}

.compare-table tbody tr:nth-child(even) { background: var(--gray-50); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td:first-child { font-weight: 600; color: var(--charcoal-900); }
.compare-table .yes { color: var(--emerald-700); font-weight: 700; }
.compare-table .no { color: var(--charcoal-300); }

/* --------------------------------------------------------------------------
   13. TESTIMONIALS
   -------------------------------------------------------------------------- */
.testi-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.testi-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
}

.testi-stars {
  color: var(--orange-500);
  margin-bottom: var(--sp-3);
  font-size: var(--fs-sm);
  letter-spacing: 2px;
}

.testi-card p {
  color: var(--charcoal-700);
  margin-bottom: var(--sp-5);
  font-size: var(--fs-sm);
}

.testi-person {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--emerald-800);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  flex-shrink: 0;
}

.testi-person strong { display: block; font-size: var(--fs-sm); }
.testi-person span { font-size: var(--fs-2xs); color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   14. FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 820px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5);
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-md);
}

.faq-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--emerald-50);
  color: var(--emerald-700);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base);
  font-size: var(--fs-md);
  line-height: 1;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  background: var(--orange-500);
  color: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-base) var(--ease-out);
}

.faq-answer-inner {
  padding: 0 var(--sp-5) var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   15. CTA BAND
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--emerald-900) 0%, var(--emerald-700) 100%);
  border-radius: var(--radius-lg);
  padding: var(--sp-8) var(--sp-7);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  background: var(--orange-600);
  opacity: 0.18;
  border-radius: 50%;
  right: -100px;
  top: -140px;
}

.cta-band h2 { color: var(--white); font-size: var(--fs-2xl); margin-bottom: var(--sp-2); position: relative; }
.cta-band p { color: rgba(255,255,255,0.78); position: relative; }
.cta-band .cta-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; position: relative; }

/* --------------------------------------------------------------------------
   16. CONTACT / FORM
   -------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--charcoal-700);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  font-size: var(--fs-sm);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--emerald-700);
  background: var(--white);
  outline: none;
}

.form-note {
  font-size: var(--fs-2xs);
  color: var(--color-text-muted);
  margin-top: var(--sp-2);
}

.contact-info-card {
  background: var(--emerald-900);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
}

.contact-info-card h3 { color: var(--white); margin-bottom: var(--sp-5); }

.contact-info-row {
  display: flex;
  gap: var(--sp-3);
  padding-block: var(--sp-3);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.contact-info-row:last-child { border-bottom: none; }

.contact-info-row .ico {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: var(--orange-500);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.contact-info-row strong { display: block; font-size: var(--fs-sm); }
.contact-info-row span,
.contact-info-row a { font-size: var(--fs-xs); color: rgba(255,255,255,0.75); }

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 16/9;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

/* --------------------------------------------------------------------------
   17. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--charcoal-900);
  color: rgba(255,255,255,0.7);
}

.footer-top {
  padding-block: var(--sp-8);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr;
  gap: var(--sp-6);
}

.footer-brand .brand-mark { background: var(--orange-600); }
.footer-brand .brand-name { color: var(--white); }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: var(--fs-sm); margin-block: var(--sp-4); }

.footer-social {
  display: flex;
  gap: var(--sp-2);
}

.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast);
}

.footer-social a:hover { background: var(--orange-600); }

.footer-col h4 {
  color: var(--white);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-col a { font-size: var(--fs-sm); transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--white); }

.footer-newsletter form {
  display: flex;
  margin-top: var(--sp-3);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-pill);
  padding: 4px;
}

.footer-newsletter input {
  flex-grow: 1;
  background: transparent;
  border: none;
  padding: 0.6rem 1rem;
  color: var(--white);
  font-size: var(--fs-sm);
}

.footer-newsletter input::placeholder { color: rgba(255,255,255,0.4); }

.footer-newsletter button {
  background: var(--orange-600);
  color: var(--white);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--dur-fast);
}

.footer-newsletter button:hover { background: var(--orange-700); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-block: var(--sp-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
}

.footer-bottom-links { display: flex; gap: var(--sp-5); }

/* --------------------------------------------------------------------------
   18. FLOATING ACTION BUTTONS
   -------------------------------------------------------------------------- */
.fab-stack {
  position: fixed;
  right: var(--sp-5);
  bottom: var(--sp-5);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.fab {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur-fast) var(--ease-out);
}

.fab:hover { transform: scale(1.08); }

.fab-whatsapp { background: #25D366; color: var(--white); }
.fab-call { background: var(--orange-600); color: var(--white); }

/* --------------------------------------------------------------------------
   19. MISC — badges, certificates, gallery, schedule
   -------------------------------------------------------------------------- */
.badge-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--emerald-50);
  color: var(--emerald-800);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.schedule-table th { background: var(--emerald-50); color: var(--emerald-900); font-family: var(--font-display); }

.course-tab {
  border: 1.5px solid transparent;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}

.course-tab.is-active {
  background: var(--emerald-800);
  color: var(--white);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Anchor scroll offset for sticky header on one-page layout */
section[id] { scroll-margin-top: var(--header-h); }

/* --------------------------------------------------------------------------
   19. ENQUIRY MODAL POPUP
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 30, 22, 0.4);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
  overflow-y: auto;
}

.modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--white);
  padding: 1.25rem 1.5rem 1.25rem;
  border-radius: 12px;
  max-width: 360px;
  width: 100%;
  position: relative;
  box-shadow: 0 12px 32px rgba(9, 30, 22, 0.2);
  transform: scale(0.94) translateY(8px);
  transition: transform var(--dur-base) var(--ease-out);
}

@media (max-width: 480px) {
  .modal-container {
    padding: 1rem 1.15rem 1rem;
    width: 95%;
  }
}

.modal-overlay.is-active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--gray-100);
  border: none;
  font-size: 18px;
  line-height: 1;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal-700);
  transition: background var(--dur-fast), color var(--dur-fast);
}

.modal-close:hover {
  background: var(--emerald-50);
  color: var(--emerald-800);
}

.compact-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.form-field-sm {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-field-sm label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--charcoal-700);
}

.form-field-sm input,
.form-field-sm select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  background: var(--gray-50);
  font-size: 0.85rem;
  color: var(--charcoal-900);
  transition: border-color var(--dur-fast), background var(--dur-fast);
}

.form-field-sm input:focus,
.form-field-sm select:focus {
  border-color: var(--emerald-700);
  background: var(--white);
  outline: none;
}

.form-status-msg.success {
  color: #0e4e3c;
}

.form-status-msg.error {
  color: #b85c0a;
}

/* --------------------------------------------------------------------------
   20. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .footer-top { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-col.newsletter-col { grid-column: 1 / -1; }
}

@media (max-width: 1200px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline: auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: repeat(2, 1fr); }
  .testi-track { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 58px; }
  h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); }
  h2 { font-size: var(--fs-2xl); }
  .section { padding-block: var(--sp-7); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; justify-content: center; }
  .footer-top { grid-template-columns: 1fr; text-align: left; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .brand-tagline { display: none; }
  .header-phone span { display: none; }
}

@media (max-width: 480px) {
  .container { padding-inline: var(--sp-4); }
  .hero-cta-row { flex-direction: column; }
  .hero-cta-row .btn { width: 100%; }
  .fab { width: 50px; height: 50px; }
}
