/* ================================================================
   ROTARACT DISTRICT 2240 — Design System
   ================================================================ */

/* -- Fonts -- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Source+Sans+3:wght@300;400;500;600&display=swap');

/* -- Design Tokens -- */
:root {
  --cranberry: #d41367;
  --cranberry-dark: #a30f51;
  --cranberry-light: #f0d0df;
  --cranberry-10: rgba(212, 19, 103, 0.1);
  --azure: #019fcb;
  --azure-dark: #017da0;
  --gold: #f7a81b;
  --royal-blue: #003d7c;
  --royal-blue-dark: #002a56;

  --white: #ffffff;
  --gray-50: #f8f9fb;
  --gray-100: #f0f1f4;
  --gray-200: #e2e4e9;
  --gray-300: #c5c9d1;
  --gray-500: #7a8190;
  --gray-700: #3d4351;
  --gray-900: #1a1d27;

  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 48px rgba(0,0,0,0.16);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --container: 1200px;
  --header-height: 80px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -- Reset & Base -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-700);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cranberry); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--cranberry-dark); }

/* -- Utilities -- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.text-justify { text-align: justify; }

/* Global justify for content paragraphs */
.intro-text p,
.content-block p,
.fourway-box p,
.family-card p,
.family-rotex p,
.structure-level p,
.role-row p,
.event-info-card p,
.event-secondary-item p,
.drr-note,
.drr-note-small,
.drr-tl-info p,
.drr-featured-info .drr-note,
.drr-incoming-info .drr-note,
.coty-text,
.coty-past-text,
.timeline-content p,
.pillar-card p,
.value-card p,
.reason-card p,
.step-text p,
.clubs-info p,
.project-modal-body p {
  text-align: justify;
}
.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; }

/* Skip link */
.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 10000;
  padding: 12px 24px; background: var(--cranberry); color: var(--white);
  font-weight: 600; border-radius: var(--radius-sm);
  transition: top var(--transition);
}
.skip-link:focus { top: 16px; color: var(--white); }

/* ================================================================
   HEADER & NAVIGATION
   ================================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,0.98);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-height); max-width: var(--container);
  margin: 0 auto; padding: 0 24px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 44px; width: auto; }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--gray-900); line-height: 1.2; }
.logo-text small { display: block; font-weight: 500; font-size: 0.75rem; color: var(--gray-500); letter-spacing: 0.5px; text-transform: uppercase; }

/* Desktop nav */
.nav-desktop { display: flex; align-items: center; gap: 4px; }
.nav-desktop a {
  font-family: var(--font-display); font-size: 0.88rem; font-weight: 600;
  color: var(--gray-700); padding: 8px 14px; border-radius: var(--radius-sm);
  transition: all var(--transition); letter-spacing: 0.2px;
}
.nav-desktop a:hover,
.nav-desktop a.active { color: var(--cranberry); background: var(--cranberry-10); }

/* Language toggle */
.lang-toggle {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
  color: var(--white); background: var(--cranberry);
  padding: 6px 14px; border-radius: var(--radius-sm);
  margin-left: 8px; letter-spacing: 0.5px;
  transition: background var(--transition);
}
.lang-toggle:hover { background: var(--cranberry-dark); color: var(--white); }

/* Mobile hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; z-index: 1100;
}
.nav-hamburger span {
  display: block; width: 26px; height: 2.5px;
  background: var(--gray-900); border-radius: 2px;
  transition: all var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile nav panel */
.nav-mobile {
  display: none; position: fixed; top: 0; right: -100%; width: 320px;
  height: 100vh; background: var(--white); z-index: 1050;
  padding: 20px 32px 40px; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-xl);
  transition: right var(--transition);
  overflow-y: auto;
}
.nav-mobile.open { right: 0; }
.nav-mobile-logo {
  display: block; padding: 8px 0; margin-bottom: 24px;
  /* The hamburger close button sits at the top-right of the screen on top
     of this panel — give the logo room on the left so the two don't
     visually collide. */
  max-width: 180px;
}
.nav-mobile-logo img {
  display: block; width: 100%; height: auto; max-height: 44px;
  object-fit: contain;
  /* Override the global "img max-width:100%" being applied with the
     nav anchor's hover effect — we don't want any background tint here. */
}
.nav-mobile a.nav-mobile-logo,
.nav-mobile a.nav-mobile-logo:hover {
  background: transparent;
  padding: 8px 0;
}
.nav-mobile a {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
  color: var(--gray-700); padding: 14px 16px; border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-mobile a:hover,
.nav-mobile a.active { color: var(--cranberry); background: var(--cranberry-10); }
.nav-backdrop {
  display: none; position: fixed; inset: 0; z-index: 1040;
  background: rgba(0,0,0,0.4); opacity: 0;
  transition: opacity var(--transition);
}
.nav-backdrop.open { display: block; opacity: 1; }

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--royal-blue-dark) 50%, var(--cranberry-dark) 100%);
  overflow: hidden; margin-top: var(--header-height);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 120px;
  background: linear-gradient(transparent, var(--white));
}

/* Hero with background image */
.hero.hero-img {
  background-size: cover; background-position: center 30%;
}
.hero.hero-img::before { display: none; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,29,39,0.85) 0%, rgba(0,61,124,0.7) 50%, rgba(163,15,81,0.6) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 700px; padding: 80px 0;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
  color: var(--gold); letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-badge::before {
  content: ''; display: block; width: 32px; height: 2px; background: var(--gold);
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 900; color: var(--white); line-height: 1.1;
  margin-bottom: 8px; letter-spacing: -0.5px;
}
.hero h1 span { color: var(--cranberry-light); }
.hero-subtitle {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 500;
  color: rgba(255,255,255,0.7); margin-bottom: 24px;
}
.hero-text {
  font-size: 1.15rem; color: rgba(255,255,255,0.85);
  line-height: 1.8; margin-bottom: 36px; max-width: 560px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* -- Buttons -- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 700;
  padding: 14px 32px; border-radius: var(--radius-sm); border: none;
  cursor: pointer; transition: all var(--transition); letter-spacing: 0.3px;
}
.btn-primary {
  background: var(--cranberry); color: var(--white);
  box-shadow: 0 4px 16px rgba(212, 19, 103, 0.3);
}
.btn-primary:hover {
  background: var(--cranberry-dark); color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 19, 103, 0.4);
}
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: var(--white); color: var(--white);
  background: rgba(255,255,255,0.1); transform: translateY(-2px);
}
.btn-dark {
  background: var(--gray-900); color: var(--white);
}
.btn-dark:hover {
  background: var(--gray-700); color: var(--white);
  transform: translateY(-2px);
}

