/* ============================================================
   PhD MEX UK — Main Stylesheet
   ============================================================ */

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

:root {
  --burgundy:   #6b1a2a;
  --burgundy-d: #852035;
  --green:      #2e7d4f;
  --green-lt:   #4aab72;
  --cream:      #f4f4f4;
  --grey-light: #f0f0f0;
  --grey-foot:  #ebebeb;
  --white:      #ffffff;
  --ink:        #111111;
  --muted:      #555555;
  --border:     #dddddd;
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── NAVIGATION ───────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e0e0e0;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo span { color: var(--burgundy); }

.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--burgundy); }

.nav-links .cta-link {
  background: var(--burgundy);
  color: var(--white);
  padding: 0.45rem 1.1rem;
  border-radius: 3px;
  font-weight: 500;
  transition: background 0.2s;
}
.nav-links .cta-link:hover { background: var(--burgundy-d); color: var(--white); }

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-btn {
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.lang-btn.active { background: var(--burgundy); color: var(--white); }
.lang-btn:not(.active):hover { background: var(--cream); }

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

/* ── HERO ─────────────────────────────────────────────────── */

#hero {
  min-height: 100vh;
  background: var(--cream);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46, 125, 79, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 125, 79, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-glow {
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(107, 26, 42, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
}

.hero-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--burgundy);
  border: 1px solid rgba(107, 26, 42, 0.35);
  padding: 0.35rem 0.9rem;
  border-radius: 2px;
  margin-bottom: 1.8rem;
  animation: fadeUp 0.6s ease both;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.18;
  max-width: 720px;
  margin-bottom: 1.6rem;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero-title em { font-style: normal; color: var(--burgundy); }

.hero-sub {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 2.6rem;
  line-height: 1.75;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

.btn-primary {
  background: var(--burgundy);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--burgundy-d); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  padding: 0.85rem 2rem;
  border: 1px solid #bbb;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--burgundy); color: var(--burgundy); }

.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  animation: fadeUp 0.6s 0.4s ease both;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  border-top: 1px solid #d0d0d0;
  padding-top: 2rem;
  margin-top: 2.5rem;
  justify-content: space-around;
}
.hero-stat-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--burgundy);
  display: block;
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}

/* ── SHARED SECTION STYLES ────────────────────────────────── */

section { padding: 6rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }

.section-tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--burgundy);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 3rem;
}
.divider {
  width: 48px;
  height: 3px;
  background: var(--green);
  margin: 1.2rem 0 2rem;
  border-radius: 2px;
}

/* ── MISSION ──────────────────────────────────────────────── */

#mission { background: var(--cream); }

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.mission-body-text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.mission-pillars { display: grid; gap: 1.5rem; }

.pillar {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  padding: 1.5rem 1.6rem;
  border-radius: 0 4px 4px 0;
  transition: box-shadow 0.2s;
}
.pillar:hover { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07); }
.pillar h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--burgundy);
  margin-bottom: 0.4rem;
}
.pillar p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

/* ── EVENTS ───────────────────────────────────────────────── */

#events { background: var(--white); }

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
}

.event-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.event-card:hover { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.09); transform: translateY(-3px); }

.event-date-bar {
  background: var(--burgundy);
  color: var(--white);
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.event-date-bar span {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  font-family: var(--sans);
  font-size: 0.8rem;
}

.event-body { padding: 1.4rem; }
.event-type {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.event-body h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--burgundy);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.event-body p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }

.event-link {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--burgundy);
  text-decoration: none;
  border-bottom: 1px solid var(--green);
  padding-bottom: 1px;
  transition: color 0.2s;
}
.event-link:hover { color: var(--green); }

/* ── NEWS ─────────────────────────────────────────────────── */

#news { background: var(--cream); }

.news-list { display: grid; gap: 1.2rem; }

.news-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.6rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  transition: box-shadow 0.2s;
}
.news-item:hover { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07); }

.news-date {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.news-content h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--burgundy);
  margin-bottom: 0.25rem;
}
.news-content p { font-size: 0.88rem; color: var(--muted); }

.news-tag-pill {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(46, 125, 79, 0.1);
  color: #1a5c35;
  border: 1px solid rgba(46, 125, 79, 0.25);
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
  white-space: nowrap;
}

/* ── STAND WITH US (petition CTA) ─────────────────────────── */

#petition {
  background: var(--burgundy);
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem;
}

.petition-pattern {
  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: 60px 60px;
}

.petition-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.petition-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.9rem;
  border-radius: 2px;
  margin-bottom: 1.8rem;
}

.petition-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.4rem;
}
.petition-title em { font-style: normal; color: rgba(255, 255, 255, 0.65); }

.petition-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
  margin-bottom: 2.6rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.btn-petition {
  display: inline-block;
  background: var(--white);
  color: var(--burgundy);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 1rem 2.6rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.btn-petition:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.petition-note {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ── CONTACT ──────────────────────────────────────────────── */

#contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  text-align: center;
  transition: box-shadow 0.2s;
}
.contact-card:hover { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07); }

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(46, 125, 79, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-card h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--burgundy);
  margin-bottom: 0.4rem;
}
.contact-card p { font-size: 0.88rem; color: var(--muted); }
.contact-card a {
  color: var(--burgundy);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--green);
}
.contact-card a:hover { color: var(--green); }

/* ── FOOTER ───────────────────────────────────────────────── */

