/*
Theme Name: STGDGP
Theme URI: https://stgdgp.org.au
Author: St George Division of General Practice
Author URI: https://stgdgp.org.au
Description: Official theme for the St George Division of General Practice website.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Private
*/

/* ============================================================
   STGDGP — Shared Design System
   St George Division of General Practice
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --red:        #C0392B;
  --red-dark:   #96281B;
  --red-light:  #E74C3C;
  --red-pale:   #FDECEA;
  --navy:       #1C2B39;
  --navy-light: #2C3E50;
  --navy-pale:  #EEF1F4;
  --grey-50:    #F8F9FA;
  --grey-100:   #F1F3F5;
  --grey-200:   #E9ECEF;
  --grey-300:   #DEE2E6;
  --grey-400:   #CED4DA;
  --grey-500:   #ADB5BD;
  --grey-600:   #6C757D;
  --grey-700:   #495057;
  --grey-800:   #343A40;
  --grey-900:   #212529;
  --white:      #FFFFFF;
  --gold:       #D4A017;

  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --max-w: 1160px;
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.13);

  --transition: 0.22s ease;
  --nav-h: 72px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--grey-900);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }

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

ul, ol { padding-left: 1.4rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

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

strong { font-weight: 600; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 112px 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.text-center { text-align: center; }
.text-left   { text-align: left; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  box-shadow: var(--shadow-sm);
  height: var(--nav-h);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 44px;
  width: auto;
}

.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.3px;
  line-height: 1.1;
}
.nav-logo-sub {
  font-size: 0.63rem;
  color: var(--grey-600);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.1;
}

/* Nav menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--grey-700);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  text-decoration: none;
}

.nav-link:hover, .nav-link.active {
  color: var(--red);
  background: var(--red-pale);
}

.nav-link svg { width: 14px; height: 14px; transition: transform var(--transition); }
.nav-item:hover > .nav-link svg { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 210px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: 0.845rem;
  font-weight: 400;
  color: var(--grey-700);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.nav-dropdown a:hover {
  background: var(--red-pale);
  color: var(--red);
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--grey-200);
  margin: 4px 8px;
}

/* Nav CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: var(--red);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  margin-left: 8px;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}
.nav-cta:hover { background: var(--red-dark); transform: translateY(-1px); color: var(--white); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
}

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--white);
  z-index: 1001;
  padding: 24px;
  overflow-y: auto;
  transition: right 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.nav-drawer.open { right: 0; }

.nav-drawer-close {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.nav-drawer-close button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--grey-600);
}

.nav-drawer ul { list-style: none; padding: 0; }
.nav-drawer ul li { border-bottom: 1px solid var(--grey-100); }
.nav-drawer ul li a,
.nav-drawer ul li span {
  display: block;
  padding: 13px 4px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}
.nav-drawer ul li a:hover { color: var(--red); }

.nav-drawer-sub { padding-left: 16px !important; font-size: 0.875rem !important; color: var(--grey-600) !important; }

/* ============================================================
   HERO — HOMEPAGE
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(192,57,43,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 80%, rgba(192,57,43,0.12) 0%, transparent 50%),
    linear-gradient(135deg, #0f1e2a 0%, #1C2B39 40%, #162231 100%);
}

/* Decorative grid lines */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(192,57,43,0.2);
  border: 1px solid rgba(192,57,43,0.4);
  color: #ff8a7a;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-body);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title span { color: var(--red-light); }

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 36px;
  line-height: 1.75;
  max-width: 580px;
}

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

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
}

.hero-stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--white);
  display: block;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Hero right side — decorative card */
.hero-visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 42%;
  max-width: 500px;
  z-index: 2;
  padding: 0 48px;
}

.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(12px);
}

.hero-card-title {
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-pillar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.hero-pillar:last-child { border-bottom: none; padding-bottom: 0; }

.hero-pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(192,57,43,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.hero-pillar-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}
.hero-pillar-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

/* ============================================================
   PAGE BANNER (inner pages)
   ============================================================ */
.page-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #243447 100%);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(192,57,43,0.18) 0%, transparent 60%),
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}

.page-banner-inner {
  position: relative;
  z-index: 1;
}

.page-banner-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}

.page-banner-eyebrow a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}
.page-banner-eyebrow a:hover { color: rgba(255,255,255,0.9); }
.page-banner-eyebrow span { color: rgba(255,255,255,0.3); }

.page-banner h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

.page-banner-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.68);
  max-width: 580px;
  margin: 0;
  line-height: 1.7;
}

