:root {
  --rotary-blue: #174b8a;
  --rotary-blue-dark: #102b50;
  --rotary-gold: #f2bd4b;
  --rotary-gold-soft: #ffedc5;
  --rotary-slate: #f4f6f7;
  --rotary-text: #263547;
  --rotary-muted: #657487;
  --rotary-border: #e0e6eb;
  --success: #2e8b57;
  --warning: #d08a1f;
  --danger: #c94b4b;
  --shadow: 0 18px 48px rgba(16, 43, 80, 0.1);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #fff;
  color: var(--rotary-text);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.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;
}

.topbar {
  --scroll-progress: 0;
  position: sticky;
  top: 0;
  z-index: 20;
  color: var(--rotary-blue-dark);
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(16,43,80,.08);
  transition: box-shadow .25s ease, background .25s ease;
  backdrop-filter: blur(14px);
}
.topbar::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--rotary-gold);
  content: "";
  transform: scaleX(var(--scroll-progress));
  transform-origin: left center;
}
.topbar.is-scrolled { box-shadow: 0 8px 26px rgba(16,43,80,.1); }
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 82px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--rotary-blue-dark);
  font-weight: 750;
  line-height: 1.1;
}
.brand-mark {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--rotary-gold);
  color: var(--rotary-blue-dark);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 850;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.55);
}
.brand-logo { width: 158px; height: 66px; object-fit: contain; }
.brand-copy { display: grid; gap: 4px; }
.brand-copy small { color: var(--rotary-muted); font-size: .79rem; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav [data-nav-view] { max-width: 260px; overflow: hidden; white-space: nowrap; }
.nav[data-view="home"] [data-nav-view="history"],
.nav[data-view="history"] [data-nav-view="home"] {
  max-width: 0;
  margin-inline: 0;
  padding-inline: 0;
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
}
.nav.is-transitioning [data-nav-view] {
  transition: max-width .34s cubic-bezier(.22,.68,0,1), max-height .34s cubic-bezier(.22,.68,0,1),
    margin .34s cubic-bezier(.22,.68,0,1), padding .34s cubic-bezier(.22,.68,0,1),
    opacity .24s ease, transform .34s cubic-bezier(.22,.68,0,1);
}
.nav a {
  position: relative;
  color: #43536a;
  font-size: .94rem;
  font-weight: 650;
  transition: color .2s ease;
}
.nav a:not(.nav-action)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--rotary-gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav a:hover { color: var(--rotary-blue); }
.nav-logout { margin: 0; }
.nav-logout button { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.nav-logout button:hover { color: var(--rotary-blue); }
.nav a:hover::after { transform: scaleX(1); }
.nav .nav-action {
  padding: 10px 17px;
  border-radius: 999px;
  background: var(--rotary-blue-dark);
  color: white;
  transition: background .2s ease, transform .2s ease;
}
.nav .nav-action:hover { background: var(--rotary-blue); transform: translateY(-1px); }
.nav-toggle { display: none; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(760px, calc(100svh - 82px));
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
  background: #18395d;
}
.hero-parallax {
  position: absolute;
  z-index: -2;
  inset: -12% 0;
  background: url('https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=2000&q=85') center 46%/cover no-repeat;
  will-change: transform;
}
.hero::after {
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(transparent, rgba(12,31,54,.36));
  content: "";
}
.hero-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,35,64,.92) 0%, rgba(13,35,64,.74) 46%, rgba(13,35,64,.18) 100%);
}
.hero-content { padding-top: 60px; padding-bottom: 90px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(242,189,75,.48);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(242,189,75,.12);
  color: var(--rotary-gold-soft);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 790px;
  margin: 26px 0 18px;
  font-size: clamp(3rem, 7.2vw, 6.4rem);
  font-weight: 750;
  letter-spacing: -.055em;
  line-height: .99;
  animation: rise-in .8s both;
}
.hero h1 span { color: var(--rotary-gold); }
.hero-content > p {
  max-width: 620px;
  margin: 0;
  color: rgba(255,255,255,.85);
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  line-height: 1.8;
  animation: rise-in .8s .12s both;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; animation: rise-in .8s .2s both; }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--rotary-gold);
  color: var(--rotary-blue-dark);
  box-shadow: 0 10px 24px rgba(242,189,75,.18);
}
.btn-primary:hover { background: #ffcf69; box-shadow: 0 14px 28px rgba(242,189,75,.27); }
.btn-secondary { border-color: rgba(255,255,255,.65); color: white; }
.btn-secondary:hover { background: rgba(255,255,255,.1); }
.btn-dark { background: var(--rotary-blue-dark); color: white; }
.btn-dark:hover { background: var(--rotary-blue); }
.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 42px;
  color: rgba(255,255,255,.78);
  font-size: .91rem;
  animation: rise-in .8s .28s both;
}
.hero-note-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rotary-gold); }
.scroll-cue {
  position: absolute;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 30px;
  width: 32px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute;
  top: 9px;
  left: 13px;
  width: 4px;
  height: 9px;
  border-radius: 4px;
  background: var(--rotary-gold);
  animation: scroll-pulse 1.5s infinite;
}

.section { padding: 104px 0; }
.section-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--rotary-blue);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.intro-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; align-items: start; }
.intro-heading h2, .section-heading h2, .club-story h2, .global-copy h2,
.leadership-copy h2, .contact-copy h2 {
  margin: 0;
  color: var(--rotary-blue-dark);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  letter-spacing: -.045em;
  line-height: 1.08;
}
.intro-copy .lead { margin: 0 0 17px; color: var(--rotary-blue-dark); font-size: 1.26rem; font-weight: 550; line-height: 1.7; }
.intro-copy > p:not(.lead) { margin: 0 0 22px; color: var(--rotary-muted); line-height: 1.8; }
.text-link { display: inline-flex; gap: 8px; align-items: center; color: var(--rotary-blue); font-weight: 750; }
.text-link:hover { color: var(--rotary-blue-dark); }
.text-link span, .contact-socials span { transition: transform .2s ease; }
.text-link:hover span, .contact-socials a:hover span { transform: translate(2px,-2px); }

