/* =========================================================
   DR. MARSHALL J. HUBSHER – PREMIUM PERSONAL BRAND SITE
   Style Guide:
     Navy:        #0D1B2A
     Charcoal:    #1E2D3D
     Court Green: #3A7D44
     Lime Accent: #7CB83F
     White:       #FFFFFF
     Off-White:   #F5F7F2
     Light Gray:  #EFF1EE
     Text Gray:   #4A5568
   Fonts: Playfair Display (headings) / Inter (body)
   ========================================================= */

/* ── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0D1B2A;
  --charcoal:    #1E2D3D;
  --green:       #3A7D44;
  --lime:        #7CB83F;
  --lime-light:  #9DD158;
  --white:       #FFFFFF;
  --off-white:   #F5F7F2;
  --light-gray:  #EFF1EE;
  --border:      #D8DDD4;
  --text:        #2D3748;
  --text-muted:  #4A5568;
  --text-light:  #718096;

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius:      8px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.10);
  --shadow-md:   0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.18);

  --transition:  0.28s cubic-bezier(.4,0,.2,1);

  --header-h:    72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
button { cursor: pointer; font: inherit; background: none; border: none; }

/* ── CONTAINER ──────────────────────────────────────────── */
.container {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
}

/* ── SECTION SPACING ────────────────────────────────────── */
.section { padding-block: clamp(4rem, 8vw, 7rem); }

/* ── BG HELPERS ─────────────────────────────────────────── */
.bg-dark        { background: var(--charcoal); color: var(--white); }
.bg-navy        { background: var(--navy);     color: var(--white); }
.bg-light       { background: var(--light-gray); }
.bg-green-accent{ background: linear-gradient(135deg, var(--green) 0%, var(--lime) 100%); color: var(--white); }

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }

.accent { color: var(--lime); }
.bg-dark .accent,
.bg-navy .accent { color: var(--lime-light); }

/* ── SECTION HEADERS ────────────────────────────────────── */
.section-header       { text-align: center; margin-bottom: 3rem; }
.section-header.light { color: var(--white); }
.section-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: .75rem;
}
.bg-dark .section-eyebrow,
.bg-navy .section-eyebrow { color: var(--lime-light); }
.section-sub {
  color: var(--text-muted);
  max-width: 640px;
  margin-inline: auto;
  margin-top: .75rem;
}
.section-header.light .section-sub { color: rgba(255,255,255,.75); }
.section-cta { text-align: center; margin-top: 2.5rem; }

.page-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lime-light);
  margin-bottom: 1rem;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1.4;
}
.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; }

.btn-primary {
  background: var(--lime);
  color: var(--navy);
  border: 2px solid var(--lime);
}
.btn-primary:hover {
  background: var(--lime-light);
  border-color: var(--lime-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124,184,63,.35);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.55);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: 2px solid rgba(255,255,255,.3);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.6);
  transform: translateY(-2px);
}

.btn-youtube {
  background: #FF0000;
  color: var(--white);
  border: 2px solid #FF0000;
}
.btn-youtube:hover {
  background: #cc0000;
  border-color: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,0,0,.3);
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

/* ── NAVIGATION ─────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(13,27,42,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.3); }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}
.logo-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.logo-tagline {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lime-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-link {
  display: block;
  padding: .45rem .9rem;
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--lime);
  transition: width var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--white);
}
.nav-link:hover::after,
.nav-link.active::after { width: calc(100% - 1.8rem); }

.nav-cta {
  background: var(--lime);
  color: var(--navy) !important;
  font-weight: 600;
  padding: .45rem 1.1rem;
  border-radius: 6px;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--lime-light); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .4rem;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: calc(var(--header-h) + 2rem) 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, #0a2e1a 0%, #1a3a4a 40%, #0d1b2a 100%);
  /* Layered tennis-court net pattern overlay */
  position: relative;
}
/* Subtle tennis court lines decoration */
.hero-image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,184,63,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,184,63,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,27,42,.80) 0%,
    rgba(13,27,42,.55) 50%,
    rgba(58,125,68,.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-badge {
  display: inline-block;
  background: rgba(124,184,63,.15);
  border: 1px solid rgba(124,184,63,.35);
  color: var(--lime-light);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-title {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  max-width: 680px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--lime-light);
  line-height: 1;
}
.stat-label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-top: .3rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.2);
}