/* Red accent strip below banner */
.page-banner-strip {
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red-light) 100%);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(192,57,43,0.35);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline:hover {
  background: var(--red);
  color: var(--white);
}

.btn-ghost {
  background: var(--grey-100);
  color: var(--grey-800);
  border-color: var(--grey-200);
}
.btn-ghost:hover {
  background: var(--grey-200);
  color: var(--grey-900);
}

.btn-sm { padding: 8px 18px; font-size: 0.82rem; }
.btn-lg { padding: 15px 32px; font-size: 1rem; }

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.3px;
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-desc {
  font-size: 1rem;
  color: var(--grey-600);
  max-width: 580px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.section-desc.left { margin-left: 0; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--grey-300);
}

.card-body { padding: 28px; }
.card-img { width: 100%; height: 200px; object-fit: cover; }

/* Pillar cards */
.pillar-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.pillar-card:hover::before { transform: scaleX(1); }
.pillar-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.pillar-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  background: var(--red-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
}

.pillar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.pillar-text {
  font-size: 0.9rem;
  color: var(--grey-600);
  line-height: 1.65;
  margin: 0;
}

/* Event cards */
.event-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.event-date-block {
  background: var(--red);
  color: var(--white);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  text-align: center;
  flex-shrink: 0;
}

.event-date-day   { font-size: 1.9rem; font-weight: 800; line-height: 1; }
.event-date-month { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; opacity: 0.9; }
.event-date-year  { font-size: 0.72rem; opacity: 0.75; }

.event-card-body { padding: 20px 24px; flex: 1; }
.event-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--red);
  background: var(--red-pale);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}
.event-title { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--grey-600);
  margin-bottom: 14px;
}
.event-meta span { display: flex; align-items: center; gap: 5px; }

/* Team member cards */
.team-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.team-avatar {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
}

.team-card-body { padding: 24px; }
.team-name { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.team-role { font-size: 0.82rem; font-weight: 600; color: var(--red); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.team-bio { font-size: 0.875rem; color: var(--grey-700); line-height: 1.65; }

/* Committee cards */
.committee-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}
.committee-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.committee-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--red-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.committee-name { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.committee-desc { font-size: 0.85rem; color: var(--grey-600); line-height: 1.55; margin: 0; }

/* ============================================================
   INFO BOX / CALLOUT
   ============================================================ */
.infobox {
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 14px;
  margin: 24px 0;
}

.infobox-blue  { background: #EFF6FF; border-left: 4px solid #3B82F6; }
.infobox-red   { background: var(--red-pale); border-left: 4px solid var(--red); }
.infobox-green { background: #F0FDF4; border-left: 4px solid #16A34A; }
.infobox-amber { background: #FFFBEB; border-left: 4px solid #F59E0B; }

.infobox-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.infobox-title { font-size: 0.9rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.infobox p, .infobox-body { font-size: 0.875rem; color: var(--grey-700); margin: 0; line-height: 1.6; }

/* ============================================================
   REPRESENTATIVE BLOCK
   ============================================================ */
.rep-block {
  background: var(--navy-pale);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.rep-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.rep-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--grey-500); margin-bottom: 2px; }
.rep-name  { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.rep-email { font-size: 0.85rem; color: var(--red); }
.rep-email a { color: var(--red); }

/* ============================================================
   CONTENT PROSE
   ============================================================ */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 14px; }
.prose h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.prose p  { font-size: 0.95rem; color: var(--grey-800); line-height: 1.75; margin-bottom: 1rem; }
.prose ul, .prose ol { font-size: 0.95rem; color: var(--grey-800); line-height: 1.7; margin-bottom: 1rem; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--red); }
.prose a:hover { color: var(--red-dark); }
.prose strong { color: var(--navy); }

/* ============================================================
   SCHEDULE TABLE
   ============================================================ */
.schedule-table { width: 100%; border-collapse: collapse; }
.schedule-table th {
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  letter-spacing: 0.3px;
}
.schedule-table th:first-child { border-radius: 8px 0 0 0; }
.schedule-table th:last-child  { border-radius: 0 8px 0 0; }

.schedule-table td {
  padding: 14px 16px;
  font-size: 0.875rem;
  color: var(--grey-800);
  border-bottom: 1px solid var(--grey-100);
  vertical-align: top;
}

.schedule-table tr:nth-child(even) td { background: var(--grey-50); }
.schedule-table tr:hover td { background: var(--red-pale); }

.mode-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}
.mode-f2f  { background: #D1FAE5; color: #065F46; }
.mode-online { background: #DBEAFE; color: #1E40AF; }

/* ============================================================
   FORM
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}
.form-label span { color: var(--red); }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--grey-900);
  background: var(--white);
  border: 1.5px solid var(--grey-300);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.12);
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-hint { font-size: 0.78rem; color: var(--grey-500); margin-top: 5px; }

/* ============================================================
   LOGIN WALL
   ============================================================ */
.login-wall {
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
}

.login-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--red-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--navy);
  padding: 36px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

.stat-item {
  padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--red) 0%, #a93226 100%);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.cta-banner > * { position: relative; z-index: 1; }

.cta-banner h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.72);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-logo-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.footer-logo-sub {
  font-size: 0.58rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-tagline {
  font-size: 0.82rem;
  line-height: 1.65;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.6);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
  text-decoration: none;
}
.footer-social a:hover { background: var(--red); color: var(--white); }

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--white);
  margin-bottom: 18px;
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.875rem;
}
.footer-contact-icon { opacity: 0.5; flex-shrink: 0; margin-top: 2px; }
.footer-contact-text { color: rgba(255,255,255,0.65); line-height: 1.5; }
.footer-contact-text a { color: rgba(255,255,255,0.65); transition: color var(--transition); text-decoration: none; }
.footer-contact-text a:hover { color: var(--white); }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

.footer-flame {
  width: 36px;
  height: 36px;
}

/* ============================================================
   GALLERY GRID
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--grey-200);
  position: relative;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-img { transform: scale(1.04); }

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  text-align: center;
  gap: 8px;
}
.gallery-placeholder svg { width: 32px; height: 32px; opacity: 0.4; }

/* ============================================================
   TABS
   ============================================================ */
.tabs { border-bottom: 2px solid var(--grey-200); margin-bottom: 32px; display: flex; gap: 0; }
.tab-btn {
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey-600);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.tab-btn:hover { color: var(--red); }
.tab-btn.active { color: var(--red); border-bottom-color: var(--red); font-weight: 600; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  transition: all var(--transition);
  z-index: 500;
  font-size: 1.1rem;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--red); transform: translateY(-2px); }