.projects-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, #102b50 0%, #174b8a 100%);
  color: white;
}
.projects-section::after {
  position: absolute;
  z-index: -1;
  top: -260px;
  right: -120px;
  width: 650px;
  height: 650px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255,255,255,.025), 0 0 0 120px rgba(255,255,255,.02);
  content: "";
}
.projects-heading { max-width: 720px; margin-bottom: 40px; }
.projects-heading .section-kicker, .global-section .section-kicker { color: var(--rotary-gold); }
.projects-heading h2 {
  max-width: 690px;
  margin: 0 0 15px;
  color: white;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  letter-spacing: -.045em;
  line-height: 1.08;
}
.projects-heading > p { max-width: 620px; margin: 0; color: rgba(255,255,255,.76); line-height: 1.8; }
.projects-carousel-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.projects-carousel-status { margin: 0; color: rgba(255,255,255,.72); font-size: .82rem; }
.projects-carousel-controls { display: flex; gap: 9px; }
.projects-carousel-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(255,255,255,.09);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, opacity .2s ease;
}
.projects-carousel-button:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--rotary-gold); background: rgba(255,255,255,.16); }
.projects-carousel-button:focus-visible { outline: 3px solid var(--rotary-gold); outline-offset: 3px; }
.projects-carousel-button:disabled { opacity: .38; cursor: not-allowed; }
.projects-grid {
  display: flex;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 1px 14px;
  scroll-padding-inline: 1px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}
.projects-grid.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.projects-grid::-webkit-scrollbar { display: none; }
.project-feature, .project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 0;
  min-height: 310px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 18px;
  background: rgba(255,255,255,.075);
  backdrop-filter: blur(8px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}
.project-feature:hover, .project-card:hover { transform: translateY(-5px); border-color: rgba(242,189,75,.5); background: rgba(255,255,255,.11); }
.project-feature { min-height: 360px; background: rgba(255,255,255,.11); }
.project-icon { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 15px; background: rgba(242,189,75,.14); color: var(--rotary-gold); }
.project-icon svg { width: 32px; height: 32px; }
.project-icon-main { width: 58px; height: 58px; }
.project-icon-main svg { width: 38px; height: 38px; }
.project-label { display: block; margin-top: 21px; color: var(--rotary-gold); font-size: .73rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.project-feature .project-label { margin-top: 16px; }
.project-feature h3, .project-card h3 { margin: 8px 0 10px; color: white; font-size: 1.4rem; line-height: 1.25; }
.project-feature h3 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); }
.project-feature p, .project-card p { margin: 0 0 20px; color: rgba(255,255,255,.77); font-size: .94rem; line-height: 1.75; }
.project-feature .btn { margin-top: auto; }