.hero-scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  animation: bounce 2s ease-in-out infinite;
  z-index: 2;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── INTRO STRIP ────────────────────────────────────────── */
.intro-strip {
  background: var(--off-white);
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.intro-text {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
  line-height: 1.8;
}
.intro-text strong { color: var(--green); }

/* ── DUAL LIFE CARDS ────────────────────────────────────── */
.dual-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: 2rem;
}

.dual-card {
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.dual-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-psychiatry { border-top: 4px solid var(--charcoal); }
.card-tennis     { border-top: 4px solid var(--lime); }

.dual-card-icon {
  display: flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.card-psychiatry .dual-card-icon { background: rgba(30,45,61,.08); color: var(--charcoal); }
.card-tennis .dual-card-icon     { background: rgba(124,184,63,.12); color: var(--green); }

.dual-card-title {
  font-size: 1.55rem;
  margin-bottom: 1rem;
}

.dual-card-body {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

.dual-card-link {
  font-size: .9rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: gap var(--transition), color var(--transition);
}
.dual-card-link:hover { color: var(--lime); gap: .6rem; }

/* ── MOMENTS GRID ───────────────────────────────────────── */
.moments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 1.5rem;
}

.moment-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  transition: transform var(--transition), box-shadow var(--transition);
}
.moment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}

.moment-img-wrap { height: 220px; overflow: hidden; }
.moment-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a3a2a, #2a4a3a);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Unique colors per card position */
.moment-card:nth-child(1) .moment-img-placeholder { background: linear-gradient(135deg, #1a3a4a, #0d2a3a); }
.moment-card:nth-child(2) .moment-img-placeholder { background: linear-gradient(135deg, #1a2e1a, #2a4a2a); }
.moment-card:nth-child(3) .moment-img-placeholder { background: linear-gradient(135deg, #2a1a3a, #3a2a4a); }

.moment-body { padding: 1.5rem; }
.moment-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lime-light);
  margin-bottom: .6rem;
}
.moment-body h3 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: .75rem;
}
.moment-body p {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 1.2rem;
  line-height: 1.65;
}
.moment-link {
  font-size: .88rem;
  font-weight: 600;
  color: var(--lime-light);
  transition: gap var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.moment-link:hover { gap: .6rem; }

/* ── PSYCH CALLOUT ──────────────────────────────────────── */
.psych-callout-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: center;
}

.psych-callout-text .section-eyebrow { display: block; margin-bottom: .75rem; }
.psych-callout-text h2 { margin-bottom: 1.25rem; }
.psych-callout-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}
.psych-callout-text .btn { margin-top: .75rem; }

.psych-img-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1E2D3D 0%, #2a4a3a 100%);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.psych-img-placeholder::after {
  content: '[ Portrait Photo ]';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.2);
  font-size: .8rem;
  letter-spacing: .08em;
}

/* ── PHILOSOPHY QUOTE ───────────────────────────────────── */
.philosophy-quote {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}
.philosophy-quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.philosophy-quote cite {
  font-size: .9rem;
  font-style: normal;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  letter-spacing: .04em;
}

/* ── YOUTUBE SECTION ────────────────────────────────────── */
.youtube-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}
.youtube-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: #FF0000;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
}
.youtube-btn:hover {
  background: #cc0000;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255,0,0,.35);
}
.yt-icon { flex-shrink: 0; }

