/* Al-Falah Primary School - Stylesheet */
:root {
  --primary: #3a8dd9;
  --primary-dark: #1e5c8a;
  --primary-light: #d6ebf9;
  --bg: #f4faff;
  --surface: #ffffff;
  --text: #1f2d3d;
  --muted: #5a6b7d;
  --border: #d8e4ef;
  --accent: #f4a72c;
  --shadow: 0 2px 8px rgba(30, 92, 138, 0.08);
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.topbar {
  background: var(--primary-dark);
  color: #fff;
  font-size: 0.875rem;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; align-items: center; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--primary-light); }
.topbar .quick-links a { margin-left: 14px; }
.social-icons { display: flex; gap: 8px; }
.social-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  font-size: 0.85rem;
  transition: background 0.15s;
}
.social-icons a:hover { background: var(--accent); color: #1f2d3d; }

/* CTA strip */
.cta-strip { background: var(--primary-light); padding: 0; }
.cta-strip .cta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.cta-strip a {
  padding: 28px 20px;
  text-align: center;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 1.05rem;
  border-right: 1px solid rgba(30, 92, 138, 0.15);
  transition: background 0.15s, color 0.15s;
  display: block;
}
.cta-strip a:last-child { border-right: none; }
.cta-strip a:hover { background: var(--primary); color: #fff; }
.cta-strip a .cta-icon { display: block; font-size: 1.6rem; margin-bottom: 6px; }
@media (max-width: 700px) {
  .cta-strip .cta-row { grid-template-columns: 1fr; }
  .cta-strip a { border-right: none; border-bottom: 1px solid rgba(30, 92, 138, 0.15); }
}

/* Values (FALAH acronym, almizan REAP-style) */
.values-sec {
  background: var(--bg);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}
.values-sec h2 {
  text-align: center;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 200;
  color: var(--primary-dark);
  margin: 0 0 30px;
  line-height: 1;
}
.values-sec .reap-line {
  text-align: center;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--muted);
  font-weight: 300;
  margin: 0 0 50px;
}
.values-sec .reap-line span {
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.value-pillar { text-align: center; padding: 16px 8px; }
.value-letter {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 110px; height: 110px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 3.2rem;
  font-weight: 700;
  border-radius: 0 28px 0 28px;
  margin-bottom: 22px;
  box-shadow: 0 8px 20px rgba(58,141,217,0.35), inset 0 0 0 4px rgba(255,255,255,0.5);
  outline: 1px solid rgba(255,255,255,0.7);
  outline-offset: -10px;
}
.value-pillar h3 {
  color: var(--primary-dark);
  font-size: 1.1rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.value-pillar p { color: var(--muted); font-size: 0.95rem; line-height: 1.4; }
@media (max-width: 900px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .values-sec h2 { text-align: center; }
}
@media (max-width: 480px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* Testimonial — translucent almizan-style */
.testimonial-section {
  position: relative;
  background:
    linear-gradient(rgba(30,92,138,0.85), rgba(30,92,138,0.85)),
    url("../images/wbd.jpg") center/cover fixed;
  color: #fff;
  padding: 90px 5% 90px;
  text-align: center;
}
.testimonial-section .inner {
  position: absolute;
  inset: 20px;
  outline: 1px solid rgba(255,255,255,0.5);
  outline-offset: 0;
  border-radius: 0 40px 0 40px;
  pointer-events: none;
}
.testimonial-section .container { position: relative; z-index: 1; }
.testimonial-section .quote-mark {
  font-size: 6rem;
  line-height: 0.8;
  font-family: Georgia, serif;
  opacity: 0.5;
  margin-bottom: 0;
}
.testimonial-section blockquote {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-style: italic;
  max-width: 820px;
  margin: 0 auto 16px;
  line-height: 1.5;
  font-weight: 300;
}
.testimonial-section cite { font-style: normal; font-weight: 600; opacity: 0.9; }

/* Contact strip */
.contact-strip {
  background: var(--surface);
  padding: 50px 0;
  border-top: 4px solid var(--primary);
}
.contact-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  text-align: center;
}
.contact-strip-grid div .ic {
  font-size: 1.8rem; color: var(--primary); margin-bottom: 8px; display: block;
}
.contact-strip-grid h4 { color: var(--primary-dark); margin-bottom: 6px; }

/* Header */
.site-header {
  background: var(--surface);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 100;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 0;
  gap: 18px 30px;
}
.header-inner .brand { flex: 0 0 auto; }
.header-inner .nav-toggle { flex: 0 0 auto; order: 3; margin-left: auto; }
.header-inner .main-nav { flex: 0 1 auto; min-width: 0; }
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; justify-content: flex-start; }
.brand img { height: 64px; width: auto; max-width: 220px; }
/* Logo already contains the school name + tagline — hide duplicate text but keep for screen readers/SEO */
.brand-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Nav */
/* ─── Bubble-style nav (light blue palette) ─── */
.main-nav { width: auto; }
.main-nav > ul {
  display: flex;
  list-style: none;
  gap: 14px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
}
.main-nav > ul > li { position: relative; }

.main-nav > ul > li {
  flex: 0 1 auto;
  min-width: 0;
}
.main-nav > ul > li > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  padding: 6px 4px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.05;
  box-shadow:
    0 6px 14px rgba(30, 92, 138, 0.25),
    inset 0 0 0 3px rgba(255, 255, 255, 0.85);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
  white-space: normal;
  word-break: keep-all;
  hyphens: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

/* Rotating palette — 4 colors cycle through the items */
.main-nav > ul > li:nth-child(4n+1) > a {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}
.main-nav > ul > li:nth-child(4n+2) > a {
  background: linear-gradient(135deg, var(--accent) 0%, #d68910 100%);
  color: #1f2d3d;
}
.main-nav > ul > li:nth-child(4n+3) > a {
  background: linear-gradient(135deg, var(--primary) 0%, #6bb6e8 100%);
}
.main-nav > ul > li:nth-child(4n+4) > a {
  background: linear-gradient(135deg, #1e5c8a 0%, #2c79b8 100%);
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
  transform: translateY(-5px) scale(1.04);
  box-shadow:
    0 16px 30px rgba(30, 92, 138, 0.36),
    inset 0 0 0 5px rgba(255, 255, 255, 0.95);
  filter: brightness(1.07);
}

/* Remove the small ▾ caret arrow — bubbles are tappable instead */
.main-nav li.has-dropdown > a::after,
.main-nav li.menu-item-has-children > a::after { display: none; }
.main-nav a:hover, .main-nav a.active {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary-dark);
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.1rem;
}

/* Hero — sized to fit alongside the header on one screen */
.hero {
  position: relative;
  min-height: calc(100vh - 220px);
  max-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 40px 20px 130px;
  overflow: hidden;
  background: #1e5c8a;
}
.hero-inner { margin-bottom: 0; position: relative; z-index: 2; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  animation: heroFade 24s infinite;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,92,138,0.45) 0%, rgba(30,92,138,0.75) 100%);
}
@keyframes heroFade {
  0%, 30%   { background-image: url("../images/hero.jpg"); }
  33%, 63%  { background-image: url("../images/classroom.jpg"); }
  66%, 96%  { background-image: url("../images/wbd.jpg"); }
  100%      { background-image: url("../images/hero.jpg"); }
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.hero h2 {
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  font-weight: 300;
  line-height: 1.35;
  margin-bottom: 10px;
}
.hero h2 strong { font-weight: 700; }
.hero .strapline-logo {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #fff;
  padding: 8px;
  margin: 0 auto 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.hero .strapline-logo img { width: 100%; height: 100%; object-fit: contain; }

/* Glowing asymmetric pill buttons — pinned to bottom of hero */
.btn-wrapper {
  position: absolute;
  left: 0; right: 0;
  bottom: 36px;
  z-index: 2;
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center;
  margin: 0 auto;
  padding: 0 20px;
}
.btn-pill {
  display: inline-flex;
  align-items: center; justify-content: center;
  min-width: 200px; height: 56px;
  padding: 0 26px;
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 0 22px 0 22px;
  box-shadow: 0 0 12px rgba(58,141,217,0.7), 0 0 18px rgba(255,255,255,0.15);
  transition: box-shadow 0.2s, letter-spacing 0.2s, transform 0.15s;
}
.btn-pill:hover {
  color: #fff;
  box-shadow: 0 0 18px rgba(255,255,255,0.6), 0 0 24px rgba(58,141,217,0.5);
  letter-spacing: 0.06em;
  transform: translateY(-2px);
}
.btn-pill.gold {
  background: linear-gradient(135deg, var(--accent) 0%, #d68910 100%);
  color: #1f2d3d;
  box-shadow: 0 0 12px rgba(244,167,44,0.7), 0 0 18px rgba(255,255,255,0.15);
}
.btn-pill.gold:hover { color: #1f2d3d; }

/* Generic .btn (kept for inner pages) */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 0 16px 0 16px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s, color 0.15s, box-shadow 0.2s;
}
.btn-primary { background: var(--accent); color: #1f2d3d; box-shadow: 0 4px 12px rgba(244,167,44,0.4); }
.btn-primary:hover { background: #ffba48; color: #1f2d3d; transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary-dark); }

@media (max-width: 700px) {
  .hero { min-height: 60vh; max-height: none; padding: 30px 16px 24px; }
  .btn-pill { min-width: 100%; height: 52px; }
}

/* Sections */
section { padding: 60px 0; }
.section-title {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Welcome card — almizan-style colored card with overlapping image */
.welcome-sec {
  background: var(--surface);
  padding: 90px 0 60px;
  position: relative;
}
.welcome-sec .container { max-width: 1180px; }
.welcome-card {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  border-radius: 0 30px 0 30px;
  outline: 1px solid rgba(255,255,255,0.6);
  outline-offset: -20px;
  box-shadow: 0 14px 28px rgba(30,92,138,0.25);
  padding: 60px 60px 60px 38%;
  margin-left: auto;
  width: 88%;
}
.welcome-card::before {
  content: "";
  position: absolute;
  width: 46%;
  height: calc(100% + 80px);
  top: -40px;
  right: 64%;
  background: url("../images/classroom.jpg") center/cover;
  border-radius: 0 30px 0 30px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.25);
  z-index: 1;
}
.welcome-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 24px;
}
.welcome-card h2 span {
  display: block;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 200;
  margin-left: -10px;
}
.welcome-card p { margin-bottom: 18px; line-height: 1.6; font-weight: 300; }
.welcome-card .read-more {
  display: inline-block;
  margin-top: 20px;
  padding: 16px 32px;
  background: var(--accent);
  color: #1f2d3d;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 0 18px 0 18px;
  box-shadow: 0 0 12px rgba(244,167,44,0.6);
  transition: box-shadow 0.2s, letter-spacing 0.2s;
}
.welcome-card .read-more:hover {
  color: #1f2d3d;
  box-shadow: 0 0 18px rgba(255,255,255,0.6);
  letter-spacing: 0.07em;
}
@media (max-width: 900px) {
  .welcome-card { padding: 40px 28px; width: 100%; }
  .welcome-card::before {
    position: relative;
    display: block;
    width: 100%;
    height: 280px;
    top: auto; right: auto;
    margin: -80px auto 30px;
  }
}

/* Cards grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(30, 92, 138, 0.12); }
.card h3 { color: var(--primary-dark); margin-bottom: 10px; font-size: 1.2rem; }
.card .icon {
  width: 48px; height: 48px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
  font-weight: 700;
}

/* Alt section */
.alt-bg { background: var(--surface); }

/* Two-column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); }
.two-col h2 { color: var(--primary-dark); margin-bottom: 16px; font-size: 1.75rem; }
.two-col p { margin-bottom: 14px; color: var(--muted); }

/* Ofsted badges */
.ofsted-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.ofsted-badge {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}
.ofsted-badge strong { display: block; color: var(--primary-dark); font-size: 1.05rem; margin-bottom: 4px; }
.ofsted-badge span { color: var(--text); font-weight: 600; }
.ofsted-badge.outstanding span { color: #2e7d32; }

/* Page header (subpages) */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 60px 0 50px;
  text-align: center;
}
.page-header h1 { font-size: 2.25rem; margin-bottom: 8px; }
.page-header p { opacity: 0.9; }

/* Content blocks */
.content-block { max-width: 860px; margin: 0 auto; }
.content-block h2 { color: var(--primary-dark); margin: 28px 0 12px; }
.content-block h3 { color: var(--primary-dark); margin: 20px 0 8px; }
.content-block p, .content-block li { margin-bottom: 10px; }
.content-block ul, .content-block ol { padding-left: 22px; margin-bottom: 16px; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--primary-light); color: var(--primary-dark); font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.contact-info { background: var(--surface); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-info h3 { color: var(--primary-dark); margin-bottom: 12px; }
.contact-info p { margin-bottom: 10px; }
.contact-info strong { color: var(--primary-dark); }

/* Form */
.contact-form { background: var(--surface); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form label { display: block; margin: 12px 0 6px; font-weight: 600; color: var(--primary-dark); }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--primary);
  border-color: var(--primary);
}
.contact-form button { margin-top: 16px; }

/* Curriculum Overview — year tiles */
.year-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin: 20px 0;
}
.year-tile {
  display: block;
  background: var(--surface);
  border-radius: 0 22px 0 22px;
  padding: 32px 22px;
  text-align: center;
  text-decoration: none;
  color: var(--primary-dark);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
  transition: transform 0.15s, box-shadow 0.15s;
}
.year-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(30, 92, 138, 0.18);
  color: var(--primary-dark);
}
.year-tile .year-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  border-radius: 0 18px 0 18px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(58,141,217,0.35);
}
.year-tile h3 { font-size: 1.2rem; margin-bottom: 4px; }
.year-tile p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Term sections (per year page) */
.term-section {
  background: var(--surface);
  border-radius: 0 22px 0 22px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border-left: 4px solid var(--primary);
}
.term-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 26px;
  background: linear-gradient(135deg, var(--primary-light), #eaf4fc);
  flex-wrap: wrap;
}
.term-header h2 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 1.4rem;
}
.term-header .term-icon {
  display: inline-block;
  margin-right: 8px;
  font-size: 1.4rem;
}
.term-body { padding: 22px 26px; }
.term-body p { margin-bottom: 14px; color: var(--muted); }

.btn-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 6px;
}
.download-btn, .view-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-weight: 600;
  border-radius: 0 16px 0 16px;
  transition: box-shadow 0.2s, transform 0.1s;
}
.download-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 12px rgba(58,141,217,0.35);
}
.download-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(58,141,217,0.5);
}
.view-btn {
  background: var(--surface);
  color: var(--primary-dark);
  border: 2px solid var(--primary);
  box-shadow: 0 4px 12px rgba(58,141,217,0.15);
}
.view-btn:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(58,141,217,0.25);
}
.download-btn .file-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  font-size: 0.85rem;
}
.download-meta { color: var(--muted); font-size: 0.85rem; margin-top: 8px; }
.coming-soon {
  display: inline-block;
  padding: 12px 22px;
  background: #f1f3f5;
  color: var(--muted);
  font-weight: 500;
  border-radius: 0 16px 0 16px;
  border: 1px dashed var(--border);
}