.projects-page-hero { padding: 82px 0; background: linear-gradient(135deg, #102b50 0%, #174b8a 100%); color: white; }
.projects-page-hero .container { max-width: 920px; }
.projects-page-hero .section-kicker { color: var(--rotary-gold); }
.projects-page-hero h1 { max-width: 760px; margin: 0 0 16px; font-size: clamp(2.5rem, 5vw, 4.4rem); letter-spacing: -.045em; line-height: 1.05; }
.projects-page-hero p { max-width: 650px; margin: 0; color: rgba(255,255,255,.78); font-size: 1.08rem; line-height: 1.8; }
.project-bank-section { background: linear-gradient(135deg, #edf3fa 0%, #f7f4ed 100%); }
.project-bank-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(270px, .7fr); gap: 56px; align-items: center; }
.project-bank-copy h2 { max-width: 650px; margin: 0 0 18px; color: var(--rotary-blue-dark); font-size: clamp(2.1rem, 4vw, 3.35rem); letter-spacing: -.04em; line-height: 1.1; }
.project-bank-copy p { max-width: 700px; margin: 0 0 16px; color: var(--rotary-muted); line-height: 1.8; }
.project-bank-copy .btn { margin-top: 8px; }
.project-bank-highlight { padding: 34px; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: linear-gradient(145deg, #102b50 0%, #174b8a 100%); color: white; box-shadow: 0 22px 48px rgba(16,43,80,.16); }
.project-bank-icon { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 17px; background: rgba(242,189,75,.14); color: var(--rotary-gold); }
.project-bank-icon svg { width: 38px; height: 38px; }
.project-bank-highlight h3 { margin: 20px 0 12px; color: white; font-size: 1.45rem; line-height: 1.25; }
.project-bank-highlight p { margin: 0; color: rgba(255,255,255,.76); line-height: 1.75; }
.recognition-section { background: linear-gradient(145deg, #102b50 0%, #174b8a 58%, #0f3869 100%); color: white; }
.recognition-heading { max-width: 740px; margin-bottom: 42px; }
.recognition-heading .section-kicker { color: var(--rotary-gold); }
.recognition-heading h2 { margin: 0 0 16px; color: white; font-size: clamp(2.2rem, 4vw, 3.8rem); letter-spacing: -.045em; line-height: 1.08; }
.recognition-heading p { max-width: 650px; margin: 0; color: rgba(255,255,255,.76); line-height: 1.8; }
.recognition-empty { margin: 0; padding: 24px; border: 1px solid rgba(255,255,255,.17); border-radius: 14px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.8); }
.recognition-years { display: grid; gap: 42px; }
.recognition-year > h3 { margin: 0 0 18px; color: var(--rotary-gold); font-size: 1.6rem; }
.recognition-institutions { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.recognition-card { padding: 24px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: rgba(255,255,255,.08); }
.recognition-card-featured { border: 2px solid var(--rotary-gold); box-shadow: 0 0 22px rgba(242,189,75,.16); }
.recognition-card-label { color: var(--rotary-gold); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.recognition-card h4 { margin: 8px 0 18px; color: white; font-size: 1.2rem; }
.recognition-demo-badge { display: inline-block; margin: -8px 0 16px; padding: 5px 9px; border: 1px solid rgba(242,189,75,.55); border-radius: 999px; background: rgba(242,189,75,.12); color: #ffe09a; font-size: .7rem; font-weight: 800; }
.recognition-card dl { display: grid; gap: 13px; margin: 0; }
.recognition-card dl > div { display: grid; gap: 3px; }
.recognition-card dt { color: rgba(255,255,255,.67); font-size: .8rem; }
.recognition-card dd { margin: 0; color: white; font-weight: 700; line-height: 1.5; }
.recognition-card > p { margin: 0; color: rgba(255,255,255,.74); line-height: 1.6; }
.table-actions { display: flex; align-items: center; gap: 8px; }
.table-actions form { margin: 0; }
.btn-danger { border-color: #b83d4b; background: #b83d4b; color: white; }
.btn-danger:hover { border-color: #982f3b; background: #982f3b; }

.section-heading { max-width: 700px; margin-bottom: 42px; }
.section-heading h2 { margin-bottom: 16px; }
.section-heading > p { max-width: 620px; margin: 0; color: var(--rotary-muted); line-height: 1.8; }
.causes-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.cause-card {
  position: relative;
  min-height: 220px;
  padding: 23px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--cause-color) 20%, white);
  border-radius: 16px;
  background: #fff;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
  box-shadow: 0 8px 22px rgba(16,43,80,.035);
  --cause-color: #3d76a8;
}
.cause-card::before {
  position: absolute;
  top: -38px;
  right: -34px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--cause-color) 9%, white);
  content: "";
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.cause-card::after {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--cause-color);
  content: "";
  transform: scaleX(.24);
  transform-origin: left;
  transition: transform .35s ease;
}
.cause-card:hover { transform: translateY(-7px); border-color: color-mix(in srgb, var(--cause-color) 48%, white); box-shadow: 0 20px 38px rgba(16,43,80,.11); }
.cause-card:hover::before { transform: scale(1.4); }
.cause-card:hover::after { transform: scaleX(1); }
.cause-number { position: absolute; z-index: 1; top: 25px; right: 22px; color: color-mix(in srgb, var(--cause-color) 78%, #263547); font-size: .74rem; font-weight: 800; letter-spacing: .12em; }
.cause-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 16px;
  background: color-mix(in srgb, var(--cause-color) 11%, white);
  color: var(--cause-color);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), background .35s ease;
}
.cause-icon svg { width: 36px; height: 36px; }
.cause-card:hover .cause-icon { transform: rotate(-5deg) scale(1.08); background: color-mix(in srgb, var(--cause-color) 16%, white); }
.cause-card h3 { position: relative; margin: 18px 0 8px; color: var(--rotary-blue-dark); font-size: 1.12rem; line-height: 1.3; }
.cause-card p { position: relative; margin: 0; color: var(--rotary-muted); font-size: .9rem; line-height: 1.65; }
.cause-peace { --cause-color: #7657a5; }
.cause-health { --cause-color: #d65b63; }
.cause-water { --cause-color: #2588b7; }
.cause-maternal { --cause-color: #d38154; }
.cause-education { --cause-color: #c49a28; }
.cause-economy { --cause-color: #43856a; }
.cause-environment { --cause-color: #568b4f; }
.cause-source { margin: 22px 0 0; color: var(--rotary-muted); font-size: .84rem; }
.cause-source a { margin-left: 5px; color: var(--rotary-blue); font-weight: 700; }

.club-section { background: linear-gradient(135deg, #edf3fa 0%, #f7f4ed 100%); }
.club-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.club-story h2 { margin-bottom: 21px; }
.club-story p { margin: 0 0 16px; color: var(--rotary-muted); line-height: 1.8; }
.club-story .btn { margin-top: 12px; }
.club-side { display: grid; gap: 16px; }
.club-facts-heading { padding: 0 2px 3px; }
.club-facts-heading .motto-kicker { margin-bottom: 4px; }
.club-facts-heading h3 { margin: 0; color: var(--rotary-blue-dark); font-size: 1.35rem; letter-spacing: -.025em; }
.club-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.club-fact {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  border: 1px solid rgba(16,43,80,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.75);
  box-shadow: 0 12px 26px rgba(16,43,80,.045);
}
.club-fact strong { color: var(--rotary-blue); font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.05em; line-height: 1; }
.club-fact span { margin-top: 11px; color: var(--rotary-muted); font-size: .83rem; line-height: 1.45; }
.motto-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  min-height: 150px;
  padding: 22px 26px;
  border: 1px solid rgba(194,145,54,.22);
  border-radius: 18px;
  background: #fff9eb;
}
.motto-kicker { display: block; margin-bottom: 7px; color: #96620d; font-size: .71rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.motto-card h3 { max-width: 245px; margin: 0; color: var(--rotary-blue-dark); font-size: 1.42rem; line-height: 1.2; }
.motto-card img { width: min(40%, 220px); max-height: 105px; object-fit: contain; }

.global-section { position: relative; overflow: hidden; background: linear-gradient(135deg, #102b50 0%, #174b8a 100%); color: white; }
.global-section > .container { position: relative; z-index: 1; }
.global-section::after {
  position: absolute;
  top: 100px;
  right: -230px;
  width: 780px;
  height: 780px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  box-shadow: 0 0 0 65px rgba(255,255,255,.025), 0 0 0 130px rgba(255,255,255,.02);
  content: "";
  pointer-events: none;
}
.global-intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: 100px; align-items: center; margin-bottom: 76px; }
.global-copy h2 { max-width: 640px; color: white; }
.global-copy p { max-width: 620px; margin: 20px 0 23px; color: rgba(255,255,255,.75); line-height: 1.8; }
.text-link-light { color: var(--rotary-gold); }
.text-link-light:hover { color: var(--rotary-gold-soft); }
.global-stat { padding: 32px; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; background: rgba(255,255,255,.07); }
.global-stat > strong { display: block; color: var(--rotary-gold); font-size: clamp(3.2rem, 6vw, 5rem); letter-spacing: -.06em; line-height: 1; }
.global-stat > strong span { font-size: .39em; letter-spacing: 0; }
.global-stat p { max-width: 330px; margin: 15px 0 20px; color: rgba(255,255,255,.82); font-size: 1.05rem; }
.global-stat-foot { display: block; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.17); color: var(--rotary-gold-soft); font-size: .87rem; font-weight: 650; }
.global-section .section-heading { max-width: 730px; margin-bottom: 34px; }
.global-section .section-heading h2 { color: white; }
.global-section .section-heading > p { color: rgba(255,255,255,.7); }
.global-section .causes-grid { position: relative; z-index: 1; }
.global-section .cause-card {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  box-shadow: 0 10px 24px rgba(3,18,37,.1);
  backdrop-filter: blur(7px);
}
.global-section .cause-card:hover { border-color: color-mix(in srgb, var(--cause-color) 72%, white); background: rgba(255,255,255,.14); }
.global-section .cause-card h3 { color: white; }
.global-section .cause-card p { color: rgba(255,255,255,.72); }
.global-section .cause-number { color: color-mix(in srgb, var(--cause-color) 60%, white); }
.global-section .cause-icon { background: color-mix(in srgb, var(--cause-color) 23%, #102b50); }
.global-section .cause-icon:hover { background: color-mix(in srgb, var(--cause-color) 34%, #102b50); }
.global-section .cause-source { margin-top: 25px; color: rgba(255,255,255,.67); }
.global-section .cause-source a { color: var(--rotary-gold); }

.leadership-section { background: linear-gradient(135deg, #fff 0%, #edf3fa 100%); }
.club-leadership-layout { margin-top: 72px; padding-top: 64px; border-top: 1px solid rgba(16,43,80,.12); scroll-margin-top: 100px; }
.global-district-context { margin: 0 0 76px; padding-top: 62px; border-top: 1px solid rgba(255,255,255,.18); }
.global-district-context .section-kicker { color: var(--rotary-gold); }
.leadership-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 90px; align-items: center; }
.leadership-photo { position: relative; width: min(100%, 400px); justify-self: center; }
.leadership-photo > img, .portrait-placeholder { width: 100%; aspect-ratio: 4 / 4.7; border-radius: 22px; object-fit: cover; }
.portrait-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: linear-gradient(145deg, #dce8f1 0%, #aebfd1 100%);
  color: var(--rotary-blue-dark);
}
.portrait-placeholder > span { font-size: 5rem; font-weight: 750; letter-spacing: -.08em; }
.portrait-placeholder small { font-size: .86rem; font-weight: 650; }
.photo-caption { position: absolute; right: -12px; bottom: 24px; padding: 10px 15px; border-radius: 999px; background: var(--rotary-gold); color: var(--rotary-blue-dark); font-size: .82rem; font-weight: 750; }
.leadership-copy h2 { margin-bottom: 16px; }
.leadership-copy > p { margin: 0 0 24px; color: var(--rotary-muted); line-height: 1.8; }
.leaders-list { border-top: 1px solid #d6dee6; }
.leaders-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid #d6dee6; }
.leaders-list span { color: var(--rotary-muted); font-size: .92rem; }
.leaders-list strong { color: var(--rotary-blue-dark); text-align: right; font-size: .94rem; }
.district-governor {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  width: min(100%, 920px);
  margin: 56px auto 0;
  overflow: hidden;
  border: 1px solid rgba(23,75,138,.15);
  border-radius: 22px;
  background: white;
  box-shadow: 0 22px 54px rgba(16,43,80,.12);
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.district-governor:hover { transform: translateY(-4px); border-color: rgba(23,75,138,.3); background: #f9fbfd; }
.district-governor-photo { display: block; width: calc(100% - 36px); max-height: 390px; margin: 18px auto 0; aspect-ratio: 16 / 8.88; border-radius: 14px; object-fit: cover; object-position: center 42%; }
.district-governor-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 24px; }
.district-person { display: grid; align-content: start; gap: 8px; padding: 17px 19px; border: 1px solid var(--rotary-border); border-radius: 14px; background: #f7f9fc; }
.district-governor-label { color: var(--rotary-blue); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.district-person > strong { color: var(--rotary-blue-dark); font-size: 1.17rem; }
.district-governor-link { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin-top: 1px; color: var(--rotary-blue); font-size: .86rem; font-weight: 700; }
.district-governor-link > span { color: var(--rotary-blue); transition: transform .2s ease; }
.district-governor:hover .district-governor-link > span { transform: translate(2px,-2px); }
.leadership-motto { width: min(100%, 920px); margin: 24px auto 0; }

.contact-section { background: #eaf0f6; }
.contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 100px; align-items: center; }
.contact-copy h2 { max-width: 650px; }
.contact-copy p { max-width: 580px; margin: 20px 0 24px; color: var(--rotary-muted); line-height: 1.8; }
.contact-details { display: grid; gap: 22px; padding: 30px; border: 1px solid var(--rotary-border); border-radius: 18px; box-shadow: var(--shadow); }
.contact-details > div { display: grid; gap: 4px; }
.contact-label { color: var(--rotary-muted); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-details a { color: var(--rotary-blue-dark); font-weight: 650; line-height: 1.65; }
.contact-details a:hover { color: var(--rotary-blue); }
.contact-socials { display: flex !important; flex-direction: row; gap: 20px !important; padding-top: 14px; border-top: 1px solid var(--rotary-border); }
.contact-socials a { display: inline-flex; align-items: center; gap: 6px; }

.footer { background: #0c203b; color: rgba(255,255,255,.74); padding: 42px 0 18px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr .7fr; gap: 30px; }
.footer-about { max-width: 340px; }
.footer-brand { color: white; font-size: 1.1rem; font-weight: 750; }
.footer-about p { margin: 10px 0 0; font-size: .9rem; line-height: 1.7; }
.footer-contact, .footer-social { display: grid; align-content: start; gap: 8px; }
.footer-contact strong, .footer-social strong { margin-bottom: 4px; color: white; font-size: .9rem; }
.footer-contact a, .footer-social a { width: fit-content; font-size: .88rem; }
.footer-contact a:hover, .footer-social a:hover, .footer-bottom a:hover { color: var(--rotary-gold); }
.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  padding-top: 17px;
  border-top: 1px solid rgba(255,255,255,.13);
  font-size: .82rem;
}

.auth-shell {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
  padding: 56px 24px;
  background: linear-gradient(135deg, #edf4ff 0%, #f7f4ef 100%);
}
.auth-card {
  width: min(480px, 100%);
  padding: 38px;
  border: 1px solid var(--rotary-border);
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow);
}
.auth-card .eyebrow { margin-bottom: 18px; background: #fff4dc; color: #8d5c08; border-color: #efdbb2; }
.auth-card h1 { margin: 0 0 10px; color: var(--rotary-blue-dark); font-size: 2rem; line-height: 1.2; }
.auth-card > p { margin: 0 0 24px; color: var(--rotary-muted); }
.form-grid { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { color: var(--rotary-blue-dark); font-weight: 650; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rotary-border);
  border-radius: 10px;
  background: #f9fbfd;
  color: var(--rotary-text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(23,75,138,.15); border-color: var(--rotary-blue); }
.auth-submit { width: 100%; }
.alert { padding: 10px 12px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }
.alert.error { background: rgba(201,75,75,.08); border: 1px solid rgba(201,75,75,.25); color: #8a2e2e; }

.dashboard-shell { display: flex; min-height: calc(100vh - 220px); background: linear-gradient(135deg,#0c1d3d 0%,#153765 56%,#1b4a83 100%); }
.sidebar {
  flex: 0 0 260px;
  background: linear-gradient(180deg,#10264c 0%,#173b70 100%);
  color: white;
  padding: 20px 16px;
}
.sidebar-nav { display: grid; gap: 10px; }
.sidebar-nav a { padding: 10px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.055); transition: background .2s ease, border-color .2s ease; }
.sidebar-nav a:hover { background: rgba(255,255,255,.15); }
.sidebar-nav a[aria-current="page"] { border-color: rgba(255,255,255,.24); background: #24508a; }
.sidebar-logout { margin: 0; }
.sidebar-logout button { width: 100%; padding: 10px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.055); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sidebar-logout button:hover { background: rgba(255,255,255,.15); }
.dashboard-main { flex: 1; min-width: 0; padding: 28px; }
.dashboard-heading { margin: 0 0 24px; }
.dashboard-heading h1 { margin: 8px 0; color: white; font-size: clamp(2rem,4vw,3rem); }
.dashboard-heading p { max-width: 680px; color: rgba(235,243,255,.78); }
.panel { margin-bottom: 24px; padding: 24px; border: 1px solid rgba(178,205,240,.15); border-radius: 18px; background: linear-gradient(145deg,#132b53 0%,#17345f 100%); color: #eaf2ff; box-shadow: 0 18px 48px rgba(3,13,31,.22); }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.panel-header h2, .panel-header h3 { margin: 0; color: white; }
.module-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.module-tabs a { padding: 10px 16px; border: 1px solid rgba(198,218,245,.18); border-radius: 999px; background: #17345f; color: #eaf2ff; font-weight: 700; }
.module-tabs a:hover, .module-tabs a[aria-current="page"] { border-color: rgba(255,255,255,.32); background: #28558e; color: white; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.summary-card { padding: 18px; border: 1px solid rgba(198,218,245,.14); border-radius: 14px; background: linear-gradient(145deg,#20477d 0%,#1b3c6b 100%); }
.summary-card small { display: block; margin-bottom: 8px; color: rgba(235,243,255,.74); }
.summary-card strong { color: white; font-size: 1.8rem; }
.summary-card span { display: block; margin-top: 7px; color: rgba(235,243,255,.72); font-size: .86rem; }
.dashboard-metrics { grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); margin-bottom: 24px; }
.visits-chart { display: flex; align-items: end; gap: 8px; min-height: 190px; overflow-x: auto; padding: 18px 4px 0; border-bottom: 1px solid var(--rotary-border); }
.visits-chart-day { flex: 1 0 34px; display: flex; align-items: center; flex-direction: column; justify-content: end; gap: 7px; height: 170px; }
.visits-chart-value, .visits-chart-label { color: rgba(235,243,255,.72); font-size: .7rem; }
.visits-chart-bar { display: block; width: min(100%,28px); min-height: 6px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg,var(--rotary-gold),var(--rotary-blue)); }
.profile-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 28px; margin: 0; }
.profile-details > div { padding: 14px 0; border-bottom: 1px solid rgba(198,218,245,.14); }
.profile-details dt { color: rgba(235,243,255,.7); font-size: .86rem; }
.profile-details dd { margin: 4px 0 0; color: white; font-weight: 650; overflow-wrap: anywhere; }
.quick-links { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 12px; }
.quick-link { display: flex; justify-content: space-between; gap: 12px; padding: 16px; border: 1px solid rgba(198,218,245,.16); border-radius: 12px; background: #1d416f; color: white; font-weight: 700; transition: background .2s ease, transform .2s ease; }
.quick-link:hover { background: #28558e; transform: translateY(-2px); }
.table-subtext { display: block; margin-top: 3px; color: rgba(235,243,255,.65); font-size: .8rem; }
.inline-form { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.inline-form input[type="date"] { min-width: 135px; padding: 7px; border: 1px solid var(--rotary-border); border-radius: 8px; }
.text-danger-button { padding: 0; border: 0; background: transparent; color: #ff9a9a; font-weight: 700; cursor: pointer; }
.checkbox-field { display: flex; align-items: center; gap: 10px; }
.checkbox-field input { width: 18px; height: 18px; accent-color: var(--rotary-gold); }
.alert.success { background: rgba(46,139,87,.09); border: 1px solid rgba(46,139,87,.25); color: #246843; }
.member-form { grid-template-columns: repeat(3,minmax(0,1fr)); }
.member-account-fields { grid-column: 1/-1; padding: 16px; border: 1px solid rgba(198,218,245,.15); border-radius: 12px; background: #1d416f; }
.member-account-fields > p { margin: 0 0 14px; color: rgba(235,243,255,.75); }
.member-account-fields .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.member-submit { grid-column: 1/-1; }
.settings-user-select { display: flex; align-items: end; gap: 14px; margin-bottom: 22px; }
.settings-user-select .field { flex: 1; }
.settings-user-select > .btn-secondary { border-color: #28558e; background: #24508a; color: white; }
.settings-user-select > .btn-secondary:hover { border-color: #3970b5; background: #285b9a; }
.settings-submit { margin-top: 18px; }
.permissions-table { min-width: 640px; }
.permissions-table td { min-width: 105px; }
.permission-checkbox { display: flex; align-items: center; justify-content: center; gap: 8px; color: white; font-weight: 700; cursor: pointer; }
.permission-checkbox input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--rotary-gold); cursor: pointer; }
.permission-yes { display: none; }
.permission-checkbox input[type="checkbox"]:checked + .permission-yes { display: inline; }
.permission-checkbox input[type="checkbox"]:checked ~ .permission-no { display: none; }
.nav-logout button { padding: 0; }
body:has(.dashboard-shell) { background: #0c1d3d; color: #eaf2ff; }
body:has(.dashboard-shell) .footer { background: linear-gradient(110deg,#0c1d3d 0%,#153765 100%); }
body:has(.dashboard-shell) .text-link { color: #9dc8ff; }
body:has(.dashboard-shell) .text-link:hover { color: white; }
body:has(.dashboard-shell) .history-admin-main .panel-header h1 { color: white; }
body:has(.dashboard-shell) .history-admin-intro,
body:has(.dashboard-shell) .history-admin-savebar span { color: rgba(235,243,255,.76); }
body:has(.dashboard-shell) .history-admin-display-option { border-color: rgba(198,218,245,.15); background: #1d416f; }
body:has(.dashboard-shell) .history-admin-display-option label,
body:has(.dashboard-shell) .history-admin-display-option small { color: #eaf2ff; }
body:has(.dashboard-shell) .history-admin-savebar { border-color: rgba(198,218,245,.18); background: #18345e; }
body:has(.dashboard-shell) .history-admin-table { color: var(--rotary-text); }
body:has(.dashboard-shell) .history-admin-table th,
body:has(.dashboard-shell) .history-admin-table td { border-color: var(--rotary-border); background: #f8fbff; }
body:has(.dashboard-shell) .history-admin-table thead th { background: #dce9f8; color: var(--rotary-blue-dark); }
body:has(.dashboard-shell) .history-admin-table tbody th strong { color: var(--rotary-blue-dark); }
body:has(.dashboard-shell) .history-admin-table tbody th small { color: var(--rotary-muted); }
body:has(.dashboard-shell) .history-admin-table tbody th .history-admin-theme-label { color: var(--rotary-blue); }
body:has(.dashboard-shell) .auth-shell { background: linear-gradient(135deg,#0c1d3d 0%,#1b4a83 100%); }
body:has(.dashboard-shell) .auth-card { border-color: rgba(198,218,245,.18); background: #132b53; color: #eaf2ff; }
body:has(.dashboard-shell) .auth-card h1 { color: white; }
body:has(.dashboard-shell) .auth-card > p { color: rgba(235,243,255,.76); }
body:has(.dashboard-shell) .field label { color: #eaf2ff; }
body:has(.dashboard-shell) .badge:not(.success):not(.warning):not(.danger) { background: #24508a; color: white; }
body:has(.auth-shell) { background: #0c1d3d; color: #eaf2ff; }
body:has(.auth-shell) .footer { background: linear-gradient(110deg,#0c1d3d 0%,#153765 100%); }
body:has(.auth-shell) .auth-shell { background: linear-gradient(135deg,#0c1d3d 0%,#1b4a83 100%); }
body:has(.auth-shell) .auth-card { border-color: rgba(198,218,245,.18); background: #132b53; color: #eaf2ff; }
body:has(.auth-shell) .auth-card h1 { color: white; }
body:has(.auth-shell) .auth-card > p { color: rgba(235,243,255,.76); }
body:has(.auth-shell) .field label { color: #eaf2ff; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 900px; border-collapse: collapse; color: #eaf2ff; }
th, td { padding: 12px 10px; border-bottom: 1px solid rgba(198,218,245,.14); text-align: left; }
th { background: #20477d; color: white; }
.badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge.success { background: rgba(46,139,87,.12); color: var(--success); }
.badge.warning { background: rgba(208,138,31,.12); color: var(--warning); }
.badge.danger { background: rgba(201,75,75,.12); color: var(--danger); }
.js-motion .reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity .7s cubic-bezier(.2,.65,.25,1), transform .7s cubic-bezier(.2,.65,.25,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.js-motion .reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mobile-nav-item-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 1; transform: translateY(0); }
  70% { opacity: .25; transform: translateY(9px); }
}

@media (max-width: 1000px) {
  .nav { gap: 17px; }
  .nav a { font-size: .88rem; }
  .intro-layout, .club-layout, .global-intro, .leadership-layout, .contact-layout { gap: 52px; }
  .project-feature, .project-card { flex-basis: calc((100% - 16px) / 2); }
  .causes-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .container { width: min(100% - 36px, 600px); }
  .topbar-inner { min-height: 72px; }
  .brand-logo { width: 134px; height: 56px; }
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--rotary-border);
    border-radius: 50%;
    background: white;
    color: var(--rotary-blue-dark);
    cursor: pointer;
  }
  .nav-toggle-lines, .nav-toggle-lines::before, .nav-toggle-lines::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s ease;
  }
  .nav-toggle-lines { position: relative; }
  .nav-toggle-lines::before, .nav-toggle-lines::after { position: absolute; left: 0; content: ""; }
  .nav-toggle-lines::before { top: -6px; }
  .nav-toggle-lines::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-lines { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-lines::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-lines::after { top: 0; transform: rotate(-45deg); }
  .nav {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 8px 22px 18px;
    border-bottom: 1px solid var(--rotary-border);
    background: white;
    box-shadow: 0 16px 24px rgba(16,43,80,.1);
  }
  .nav.is-open { display: flex; }
  .nav [data-nav-view] { max-height: 48px; }
  .nav[data-view="home"] [data-nav-view="history"],
  .nav[data-view="history"] [data-nav-view="home"] {
    max-width: 100%;
    max-height: 0;
    margin-block: 0;
    padding-block: 0;
    transform: translateY(-8px);
  }
  .nav.is-open a { animation: mobile-nav-item-in .32s both; }
  .nav.is-open a:nth-child(2) { animation-delay: 35ms; }
  .nav.is-open a:nth-child(3) { animation-delay: 70ms; }
  .nav.is-open a:nth-child(4) { animation-delay: 105ms; }
  .nav.is-open a:nth-child(5) { animation-delay: 140ms; }
  .nav.is-open a:nth-child(6) { animation-delay: 175ms; }
  .nav.is-open a:nth-child(7) { animation-delay: 210ms; }
  .nav.is-open a:nth-child(8) { animation-delay: 245ms; }
  .nav.is-open a:nth-child(9) { animation-delay: 280ms; }
  .nav.is-open.is-transitioning a { animation: none; }
  .nav a { padding: 12px 4px; }
  .nav a:not(.nav-action)::after { display: none; }
  .nav .nav-action { margin-top: 6px; padding: 11px 16px; text-align: center; }
  .nav-logout { padding: 12px 4px; }
  .hero { min-height: 670px; min-height: min(720px, calc(100svh - 72px)); background-position: 58% center; }
  .hero-shade { background: linear-gradient(90deg,rgba(13,35,64,.88),rgba(13,35,64,.62)); }
  .hero-content { padding-top: 55px; padding-bottom: 65px; }
  .hero h1 { font-size: clamp(3.1rem, 12vw, 5.2rem); }
  .scroll-cue { right: 24px; }
  .section { padding: 76px 0; }
  .project-feature, .project-card { flex-basis: calc((100% - 16px) / 2); }
  .club-layout, .global-intro, .leadership-layout, .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .causes-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .club-facts { gap: 11px; }
  .global-intro { margin-bottom: 58px; }
  .global-stat { max-width: 440px; }
  .leadership-layout { gap: 40px; }
  .club-leadership-layout { margin-top: 52px; padding-top: 42px; }
  .global-district-context { margin-bottom: 56px; padding-top: 42px; }
  .leadership-photo { width: min(100%, 360px); justify-self: start; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .footer-bottom { grid-column: 1 / -1; }
  .dashboard-shell { display: block; }
  .sidebar { position: sticky; z-index: 15; top: 72px; width: 100%; padding: 10px 12px; }
  .sidebar-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 3px; overscroll-behavior-x: contain; scrollbar-width: none; }
  .sidebar-nav::-webkit-scrollbar { display: none; }
  .sidebar-nav a, .sidebar-logout button { flex: 0 0 auto; padding: 9px 12px; white-space: nowrap; }
  .sidebar-logout { flex: 0 0 auto; margin: 0; }
  .dashboard-main { padding: 20px; }
  .dashboard-main form.form-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .member-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 480px) {
  .container { width: calc(100% - 32px); }
  .brand-logo { width: 120px; height: 50px; }
  .brand-mark { flex-basis: 42px; width: 42px; height: 42px; }
  .hero { min-height: 650px; }
  .hero .eyebrow { font-size: .66rem; letter-spacing: .05em; }
  .hero-actions { align-items: stretch; flex-direction: column; max-width: 300px; }
  .hero-note { max-width: 280px; font-size: .82rem; }
  .section { padding: 66px 0; }
  .projects-carousel-toolbar { margin-bottom: 10px; }
  .project-feature, .project-card { flex-basis: 100%; }
  .project-feature, .project-card { min-height: 0; padding: 24px; }
  .project-feature .btn { width: 100%; }
  .causes-grid { grid-template-columns: 1fr; }
  .cause-card { min-height: 180px; }
  .club-facts { grid-template-columns: 1fr 1fr; }
  .district-governor { margin-top: 40px; border-radius: 16px; }
  .district-governor-photo { object-position: center; }
  .district-governor-info { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .district-governor-link { grid-column: auto; }
  .club-fact { min-height: 125px; padding: 17px; }
  .club-fact:last-child { grid-column: 1 / -1; }
  .club-fact strong { font-size: 2.25rem; }
  .motto-card { align-items: flex-start; flex-direction: column; }
  .motto-card img { width: min(100%, 260px); max-height: 100px; }
  .leaders-list > div { flex-direction: column; gap: 2px; }
  .leaders-list strong { text-align: left; }
  .contact-details { padding: 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-about, .footer-bottom { grid-column: 1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 5px; }
  .auth-shell { min-height: calc(100vh - 260px); padding: 36px 16px; }
  .auth-card { padding: 27px 22px; }
  .dashboard-main { padding: 14px; }
  .panel { padding: 16px; }
  .dashboard-main form.form-grid, .summary-grid, .profile-details, .member-form, .member-account-fields .form-grid { grid-template-columns: 1fr !important; }
  .settings-user-select { align-items: stretch; flex-direction: column; }
  .member-account-fields, .member-submit { grid-column: auto; }
  .dashboard-metrics { grid-template-columns: 1fr !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-parallax { transform: none !important; }
  .js-motion .reveal { opacity: 1; transform: none; }
  .projects-grid { scroll-behavior: auto; }
}

.club-story .text-link { display: flex; width: fit-content; margin-top: 18px; }
.history-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 450px;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(120deg, #102b50 0%, #174b8a 72%, #1d5a9c 100%);
  color: white;
}
.history-hero-inner { position: relative; z-index: 1; padding-top: 78px; padding-bottom: 78px; }
.history-hero .section-kicker { color: var(--rotary-gold); }
.history-hero h1 {
  max-width: 760px;
  margin: 10px 0 18px;
  font-size: clamp(2.6rem, 6vw, 5rem);
  letter-spacing: -.05em;
  line-height: 1.03;
}
.history-hero h1 span { color: var(--rotary-gold); }
.history-hero p { max-width: 640px; margin: 0 0 28px; color: rgba(255,255,255,.82); font-size: 1.08rem; line-height: 1.8; }
.history-hero-orbit {
  position: absolute;
  z-index: -1;
  top: -250px;
  right: max(-100px, calc((100vw - 1180px) / 2 - 190px));
  width: 660px;
  aspect-ratio: 1;
  border: 1px solid rgba(242,189,75,.55);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(242,189,75,.06), 0 0 0 88px rgba(242,189,75,.05), 0 0 0 160px rgba(242,189,75,.035);
}
.history-section { background: linear-gradient(145deg, #102b50 0%, #174b8a 58%, #0f3869 100%); }
.history-heading { max-width: 780px; margin: 0 auto 48px; text-align: center; }
.history-heading .section-kicker { color: var(--rotary-gold); }
.history-heading h2 { margin: 8px 0 16px; color: white; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.04em; line-height: 1.12; }
.history-heading p { max-width: 680px; margin: 0 auto; color: rgba(255,255,255,.78); line-height: 1.8; }
.history-decade-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin: 0 auto 34px; }
.history-decade-nav a { padding: 8px 13px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: white; font-size: .85rem; font-weight: 700; transition: background .2s ease, border-color .2s ease; }
.history-decade-nav a:hover, .history-decade-nav a:focus-visible { border-color: var(--rotary-gold); background: rgba(255,255,255,.12); }
.history-decade { max-width: 1320px; margin: 48px auto 0; scroll-margin-top: 100px; }
.history-decade > h3 { margin: 0 0 18px; color: var(--rotary-gold); font-size: 1.25rem; letter-spacing: .03em; }
.history-timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px 18px; }
.history-entry {
  display: flex;
  min-width: 0;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  padding: 8px 14px 18px;
  text-align: center;
}
.history-entry-period {
  margin: 0;
  padding: 5px 12px;
  border: 1px solid rgba(242,189,75,.48);
  border-radius: 999px;
  background: rgba(242,189,75,.12);
  color: var(--rotary-gold-soft);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.3;
}
.history-entry-period span { font-weight: 500; }
.history-entry-role { margin: 0 0 2px; padding: 5px 11px; border: 1px solid rgba(242,189,75,.62); border-radius: 999px; background: rgba(242,189,75,.17); color: #ffe09a; font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.history-portrait-wrap { position: relative; display: grid; width: 142px; height: 142px; flex: 0 0 142px; place-items: center; }
.history-portrait-rings { position: absolute; inset: 0; width: 142px; height: 142px; overflow: visible; }
.history-portrait {
  position: relative;
  z-index: 1;
  display: grid;
  width: 124px;
  height: 124px;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  background: #e8eff6;
  color: var(--rotary-blue);
}
.history-portrait img { width: 124px; height: 124px; border-radius: 50%; object-fit: cover; object-position: center 28%; }
.history-portrait > svg { width: 80px; height: 80px; }
.history-entry-copy { display: grid; min-width: 0; width: 100%; justify-items: center; flex: 1; text-align: center; }
.history-entry-motto { margin: 7px 0 0; color: rgba(255,255,255,.82); font-size: .94rem; font-style: italic; line-height: 1.45; text-align: center; }
.history-entry-motto strong { color: white; font-style: normal; }
.history-entry h3 { margin: 0; color: white; font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 800; line-height: 1.25; text-align: center; }
.history-note { max-width: 670px; margin: 28px auto 0; color: rgba(255,255,255,.76); font-size: .9rem; text-align: center; }
.history-admin-main .panel-header h1 { margin: 0; color: var(--rotary-blue-dark); font-size: 1.45rem; }
.history-admin-intro { max-width: 850px; margin: 0 0 22px; color: var(--rotary-muted); }
.alert.success { background: rgba(46,139,87,.09); border: 1px solid rgba(46,139,87,.28); color: #206b40; }
.history-admin-bulk-form { display: grid; min-width: 0; gap: 14px; }
.history-admin-display-option { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--rotary-border); border-radius: 12px; background: #f7f9fc; }
.history-admin-display-option label { display: flex; align-items: flex-start; gap: 10px; color: var(--rotary-blue-dark); font-weight: 700; }
.history-admin-display-option input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--rotary-blue); }
.history-admin-display-option small { margin-left: 28px; color: var(--rotary-muted); line-height: 1.5; }
.history-admin-savebar { position: sticky; z-index: 3; top: 84px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 14px; border: 1px solid var(--rotary-border); border-radius: 12px; background: rgba(255,255,255,.97); box-shadow: 0 8px 24px rgba(16,43,80,.08); }
.history-admin-savebar span { color: var(--rotary-muted); font-size: .88rem; }
.history-admin-savebar-bottom { position: static; }
.history-admin-table-wrap { width: 100%; max-width: 100%; min-width: 0; max-height: 72vh; overflow: auto; overscroll-behavior-x: contain; border: 1px solid var(--rotary-border); border-radius: 12px; }
.history-admin-table { width: 100%; min-width: 900px; border-collapse: separate; border-spacing: 0; }
.history-admin-president-elect { display: block; margin-bottom: 7px; color: var(--rotary-blue-dark); font-size: .79rem; font-weight: 750; line-height: 1.4; }
.history-admin-table thead { position: sticky; z-index: 2; top: 0; }
.history-admin-table th, .history-admin-table td { min-width: 0; padding: 10px 12px; border-bottom: 1px solid var(--rotary-border); background: white; vertical-align: middle; }
.history-admin-table thead th { background: #edf3fa; color: var(--rotary-blue-dark); font-size: .82rem; }
.history-admin-table tbody th { width: 225px; text-align: left; }
.history-admin-table tbody th strong, .history-admin-table tbody th small { display: block; }
.history-admin-table tbody th strong { color: var(--rotary-blue-dark); }
.history-admin-table tbody th small { margin-top: 3px; color: var(--rotary-muted); font-size: .75rem; font-weight: 400; }
.history-admin-table tbody th .history-admin-theme-label { max-width: 245px; color: var(--rotary-blue); font-size: .79rem; }
.history-admin-table input[type="text"], .history-admin-table input[type="url"] { width: 100%; min-width: 190px; padding: 9px 10px; border: 1px solid var(--rotary-border); border-radius: 8px; background: #fbfcfe; color: var(--rotary-text); }
.history-admin-table input:focus { outline: 3px solid rgba(23,75,138,.15); border-color: var(--rotary-blue); }
.history-admin-photo { display: grid; justify-items: start; gap: 7px; color: var(--rotary-muted); font-size: .76rem; }
.history-admin-photo img { width: 46px; height: 46px; border: 2px solid var(--rotary-gold); border-radius: 50%; object-fit: cover; }
.history-admin-photo input[type="file"] { width: 180px; max-width: 100%; font-size: .75rem; }
.history-admin-no-photo { display: grid; width: 46px; height: 46px; place-items: center; border: 1px dashed #b9c5d2; border-radius: 50%; color: var(--rotary-muted); font-size: .62rem; }
.history-admin-table .history-admin-remove-photo { margin-top: 6px; font-size: .75rem; }
.history-admin-table .history-admin-remove-photo input { width: 14px; height: 14px; }
.history-admin-list { display: grid; gap: 10px; }
.history-admin-period { overflow: hidden; border: 1px solid var(--rotary-border); border-radius: 12px; background: white; }
.history-admin-period summary { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; color: var(--rotary-blue-dark); cursor: pointer; list-style: none; }
.history-admin-period summary::-webkit-details-marker { display: none; }
.history-admin-period summary::after { width: 10px; height: 10px; flex: 0 0 10px; border-right: 2px solid var(--rotary-blue); border-bottom: 2px solid var(--rotary-blue); content: ""; transform: rotate(45deg) translateY(-2px); transition: transform .18s ease; }
.history-admin-period[open] summary::after { transform: rotate(225deg) translate(-2px, -1px); }
.history-admin-period summary > span:first-child { display: grid; gap: 2px; }
.history-admin-period summary strong { font-size: .97rem; }
.history-admin-period summary small { color: var(--rotary-muted); font-size: .78rem; }
.history-admin-president { margin-left: auto; color: var(--rotary-muted); font-size: .88rem; text-align: right; }
.history-admin-form { display: grid; gap: 16px; padding: 4px 16px 18px; border-top: 1px solid var(--rotary-border); }
.history-admin-theme { display: grid; gap: 3px; padding: 12px 14px; border-radius: 10px; background: #f2f6fa; }
.history-admin-theme span, .history-admin-fields .field small { color: var(--rotary-muted); font-size: .8rem; }
.history-admin-theme strong { color: var(--rotary-blue-dark); }
.history-admin-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.history-admin-fields input[type="file"] { padding: 9px; background: white; }
.history-admin-source { grid-column: span 2; }
.history-admin-current-photo { display: flex; align-items: center; gap: 12px; color: var(--rotary-muted); font-size: .85rem; }
.history-admin-current-photo img { width: 64px; height: 64px; border: 2px solid var(--rotary-gold); border-radius: 50%; object-fit: cover; }
.history-admin-remove-photo { display: flex; width: fit-content; align-items: center; gap: 8px; color: var(--rotary-muted); font-size: .88rem; }
.history-admin-remove-photo input { width: 16px; height: 16px; accent-color: var(--rotary-blue); }
.history-admin-form .btn { justify-self: start; }

@media (max-width: 767px) {
  .projects-page-hero { padding: 66px 0; }
  .project-bank-layout { grid-template-columns: 1fr; gap: 30px; }
  .project-bank-highlight { padding: 26px; }
  .recognition-institutions { grid-template-columns: 1fr; }
  .history-hero { min-height: 420px; }
  .history-hero-inner { padding-top: 68px; padding-bottom: 68px; }
  .history-hero-orbit { top: -160px; right: -370px; width: 560px; }
  .history-heading { margin-bottom: 38px; text-align: left; }
  .history-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 8px; }
  .history-entry { gap: 10px; padding: 8px 6px 16px; }
  .history-entry-copy { max-width: 100%; }
  .history-entry h3 { font-size: 1.02rem; }
  .history-entry-motto { font-size: .86rem; }
  .history-admin-fields { grid-template-columns: 1fr; }
  .history-admin-source { grid-column: auto; }
  .history-admin-period summary { align-items: flex-start; }
  .history-admin-president { max-width: 42%; }
}
@media (min-width: 768px) and (max-width: 1050px) {
  .history-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .history-timeline { grid-template-columns: 1fr; }
}