/* ── POSTS GRID ─────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1.5rem;
}

.post-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.post-img-placeholder {
  height: 180px;
  background: linear-gradient(135deg, #1E2D3D, #3A7D44);
}
.post-card:nth-child(2) .post-img-placeholder { background: linear-gradient(135deg, #2a3a1a, #4a5a2a); }
.post-card:nth-child(3) .post-img-placeholder { background: linear-gradient(135deg, #1a2a3a, #2a3a4a); }

.post-body { padding: 1.5rem; }
.post-tag {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .5rem;
  display: block;
}
.post-body h3 { font-size: 1.1rem; margin-bottom: .75rem; }
.post-body h3 a { color: var(--text); transition: color var(--transition); }
.post-body h3 a:hover { color: var(--green); }
.post-body p { font-size: .9rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.65; }
.post-read-more {
  font-size: .85rem;
  font-weight: 600;
  color: var(--green);
  transition: color var(--transition);
}
.post-read-more:hover { color: var(--lime); }

/* ── CONNECT CTA ────────────────────────────────────────── */
.connect-cta .container { display: flex; justify-content: center; }
.connect-inner {
  text-align: center;
  max-width: 640px;
}
.connect-inner h2 { color: var(--white); margin-bottom: 1rem; }
.connect-inner p  { color: rgba(255,255,255,.75); margin-bottom: 2rem; line-height: 1.75; }

/* ── PAGE HERO ──────────────────────────────────────────── */
.page-hero {
  position: relative;
  padding-block: calc(var(--header-h) + 4rem) 4rem;
  overflow: hidden;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
}

.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0d1b2a 0%, #1a3a2a 100%);
}
.ph-psych    { background: linear-gradient(135deg, #1E2D3D 0%, #0d1b2a 100%) !important; }
.ph-tennis   { background: linear-gradient(135deg, #1a3a1a 0%, #0d2a1a 100%) !important; }
.ph-blog     { background: linear-gradient(135deg, #1a1a3a 0%, #0d1b2a 100%) !important; }
.ph-contact  { background: linear-gradient(135deg, #0d2a3a 0%, #0d1b2a 100%) !important; }

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,.9) 0%, rgba(13,27,42,.5) 60%, transparent 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding-top: 2rem;
}
.page-hero-content h1 { color: var(--white); margin-block: .5rem 1rem; }
.page-hero-content p  { color: rgba(255,255,255,.78); font-size: 1.1rem; max-width: 600px; }

/* ── BIO PAGE ───────────────────────────────────────────── */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
}

.bio-text h2 { margin-bottom: 1.5rem; }
.bio-text h3 {
  font-size: 1.3rem;
  color: var(--charcoal);
  margin-block: 2rem 1rem;
}
.bio-text p { color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.8; }

.bio-portrait-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1E2D3D, #3A7D44);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.bio-portrait-placeholder::after {
  content: '[ Photo ]';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.2);
  font-size: .8rem;
}

.bio-facts-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.facts-title { font-size: 1rem; margin-bottom: 1rem; color: var(--charcoal); }
.facts-list { display: flex; flex-direction: column; gap: .75rem; }
.facts-list li { border-bottom: 1px solid var(--border); padding-bottom: .6rem; }
.facts-list li:last-child { border-bottom: none; padding-bottom: 0; }
.fact-label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .2rem;
}
.fact-value { font-size: .9rem; color: var(--text); }

.bio-youtube-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: var(--white);
}
.bio-youtube-card h3 { font-size: 1rem; color: var(--white); margin-bottom: .5rem; }
.bio-youtube-card p { font-size: .9rem; color: rgba(255,255,255,.7); margin-bottom: 1rem; }

/* ── TIMELINE ───────────────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  padding-left: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--lime), var(--green));
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: .35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lime);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--lime);
  transform: translateX(-5px);
}
.timeline-year {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .4rem;
  background: rgba(58,125,68,.1);
  padding: .2rem .6rem;
  border-radius: 4px;
}
.timeline-content h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.timeline-content p  { color: var(--text-muted); font-size: .95rem; line-height: 1.7; }

/* ── PSYCHIATRY PAGE ────────────────────────────────────── */
.psych-intro-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: center;
}
.psych-intro-text h2 { margin-bottom: 1.25rem; }
.psych-intro-text p  { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.8; }

.psych-portrait-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1E2D3D, #2a4a3a);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}
.psych-portrait-placeholder::after {
  content: '[ Portrait Photo ]';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.2);
  font-size: .8rem;
  letter-spacing: .08em;
}

.psych-credentials-badge {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.psych-credentials-badge strong { font-family: var(--font-serif); font-size: 1rem; color: var(--charcoal); }
.psych-credentials-badge span   { font-size: .85rem; color: var(--green); font-weight: 600; }

/* Expertise Grid */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
}

