: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 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 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; }

.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%); }
.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; }
.leadership-copy .motto-card { margin: 25px 0 26px; }
.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); }

.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: #f3f7fb; }
.sidebar {
  flex: 0 0 260px;
  background: linear-gradient(180deg, #12265a 0%, #1d3d7e 100%);
  color: white;
  padding: 28px 20px;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; color: white; font-weight: 750; }
.sidebar-nav { display: grid; gap: 10px; }
.sidebar-nav a { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.07); transition: background .2s ease; }
.sidebar-nav a:hover { background: rgba(255,255,255,.15); }
.dashboard-main { flex: 1; min-width: 0; padding: 28px; }
.panel { margin-bottom: 24px; padding: 24px; border: 1px solid var(--rotary-border); border-radius: 18px; background: white; box-shadow: var(--shadow); }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.panel-header h3 { margin: 0; color: var(--rotary-blue-dark); }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.summary-card { padding: 18px; border: 1px solid var(--rotary-border); border-radius: 14px; background: linear-gradient(180deg,#f8fbff 0%,#edf4ff 100%); }
.summary-card small { display: block; margin-bottom: 8px; color: #61738a; }
.summary-card strong { color: var(--rotary-blue-dark); font-size: 1.8rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 900px; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--rotary-border); text-align: left; }
th { background: #f4f7fb; color: var(--rotary-blue-dark); }
.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 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 a { padding: 12px 4px; }
  .nav a:not(.nav-action)::after { display: none; }
  .nav .nav-action { margin-top: 6px; padding: 11px 16px; text-align: center; }
  .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; }
  .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 { width: 100%; }
  .dashboard-main { padding: 20px; }
  .dashboard-main form.form-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .summary-grid { grid-template-columns: repeat(3,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 { 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; }
}