/* ============================================================
   DIVIDER
   ============================================================ */
.divider { height: 1px; background: var(--grey-200); margin: 40px 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 24px; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.1); }
  .stat-item:last-child, .stat-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav-menu, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-drawer { display: block; }
  .nav-overlay { display: block; }

  .hero { min-height: 85vh; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }

  .section { padding: 56px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .event-card { flex-direction: column; }
  .event-date-block { flex-direction: row; padding: 14px 20px; gap: 8px; justify-content: flex-start; min-width: auto; }

  .rep-block { flex-direction: column; align-items: flex-start; gap: 12px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.1); }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .gallery-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:last-child { border-bottom: none; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.bg-grey  { background: var(--grey-50); }
.bg-navy  { background: var(--navy); }
.bg-white { background: var(--white); }

.text-red   { color: var(--red); }
.text-navy  { color: var(--navy); }
.text-muted { color: var(--grey-600); }

.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }

.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }

.w-full { width: 100%; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }


/* ── WordPress-specific additions ─────────────────────────────────────────── */

/* Nav scroll shadow (triggered by JS) */
.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

/* WordPress admin bar offset */
.admin-bar .nav {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .nav {
    top: 46px;
  }
}

/* Search form styling */
.search-form {
  display: flex;
  gap: 10px;
}
.search-form .search-field {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--navy);
  outline: none;
  transition: border-color 0.2s;
}
.search-form .search-field:focus {
  border-color: var(--red);
}
.search-form .search-submit {
  padding: 12px 24px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.search-form .search-submit:hover {
  background: var(--red-dark, #a93226);
}

/* WordPress pagination */
.pagination .nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
}
.pagination .page-numbers {
  padding: 8px 14px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-md);
  color: var(--navy);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

/* ── Custom Logo ─────────────────────────────────────────────────────────── */
.nav-logo-custom,
.nav-logo-custom .custom-logo-link,
a.nav-logo-custom {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
  line-height: 1 !important;
}
/* Aggressively constrain logo image size */
.nav .nav-logo-custom img,
.nav .custom-logo-link img,
.nav a img.custom-logo,
header img.custom-logo,
.custom-logo-link img,
img.custom-logo {
  height: 44px !important;
  width: auto !important;
  max-width: 180px !important;
  max-height: 44px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ============================================================
   MOBILE RESPONSIVE — ADDITIONAL FIXES (v1.1)
   All breakpoints here target elements that use inline styles
   in PHP templates and cannot be reached by the base rules.
   ============================================================ */

/* --- Nav logo: shrink on mobile ----------------------------- */
@media (max-width: 768px) {
  .nav .nav-logo-custom img,
  .nav img.custom-logo {
    height: 52px !important;
    max-height: 52px !important;
  }
  /* Tighten page banner padding */
  .page-banner { padding: 32px 0 24px; }
  /* Hero height */
  .hero { min-height: 78vh; }
  /* Make sure CTA banner buttons stack */
  .cta-banner .container > div[style*="display:flex"] {
    flex-direction: column;
    align-items: center;
  }
}

/* --- PGL group cards (Education page) ----------------------- */
/* Outer layout: dark sidebar | details panel */
.pgl-card-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
}
/* Inner 4-col details */
.pgl-card-details {
  padding: 24px 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 768px) {
  .pgl-card-inner { grid-template-columns: 1fr !important; }
  .pgl-card-details { grid-template-columns: 1fr 1fr !important; padding: 20px !important; }
}
@media (max-width: 480px) {
  .pgl-card-details { grid-template-columns: 1fr !important; }
}

/* --- Executive Committee doctor cards — see full block at end of file --- */

/* --- Inline CTA blocks: text + button ----------------------- */
/* White variant (exec committee page) */
.cta-inline {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--grey-200);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
/* Dark/navy variant (advocacy sub-pages) */
.cta-inline-dark {
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
@media (max-width: 640px) {
  .cta-inline,
  .cta-inline-dark {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 24px !important;
    text-align: center;
  }
  .cta-inline .btn,
  .cta-inline-dark .btn {
    width: 100% !important;
    justify-content: center !important;
    white-space: normal !important;
  }
}

/* --- 4-col org details grid (About, Exec Committee pages) --- */
.org-details-grid {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--grey-200);
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
@media (max-width: 768px) {
  .org-details-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
    padding: 28px !important;
  }
}
@media (max-width: 480px) {
  .org-details-grid { grid-template-columns: 1fr !important; }
}

/* --- 3-col stats grid (About page) -------------------------- */
.stats-3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 480px) {
  .stats-3-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
}