.expertise-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.expertise-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--lime);
}
.expertise-icon { color: var(--green); margin-bottom: 1rem; }
.expertise-card h3 { font-size: 1.1rem; margin-bottom: .75rem; }
.expertise-card p  { font-size: .9rem; color: var(--text-muted); line-height: 1.65; }

/* Philosophy */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 2rem;
}
.philosophy-pillar {
  padding: 2rem;
  border-left: 3px solid var(--lime);
  background: var(--off-white);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pillar-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--lime);
  opacity: .3;
  line-height: 1;
  margin-bottom: .5rem;
}
.philosophy-pillar h3 { font-size: 1.1rem; margin-bottom: .75rem; }
.philosophy-pillar p  { font-size: .9rem; color: var(--text-muted); line-height: 1.7; }

/* Impact */
.impact-inner {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}
.impact-inner h2 { margin-bottom: 1.5rem; }
.impact-inner p  { margin-bottom: 1rem; font-size: 1.05rem; line-height: 1.8; opacity: .92; }

/* ── TENNIS PAGE ────────────────────────────────────────── */
.tennis-intro-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}
.tennis-intro-text h2 { margin-bottom: 1.25rem; }
.tennis-intro-text p  { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.8; }

.tennis-stats-panel { display: flex; flex-direction: column; gap: 1rem; }

.tennis-stat-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(124,184,63,.2);
}
.tsc-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--lime-light);
  line-height: 1;
  margin-bottom: .4rem;
}
.tsc-label { font-size: .82rem; color: rgba(255,255,255,.7); line-height: 1.4; }

