/* =========================================================
   Agile Project Managers Ltd — V3 design
   Single stylesheet. Palette:
   primary blue #1271B0 · dark blue #0C5486 · tint #E7F1F8
   action green #27AD49 (CTAs only) · dark green #1B7D34
   text #1E2A33 · secondary #5A6B77 · page bg #F7FAFC
   borders #E8EEF3 · radius 12px
   ========================================================= */

:root {
  --blue: #1271B0;
  --blue-dark: #0C5486;
  --blue-tint: #E7F1F8;
  --green: #27AD49;
  --green-dark: #1B7D34;
  --green-light: #6BC584;
  --text: #1E2A33;
  --text-2: #5A6B77;
  --bg: #F7FAFC;
  --card: #ffffff;
  --border: #E8EEF3;
  --border-hover: #D5E4EF;
  --radius: 12px;
  --shadow-card: 0 4px 14px rgba(12, 84, 134, .08);
  --shadow-lift: 0 14px 30px rgba(12, 84, 134, .10);
  --max: none;
  --font-head: "Archivo", sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

* { box-sizing: border-box; }

/* Authored `display` rules (e.g. .lightbox { display: flex }) would otherwise
   beat the browser's built-in `[hidden] { display: none }` rule, since both are
   equal-specificity single selectors and author styles win — this keeps the
   hidden attribute authoritative everywhere on the public site (same fix as
   dashboard.css). */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--blue); transition: color .15s ease; }
a:hover { color: var(--green-dark); }

img { max-width: 100%; }

h1, h2, h3 { font-family: var(--font-head); text-wrap: pretty; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 24px); }

/* ---------- Buttons (green = actions only) ---------- */
.btn {
  display: inline-block;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 30px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, transform .18s ease,
              box-shadow .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover {
  background: var(--green-dark); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(27, 125, 52, .28);
}
.btn-outline { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); padding: 13.5px 28.5px; }
.btn-outline:hover { color: var(--blue-dark); border-color: var(--blue-dark); }
.btn-sm { font-size: 15px; padding: 10px 22px; }

