/*
Theme Name: Oxford University Uganda
Author: Oxford University Uganda (TEVT and Research Centre)
Description: A WordPress-first responsive website theme for Oxford University Uganda (TEVT and Research Centre). Version 3.3 adds editable content, plugin-aware SEO, structured data, accessibility, performance, and Hostinger compatibility while preserving the established design.
Version: 3.3.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oxford-tevt
Tags: education, training, research, responsive, custom-logo, featured-images
*/

.editable-page-content {
  padding: clamp(40px, 7vw, 88px) 0;
}

.editable-page-content .content-page {
  max-width: 1120px;
}

.editable-page-content .alignwide {
  margin-left: auto;
  margin-right: auto;
  max-width: 1120px;
}

.editable-page-content .alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}

.website-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-error {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #b42318;
  border-radius: var(--radius);
  background: #fff1f0;
  color: #8a1c13;
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 0 20px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 800;
  padding: 18px 28px 18px 0;
}

.faq-list details p {
  color: var(--muted);
  padding: 0 0 18px;
}

/* ===================================================================
   1. DESIGN TOKENS
   =================================================================== */
:root {
  --navy:      #071a33;
  --navy-2:    #102b52;
  --navy-3:    #0b2244;
  --gold:      #c99a3b;
  --gold-2:    #e7c56f;
  --gold-3:    #f6e4aa;
  --ink:       #132035;
  --muted:     #5b6678;
  --line:      #d9dfeb;
  --paper:     #ffffff;
  --soft:      #f5f7fb;
  --softer:    #eef1f7;
  --success:   #1d7c5a;
  --wa-green:  #25d366;
  --shadow-sm: 0 4px 12px rgba(7,26,51,0.08);
  --shadow:    0 12px 34px rgba(7,26,51,0.12);
  --shadow-lg: 0 24px 54px rgba(7,26,51,0.16);
  --radius:    8px;
  --radius-lg: 12px;
  --transition: 200ms cubic-bezier(0.4,0,0.2,1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Arial, sans-serif;
}

/* ===================================================================
   2. RESET & BASE
   =================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.1; color: inherit; }

/* ===================================================================
   3. ACCESSIBILITY
   =================================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold-2);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--gold);
  color: var(--navy);
  padding: 10px 16px;
  font-weight: 700;
  border-radius: var(--radius);
  z-index: 100;
}
.skip-link:focus { left: 12px; }
.sr-only,
.screen-reader-text {
  border: 0;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

/* ===================================================================
   4. LAYOUT UTILITIES
   =================================================================== */
.site-shell { overflow: hidden; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 88px 0; }
.section.compact { padding: 38px 0; }
.section.soft { background: var(--soft); }
.section.softer { background: var(--softer); }
.section.navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 55%, #061426 100%);
  color: #fff;
}

/* ===================================================================
   5. SCROLL PROGRESS BAR
   =================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  z-index: 200;
  transition: width 80ms linear;
}

/* ===================================================================
   6. TOP BAR
   =================================================================== */
.topbar {
  background: var(--navy);
  color: #f0e4c8;
  font-size: 0.88rem;
  font-weight: 600;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  flex-wrap: wrap;
}
.topbar a { font-weight: 700; color: #fff; }
.topbar a:hover { color: var(--gold-2); }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--wa-green);
  color: #fff !important;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
}
.topbar-wa:hover { background: #1ebe5b; }

/* ===================================================================
   7. SITE HEADER & NAVIGATION
   =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(217,223,235,0.9);
  transition: box-shadow var(--transition), padding var(--transition);
}
.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(7,26,51,0.1);
}
.nav-wrap {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.brand-text { line-height: 1.2; }
.brand-title {
  display: block;
  color: var(--navy);
  font-weight: 900;
  font-size: 0.97rem;
  line-height: 1.1;
}
.brand-subtitle {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Primary Nav */
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-nav > ul > li {
  position: relative;
}
.site-nav a {
  display: block;
  padding: 10px 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.site-nav a:hover {
  color: var(--navy);
  background: #faf3e0;
}
/* Active / current page indicator */
.site-nav li.current-menu-item > a,
.site-nav li.current_page_item > a,
.site-nav li.current-menu-ancestor > a,
.site-nav a[aria-current="page"] {
  color: var(--navy);
  background: #faf3e0;
  position: relative;
}
.site-nav li.current-menu-item > a::after,
.site-nav li.current_page_item > a::after,
.site-nav li.current-menu-ancestor > a::after,
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* Dropdown */
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.site-nav .sub-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 220px;
  list-style: none;
  padding: 8px;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  z-index: 60;
}
.site-nav .sub-menu li { display: block; }
.site-nav .sub-menu a {
  padding: 10px 12px;
  font-size: 0.86rem;
  color: var(--ink);
  border-radius: 6px;
  display: block;
}
.site-nav .sub-menu a:hover { background: var(--soft); color: var(--navy); }

/* Dropdown arrow */
.menu-item-has-children > a::after {
  content: "\25BE";
  display: inline-block;
  margin-left: 5px;
  font-size: 0.7rem;
  opacity: 0.6;
}

/* Nav CTA button */
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--navy) !important;
  border-radius: var(--radius);
  padding: 10px 16px;
  font-weight: 900;
  font-size: 0.88rem;
  border: 1px solid #b6882d;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.nav-cta:hover {
  background: var(--gold-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(201,154,59,0.35);
}

/* ===================================================================
   8. HAMBURGER / MOBILE MENU TOGGLE
   =================================================================== */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  font-size: 0;
}
.menu-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease, width 200ms ease;
  transform-origin: center;
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
  width: 0;
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===================================================================
   9. HERO SECTION
   =================================================================== */
.hero {
  color: #fff;
  background:
    linear-gradient(100deg, rgba(7,26,51,0.96) 0%, rgba(7,26,51,0.82) 44%, rgba(7,26,51,0.4) 100%),
    var(--hero-image, linear-gradient(135deg, var(--navy), var(--navy-2)));
  background-size: cover;
  background-position: center top;
  min-height: 680px;
  display: flex;
  align-items: center;
  padding: 96px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 660px) minmax(260px, 360px);
  gap: 56px;
  align-items: end;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
  margin-bottom: 18px;
}
.hero-eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--gold-2);
}
h1 { font-size: clamp(2.6rem, 5.5vw, 5.4rem); max-width: 780px; font-weight: 900; }
h2 { font-size: clamp(1.9rem, 3.2vw, 3.2rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 700; }
.lead {
  margin-top: 20px;
  font-size: clamp(1.06rem, 1.8vw, 1.28rem);
  max-width: 680px;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
}
.hero-subtitle {
  margin: 10px 0 0;
  color: rgba(255,255,255,0.86);
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.25;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-note {
  margin: 24px 0 0;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

/* Hero panel (side card) */
.hero-panel {
  background: rgba(255,255,255,0.96);
  color: var(--navy);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--gold);
}
.hero-panel strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--navy);
}
.hero-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.hero-panel li {
  padding-left: 20px;
  position: relative;
  font-weight: 600;
  font-size: 0.95rem;
}
.hero-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* ===================================================================
   10. BUTTONS
   =================================================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: var(--radius);
  padding: 12px 20px;
  font-weight: 800;
  font-size: 0.92rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition),
              background-color var(--transition), border-color var(--transition);
}
.button:hover,
.button:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(7,26,51,0.18);
}
.button.primary {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: var(--navy);
  border-color: #b6882d;
}
.button.primary:hover { background: linear-gradient(135deg, var(--gold-3), var(--gold-2)); }
.button.secondary {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  background: transparent;
}
.button.secondary:hover { background: rgba(255,255,255,0.12); }
.button.light {
  background: #fff;
  color: var(--navy);
  border-color: rgba(255,255,255,0.2);
}
.button.light:hover { background: #f5f7fb; }
.button.outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.button.outline:hover { border-color: var(--gold); color: var(--navy); background: #faf3e0; }

/* ===================================================================
   11. SECTION HELPERS
   =================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.navy .eyebrow { color: var(--gold-2); }
.navy .eyebrow::before { background: var(--gold-2); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 40px;
}
.section-head p { color: var(--muted); font-size: 1.04rem; margin: 0; }
.navy .section-head p { color: rgba(255,255,255,0.72); }
.section-action { margin-top: 30px; text-align: center; }

/* ===================================================================
   12. BREADCRUMBS
   =================================================================== */
.breadcrumbs-wrap {
  background: var(--softer);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.84rem;
  color: var(--muted);
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  list-style: none;
}
.breadcrumbs li + li::before {
  content: "\203A";
  color: #8a94a6;
  font-weight: 400;
  margin-right: 6px;
}
.breadcrumbs a { color: var(--muted); font-weight: 600; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .current { color: var(--navy); font-weight: 700; }

/* ===================================================================
   13. KPI STRIP
   =================================================================== */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.kpi {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  transition: background var(--transition);
}
.kpi:last-child { border-right: 0; }
.kpi:hover { background: var(--soft); }
.kpi b {
  display: block;
  color: var(--navy);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}
.kpi span { color: var(--muted); font-weight: 600; font-size: 0.9rem; margin-top: 6px; display: block; }
.count-num { display: inline; }

/* ===================================================================
   14. PROGRAM GRID & CARDS
   =================================================================== */
.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.program-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.program-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  opacity: 0;
  transition: opacity var(--transition);
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c8a14d; }
.program-card:hover::before { opacity: 1; }
.program-icon,
.icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: #fef4db;
  color: #7c5717;
  font-weight: 900;
  font-size: 1.1rem;
}
.program-card h3 { color: var(--navy); font-size: 1.08rem; }
.program-card p { color: var(--muted); margin: 0; font-size: 0.92rem; flex: 1; }
.program-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 5px;
}
.program-card li {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.86rem;
  padding-left: 14px;
  position: relative;
}
.program-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.78rem;
}
.program-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.84rem;
  margin-top: auto;
}
.program-card-link:hover { color: var(--navy); }