/* Achievements */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.5rem;
}
.achievement-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  transition: transform var(--transition);
}
.achievement-card:hover { transform: translateY(-4px); }
.achievement-img-placeholder {
  height: 200px;
  background: linear-gradient(135deg, #1a3a2a, #2a4a1a);
}
.achievement-card:nth-child(2) .achievement-img-placeholder { background: linear-gradient(135deg, #1a2a3a, #0d1b2a); }
.achievement-card:nth-child(3) .achievement-img-placeholder { background: linear-gradient(135deg, #2a1a3a, #1a2a4a); }

.achievement-body { padding: 1.5rem; }
.achievement-tag {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lime-light);
  display: block;
  margin-bottom: .5rem;
}
.achievement-body h3 { font-size: 1.15rem; color: var(--white); margin-bottom: .75rem; }
.achievement-body p  { font-size: .9rem; color: rgba(255,255,255,.7); line-height: 1.65; }

/* Legends */
.legends-grid { display: flex; flex-direction: column; gap: 3rem; }

.legend-encounter {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2.5rem;
  align-items: center;
}
.legend-encounter:nth-child(even) { direction: rtl; }
.legend-encounter:nth-child(even) > * { direction: ltr; }

.legend-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}
.legend-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a3a4a, #2a4a3a);
}
.legend-encounter:nth-child(2) .legend-img-placeholder { background: linear-gradient(135deg, #2a3a1a, #3a4a2a); }
.legend-encounter:nth-child(3) .legend-img-placeholder { background: linear-gradient(135deg, #1a1a3a, #2a2a4a); }
.legend-encounter:nth-child(4) .legend-img-placeholder { background: linear-gradient(135deg, #3a1a1a, #4a2a2a); }
.legend-encounter:nth-child(5) .legend-img-placeholder { background: linear-gradient(135deg, #1a3a3a, #2a4a4a); }
.legend-encounter:nth-child(6) .legend-img-placeholder { background: linear-gradient(135deg, #3a1a3a, #4a2a4a); }

.legend-body h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.legend-body p  { color: var(--text-muted); line-height: 1.8; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-item:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }
.gallery-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #1E2D3D, #3A7D44);
}
.gallery-item:nth-child(2n) .gallery-img-placeholder   { background: linear-gradient(135deg, #1a3a1a, #2a4a2a); }
.gallery-item:nth-child(3n) .gallery-img-placeholder   { background: linear-gradient(135deg, #1a1a3a, #2a2a4a); }
.gallery-item:nth-child(4n) .gallery-img-placeholder   { background: linear-gradient(135deg, #3a1a1a, #4a2a1a); }
.gallery-caption {
  background: var(--off-white);
  font-size: .8rem;
  color: var(--text-muted);
  padding: .4rem .6rem;
  text-align: center;
}

/* Tips */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1.5rem;
}
.tip-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.tip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tip-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 900;
  color: var(--lime);
  opacity: .15;
  line-height: 1;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}
.tip-card h3 { font-size: 1.05rem; margin-bottom: .75rem; color: var(--charcoal); }
.tip-card p  { font-size: .9rem; color: var(--text-muted); line-height: 1.7; }

/* ── BLOG PAGE ──────────────────────────────────────────── */
.blog-grid { display: flex; flex-direction: column; gap: 3rem; }

.blog-post {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2.5rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.blog-post:hover { box-shadow: var(--shadow-md); }

.blog-post-img-placeholder {
  height: 100%;
  min-height: 280px;
  background: linear-gradient(135deg, #1E2D3D, #3A7D44);
}
.blog-post:nth-child(2) .blog-post-img-placeholder { background: linear-gradient(135deg, #2a3a1a, #3a4a2a); }
.blog-post:nth-child(3) .blog-post-img-placeholder { background: linear-gradient(135deg, #1a1a3a, #2a2a4a); }
.blog-post:nth-child(4) .blog-post-img-placeholder { background: linear-gradient(135deg, #2a1a1a, #3a2a2a); }
.blog-post:nth-child(5) .blog-post-img-placeholder { background: linear-gradient(135deg, #1a2a2a, #2a3a3a); }
.blog-post:nth-child(6) .blog-post-img-placeholder { background: linear-gradient(135deg, #1a3a4a, #2a4a5a); }
.blog-post:nth-child(7) .blog-post-img-placeholder { background: linear-gradient(135deg, #2a1a3a, #3a2a4a); }

.blog-post-body { padding: 2rem 2rem 2rem 0; }
.blog-post-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}
.blog-tag {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--green);
  padding: .2rem .6rem;
  border-radius: 4px;
}
.blog-date {
  font-size: .8rem;
  color: var(--text-light);
}
.blog-post-body h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.blog-post-body h2 a { color: var(--text); transition: color var(--transition); }
.blog-post-body h2 a:hover { color: var(--green); }

.blog-excerpt p {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.75;
  margin-bottom: .85rem;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--green);
  transition: gap var(--transition), color var(--transition);
  margin-top: .5rem;
}
.blog-read-more:hover { gap: .6rem; color: var(--lime); }

/* YouTube Strip */
.youtube-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.yt-strip-text h2 { color: var(--white); margin-bottom: .5rem; }
.yt-strip-text p  { color: rgba(255,255,255,.7); max-width: 560px; }

/* ── CONTACT PAGE ───────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-inner { position: sticky; top: calc(var(--header-h) + 2rem); }
.contact-info-inner h2 { margin-bottom: 1.25rem; }
.contact-intro { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.75; }

.contact-details-list { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.contact-detail-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-detail-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(58,125,68,.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.contact-detail-item strong { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--green); margin-bottom: .2rem; }
.contact-detail-item a { color: var(--text); transition: color var(--transition); }
.contact-detail-item a:hover { color: var(--green); }

.contact-topics { background: var(--off-white); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; }
.contact-topics h3 { font-size: 1rem; margin-bottom: 1rem; }
.contact-topics ul { display: flex; flex-direction: column; gap: .6rem; }
.contact-topics li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .9rem;
  color: var(--text-muted);
}
.contact-topics li svg { flex-shrink: 0; color: var(--green); margin-top: 3px; }

.contact-social-strip h3 { font-size: 1rem; margin-bottom: .75rem; }

/* Form */
.form-title { margin-bottom: .5rem; }
.form-subtitle { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.65; }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group { display: flex; flex-direction: column; gap: .4rem; }

.form-group label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--charcoal);
}
.required { color: var(--green); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(58,125,68,.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-error { font-size: .82rem; color: #c53030; display: none; }
.form-error.visible { display: block; }

.form-consent { flex-direction: row; align-items: flex-start; gap: .75rem; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  cursor: pointer;
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--green); flex-shrink: 0; }

.form-submit { align-self: flex-start; }

.form-success {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: rgba(58,125,68,.1);
  border: 1.5px solid var(--green);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--green);
  font-weight: 500;
}
.form-success[hidden] { display: none; }

/* Map placeholder */
.map-section { height: 280px; background: var(--light-gray); position: relative; overflow: hidden; }
.map-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #d4e8d4, #c4d8e4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-overlay-text {
  background: rgba(13,27,42,.88);
  color: var(--white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: center;
  backdrop-filter: blur(6px);
}
.map-overlay-text strong { font-size: 1.05rem; color: var(--white); }
.map-overlay-text span   { font-size: .9rem; color: rgba(255,255,255,.7); }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .3rem;
}
.footer-tagline {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lime-light);
  margin-bottom: 1rem;
}
.footer-desc { font-size: .9rem; line-height: 1.65; color: rgba(255,255,255,.6); max-width: 280px; }

.footer-nav h4,
.footer-contact h4,
.footer-social h4 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-nav ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition), padding-left var(--transition);
}
.footer-nav a:hover { color: var(--lime-light); padding-left: 4px; }

.footer-contact address { display: flex; flex-direction: column; gap: .5rem; }
.footer-contact p { font-size: .9rem; color: rgba(255,255,255,.65); line-height: 1.5; }
.footer-contact a { transition: color var(--transition); }
.footer-contact a:hover { color: var(--lime-light); }

.social-links {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  background: grey;
    padding: 20px;
    border-radius: 20px;
}
.social-links a {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.social-links a:hover { color: var(--lime-light); }

.footer-bottom {
  padding-block: 1.25rem;
  text-align: center;
}
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.4); }

/* ── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

.animate-fade-up { opacity: 0; }
.animate-slide-in { opacity: 0; }
.animated { animation-duration: .65s; animation-fill-mode: both; animation-timing-function: cubic-bezier(.4,0,.2,1); }
.animate-fade-up.animated  { animation-name: fadeUp; }
.animate-slide-in.animated { animation-name: slideIn; }

.delay-1 { animation-delay: .12s; }
.delay-2 { animation-delay: .24s; }
.delay-3 { animation-delay: .36s; }
.delay-4 { animation-delay: .48s; }

/* Hero items — always visible, just animated */
.hero-content .animate-fade-up { opacity: 0; animation-name: fadeUp; animation-duration: .7s; animation-fill-mode: both; animation-timing-function: cubic-bezier(.4,0,.2,1); }

/* ── RESPONSIVE ─────────────────────────────────────────── */

/* Large → medium */
@media (max-width: 1024px) {
  .psych-callout-inner { grid-template-columns: 1fr; }
  .psych-callout-image { display: none; }
  .bio-grid            { grid-template-columns: 1fr; }
  .bio-sidebar         { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
  .psych-intro-grid    { grid-template-columns: 1fr; }
  .psych-intro-visual  { display: none; }
  .tennis-intro-grid   { grid-template-columns: 1fr; }
  .tennis-stats-panel  { grid-template-columns: repeat(2, 1fr); display: grid; }
  .contact-grid        { grid-template-columns: 1fr; }
  .contact-info-inner  { position: static; }
  .legend-encounter    { grid-template-columns: 1fr; }
  .legend-encounter:nth-child(even) { direction: ltr; }
  .legend-img-wrap     { aspect-ratio: 16/9; }
  .footer-grid         { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .blog-post           { grid-template-columns: 260px 1fr; }
}

/* Medium */
@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(13,27,42,.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem;
    gap: .25rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-link { padding: .75rem 1rem; border-radius: 6px; width: 100%; }
  .nav-cta  { text-align: center; margin-top: .5rem; }

  .hero-actions { flex-direction: column; gap: .75rem; }
  .hero-actions .btn { width: fit-content; }
  .hero-stats { gap: 1rem; }
  .stat-divider { display: none; }

  .blog-post { grid-template-columns: 1fr; }
  .blog-post-img-placeholder { min-height: 200px; }
  .blog-post-body { padding: 1.5rem; }

  .form-row { grid-template-columns: 1fr; }

  .youtube-strip { flex-direction: column; text-align: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Small */
@media (max-width: 480px) {
  .hero-stats { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .hero-badge { font-size: .68rem; }
  .dual-cards  { grid-template-columns: 1fr; }
  .moments-grid{ grid-template-columns: 1fr; }
  .tennis-stats-panel { grid-template-columns: 1fr 1fr; }

  .section-header { margin-bottom: 2rem; }
}

/* ── UTILITY ────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Focus-visible styles for keyboard accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── BLOG POST DETAIL PAGE ──────────────────────────────── */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
}

.post-article {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 2.5rem;
}

.post-article-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.post-body-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.4rem;
}
.post-body-text p strong { color: var(--charcoal); }
.post-body-text p:first-child { font-size: 1.12rem; }

.post-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.post-share {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .88rem;
  color: var(--text-light);
  font-weight: 500;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--light-gray);
  color: var(--charcoal);
  transition: background var(--transition), color var(--transition);
}
.share-btn:hover { background: var(--green); color: var(--white); }

/* Sidebar */
.post-sidebar { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: calc(var(--header-h) + 2rem); }

.sidebar-widget {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.sidebar-widget h3 { font-size: 1rem; margin-bottom: .75rem; color: var(--charcoal); }
.sidebar-widget p  { font-size: .88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: .75rem; }

.sidebar-portrait {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1E2D3D, #3A7D44);
  margin-bottom: 1rem;
}

.sidebar-links { display: flex; flex-direction: column; gap: .5rem; }
.sidebar-links a {
  font-size: .88rem;
  color: var(--green);
  font-weight: 500;
  transition: color var(--transition), padding-left var(--transition);
  display: block;
  padding: .25rem 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-links a:last-child { border-bottom: none; }
.sidebar-links a:hover { color: var(--lime); padding-left: 4px; }

@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
}

@media (max-width: 600px) {
  .post-article { padding: 1.5rem; }
  .post-footer-nav { flex-direction: column; align-items: flex-start; }
}

/* ── BLOG DETAIL POST CONTENT TYPOGRAPHY ────────────────── */
.post-content-section { padding-top: 3rem; }

/* ── BLOG POST PLACEHOLDER IMAGE on detail page ─────────── */
.page-hero-blog .page-hero-img-placeholder { background: linear-gradient(135deg, #1a1a3a 0%, #0d1b2a 100%); }

/* =========================================================
   IMAGE TAG STYLES
   All <img> elements that replaced placeholder divs.
   Drop your photos into images/ and they display instantly.
   ========================================================= */

/* ── Hero background images ──────────────────────────────── */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  display: block;
}

.page-hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  display: block;
}

/* ── Psych callout portrait ──────────────────────────────── */
.psych-callout-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* ── Moment card images ──────────────────────────────────── */
.moment-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.moment-card:hover .moment-img { transform: scale(1.04); }

/* ── Post card images (homepage latest posts) ───────────── */
.post-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── Bio sidebar portrait ────────────────────────────────── */
.bio-portrait-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  display: block;
}

/* ── Psychiatry page portrait ────────────────────────────── */
.psych-portrait-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
  margin-bottom: 1rem;
}

/* ── Achievement card images (tennis page) ───────────────── */
.achievement-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}
.achievement-card:hover .achievement-img { transform: scale(1.03); }

/* ── Legend encounter images ─────────────────────────────── */
.legend-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: var(--radius-lg);
  transition: transform 0.4s ease;
}
.legend-img-wrap:hover .legend-img { transform: scale(1.03); }

/* ── Gallery images ──────────────────────────────────────── */
.gallery-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-img { transform: scale(1.05); }

/* ── Blog post list images (blog.html) ───────────────────── */
.blog-post-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── Blog post detail sidebar portrait ───────────────────── */
.sidebar-portrait-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  display: block;
}

/* ── Fallback: if an image src is missing, show a tinted bg ─ */
img[src=""],
img:not([src]) {
  background: linear-gradient(135deg, #1E2D3D, #3A7D44);
  min-height: 40px;
}