/* --- Members join section ----------------------------------- */
.members-join-grid {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--grey-200);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 768px) {
  .members-join-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 28px !important;
  }
}

/* --- Events page: 2-col info + stats grids ------------------ */
.event-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
}
.event-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: center;
}
@media (max-width: 640px) {
  .event-info-grid  { grid-template-columns: 1fr !important; gap: 16px !important; }
  .event-stats-grid { grid-template-columns: 1fr !important; }
}

/* --- About page: "Our Region" right mini-stats -------------- */
.about-mission-grid {
  display: flex;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 480px) {
  .about-mission-grid {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .about-mission-grid > div[style*="width:1px"] { display: none; }
}

/* --- Schedule table: horizontal scroll on mobile ------------ */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}
@media (max-width: 640px) {
  .schedule-table { min-width: 520px; }
}

/* --- Tabs: scroll on mobile --------------------------------- */
@media (max-width: 640px) {
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    white-space: nowrap;
  }
}

/* --- Hero actions: ensure buttons don't overflow ------------ */
@media (max-width: 380px) {
  .hero-title { font-size: 2rem; }
  .btn-lg { padding: 12px 20px; font-size: 0.9rem; }
  .container { padding: 0 16px; }
}

/* CPD hours 2-col grid (Education page) */
@media (max-width: 380px) {
  .cpd-hours-grid { grid-template-columns: 1fr !important; }
}

/* 404 quick-links 2-col grid */
@media (max-width: 380px) {
  .quick-links-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   EXECUTIVE COMMITTEE — PROFILE CARDS  (v1.3)
   Layout: photo column left (fixed 300px) | text column right.
   Photo: 3:4 portrait ratio, object-fit cover, face anchored top.
   Below photo: navy panel background fills remaining column height.
   Read More: JS toggle — paragraph 1 always visible, rest collapse.
   ============================================================ */

.exec-card-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
}

/* ── Photo column (left) ─────────────────────────────────── */
/* Navy background fills whatever height the right column creates */
.exec-photo-col {
  background: #1a2f40;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Photo is fixed 3:4 portrait ratio — never distorts */
.exec-photo-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  /* anchor slightly above center so face stays in frame */
  object-position: center 15%;
  display: block;
  flex-shrink: 0;
}