/* ===================================================================
   15. TRAINING MODEL
   =================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.media-frame img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
  font-size: 0.97rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--gold-2);
  border-bottom: 2.5px solid var(--gold-2);
  transform: rotate(-45deg);
}
.check-list.dark li::before { border-color: var(--gold); }

.model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.model-step {
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: rgba(255,255,255,0.07);
  transition: background var(--transition);
}
.model-step:hover { background: rgba(255,255,255,0.12); }
.model-step b {
  color: var(--gold-2);
  font-size: 1.35rem;
  display: block;
  margin-bottom: 10px;
}
.model-step p { color: rgba(255,255,255,0.76); margin: 0; font-size: 0.93rem; }

/* ===================================================================
   16. AUDIENCE & PATHWAY GRIDS
   =================================================================== */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.audience-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.audience-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.audience-card h3 { color: var(--navy); margin-bottom: 10px; }
.audience-card p { color: var(--muted); margin: 0; font-size: 0.94rem; }

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pathway-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.pathway-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pathway-card h3 { color: var(--navy); margin-bottom: 8px; }
.pathway-card p { color: var(--muted); margin: 0; font-size: 0.94rem; }

/* ===================================================================
   17. EVENTS & NEWS
   =================================================================== */
.events-list { display: grid; gap: 12px; }
.event-item {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  background: #fff;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.event-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #c8a14d; }
.event-date { color: var(--navy); font-weight: 800; font-size: 1.05rem; }
.event-date span {
  display: block;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 3px;
}
.event-item h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 5px; }
.event-item p { color: var(--muted); margin: 0; font-size: 0.92rem; }

/* News grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card-img {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
}
.news-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.tag {
  background: #fef4db;
  color: #7c5717;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.news-card h3 { font-size: 1.04rem; color: var(--navy); margin-bottom: 8px; line-height: 1.3; }
.news-card p { color: var(--muted); font-size: 0.9rem; flex: 1; }
.news-card-link { color: var(--gold); font-weight: 700; font-size: 0.88rem; margin-top: 12px; }

/* ===================================================================
   18. TESTIMONIALS
   =================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 16px;
  right: 22px;
  font-size: 4rem;
  color: var(--gold-3);
  line-height: 1;
  font-family: Georgia, serif;
}
.testimonial-card p {
  color: var(--ink);
  font-size: 0.97rem;
  line-height: 1.7;
  margin: 0 0 20px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--soft);
  border: 2px solid var(--gold);
  overflow: hidden;
  flex-shrink: 0;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-weight: 800; color: var(--navy); font-size: 0.93rem; }
.testimonial-role { color: var(--muted); font-size: 0.82rem; }

/* ===================================================================
   19. CONTACT SECTION
   =================================================================== */