/* Year navigation pills */
.year-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 30px;
}
.year-pills a {
  padding: 8px 16px;
  background: var(--surface);
  color: var(--primary-dark);
  border-radius: 0 14px 0 14px;
  border: 1px solid var(--border);
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.year-pills a:hover, .year-pills a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Dropdown sub-menu in main nav
   Supports BOTH static markup (.has-dropdown / .dropdown)
   AND WordPress markup (.menu-item-has-children / .sub-menu) */
.main-nav ul { list-style: none; padding: 0; margin: 0; }
.main-nav li { position: relative; }
.main-nav li.has-dropdown > a::after,
.main-nav li.menu-item-has-children > a::after {
  content: " ▾";
  font-size: 0.7em;
  opacity: 0.7;
}

/* The dropdown panel — positioned below the round bubble, centered */
.main-nav .dropdown,
.main-nav .sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(30, 92, 138, 0.2);
  border-radius: 0 18px 0 18px;
  border-top: 4px solid var(--primary);
  padding: 10px;
  display: none;
  flex-direction: column;
  z-index: 200;
  list-style: none;
  margin: 0;
}
.main-nav .dropdown::before,
.main-nav .sub-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--primary);
}
.main-nav li.has-dropdown:hover > .dropdown,
.main-nav li.has-dropdown:focus-within > .dropdown,
.main-nav li.menu-item-has-children:hover > .sub-menu,
.main-nav li.menu-item-has-children:focus-within > .sub-menu {
  display: flex;
}