/* ================================================================
   SECTIONS
   ================================================================ */
.section { padding: 100px 0; }
.section-alt { background: var(--gray-50); }
.section-dark {
  background: linear-gradient(135deg, var(--gray-900), var(--royal-blue-dark));
  color: var(--white);
}
.section-cranberry {
  background: linear-gradient(135deg, var(--cranberry), var(--cranberry-dark));
  color: var(--white);
}
.section-title {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800; color: var(--gray-900); text-align: center;
  margin-bottom: 16px; letter-spacing: -0.3px;
}
.section-dark .section-title,
.section-cranberry .section-title { color: var(--white); }
.section-subtitle {
  text-align: center; font-size: 1.1rem; color: var(--gray-500);
  max-width: 640px; margin: 0 auto 56px;
}
.section-dark .section-subtitle { color: rgba(255,255,255,0.7); }

/* -- What is Rotaract -- */
.intro-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.intro-block img {
  width: 100%; height: 100%; min-height: 300px;
  object-fit: cover; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.intro-text p { text-align: justify; font-size: 1.1rem; line-height: 1.8; }

/* -- Pillars grid -- */
.pillars-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.pillar-card {
  background: var(--white); padding: 40px 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
  text-align: center;
  transition: all var(--transition);
}
.pillar-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: var(--cranberry-light);
}
.pillar-icon {
  width: 72px; height: 72px; margin: 0 auto 24px;
  background: var(--cranberry-10); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.pillar-card h3 {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--gray-900); margin-bottom: 12px;
}
.pillar-card p { text-align: justify; color: var(--gray-500); font-size: 0.95rem; }

/* -- Stats -- */
.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; text-align: center; padding: 40px 0;
}
.stat-item h3 {
  font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900; color: var(--white); line-height: 1;
}
.stat-item p {
  font-family: var(--font-display); font-size: 0.95rem;
  font-weight: 600; color: rgba(255,255,255,0.7);
  text-transform: uppercase; letter-spacing: 1px; margin-top: 8px;
}
.stats-divider {
  width: 100%; max-width: 600px; height: 1px; margin: 16px auto;
  background: rgba(255,255,255,0.12);
}
.stats-block { text-align: center; }
.stats-label {
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 700;
  color: var(--gold); text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 4px;
}
.stats-heading {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 800;
  color: var(--white); margin-bottom: 0;
}
.stats-block .stats-row { padding: 24px 0 16px; }

/* -- Video -- */
.video-wrapper {
  position: relative;
  max-width: 800px; width: 100%; margin: 0 auto;
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}
.video-wrapper video {
  width: 100%; height: 100%;
  display: block; object-fit: cover;
}
.video-wrapper video.playing {
  object-fit: contain;
}
.video-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(26,29,39,0.3), rgba(212,19,103,0.15));
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}
.video-overlay.hidden {
  opacity: 0; pointer-events: none;
}
.video-play-btn {
  width: 80px; height: 80px;
  background: none; border: none;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s;
  filter: drop-shadow(0 4px 20px rgba(212,19,103,0.4));
}
.video-play-btn:hover {
  transform: scale(1.12);
  filter: drop-shadow(0 8px 32px rgba(212,19,103,0.6));
}
.video-play-btn svg { width: 100%; height: 100%; }

/* -- CTA block -- */
.cta-block { text-align: center; }
.cta-block h2 {
  font-family: var(--font-display); font-size: 2.2rem;
  font-weight: 800; color: var(--white); margin-bottom: 16px;
}
.cta-block p { font-size: 1.1rem; color: rgba(255,255,255,0.85); margin-bottom: 32px; }

/* ================================================================
   ABOUT PAGE
   ================================================================ */
.page-hero {
  position: relative; padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--gray-900), var(--royal-blue-dark));
  text-align: center; overflow: hidden;
  background-size: cover; background-position: center;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,29,39,0.82), rgba(0,61,124,0.75));
  z-index: 1;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 900; color: var(--white); margin-bottom: 16px;
}
.page-hero p {
  font-size: 1.15rem; color: rgba(255,255,255,0.75);
  max-width: 640px; margin: 0 auto;
}

/* Content sections */
.content-block { max-width: 800px; margin: 0 auto; }
.content-block h2 {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 800;
  color: var(--gray-900); margin-bottom: 16px;
  padding-left: 20px; border-left: 4px solid var(--cranberry);
}
.content-block p { text-align: justify; font-size: 1.05rem; line-height: 1.8; margin-bottom: 24px; }

/* Values grid */
.values-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px; margin: 32px 0;
}
.value-card {
  padding: 28px 24px; border-radius: var(--radius-md);
  background: var(--white); border: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.value-card:hover {
  border-color: var(--cranberry-light); box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.value-card h4 {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  color: var(--cranberry); margin-bottom: 8px;
}
.value-card p { font-size: 0.92rem; color: var(--gray-500); text-align: justify; }

/* Four-way test */
.fourway-box {
  background: var(--cranberry-10); border-radius: var(--radius-md);
  padding: 40px; margin: 32px 0;
}
.fourway-box h3 {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800; color: var(--cranberry); text-align: center; margin-bottom: 24px;
}
.fourway-list {
  list-style: none; display: grid; gap: 12px;
}
.fourway-list li {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
  color: var(--gray-700); padding: 12px 20px;
  background: var(--white); border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 12px;
}
.fourway-list li::before {
  content: ''; display: block; width: 8px; height: 8px;
  background: var(--cranberry); border-radius: 50%; flex-shrink: 0;
}

/* ================================================================
   JOIN PAGE
   ================================================================ */
.reasons-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px; margin-bottom: 80px;
}
.reason-card {
  display: flex; gap: 20px; padding: 32px;
  background: var(--white); border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.reason-card:hover {
  box-shadow: var(--shadow-md); border-color: var(--cranberry-light);
  transform: translateY(-3px);
}
.reason-number {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 900;
  color: var(--cranberry-light); line-height: 1; flex-shrink: 0;
}
.reason-card h3 {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  color: var(--gray-900); margin-bottom: 8px;
}
.reason-card p { font-size: 0.95rem; color: var(--gray-500); text-align: justify; }

/* Join — How to join (rich step layout) */
.join-how-head {
  text-align: center; max-width: 640px; margin: 0 auto 56px;
}
.join-how-head h2 {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  color: var(--gray-900); margin-bottom: 12px;
}
.join-how-head p {
  font-size: 1.05rem; color: var(--gray-500);
}

.join-steps {
  max-width: 820px; margin: 0 auto; position: relative;
}
.join-steps::before {
  /* connecting line behind the numbered circles */
  content: ''; position: absolute;
  left: 31px; top: 32px; bottom: 32px; width: 2px;
  background: linear-gradient(to bottom,
    var(--cranberry-light) 0%,
    var(--cranberry-light) 92%,
    transparent 100%);
  z-index: 0;
}
.join-step {
  display: flex; gap: 24px; margin-bottom: 24px;
  position: relative; z-index: 1;
}
.join-step:last-child { margin-bottom: 0; }
.join-step-num {
  flex-shrink: 0; width: 64px; height: 64px;
  background: var(--white); border: 3px solid var(--cranberry);
  color: var(--cranberry); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  box-shadow: 0 4px 14px rgba(212, 19, 103, 0.18);
  transition: all var(--transition);
}
.join-step:hover .join-step-num {
  background: var(--cranberry); color: var(--white);
  transform: scale(1.05);
}
.join-step-body {
  flex: 1; background: var(--white); border-radius: var(--radius-md);
  border: 1px solid var(--gray-200); padding: 24px 28px;
  transition: all var(--transition); min-width: 0;
}
.join-step:hover .join-step-body {
  box-shadow: var(--shadow-md);
  border-color: var(--cranberry-light);
}
.join-step-title {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  color: var(--gray-900); margin-bottom: 8px;
}
.join-step-text {
  font-size: 1rem; color: var(--gray-700); line-height: 1.7;
}
.join-step-note {
  margin-top: 16px; padding: 14px 18px;
  background: var(--cranberry-10);
  border-left: 3px solid var(--cranberry);
  border-radius: var(--radius-sm);
  font-size: 0.93rem; color: var(--gray-700); line-height: 1.65;
}
.join-step-note strong { color: var(--gray-900); }
.join-step-note a:not(.btn) {
  color: var(--cranberry); font-weight: 600;
  border-bottom: 1px dotted var(--cranberry);
}
.join-step-note a:not(.btn):hover {
  color: var(--cranberry-dark);
  border-bottom-color: var(--cranberry-dark);
}
.join-cta {
  text-align: center; margin-top: 56px;
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

/* Contact — Rotary contact link card */
.contact-rotary-card {
  background: linear-gradient(135deg, var(--cranberry-10), rgba(247, 168, 27, 0.08));
  border: 1px solid var(--cranberry-light);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  margin-bottom: 28px;
}
.contact-rotary-card h4 {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  color: var(--gray-900); margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.contact-rotary-card h4::before {
  content: '\1F517'; font-size: 1.1rem; /* link emoji */
}
.contact-rotary-card.is-clubs h4::before {
  content: '\1F4CD'; /* map-pin emoji */
}
.contact-rotary-card p {
  font-size: 0.95rem; color: var(--gray-700); line-height: 1.6; margin-bottom: 14px;
}
.contact-rotary-card .btn {
  font-size: 0.88rem; padding: 10px 20px;
}
.contact-rotary-card .rotary-section-tag {
  display: inline-block; margin-top: 12px;
  font-size: 0.82rem; color: var(--gray-500);
  font-style: italic;
}

/* Legacy step classes — kept minimal in case anything still references them */
.steps-section { max-width: 700px; margin: 0 auto; }
.step-item { display: flex; gap: 24px; margin-bottom: 28px; align-items: flex-start; }
.step-number {
  flex-shrink: 0; width: 48px; height: 48px;
  background: var(--cranberry); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 800;
}

/* ================================================================
   PROJECTS PAGE
   ================================================================ */
.projects-tabs {
  display: flex; gap: 8px; justify-content: center; margin-bottom: 48px;
}
.projects-tabs button {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 700;
  padding: 12px 28px; border-radius: var(--radius-sm);
  border: 2px solid var(--gray-200); background: var(--white);
  color: var(--gray-500); cursor: pointer;
  transition: all var(--transition);
}
.projects-tabs button.active,
.projects-tabs button:hover {
  border-color: var(--cranberry); color: var(--cranberry);
  background: var(--cranberry-10);
}

.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.project-card {
  background: var(--white); border-radius: var(--radius-md);
  border: 1px solid var(--gray-200); overflow: hidden;
  transition: all var(--transition); cursor: pointer;
}
.project-card:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-4px);
  border-color: var(--cranberry-light);
}
.project-card-img {
  width: 100%; height: 200px; object-fit: cover;
  background: var(--gray-100);
}
.project-card-body { padding: 24px; }
.project-card-date {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
  color: var(--cranberry); text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.project-card h3 {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  color: var(--gray-900); margin-bottom: 8px; line-height: 1.3;
}
.project-card p {
  font-size: 0.92rem; color: var(--gray-500); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.project-card-location {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; color: var(--gray-500); margin-top: 12px;
}

/* Project detail modal */
.project-modal {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 24px;
}
.project-modal.open { display: flex; }
.project-modal-inner {
  background: var(--white); border-radius: var(--radius-lg);
  max-width: 640px; width: 100%; max-height: 85vh; overflow-y: auto;
  box-shadow: var(--shadow-xl); padding: 40px;
}
.project-modal-close {
  float: right; background: none; border: none; cursor: pointer;
  font-size: 1.5rem; color: var(--gray-500); padding: 4px; line-height: 1;
}
.project-modal-close:hover { color: var(--cranberry); }

/* No projects */
.no-projects {
  text-align: center; padding: 80px 20px;
  color: var(--gray-500); font-size: 1.1rem;
}

/* ================================================================
   CLUBS / MAP PAGE
   ================================================================ */
#clubs-map {
  width: 100%; height: 500px;
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-md); border: 1px solid var(--gray-200);
  margin-bottom: 48px;
}

.clubs-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.club-card {
  padding: 24px; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  transition: all var(--transition);
}
.club-card:hover {
  border-color: var(--cranberry-light); box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.club-card h3 {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  color: var(--gray-900); margin-bottom: 4px;
}
.club-card-city {
  font-size: 0.9rem; color: var(--gray-500); margin-bottom: 12px;
}
.club-card a.btn {
  font-size: 0.8rem; padding: 8px 16px;
}

/* Leaflet popup override */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow-md) !important;
}
.leaflet-popup-content {
  font-family: var(--font-body) !important;
  margin: 12px 16px !important;
}
.leaflet-popup-content strong {
  font-family: var(--font-display);
  color: var(--cranberry);
}

/* Custom map marker — cranberry teardrop */
.club-marker {
  background: none !important;
  border: none !important;
}
.club-marker-pin {
  width: 34px; height: 34px;
  background: var(--cranberry);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(212, 19, 103, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.club-marker:hover .club-marker-pin {
  transform: rotate(-45deg) scale(1.15);
  box-shadow: 0 6px 16px rgba(212, 19, 103, 0.5);
}
.club-marker-wheel {
  width: 18px; height: 18px;
  transform: rotate(45deg);
  object-fit: contain;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-family: var(--font-display);
  font-size: 0.88rem; font-weight: 600; color: var(--gray-700);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%; padding: 14px 18px;
  font-family: var(--font-body); font-size: 1rem;
  border: 2px solid var(--gray-200); border-radius: var(--radius-sm);
  background: var(--white); color: var(--gray-900);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cranberry);
}
.form-group textarea { min-height: 160px; resize: vertical; }

/* Honeypot */
.ohnohoney { position: absolute; left: -9999px; }

/* Turnstile */
.turnstile-wrapper { margin-bottom: 20px; }

.btn-submit {
  width: 100%;
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  padding: 16px 32px; border-radius: var(--radius-sm);
  background: var(--cranberry); color: var(--white); border: none;
  cursor: pointer; transition: all var(--transition);
}
.btn-submit:hover:not(:disabled) {
  background: var(--cranberry-dark); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 19, 103, 0.3);
}
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* Contact info sidebar */
.contact-info { padding-top: 8px; }
.contact-info h3 {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--gray-900); margin-bottom: 24px;
}
.contact-info-item {
  display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start;
}
.contact-info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--cranberry-10); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--cranberry); font-size: 1.1rem;
}
.contact-info-item p {
  font-size: 0.95rem; color: var(--gray-700); line-height: 1.5;
}
.contact-info-item a { font-weight: 600; }

.social-links { display: flex; gap: 12px; margin-top: 32px; }
.social-link {
  width: 44px; height: 44px;
  background: var(--gray-100); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500); font-size: 1.1rem;
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--cranberry); color: var(--white);
  transform: translateY(-3px);
}

/* Toast notification */
.toast {
  position: fixed; bottom: 32px; right: 32px; z-index: 3000;
  padding: 16px 24px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-size: 0.92rem; font-weight: 600;
  color: var(--white); max-width: 400px;
  box-shadow: var(--shadow-lg);
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast.show { transform: translateY(0); }
.toast-success { background: #16a34a; }
.toast-error { background: #dc2626; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--gray-900); color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-logo img { height: auto; max-height: 48px; width: auto; max-width: 200px; margin-bottom: 16px; }
.footer-logo p { font-size: 0.92rem; line-height: 1.7; max-width: 320px; }

/* About photo strip */
.about-photo-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.about-photo-strip img {
  width: 100%; height: 200px; object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.about-photo-strip img:hover { transform: scale(1.04); }

/* Timeline */
.timeline {
  max-width: 720px; margin: 0 auto;
  position: relative; padding-left: 40px;
}
.timeline::before {
  content: ''; position: absolute;
  left: 14px; top: 0; bottom: 0;
  width: 2px; background: rgba(255,255,255,0.15);
}
.timeline-item {
  position: relative; margin-bottom: 36px;
}
.timeline-item::before {
  content: ''; position: absolute;
  left: -30px; top: 6px;
  width: 10px; height: 10px;
  background: var(--cranberry); border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
}
.timeline-year {
  font-family: var(--font-display); font-size: 1.4rem;
  font-weight: 900; color: var(--gold);
  margin-bottom: 6px;
}
.timeline-content p {
  font-size: 0.95rem; color: rgba(255,255,255,0.8);
  line-height: 1.7; text-align: justify;
}
.footer-col h4 {
  font-family: var(--font-display); font-size: 0.95rem;
  font-weight: 700; color: var(--white);
  margin-bottom: 20px; letter-spacing: 0.3px;
}
.footer-col a {
  display: block; font-size: 0.92rem; color: rgba(255,255,255,0.6);
  padding: 4px 0; transition: color var(--transition);
}
.footer-col a:hover { color: var(--cranberry-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,0.4); }
.footer-bottom a {
  font-size: 0.85rem; color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--cranberry-light); }

/* ================================================================
   COOKIE CONSENT
   ================================================================ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 4000;
  background: var(--gray-900); color: var(--white);
  padding: 20px 0;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cookie-inner p { font-size: 0.92rem; color: rgba(255,255,255,0.8); flex: 1; min-width: 280px; }
.cookie-btns { display: flex; gap: 12px; }
.cookie-accept {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  padding: 10px 24px; border-radius: var(--radius-sm);
  background: var(--cranberry); color: var(--white); border: none;
  cursor: pointer; transition: background var(--transition);
}
.cookie-accept:hover { background: var(--cranberry-dark); }
.cookie-decline {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  padding: 10px 24px; border-radius: var(--radius-sm);
  background: transparent; color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.2); cursor: pointer;
  transition: all var(--transition);
}
.cookie-decline:hover { border-color: rgba(255,255,255,0.5); color: var(--white); }

/* ================================================================
   ERROR PAGES
   ================================================================ */
.error-page {
  min-height: 80vh; display: flex; align-items: center;
  justify-content: center; text-align: center;
  padding: 60px 24px; margin-top: var(--header-height);
}
.error-page h1 {
  font-family: var(--font-display); font-size: 6rem;
  font-weight: 900; color: var(--cranberry); line-height: 1;
  margin-bottom: 16px;
}
.error-page h2 {
  font-family: var(--font-display); font-size: 1.6rem;
  font-weight: 700; color: var(--gray-900); margin-bottom: 12px;
}
.error-page p { color: var(--gray-500); margin-bottom: 32px; }

/* ================================================================
   PHOTO GALLERY
   ================================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
}
.gallery-item {
  position: relative; overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
}
.gallery-item-wide {
  grid-column: span 2;
}
.gallery-item img {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.3px;
  opacity: 0; transform: translateY(8px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item:hover .gallery-caption {
  opacity: 1; transform: translateY(0);
}

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 5000;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
  padding: 40px; cursor: pointer;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 85vh;
  object-fit: contain; border-radius: var(--radius-sm);
  cursor: default;
}
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  background: none; border: none; color: rgba(255,255,255,0.7);
  font-size: 2rem; cursor: pointer; line-height: 1;
  transition: color var(--transition);
}
.lightbox-close:hover { color: var(--white); }

/* ================================================================
   DRR HISTORY PAGE
   ================================================================ */

/* Featured current DRR */
.drr-featured {
  display: grid; grid-template-columns: 260px 1fr; gap: 48px;
  align-items: center; max-width: 800px; margin: 0 auto;
}
.drr-featured-photo img {
  width: 100%; aspect-ratio: 3 / 4;
  object-fit: cover; border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}
.drr-badge {
  display: inline-block; font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.5px;
  padding: 6px 16px; border-radius: 20px; margin-bottom: 12px;
  text-transform: uppercase;
}
.drr-badge-current { background: var(--cranberry); color: var(--white); }
.drr-badge-incoming { background: var(--gold); color: var(--gray-900); }
.drr-badge-nominee { background: var(--gray-200); color: var(--gray-700); }
.drr-badge-past { background: var(--gray-100); color: var(--gray-500); }

/* Extras grid — DRRE and DRRN side by side */
.drr-extras-grid {
  display: flex; gap: 24px; justify-content: center;
  flex-wrap: wrap; max-width: 900px; margin: 0 auto;
}
.drr-period-label {
  font-family: var(--font-display); font-size: 1rem;
  font-weight: 700; color: var(--gray-400); margin-bottom: 8px;
}
.drr-featured-info h2 {
  font-family: var(--font-display); font-size: 1.8rem;
  font-weight: 800; color: var(--gray-900); margin-bottom: 6px;
}
.drr-rac {
  font-size: 1rem; color: var(--cranberry);
  font-weight: 600; margin-bottom: 12px;
}
.drr-note {
  font-size: 0.95rem; color: var(--gray-500); line-height: 1.6;
}

/* Incoming DRR — smaller horizontal card */
.drr-incoming {
  display: flex; align-items: center; gap: 24px;
  flex: 1 1 380px; max-width: 440px;
  background: var(--white); border-radius: var(--radius-md);
  padding: 24px; box-shadow: var(--shadow-md);
  border-left: 4px solid var(--gold);
}
.drr-incoming-photo img {
  width: 120px; height: 160px;
  object-fit: cover; border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.drr-incoming-info h3 {
  font-family: var(--font-display); font-size: 1.2rem;
  font-weight: 800; color: var(--gray-900); margin-bottom: 4px;
}
.drr-incoming-info .drr-rac { font-size: 0.9rem; margin-bottom: 8px; }
.drr-incoming-info .drr-note { font-size: 0.85rem; }
.drr-incoming:has(.drr-badge-nominee) { border-left-color: var(--gray-300); }

/* ---- Alternating timeline ---- */
.drr-timeline {
  position: relative; max-width: 900px; margin: 48px auto 0;
}
/* Center line */
.drr-timeline::before {
  content: ''; position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 3px; background: rgba(255,255,255,0.12);
  transform: translateX(-50%);
}
.drr-tl-item {
  position: relative;
  width: 50%; padding: 0 40px;
  margin-bottom: 48px;
}
/* Left items align right */
.drr-tl-left { margin-right: auto; text-align: right; }
/* Right items align left */
.drr-tl-right { margin-left: auto; text-align: left; }

/* Dot on the center line */
.drr-tl-dot {
  position: absolute; top: 24px;
  width: 16px; height: 16px;
  background: var(--cranberry); border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.2);
  z-index: 2;
}
.drr-tl-left .drr-tl-dot { right: -8px; }
.drr-tl-right .drr-tl-dot { left: -8px; }

/* Card */
.drr-tl-card {
  display: flex; gap: 16px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s, transform 0.3s;
}
.drr-tl-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.drr-tl-left .drr-tl-card { flex-direction: row-reverse; }
.drr-tl-right .drr-tl-card { flex-direction: row; }

.drr-tl-photo {
  flex-shrink: 0; width: 120px;
}
.drr-tl-photo img {
  width: 100%; height: 100%; min-height: 140px;
  object-fit: cover; object-position: top;
}

.drr-tl-info {
  padding: 16px; display: flex;
  flex-direction: column; justify-content: center;
}
.drr-tl-period {
  display: inline-block;
  font-family: var(--font-display); font-size: 0.75rem;
  font-weight: 700; color: var(--gold);
  margin-bottom: 6px;
}
.drr-tl-info h3 {
  font-family: var(--font-display); font-size: 1.05rem;
  font-weight: 800; color: var(--white); margin-bottom: 4px;
}
.drr-tl-info p {
  font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 2px;
}
.drr-note-small {
  font-size: 0.8rem !important; color: rgba(255,255,255,0.4) !important;
  margin-top: 6px !important; line-height: 1.5;
}

/* ================================================================
   CLUB OF THE YEAR PAGE
   ================================================================ */
.coty-current {
  max-width: 800px; margin: 0 auto; text-align: center;
}
.coty-badge {
  display: inline-block; background: var(--gold);
  color: var(--gray-900); font-family: var(--font-display);
  font-size: 0.9rem; font-weight: 700;
  padding: 8px 20px; border-radius: 20px;
  margin-bottom: 16px;
}
.coty-club-name {
  font-family: var(--font-display); font-size: 2.2rem;
  font-weight: 900; color: var(--cranberry); margin-bottom: 20px;
}
.coty-text {
  font-size: 1.05rem; color: var(--gray-600);
  line-height: 1.8; text-align: justify; margin-bottom: 32px;
}
.coty-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.coty-gallery-item img {
  width: 100%; height: 200px; object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.coty-gallery-item img:hover { transform: scale(1.04); }
.coty-no-photos {
  text-align: center; padding: 48px 0;
}

/* Past winners */
.coty-past-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  max-width: 800px; margin: 0 auto;
}
.coty-past-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 32px; box-shadow: var(--shadow-md);
}
.coty-past-header { margin-bottom: 16px; }
.coty-past-header .drr-card-period {
  display: inline-block; background: var(--gray-100);
  color: var(--cranberry); font-family: var(--font-display);
  font-size: 0.75rem; font-weight: 700;
  padding: 4px 10px; border-radius: 12px;
}
.coty-past-header h3 {
  font-family: var(--font-display); font-size: 1.4rem;
  font-weight: 800; color: var(--cranberry); margin-top: 8px;
}
.coty-past-text {
  font-size: 0.95rem; color: var(--gray-600);
  line-height: 1.7; text-align: justify; margin-bottom: 20px;
}
.coty-past-photos {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px;
}
.coty-past-photos img {
  width: 160px; height: 120px; object-fit: cover;
  border-radius: var(--radius-sm); flex-shrink: 0;
}

/* ================================================================
   ABOUT — ROTARY FAMILY FLOW
   ================================================================ */
.family-flow {
  display: flex; align-items: stretch; justify-content: center;
  gap: 0; max-width: 1000px; margin: 0 auto 40px;
}
.family-img-wrap {
  max-width: 560px; margin: 0 auto 40px;
  border-radius: var(--radius-md); overflow: hidden;
}
.family-img-wrap img {
  width: 100%; display: block; border-radius: var(--radius-md);
}
.family-card {
  flex: 1; padding: 28px 24px; border-radius: var(--radius-md);
  background: var(--white); box-shadow: var(--shadow-md);
  text-align: center; position: relative;
  border-top: 4px solid var(--gray-200);
}
.family-interact { border-top-color: #00a2e0; }
.family-rotaract { border-top-color: var(--cranberry); }
.family-rotary { border-top-color: #f59e0b; }
.family-logo {
  display: block; max-width: 180px; height: 50px;
  object-fit: contain; margin: 0 auto 14px;
}
.family-card h3 {
  font-family: var(--font-display); font-size: 1.15rem;
  font-weight: 800; color: var(--gray-900); margin-bottom: 6px;
}
.family-age {
  display: inline-block; font-family: var(--font-display);
  font-size: 0.75rem; font-weight: 700; color: var(--white);
  background: var(--gray-400); padding: 2px 10px;
  border-radius: 10px; margin-bottom: 12px;
}
.family-interact .family-age { background: #00a2e0; }
.family-rotaract .family-age { background: var(--cranberry); }
.family-rotary .family-age { background: #f59e0b; color: var(--gray-900); }
.family-card p {
  font-size: 0.85rem; color: var(--gray-500); line-height: 1.6; text-align: left;
}
.family-arrow {
  display: flex; align-items: center; padding: 0 12px;
  font-size: 1.5rem; color: var(--cranberry); font-weight: 700;
  flex-shrink: 0;
}
.family-rotex {
  display: flex; align-items: flex-start; gap: 20px;
  max-width: 700px; margin: 0 auto;
  padding: 28px; border-radius: var(--radius-md);
  background: var(--gray-50); border: 1px solid var(--gray-100);
}
.family-rotex-logo {
  width: 64px; height: 64px; flex-shrink: 0;
  object-fit: contain; margin-top: 2px;
}
.family-rotex h4 {
  font-family: var(--font-display); font-size: 1.1rem;
  font-weight: 700; color: var(--gray-900); margin-bottom: 8px;
}
.family-rotex p {
  font-size: 0.85rem; color: var(--gray-500); line-height: 1.7;
  white-space: pre-line;
}
.family-rotex-links {
  display: flex; flex-direction: column; gap: 8px; margin-top: 16px;
}
.family-rotex-links a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600; color: var(--cranberry);
  text-decoration: none; transition: color var(--transition), transform var(--transition);
  padding: 6px 14px;
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm); width: fit-content;
}
.family-rotex-links a:hover {
  color: var(--white); background: var(--cranberry);
  border-color: var(--cranberry); transform: translateX(4px);
}

/* ================================================================
   ABOUT — STRUCTURE PYRAMID
   ================================================================ */
.structure-pyramid {
  max-width: 800px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 0;
}
.structure-level {
  padding: 28px 32px; position: relative;
  border-left: 4px solid var(--gray-200);
  margin-left: 20px;
}
.structure-level::before {
  content: ''; position: absolute; left: -12px; top: 32px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--gray-200);
}
.structure-level-ri { border-left-color: var(--royal-blue); }
.structure-level-ri::before { background: var(--royal-blue); box-shadow: 0 0 0 2px var(--royal-blue); }
.structure-level-zone { border-left-color: #f59e0b; }
.structure-level-zone::before { background: #f59e0b; box-shadow: 0 0 0 2px #f59e0b; }
.structure-level-district { border-left-color: var(--cranberry); }
.structure-level-district::before { background: var(--cranberry); box-shadow: 0 0 0 2px var(--cranberry); }
.structure-level-club { border-left-color: #22c55e; }
.structure-level-club::before { background: #22c55e; box-shadow: 0 0 0 2px #22c55e; }
.structure-label {
  font-family: var(--font-display); font-size: 1.15rem;
  font-weight: 800; color: var(--gray-900); margin-bottom: 8px;
}
.structure-level p {
  font-size: 0.9rem; color: var(--gray-500); line-height: 1.7;
}

/* ================================================================
   ABOUT — ROLES
   ================================================================ */
.roles-two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  max-width: 900px; margin: 0 auto;
}
.roles-col {
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-md); background: var(--white);
}
.roles-col-header {
  padding: 20px 24px;
}
.roles-col-header h3 {
  font-family: var(--font-display); font-size: 1.1rem;
  font-weight: 800; color: var(--white); margin: 0;
}
.roles-col-header-cranberry { background: var(--cranberry); }
.roles-col-body { padding: 8px 0; }
.role-row {
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-50);
}
.role-row:last-child { border-bottom: none; }
.role-title {
  font-family: var(--font-display); font-size: 0.85rem;
  font-weight: 800; color: var(--gray-900);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.role-row p {
  font-size: 0.85rem; color: var(--gray-500); line-height: 1.6; margin: 0;
}
.role-row-note {
  background: var(--gray-50); border-bottom: none;
}
.role-row-note p {
  font-size: 0.82rem; color: var(--gray-400); font-style: italic;
}

/* ================================================================
   ABOUT — EVENTS & MEETINGS
   ================================================================ */
.events-list {
  display: grid; grid-template-columns: 1fr; gap: 20px;
  max-width: 800px; margin: 0 auto;
}
.event-info-card {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 24px; background: var(--white);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.event-info-card:hover { box-shadow: var(--shadow-md); }
.event-info-badge {
  flex-shrink: 0; font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px;
  padding: 4px 10px; border-radius: 4px; text-transform: uppercase;
  margin-top: 2px;
}
.event-badge-europe { background: var(--cranberry); color: var(--white); }
.event-badge-district { background: var(--gold); color: var(--gray-900); }
.event-badge-zone { background: #00a2e0; color: var(--white); }
.event-badge-ri { background: var(--royal-blue); color: var(--white); }
.event-info-card h3 {
  font-family: var(--font-display); font-size: 1.05rem;
  font-weight: 800; color: var(--gray-900); margin-bottom: 6px;
}
.event-info-card p {
  font-size: 0.9rem; color: var(--gray-500); line-height: 1.7;
}
.event-info-card:has(.event-badge-europe) { border-left-color: var(--cranberry); }
.event-info-card:has(.event-badge-district) { border-left-color: var(--gold); }
.event-info-card:has(.event-badge-zone) { border-left-color: #00a2e0; }
.event-info-card:has(.event-badge-ri) { border-left-color: var(--royal-blue); }

/* Secondary events */
.events-secondary {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  max-width: 800px; margin: 32px auto 0;
}
.event-secondary-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px; background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-100);
}
.event-secondary-badge {
  flex-shrink: 0; font-family: var(--font-display);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.3px;
  padding: 3px 8px; border-radius: 3px; text-transform: uppercase;
  background: var(--gray-100); color: var(--gray-500);
  margin-top: 2px;
}
.event-secondary-item h4 {
  font-family: var(--font-display); font-size: 0.9rem;
  font-weight: 700; color: var(--gray-700); margin-bottom: 4px;
}
.event-secondary-item p {
  font-size: 0.82rem; color: var(--gray-400); line-height: 1.6;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .intro-block { grid-template-columns: 1fr; gap: 32px; }
  .intro-block img { min-height: 260px; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .gallery-item-wide { grid-column: span 2; }
  /* Backfill the empty cells created by wide items 7 and 17 so the grid
     has no gaps on 2-column layouts. Item 10 takes row 4 col 2 (next to
     item 6); item 20 takes row 10 col 2 (next to item 16). Auto-flow then
     pushes 7 to row 5 and 17 to row 11 since their reserved columns are
     no longer free. */
  .gallery-item:nth-child(10) { grid-column: 2; grid-row: 4; }
  .gallery-item:nth-child(20) { grid-column: 2; grid-row: 10; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-photo-strip { grid-template-columns: repeat(2, 1fr); }
  .roles-two-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 1.6rem; margin-bottom: 10px; }
  .section-subtitle { margin-bottom: 28px; font-size: 1rem; }
  .nav-desktop { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: flex; }
  .hero { min-height: 75vh; }
  .hero h1 { font-size: 2rem; }
  .hero-text { font-size: 1rem; margin-bottom: 24px; }
  .hero-badge { font-size: 0.7rem; margin-bottom: 16px; }
  .hero-subtitle { font-size: 1rem; margin-bottom: 16px; }
  .hero-content { padding: 40px 0; }
  .pillars-grid { grid-template-columns: 1fr; gap: 16px; }
  .pillar-card { padding: 28px 24px; }
  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 24px 0; }
  .stat-item h3 { font-size: 1.5rem; }
  .stat-item p { font-size: 0.7rem; letter-spacing: 0.5px; }
  .stats-divider { margin: 8px auto; }
  .stats-heading { font-size: 1.2rem; }
  .stats-label { font-size: 0.65rem; }
  .stats-block .stats-row { padding: 16px 0 8px; }
  .video-wrapper { max-width: 100%; }
  .video-play-btn { width: 60px; height: 60px; }
  .reasons-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  #clubs-map { height: 300px; }
  .hero-btns { flex-direction: column; gap: 10px; }
  .hero-btns .btn { text-align: center; justify-content: center; padding: 12px 24px; font-size: 0.9rem; }
  .page-hero { padding: 100px 0 40px; }
  .page-hero h1 { font-size: 1.8rem; }
  .page-hero p { font-size: 1rem; }
  .project-modal-inner { padding: 24px; }
  .toast { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; gap: 10px; }
  .gallery-item-wide { grid-column: span 2; }
  .gallery-caption { opacity: 1; transform: translateY(0); font-size: 0.75rem; padding: 10px 14px; }
  .about-photo-strip { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .about-photo-strip img { height: 140px; }
  .content-block h2 { font-size: 1.4rem; }
  .content-block p { font-size: 0.95rem; }
  .intro-block { gap: 24px; }
  .intro-block img { min-height: 220px; }
  .intro-text p { font-size: 1rem; }
  .cta-block h2 { font-size: 1.6rem; }
  .cta-block p { font-size: 1rem; margin-bottom: 24px; }
  .values-grid { gap: 16px; }
  .value-card { padding: 20px 18px; }
  .fourway-box { padding: 24px; }
  .fourway-box h3 { font-size: 1.4rem; }
  .fourway-list li { font-size: 0.95rem; padding: 10px 16px; }
  .cookie-inner { flex-direction: column; gap: 16px; text-align: center; }
  .cookie-inner p { min-width: auto; font-size: 0.85rem; }
  .timeline { padding-left: 32px; }
  .timeline-year { font-size: 1.1rem; }
  .timeline-content p { font-size: 0.9rem; }
  .timeline-item { margin-bottom: 28px; }
  .drr-featured { grid-template-columns: 1fr; gap: 24px; text-align: center; max-width: 400px; }
  .drr-featured-photo img { max-width: 220px; margin: 0 auto; }
  .drr-featured-info h2 { font-size: 1.4rem; }
  .drr-incoming { flex-direction: column; text-align: center; gap: 16px; flex: 1 1 100%; max-width: 100%; }
  .drr-incoming-photo img { width: 100px; height: 130px; }
  .drr-extras-grid { flex-direction: column; align-items: center; }
  /* Timeline: single column on mobile */
  .drr-timeline::before { left: 16px; }
  .drr-tl-item { width: 100%; padding: 0 0 0 44px; text-align: left; margin-bottom: 32px; }
  .drr-tl-left, .drr-tl-right { margin-left: 0; margin-right: 0; }
  .drr-tl-left .drr-tl-dot, .drr-tl-right .drr-tl-dot { left: 8px; right: auto; }
  .drr-tl-left .drr-tl-card, .drr-tl-right .drr-tl-card { flex-direction: row; }
  .drr-tl-photo { width: 90px; }
  .drr-tl-photo img { min-height: 110px; }
  .drr-tl-info h3 { font-size: 0.95rem; }
  .coty-club-name { font-size: 1.6rem; }
  .coty-gallery { grid-template-columns: repeat(2, 1fr); }
  .coty-past-card { padding: 20px; }
  /* About structure sections */
  .family-flow { flex-direction: column; align-items: center; gap: 16px; }
  .family-arrow { transform: rotate(90deg); padding: 4px 0; }
  .family-card { max-width: 400px; width: 100%; }
  .structure-level { padding: 20px 24px; margin-left: 12px; }
  .event-info-card { flex-direction: column; gap: 12px; }
  .event-info-badge { align-self: flex-start; }
  .events-secondary { grid-template-columns: 1fr; }
  .family-img-wrap { max-width: 400px; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .container { padding: 0 14px; }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: 1.75rem; }
  .hero-content { padding: 32px 0; }
  .reason-card { flex-direction: column; gap: 10px; padding: 24px; }
  .reason-number { font-size: 1.8rem; }
  .contact-grid { gap: 32px; }
  .stats-row { gap: 8px; }
  .stat-item h3 { font-size: 1.3rem; }
  .stat-item p { font-size: 0.65rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; gap: 8px; }
  .about-photo-strip img { height: 120px; }
  .step-item { gap: 16px; }
  .step-number { width: 40px; height: 40px; font-size: 0.95rem; }
  .join-steps::before { display: none; }
  .join-step { gap: 16px; }
  .join-step-num { width: 48px; height: 48px; font-size: 1.15rem; border-width: 2px; }
  .join-step-body { padding: 18px 20px; }
  .join-step-title { font-size: 1.05rem; }
  .join-step-text { font-size: 0.95rem; }
  .join-step-note { padding: 12px 14px; font-size: 0.88rem; }
  .contact-rotary-card { padding: 20px; }
  .clubs-list { grid-template-columns: 1fr; }
  .drr-tl-photo { width: 70px; }
  .drr-tl-photo img { min-height: 90px; }
  .drr-tl-info { padding: 12px; }
  .drr-tl-info h3 { font-size: 0.9rem; }
  .coty-gallery { grid-template-columns: 1fr; }
  .coty-past-card { padding: 16px; }
  .coty-past-photos img { width: 120px; height: 90px; }
  .family-card { padding: 20px 16px; }
  .family-card p { font-size: 0.8rem; }
  .family-logo { max-width: 140px; height: 40px; }
  .structure-level { padding: 16px 18px; margin-left: 8px; }
  .structure-label { font-size: 1rem; }
  .role-row { padding: 12px 16px; }
  .event-info-card { padding: 18px; }
  .family-rotex { flex-direction: column; text-align: center; align-items: center; }
  .family-rotex-logo { width: 52px; height: 52px; }
  .family-rotex-links { align-items: center; }
  .event-secondary-item { flex-direction: column; gap: 8px; }
}