.contact-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 0;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.contact-info {
  background: var(--navy);
  color: #fff;
  padding: 38px 34px;
}
.contact-info p { color: rgba(255,255,255,0.76); margin-bottom: 12px; }
.contact-info a { color: #fff; font-weight: 700; }
.contact-info a:hover { color: var(--gold-2); }
.contact-info .eyebrow { color: var(--gold-2); }
.contact-info .eyebrow::before { background: var(--gold-2); }
.contact-info h2 { color: #fff; font-size: clamp(1.6rem, 2.5vw, 2.4rem); margin-bottom: 16px; }
.contact-info-list { list-style: none; margin: 20px 0 0; display: grid; gap: 12px; }
.contact-info-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; }
.contact-info-item-icon { flex-shrink: 0; font-size: 1.1rem; }

.contact-form { padding: 38px 34px; }
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-row { margin-top: 14px; }
label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
}
input, select, textarea {
  width: 100%;
  border: 1.5px solid #cfd7e6;
  border-radius: var(--radius);
  padding: 12px 14px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,154,59,0.15);
  outline: none;
}
textarea { min-height: 120px; resize: vertical; }
.form-success { color: var(--success); font-weight: 700; padding: 12px 16px; background: #e8f7f1; border-radius: var(--radius); margin-bottom: 14px; }

/* ===================================================================
   20. PAGE HERO (INNER PAGES)
   =================================================================== */
.page-hero {
  background:
    linear-gradient(135deg, rgba(7,26,51,0.98) 0%, rgba(16,43,82,0.94) 100%);
  color: #fff;
  padding: 80px 0 64px;
}
.page-hero .eyebrow { color: var(--gold-2); }
.page-hero .eyebrow::before { background: var(--gold-2); }
.page-hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 3.8rem);
  max-width: 860px;
  margin-top: 4px;
}
.page-hero .lead { max-width: 820px; }

/* ===================================================================
   21. CONTENT PAGE LAYOUT (SIDEBAR + MAIN)
   =================================================================== */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}
.content-panel,
.side-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.content-panel { padding: 36px; }
.side-panel {
  padding: 26px;
  position: sticky;
  top: 100px;
}
.content-panel h2 { color: var(--navy); font-size: 1.55rem; margin: 24px 0 12px; }
.content-panel h2:first-child { margin-top: 0; }
.content-panel h3 { color: var(--navy); margin: 16px 0 8px; }
.content-panel p { color: var(--muted); }
.side-panel h3 { color: var(--navy); margin-bottom: 14px; }
.side-panel p { color: var(--muted); font-size: 0.93rem; }
.side-panel a:not(.button) { color: var(--navy); font-weight: 700; }
.side-panel .button { margin-top: 14px; width: 100%; justify-content: center; }

/* Generic content page */
.content-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 0;
}
.content-page h2, .content-page h3 { color: var(--navy); margin: 1.4rem 0 0.5rem; }
.content-page a:not(.button) { color: #8f671c; font-weight: 700; }

/* ===================================================================
   22. PROGRAM DETAIL GRID & CARDS
   =================================================================== */
.program-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
}
.detail-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.detail-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c8a14d; }
.detail-card h2 { color: var(--navy); font-size: 1.38rem; margin-bottom: 10px; }
.detail-card h3 { color: var(--navy); font-size: 1rem; margin: 14px 0 6px; }
.detail-card p { color: var(--muted); font-size: 0.93rem; }
.detail-card ul, .number-list {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.91rem;
  display: grid;
  gap: 5px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  margin-top: 16px;
}
.mini-grid > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--soft);
}
.mini-grid h3 { color: var(--navy); margin-bottom: 6px; font-size: 1rem; }
.mini-grid p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.callout-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 1fr) auto;
  gap: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.callout-row p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ===================================================================
   23. FOOTER
   =================================================================== */
.site-footer {
  background: #040e1d;
  color: #c8d8ee;
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 14px;
}
.footer-brand h3 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.footer-brand h3 small {
  display: inline-block;
  color: rgba(255,255,255,0.72);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 3px;
}
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.88rem; margin: 0 0 6px; }
.site-footer h4 { color: #fff; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer li a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color var(--transition); }
.site-footer li a:hover { color: var(--gold-2); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  font-size: 0.82rem; color: rgba(255,255,255,0.7);
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--navy); }
.footer-bottom {
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.copyright { color: rgba(255,255,255,0.38); font-size: 0.84rem; }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: rgba(255,255,255,0.38); font-size: 0.84rem; }
.footer-bottom-links a:hover { color: var(--gold-2); }
.footer-motto { color: var(--gold-2); font-style: italic; font-weight: 600; font-size: 0.84rem; }

/* ===================================================================
   24. FLOATING WHATSAPP BUTTON
   =================================================================== */
.float-wa {
  position: fixed;
  bottom: 80px;
  right: 22px;
  z-index: 99;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 22px rgba(37,211,102,0.45);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.float-wa:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(37,211,102,0.55); color: #fff; }
.float-wa svg { width: 28px; height: 28px; fill: currentColor; }
.float-wa::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--wa-green);
  animation: wa-pulse 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ===================================================================
   25. BACK TO TOP BUTTON
   =================================================================== */
.back-to-top {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 99;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(7,26,51,0.3);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--gold); }
.back-to-top svg { width: 18px; height: 18px; fill: currentColor; }

/* ===================================================================
   26. SCROLL ANIMATIONS
   =================================================================== */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 550ms ease, transform 550ms ease;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-in.delay-1 { transition-delay: 100ms; }