footer {
  background: var(--grey-foot);
  color: var(--muted);
  padding: 2.5rem 2rem;
  border-top: 1px solid #d8d8d8;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo { font-family: var(--serif); font-size: 1rem; color: var(--ink); font-weight: 700; }
.footer-logo span { color: var(--burgundy); }

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--burgundy); }

.footer-copy { font-size: 0.78rem; }

/* ── ANIMATIONS & UTILITIES ───────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ───────────────────────────────────────────── */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    border-top: 1px solid #e0e0e0;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .mission-grid,
  .contact-grid,
  .form-row { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; }
  .hero-stats { gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ── HERO SPLIT LAYOUT ────────────────────────────────────── */

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 3rem 4rem;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  grid-column: 1;
  grid-row: 1;
}

.hero-image-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 420px;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 2;
  grid-row: 1;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.hero-image-fallback {
  display: none;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 2rem;
}

.hero-image-wrap.hero-image-placeholder .hero-image-fallback { display: block; }
.hero-image-wrap.hero-image-placeholder .hero-photo { display: none; }

/* ── NAV LOGO — FLAG + IPN ────────────────────────────────── */

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Inline flag made of CSS stripes */
.flag-mx {
  display: inline-flex;
  width: 24px;
  height: 16px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.08);
}
.flag-green { flex: 1; background: #006847; }
.flag-white {
  flex: 1;
  background: #fff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flag-eagle {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #8B3A2A;
  opacity: 0.7;
}
.flag-red { flex: 1; background: #CE1126; }

/* IPN logo image in nav */
.nav-ipn-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* ── VIDEOS SECTION ───────────────────────────────────────── */

#videos { background: var(--white); }

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
}

.video-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  background: var(--white);
}
.video-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.09); transform: translateY(-3px); }

.video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  background: #111;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.video-body {
  padding: 1.2rem 1.4rem;
}
.video-body h3 {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--burgundy);
  margin: 0.3rem 0 0.5rem;
  line-height: 1.3;
}
.video-body p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* ── PETITION + CONTACT MERGED ────────────────────────────── */

.petition-contact-wrap {
  background: var(--white);
}

.petition-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

/* Left column — petition (dark burgundy) */
.petition-col {
  background: var(--burgundy);
  position: relative;
  overflow: hidden;
  padding: 5rem 3rem;
  display: flex;
  align-items: center;
}
.petition-col-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Right column — contact (light grey) */
.contact-col {
  background: var(--cream);
  padding: 5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Contact list (vertical stack, no cards) */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 0.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-item .contact-icon {
  margin: 0;
  flex-shrink: 0;
}
.contact-item h3 {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--burgundy);
  margin-bottom: 0.2rem;
}
.contact-item p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.contact-item a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--burgundy);
  text-decoration: none;
  border-bottom: 1px solid var(--green);
}
.contact-item a:hover { color: var(--green); }

/* ── RESPONSIVE ADDITIONS ─────────────────────────────────── */

@media (max-width: 768px) {
  .hero-split { grid-template-columns: 1fr; gap: 2rem; }
  .hero-image-wrap { min-height: 260px; }
  .petition-contact-grid { grid-template-columns: 1fr; }
  .petition-col, .contact-col { padding: 3rem 1.5rem; }
  .videos-grid { grid-template-columns: 1fr; }
}

/* ── TIMELINE (vertical card stack) ──────────────────────── */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

/* Vertical line down the left */
.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--green), var(--burgundy));
  opacity: 0.25;
}

.tl-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-left: 48px;
  transition: box-shadow 0.2s;
  background: var(--white);
}
.tl-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.08); }

/* Present day card gets a burgundy left border accent */
.tl-card-present {
  border-left: 4px solid var(--burgundy);
}

/* Timeline image */
.tl-image-wrap {
  position: relative;
  background: #e8e8e8;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.tl-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0; left: 0;
}
.tl-img-fallback {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  padding: 1rem;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}
.tl-image-wrap.tl-img-placeholder .tl-image { display: none; }
.tl-image-wrap:not(.tl-img-placeholder) .tl-img-fallback { display: none; }

/* Timeline body */
.tl-body {
  padding: 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tl-date {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--burgundy);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tl-date span {
  color: var(--muted);
  font-weight: 400;
}

.tl-body h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--burgundy);
  line-height: 1.25;
  margin: 0.2rem 0 0.4rem;
}

.tl-body p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.tl-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

/* Dot on the timeline line */
.tl-card::before {
  content: '';
  position: absolute;
  left: 12px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--green);
  margin-top: 1.8rem;
}

@media (max-width: 768px) {
  .tl-card {
    grid-template-columns: 1fr;
    margin-left: 0;
  }
  .tl-image-wrap { min-height: 180px; }
  .timeline::before { display: none; }
}
/* ── IMAGE CAPTION OVERLAY ────────────────────────────────── */
.tl-image-note {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.72rem;
  text-align: center;
  padding: 0.4rem 0.6rem;
  line-height: 1.4;
}
/* ── NEWS IMAGE THUMBNAIL ─────────────────────────────────── */
.news-image-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.8rem;
  text-decoration: none;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--cream);
  transition: box-shadow 0.2s;
}
.news-image-link:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.news-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.news-image-caption {
  font-size: 0.82rem;
  color: var(--burgundy);
  font-weight: 500;
  line-height: 1.4;
}