/* ---------- Admin bar (shown to logged-in staff, above the public site nav) ---------- */
.admin-bar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  height: 36px; padding: 0 16px;
  background: var(--text); color: #fff;
  font-size: 13px; font-family: var(--font-body);
}
.admin-bar-brand { color: #fff; font-weight: 700; text-decoration: none; }
.admin-bar-brand:hover { color: var(--green-light); }
.admin-bar-right { display: flex; align-items: center; gap: 18px; }
.admin-bar-right a {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255, 255, 255, .85); text-decoration: none; font-weight: 600;
}
.admin-bar-right a:hover { color: #fff; }
.admin-bar-user { color: rgba(255, 255, 255, .65); }
.admin-bar-right form { display: inline; }
.admin-bar-right button {
  background: none; border: none; padding: 0; margin: 0; font: inherit; cursor: pointer;
  color: rgba(255, 255, 255, .85); font-weight: 600;
}
.admin-bar-right button:hover { color: #fff; }

@media (max-width: 700px) {
  .admin-bar-user { display: none; }
}

/* Push the sticky site nav down below the admin bar so they don't overlap when both stick */
body.has-admin-bar .site-header { top: 36px; }

/* ---------- Staff panel (course detail — signed-in staff only) ---------- */
.staff-panel { background: var(--text); padding: 14px 0; }
.staff-panel-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.staff-panel-info { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.staff-meta { color: rgba(255, 255, 255, .75); font-size: 14px; }
.badge-status {
  font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 99px; white-space: nowrap;
}
.badge-status.is-published { background: #EAF7EE; color: var(--green-dark); }
.badge-status.is-draft { background: #FDECEC; color: #C0392B; }
.staff-panel-actions { display: flex; align-items: center; gap: 10px; }
.staff-panel-actions form { display: inline; }
.staff-panel-actions .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); padding: 8px 18px; }
.staff-panel-actions .btn-outline:hover { border-color: #fff; color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
/* Home only: border fades in on scroll (js adds .scrolled) */
.site-header.home { border-bottom-color: transparent; transition: border-color .25s; }
.site-header.home.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 24px);
}
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.brand img { height: 56px; display: block; }
.brand-location {
  display: flex; align-items: center; gap: 5px;
  font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap;
}

.nav-links { display: flex; align-items: center; gap: 26px; font-size: 16px; font-weight: 600; }
.nav-item { position: relative; }
.nav-item > a {
  display: inline-block; padding: 14px 0 12px;
  color: var(--text); text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav-item > a:hover { color: var(--blue-dark); }
.nav-item.active > a { color: var(--blue); border-bottom-color: var(--green); }

/* dropdowns — pure CSS on desktop */
.dropdown {
  position: absolute; top: 100%; left: -10px; padding-top: 6px;
  display: none; z-index: 60;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { display: block; animation: ddIn .18s ease both; }
.dropdown-card {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 8px; min-width: 220px;
  box-shadow: 0 6px 18px rgba(12, 84, 134, .12);
  display: flex; flex-direction: column;
}
.dropdown-card a {
  padding: 10px 12px; font-size: 15px; font-weight: 600;
  color: var(--text); text-decoration: none; border-radius: 6px; white-space: nowrap;
}
.dropdown-card a:hover { background: var(--blue-tint); color: var(--blue); }

/* mobile menu */
.menu-toggle {
  display: none;
  background: #fff; border: 1.5px solid var(--border); border-radius: 8px;
  padding: 10px 13px; cursor: pointer; flex-direction: column; gap: 4px;
}
.menu-toggle span { display: block; width: 20px; height: 2.5px; background: var(--blue); border-radius: 2px; }
.mobile-menu { display: none; border-top: 1px solid var(--border); background: #fff; padding: 8px 16px 16px; }
.mobile-menu.open { display: block; max-height: 70vh; overflow: auto; }
.mobile-menu .group { border-bottom: 1px solid #EEF2F5; }
.mobile-menu .group > a { display: block; color: var(--text); text-decoration: none; font-weight: 700; font-size: 17px; padding: 14px 8px 10px; }
.mobile-menu .group.active > a { color: var(--blue); }
.mobile-menu .sub a { display: block; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 8px 8px 26px; }
.mobile-menu .btn { display: block; margin-top: 14px; width: 100%; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--blue-dark);
  padding: clamp(56px, 8vw, 96px) 0 clamp(96px, 11vw, 130px);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform-origin: center; will-change: transform;
  animation: hero-kenburns-in 14s ease-in-out infinite alternate;
}
.hero-track { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide:nth-child(even) img { animation-name: hero-kenburns-out; }
@keyframes hero-kenburns-in {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.1) translate(-1.5%, -1%); }
}
@keyframes hero-kenburns-out {
  from { transform: scale(1.1) translate(1.5%, 1%); }
  to { transform: scale(1) translate(0, 0); }
}
.hero-credit {
  position: absolute; left: 10px; bottom: 8px; z-index: 1;
  font-size: 12px; color: rgba(255, 255, 255, .75); text-decoration: none;
}
.hero-credit:hover { color: #fff; }
.hero-dots {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 1;
  display: flex; gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 99px; border: none; padding: 0;
  background: rgba(255, 255, 255, .4); cursor: pointer;
}
.hero-dot.is-active { background: #fff; }
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, rgba(9, 58, 94, .93) 0%, rgba(9, 58, 94, .85) 45%, rgba(12, 84, 134, .55) 100%);
}
.hero-inner { position: relative; pointer-events: none; }
.hero-copy-col { max-width: 720px; }
.hero-badge {
  display: inline-block; background: rgba(255, 255, 255, .14); color: var(--blue-tint);
  font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 99px; margin-bottom: 22px;
}
.hero h1 {
  font-weight: 800; font-size: clamp(36px, 6vw, 52px); line-height: 1.08;
  color: #fff; margin: 0;
}
.hero h1 .accent { color: var(--green-light); text-transform: lowercase; }
.hero-tagline {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(18px, 2.4vw, 22px); color: #DCEBF5; margin: 16px 0 0;
}
.hero-copy { font-size: clamp(16px, 2vw, 18px); line-height: 1.65; color: #DCEBF5; margin: 16px 0 32px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; pointer-events: auto; }
.btn-outline-hero { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .6); padding: 13.5px 28.5px; }
.btn-outline-hero:hover { color: #fff; border-color: #fff; }

/* ---------- Page headers (inner pages) ---------- */
.page-header { background: var(--blue-tint); padding: clamp(44px, 7vw, 64px) 0; }
.page-header h1 { font-weight: 800; font-size: clamp(30px, 4.5vw, 42px); color: var(--blue-dark); margin: 0; }
.page-header p { font-size: clamp(16px, 2vw, 18px); line-height: 1.65; color: var(--text-2); max-width: 640px; margin: 14px 0 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(44px, 7vw, 64px) 0; }
.section-white { background: #fff; }
.section-tint { background: var(--blue-tint); }
.section h2 { font-weight: 700; font-size: clamp(26px, 3.4vw, 32px); color: var(--blue); margin: 0 0 8px; }
.section-tint h2 { color: var(--blue-dark); }
.section-sub { color: var(--text-2); font-size: clamp(16px, 2vw, 17px); margin: 0 0 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.link-more { color: var(--blue); font-weight: 700; font-size: 16px; text-decoration: none; }
.link-more:hover { color: var(--blue-dark); text-decoration: underline; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--border-hover); }
.card-title { font-weight: 700; color: var(--text); transition: color .15s ease; }
.card:hover .card-title { color: var(--blue); }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { text-decoration: underline; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-courses { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* value cards */
.value-card { padding: 24px; }
.value-card .icon {
  width: 44px; height: 44px; border-radius: 9px; background: var(--blue-tint);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-family: var(--font-head); font-weight: 800; font-size: 19px;
  margin-bottom: 14px;
}
.value-card .card-title { font-size: 18px; margin-bottom: 6px; }
.value-card p { font-size: 16px; line-height: 1.55; color: var(--text-2); margin: 0; }

/* course cards */
.course-card { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.badge {
  align-self: flex-start; background: var(--blue-tint); color: var(--blue-dark);
  font-size: 14px; font-weight: 700; padding: 4px 12px; border-radius: 99px;
}
.duration-tag {
  align-self: flex-start; background: var(--bg); color: var(--text-2); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; padding: 3px 11px; border-radius: 99px;
}
.draft-tag {
  align-self: flex-start; background: #FDECEC; color: #C0392B;
  font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 99px; text-transform: uppercase; letter-spacing: .02em;
}
.course-card .card-title { font-size: 20px; }
.course-card p { font-size: 16px; line-height: 1.55; color: var(--text-2); margin: 0; }
.course-card .meta { font-size: 14px; color: var(--text-2); margin-top: auto; }
.course-card .btn { align-self: flex-start; }

/* course category sections (public Courses listing) */
.course-category-section { scroll-margin-top: 90px; }
.course-category-section + .course-category-section { margin-top: 48px; }
.course-category-heading {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(20px, 2.6vw, 24px);
  color: var(--blue-dark); margin: 0 0 18px;
}

/* ---------- Course detail — article-style reading view ---------- */
/*.article-container { max-width: 760px; }*/
.article-kicker {
  text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700;
  color: var(--blue); margin-bottom: 12px;
}
.article-header .article-title {
  font-family: var(--font-head); font-weight: 800; color: var(--text);
  font-size: clamp(30px, 5vw, 44px); line-height: 1.15; margin: 0 0 16px;
}
.article-header .article-lede { font-size: clamp(17px, 2vw, 19px); color: var(--text-2); line-height: 1.6; margin: 0 0 18px; }
.article-meta { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--text-2); }
.article-meta .dot { opacity: .5; font-weight: 400; }

.article-header-flex { display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 5vw, 48px); }
.article-header-text { flex: 1; min-width: 0; }
.article-header-logo { flex-shrink: 0; }
.article-header-logo img {
  display: block; width: 140px; height: 140px; object-fit: contain;
  background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-card);
}
@media (max-width: 700px) {
  .article-header-flex { flex-direction: column; align-items: flex-start; }
  .article-header-logo { order: -1; }
  .article-header-logo img { width: 96px; height: 96px; padding: 12px; }
}

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
}
.article-body { max-width: 720px; }
.article-body h2 {
  font-family: var(--font-head); font-weight: 800; font-size: 24px; color: var(--blue-dark);
  margin: 40px 0 14px;
}
.article-body > *:first-child { margin-top: 0; }
.article-body h3 { font-size: 18px; font-weight: 700; color: var(--text); margin: 0 0 8px; }
.article-list { margin: 0; padding-left: 22px; font-size: 17px; line-height: 1.8; color: var(--text); }
.article-list-muted { font-size: 16px; line-height: 1.7; color: var(--text-2); margin-top: 6px; }
.article-outline-lesson { margin-bottom: 22px; }
.article-outline-lesson:last-child { margin-bottom: 0; }
.article-cta {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* ---------- Upcoming trainings strip (overlaps hero) ---------- */
.upcoming-strip { max-width: var(--max); margin: -40px auto 0; padding: 0 clamp(20px, 4vw, 24px); position: relative; z-index: 2; }
.upcoming-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.upcoming-card { padding: 22px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-card); }
.upcoming-card .month { font-size: 14px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }
.upcoming-card .date { display: flex; align-items: baseline; gap: 10px; }
.upcoming-card .day { font-family: var(--font-head); font-weight: 800; font-size: 32px; color: var(--blue); line-height: 1; }
.upcoming-card .weekday { font-size: 14px; font-weight: 600; color: var(--text-2); }
.upcoming-card .card-title { font-size: 18px; margin-top: 4px; }
.upcoming-card .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.enquire-link { color: var(--green-dark); font-weight: 700; font-size: 15px; text-decoration: none; }
.enquire-link:hover { color: var(--green); text-decoration: underline; }
.calendar-card {
  background: var(--blue-tint); border: 1px solid #C6D8E5; border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; justify-content: center; gap: 8px;
  text-decoration: none; box-shadow: var(--shadow-card);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.calendar-card:hover { background: #D9E9F4; transform: translateY(-4px); box-shadow: 0 14px 30px rgba(12, 84, 134, .14); }
.calendar-card strong { font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--blue-dark); }
.calendar-card span { font-size: 15px; color: var(--text-2); line-height: 1.5; }

/* mode badges */
.mode { font-size: 14px; font-weight: 700; padding: 4px 12px; border-radius: 99px; }
.mode-online { background: var(--blue-tint); color: var(--blue-dark); }
.mode-inperson { background: #EAF7EE; color: var(--green-dark); }
.mode-hybrid { background: #F1E9F9; color: #6B46A6; }

/* ---------- Stats band (counters) ---------- */
.stats-band { background: #fff; padding: clamp(36px, 6vw, 52px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; text-align: center; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(38px, 4vw, 42px); color: var(--blue-dark); line-height: 1.1; }
.stat-label { font-size: 15px; font-weight: 600; color: var(--text-2); margin-top: 4px; }

/* ---------- Client wall of fame ---------- */
.client-wall {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
}
.client-tile {
  height: 90px; display: flex; align-items: center; justify-content: center;
  padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.client-tile:hover { border-color: var(--border-hover); box-shadow: var(--shadow-card); }
.client-tile img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  filter: grayscale(1); opacity: .75;
  transition: filter .25s ease, opacity .25s ease;
}
.client-tile:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- Testimonials ---------- */
.testimonial-card { padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.testimonial-card blockquote { font-size: 16px; font-style: italic; line-height: 1.65; color: var(--text); margin: 0; }
.testimonial-card .person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial-card .avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--blue-tint);
  color: var(--blue-dark); font-family: var(--font-head); font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.testimonial-card .name { font-weight: 700; font-size: 16px; }
.testimonial-card .role { font-size: 14px; color: var(--text-2); }

/* ---------- Testimonial carousel (3 at a time, auto-rotating) ---------- */
.testimonial-carousel { overflow: hidden; }
.testimonial-track { display: flex; transition: transform .5s ease; }
.testimonial-slide {
  flex: 0 0 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.testimonial-slide.few { grid-template-columns: repeat(auto-fit, minmax(0, 320px)); justify-content: center; }
.testimonial-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.testimonial-nav {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: #fff;
  color: var(--blue); font-size: 20px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.testimonial-nav:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.testimonial-dots { display: flex; gap: 8px; }
.testimonial-dot {
  width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; padding: 0;
  transition: background .15s ease, transform .15s ease;
}
.testimonial-dot.is-active { background: var(--blue); transform: scale(1.25); }

@media (max-width: 760px) {
  .testimonial-slide, .testimonial-slide.few { grid-template-columns: 1fr; }
}

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--blue-tint); padding: clamp(44px, 7vw, 56px) 0; text-align: center; }
.cta-banner h2 { font-weight: 800; font-size: clamp(26px, 3.4vw, 32px); color: var(--blue-dark); margin: 0; }
.cta-banner p { font-size: 16px; color: var(--text-2); margin: 8px 0 24px; }

/* ---------- Courses page filter ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-pill {
  background: #fff; color: var(--blue); border: 1.5px solid #C6D8E5;
  padding: 9px 20px; border-radius: 99px; font-weight: 700; font-size: 15px;
  cursor: pointer; white-space: nowrap; font-family: var(--font-body);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.filter-pill.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Calendar page ---------- */
.month-group { margin-bottom: 36px; }
.month-title {
  font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--blue);
  padding-bottom: 10px; border-bottom: 2px solid var(--blue); margin: 0 0 4px;
}
.session-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.session-date { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--blue-dark); flex: 0 0 110px; }
.session-info { flex: 1 1 220px; }
.session-info .card-title { font-size: 16.5px; }
.session-row:hover .card-title { color: var(--blue); }
.session-info .aud { font-size: 14px; color: var(--text-2); }
.add-to-calendar { display: inline-flex; gap: 6px; }
.add-to-calendar a {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: #fff;
  color: var(--blue); display: flex; align-items: center; justify-content: center; text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.add-to-calendar a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; align-items: start; }
.form-card { padding: clamp(22px, 4vw, 32px); }
.form-card:hover { transform: none; box-shadow: none; border-color: var(--border); }
.form-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: 15px; }
.field input, .field select, .field textarea {
  border: 1.5px solid #DCE4EA; border-radius: 8px; padding: 12px 14px;
  font-size: 16px; outline: none; width: 100%; background: #fff; color: var(--text);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.field.error input, .field.error textarea { border-color: #C0392B; }
.field .error-msg { font-size: 14px; color: #C0392B; font-weight: 600; display: none; }
.field.error .error-msg { display: block; }
.form-success { text-align: center; padding: 32px 8px; display: none; }
.form-success .check {
  width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff;
  font-size: 26px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.form-success h3 { font-weight: 700; font-size: 23px; color: var(--green-dark); margin: 0; }
.form-success p { font-size: 16px; color: var(--text-2); line-height: 1.6; margin: 10px 0 20px; }
.info-card { padding: clamp(22px, 4vw, 28px); }
.info-card h3 { font-weight: 700; font-size: 19px; color: var(--blue); margin: 0 0 10px; }
.info-card address { font-style: normal; font-size: 16px; line-height: 1.8; }
.map-card { overflow: hidden; }
.map-card iframe { width: 100%; height: 300px; border: 0; display: block; }
.map-card .caption { padding: 10px 16px; font-size: 14px; color: var(--text-2); border-top: 1px solid var(--border); }

/* ---------- About page ---------- */
.about-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 5vw, 56px); }
.about-cols h2 { font-size: 26px; margin-bottom: 14px; }
.about-cols p { font-size: 16px; line-height: 1.7; margin: 0 0 14px; }
.credentials { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.credentials strong { display: block; font-size: 17px; margin-bottom: 8px; }
.credentials p { font-size: 16px; line-height: 1.8; color: var(--text-2); margin: 0; }
.trust-card { padding: 24px; }
.trust-card .card-title { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: var(--blue-dark); margin-bottom: 6px; }
.trust-card p { font-size: 16px; line-height: 1.55; color: var(--text-2); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-dark); padding: clamp(40px, 7vw, 56px) 0 0; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px;
  color: #B9D4E6; font-size: 15px; line-height: 1.75;
  padding-bottom: clamp(28px, 5vw, 40px);
}
.footer-logo { height: 52px; display: block; background: #fff; border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; width: auto; }
.footer-tagline { margin-bottom: 18px; }
.footer-heading {
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  letter-spacing: .06em; text-transform: uppercase; color: #8FC1E3; margin-bottom: 12px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: #B9D4E6; text-decoration: none; transition: color .15s ease; }
.footer-col a:hover { color: var(--green-light); }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: background .18s ease, transform .18s ease;
}
.socials a:hover { background: var(--green); color: #fff; transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15); padding: 18px 0 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: 14px; color: #8FC1E3;
}

/* ---------- Page load progress bar ---------- */
#page-progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--green) 100%);
  z-index: 9999; opacity: 0; pointer-events: none;
}

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; } to { opacity: 1; } }
@keyframes ddIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
main { animation: fadeUp .45s ease both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 879px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .brand img { height: 44px; }
}
@media (min-width: 880px) {
  .mobile-menu { display: none !important; }
}
@media (max-width: 599px) {
  .brand-location { display: none; }
}