.animate-in.delay-2 { transition-delay: 200ms; }
.animate-in.delay-3 { transition-delay: 300ms; }
.animate-in.delay-4 { transition-delay: 400ms; }

/* ===================================================================
   27. ABOUT PAGE — VALUES & TIMELINE
   =================================================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.value-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: block;
}
.value-card h3 { color: var(--navy); font-size: 1rem; margin-bottom: 6px; }
.value-card p { color: var(--muted); font-size: 0.88rem; margin: 0; }

/* ===================================================================
   28. SEARCH FORM
   =================================================================== */
.search-form {
  display: flex;
  gap: 10px;
  max-width: 600px;
}
.search-form input {
  flex: 1;
  border-radius: var(--radius);
}
.search-form .button { flex-shrink: 0; }

/* ===================================================================
   29. PAGINATION
   =================================================================== */
.pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 0 12px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  background: #fff;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.pagination a:hover { background: var(--soft); border-color: var(--gold); }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ===================================================================
   30. 404 PAGE
   =================================================================== */
.error-404-body {
  text-align: center;
  padding: 80px 0;
}
.error-404-body .error-number {
  font-size: clamp(5rem, 16vw, 12rem);
  font-weight: 900;
  color: var(--line);
  line-height: 1;
  display: block;
}
.error-404-body h2 { color: var(--navy); font-size: 1.6rem; }
.error-404-body p { color: var(--muted); max-width: 480px; margin: 12px auto 28px; }

/* ===================================================================
   31. PRINT STYLES
   =================================================================== */
@media print {
  .topbar, .site-header, .site-footer,
  .float-wa, .back-to-top, .scroll-progress,
  .hero-actions, .nav-cta { display: none !important; }
  body { color: #000; background: #fff; }
  .page-hero { background: #f5f5f5 !important; color: #000 !important; }
  a { color: #000; }
  .container { width: 100%; }
}

/* ===================================================================
   32. RESPONSIVE — 1100px (slight adjustments)
   =================================================================== */
@media (max-width: 1100px) {
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 0.7fr 0.7fr; }
  .footer-grid > div:last-child { display: none; }
}

/* ===================================================================
   33. RESPONSIVE — 980px (tablet)
   =================================================================== */
@media (max-width: 980px) {
  .menu-toggle { display: flex; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 2px solid var(--line);
    box-shadow: 0 8px 24px rgba(7,26,51,0.1);
    display: none;
    z-index: 50;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: grid; gap: 0; padding: 10px 16px 16px; }
  .site-nav a { padding: 12px 8px; }
  .site-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    background: transparent;
  }
  .site-nav .sub-menu a { padding: 8px 0; font-size: 0.85rem; color: var(--muted); }
  .site-nav li.current-menu-item > a::after { bottom: 2px; left: 8px; right: 8px; }
  .nav-cta { margin-left: auto; }

  .hero-grid, .split, .contact-band { grid-template-columns: 1fr; }
  .hero-grid .hero-panel { order: -1; }
  .side-panel { position: static; }
  .page-layout { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .callout-row { grid-template-columns: 1fr; }
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .pathway-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .program-detail-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
}

/* ===================================================================
   34. RESPONSIVE — 640px (mobile)
   =================================================================== */
@media (max-width: 640px) {
  .container { width: calc(100% - 24px); }
  .section { padding: 58px 0; }
  .topbar .container { display: grid; gap: 6px; }
  .topbar-right { flex-wrap: wrap; }
  .brand img { width: 44px; height: 44px; }
  .brand-title { font-size: 0.88rem; }
  .brand-subtitle { font-size: 0.74rem; }
  .nav-wrap { min-height: 70px; gap: 10px; }
  .nav-cta { display: none; }
  .hero { padding: 64px 0 36px; }
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.8rem; }
  .hero-actions .button { width: 100%; }
  .program-grid { grid-template-columns: 1fr; }
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .kpi { border-right: 0; border-bottom: 1px solid var(--line); }
  .kpi:nth-child(2n) { border-right: 0; }
  .kpi:last-child { border-bottom: 0; }
  .model-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .pathway-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .content-panel, .side-panel, .detail-card, .callout-row { padding: 20px; }
  .contact-band { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px; }
  .contact-info { padding: 28px 20px; }
  .field-grid { grid-template-columns: 1fr; }
  .event-item { grid-template-columns: 1fr; }
  .event-item .button { width: 100%; justify-content: center; }
  .mini-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .float-wa { bottom: 72px; right: 16px; }
  .back-to-top { bottom: 16px; right: 16px; }
}