/* ── Text column (right) ─────────────────────────────────── */
.exec-card-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  min-width: 0; /* prevent text overflow in grid */
}

.exec-name {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 4px;
  line-height: 1.2;
  font-family: var(--font-body);
}

.exec-role {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--red);
  margin-bottom: 16px;
}

/* ── Meta: email + practice ──────────────────────────────── */
.exec-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--grey-200);
}

.exec-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--grey-600);
  text-decoration: none;
}
a.exec-meta-item:hover { color: var(--red); }

/* ── Badges ──────────────────────────────────────────────── */
.exec-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.exec-badge {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 100px;
  line-height: 1.4;
}
.exec-badge-primary { background: #FDECEA; color: #C0392B; }
.exec-badge-navy    { background: #EEF1F4; color: #1C2B39; }
.exec-badge-grey    { background: #F1F3F5; color: #495057; }

/* ── Bio & Read More ─────────────────────────────────────── */
.exec-bio-first {
  font-size: 0.9rem;
  color: var(--grey-700);
  line-height: 1.8;
  margin: 0 0 14px;
}

.exec-bio-extra {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.38s ease, opacity 0.3s ease;
}
.exec-bio-extra.is-open {
  opacity: 1;
  /* max-height set via JS to scrollHeight for smooth animation */
}
.exec-bio-extra p {
  font-size: 0.9rem;
  color: var(--grey-700);
  line-height: 1.8;
  margin: 0 0 14px;
}
.exec-bio-extra p:last-child { margin-bottom: 0; }

.exec-readmore-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--red);
  cursor: pointer;
  font-family: var(--font-body);
  transition: opacity var(--transition);
}
.exec-readmore-btn:hover { opacity: 0.75; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .exec-card-inner   { grid-template-columns: 1fr; }

  /* On mobile: landscape 4:3 crop — less tall before text */
  .exec-photo-img    { aspect-ratio: 4 / 3; }

  .exec-card-body    { padding: 24px 20px; }
  .exec-name         { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .exec-card-body    { padding: 20px 16px; }
  .exec-meta         { gap: 6px 14px; }
}

/* ============================================================
   SCROLL-REVEAL ANIMATIONS  (v1.4)
   .will-reveal = initial state (set by JS on DOM ready)
   .is-revealed = final state (set by IntersectionObserver)
   All transitions respect prefers-reduced-motion — JS only
   adds these classes when motion is acceptable.
   ============================================================ */

.will-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity  0.55s ease,
    transform 0.55s ease;
}

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

/* Section headings: slide up slightly more for drama */
.will-reveal.section-title,
.will-reveal.section-label,
.will-reveal.section-desc {
  transform: translateY(14px);
  transition-duration: 0.5s;
}

/* Cards get a gentler lift */
.will-reveal.card,
.will-reveal.pillar-card,
.will-reveal.event-card,
.will-reveal.team-card,
.will-reveal.committee-card {
  transform: translateY(16px);
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Gallery items: scale up subtly */
.will-reveal.gallery-item {
  transform: scale(0.97) translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22,1,0.36,1);
}
.will-reveal.gallery-item.is-revealed {
  transform: scale(1) translateY(0);
}

/* Infoboxes: slide in from left */
.will-reveal.infobox {
  transform: translateX(-12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.will-reveal.infobox.is-revealed {
  transform: translateX(0);
}

/* CTA blocks: fade only (no movement needed) */
.will-reveal.cta-inline,
.will-reveal.cta-inline-dark {
  transform: none;
  transition: opacity 0.6s ease;
}

/* ── Page banner accent strip grows in ─────────────────────── */
.page-banner-strip {
  transform-origin: left center;
  animation: stripGrow 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
@keyframes stripGrow {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

/* ── Nav CTA button: very subtle pulse ──────────────────────── */
/* Draws attention without being annoying — only once on load */
@keyframes navCtaPulse {
  0%   { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.4); }
  60%  { box-shadow: 0 0 0 8px rgba(192, 57, 43, 0);  }
  100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0);    }
}
.nav-cta {
  animation: navCtaPulse 2s ease 2s 1;  /* fires once, 2s after page load */
}

/* ── Respect prefers-reduced-motion ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .will-reveal,
  .page-banner-strip,
  .nav-cta,
  .hero-content *,
  .hero-pillar {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