/* Items inside the dropdown — static markup uses <a> directly, WP wraps each in an <li> */
.main-nav .dropdown a,
.main-nav .sub-menu li a {
  display: block;
  padding: 9px 14px;
  font-size: 0.95rem;
  white-space: nowrap;
  color: var(--text);
  border-radius: var(--radius);
}
.main-nav .sub-menu li { display: block; }
.main-nav .dropdown a:hover,
.main-nav .sub-menu li a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* Mobile — flatten the dropdown into the column */
@media (max-width: 1080px) {
  .main-nav .dropdown,
  .main-nav .sub-menu {
    position: static;
    transform: none;
    display: flex;
    box-shadow: none;
    padding-left: 20px;
    background: transparent;
    border-top: none;
    min-width: 0;
  }
  .main-nav .dropdown::before,
  .main-nav .sub-menu::before { display: none; }
}

/* Staff list */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.staff-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}
.staff-card strong { display: block; color: var(--primary-dark); }
.staff-card span { color: var(--muted); font-size: 0.9rem; }

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: #c9dceb;
  padding: 50px 0 20px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.footer-grid h4 { color: #fff; margin-bottom: 14px; font-size: 1.05rem; }
.footer-grid a { color: #c9dceb; display: block; padding: 4px 0; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 16px;
  text-align: center;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1180px) {
  .main-nav > ul { gap: 10px; }
  .main-nav > ul > li > a {
    width: 86px;
    height: 86px;
    font-size: 0.66rem;
  }
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  /* Hide bubble nav by default on mobile; hamburger reveals it */
  .header-inner .main-nav { display: none; flex-basis: 100%; }
  .header-inner .main-nav.open { display: block; }
  .main-nav > ul {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    display: grid;
    gap: 14px;
    padding: 14px 6px;
  }
  .main-nav > ul > li > a {
    width: 100%;
    height: 95px;
    border-radius: 18px;
    font-size: 0.9rem;
  }
  .two-col { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 50px 0 60px; }
}

@media (max-width: 540px) {
  .main-nav > ul {
    grid-template-columns: repeat(2, 1fr);
  }
  .main-nav > ul > li > a {
    height: 88px;
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .brand img { height: 50px; max-width: 180px; }
  section { padding: 40px 0; }
}

/* Skip link for a11y */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary-dark); color: #fff;
  padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }
