/* ============================================
   Rotary Club of Hosur SIPCOT — Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --royal-blue: #003F87;
  --gold: #F7A81B;
  --light-blue: #0050A0;
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --light-gray: #E9ECEF;
  --dark-gray: #343A40;
  --text-primary: #212529;
  --text-secondary: #6C757D;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.3;
}

a {
  color: var(--light-blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--royal-blue);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--off-white);
}

.section-blue {
  background: var(--royal-blue);
  color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.25rem;
  color: var(--royal-blue);
  margin-bottom: 0.5rem;
}

.section-blue .section-title h2 {
  color: var(--gold);
}

.section-title .underline {
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gold);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-top: 0.75rem;
}

.section-blue .section-title p {
  color: rgba(255, 255, 255, 0.8);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--royal-blue);
}

.nav-brand .rotary-wheel {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--royal-blue);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--royal-blue);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--royal-blue) 0%, var(--light-blue) 50%, #0067CC 100%);
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
  padding-top: 70px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(247, 168, 27, 0.08);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-fourway {
  width: 100%;
  max-width: 440px;
  justify-self: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-fourway img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(247, 168, 27, 0.2);
  border: 1px solid rgba(247, 168, 27, 0.4);
  color: var(--gold);
  padding: 0.4rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.hero h1 .highlight {
  color: var(--gold);
}

.hero .theme {
  font-size: 1.5rem;
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 1rem;
  font-style: italic;
}

.hero .sub-info {
  font-size: 1rem;
  opacity: 0.75;
  margin-bottom: 2rem;
}

.hero .sub-info span {
  margin: 0 0.5rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--royal-blue);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(247, 168, 27, 0.3);
  color: var(--royal-blue);
}

.hero-stats {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

.hero-stat .label {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h3 {
  font-size: 1.5rem;
  color: var(--royal-blue);
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.about-detail {
  background: var(--off-white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}

.about-detail .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.about-detail .value {
  font-weight: 600;
  color: var(--royal-blue);
}

/* --- About Image --- */
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-card-row {
  margin-top: 3rem;
}

.about-card {
  background: linear-gradient(135deg, var(--royal-blue), var(--light-blue));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}

.about-card .motto {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--gold);
}

.about-card .meeting-info {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1rem;
}

.about-card .meeting-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--gold);
}

.about-card .meeting-info p {
  opacity: 0.9;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* --- Leadership Cards --- */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.leader-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid var(--gold);
}

.leader-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.leader-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal-blue), var(--light-blue));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.leader-avatar--photo {
  width: 100px;
  height: 100px;
  overflow: hidden;
  background: var(--off-white);
}

.leader-avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  border-radius: 50%;
}

.leader-card h3 {
  font-size: 1.15rem;
  color: var(--royal-blue);
  margin-bottom: 0.35rem;
}

.leader-card .role {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.leader-card .badge {
  display: inline-block;
  background: rgba(247, 168, 27, 0.12);
  color: var(--gold);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* --- Sub-page Header --- */
.page-header {
  background: linear-gradient(135deg, var(--royal-blue) 0%, var(--light-blue) 100%);
  color: var(--white);
  text-align: center;
  padding: 8rem 0 3.5rem;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.85;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .page-header {
    padding: 6.5rem 0 2.5rem;
  }

  .page-header h1 {
    font-size: 1.9rem;
  }
}

/* --- Past Presidents --- */
.presidents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.president-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--royal-blue);
  transition: transform var(--transition), box-shadow var(--transition);
}

.president-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.president-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal-blue), var(--light-blue));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 0.75rem;
}

.president-card h4 {
  font-size: 0.95rem;
  color: var(--royal-blue);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.president-card .president-year {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-top: 0.25rem;
}

.president-card .president-tag {
  display: inline-block;
  margin-top: 0.5rem;
  background: rgba(0, 63, 135, 0.08);
  color: var(--royal-blue);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* --- Members --- */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.member-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--royal-blue);
  transition: transform var(--transition), box-shadow var(--transition);
}

.member-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.member-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal-blue), var(--light-blue));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 0.75rem;
}

.member-card h4 {
  font-size: 0.95rem;
  color: var(--royal-blue);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.member-card .member-role {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

.members-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --- Presidents & Secretaries (Term Cards) --- */
.term-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.term-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border-top: 3px solid var(--royal-blue);
  transition: transform var(--transition), box-shadow var(--transition);
}

.term-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.term-year {
  background: linear-gradient(135deg, var(--royal-blue), var(--light-blue));
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.term-people {
  padding: 0.5rem 1.25rem 1rem;
}

.term-person {
  padding: 0.6rem 0;
}

.term-person + .term-person {
  border-top: 1px solid var(--light-gray);
}

.term-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.term-name {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

.term-flag {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
  padding: 0.15rem 0.55rem;
  border-radius: 50px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

.term-card--current {
  border-top-color: var(--gold);
}

.term-card--current .term-year {
  background: linear-gradient(135deg, var(--gold), #E0920D);
  color: var(--royal-blue);
}

.term-flag--current {
  background: rgba(0, 63, 135, 0.18);
  color: var(--royal-blue);
}

/* --- Avenue Chairs --- */
.chairs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.chair-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.chair-card:hover {
  transform: translateY(-2px);
}

.chair-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--royal-blue), var(--light-blue));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.chair-card h4 {
  font-size: 0.95rem;
  color: var(--royal-blue);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.chair-card .avenue {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

/* --- Projects --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-header {
  background: linear-gradient(135deg, var(--royal-blue), var(--light-blue));
  color: var(--white);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.project-icon {
  font-size: 2rem;
}

.project-header h3 {
  font-size: 1.15rem;
}

.project-body {
  padding: 1.5rem;
}

.project-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.project-tag {
  display: inline-block;
  background: rgba(0, 63, 135, 0.08);
  color: var(--royal-blue);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* --- Foundation Stats --- */
.foundation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-card .amount {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.stat-card .stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* --- Awards --- */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.award-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.award-item:hover {
  transform: translateX(4px);
}

.award-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.award-item span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.award-category {
  display: inline-block;
  background: rgba(0, 63, 135, 0.08);
  color: var(--royal-blue);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-left: 0.35rem;
}

/* --- Dream Project --- */
.dream-project {
  background: linear-gradient(135deg, var(--royal-blue) 0%, #001F44 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.dream-project::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(247, 168, 27, 0.06);
}

.dream-project h3 {
  font-size: 1.75rem;
  color: var(--gold);
  margin-bottom: 1rem;
  position: relative;
}

.dream-project p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  line-height: 1.8;
}

/* --- Endowment Donors --- */
.donors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.donor-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--gold);
  transition: transform var(--transition);
}

.donor-card:hover {
  transform: translateY(-3px);
}

.donor-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #E0920D);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 0.75rem;
}

.donor-card h4 {
  font-size: 0.95rem;
  color: var(--royal-blue);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.donor-card .donor-level {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  margin-top: 0.25rem;
}

.major-donors {
  margin-top: 2.5rem;
  text-align: center;
}

.major-donors h3 {
  font-size: 1.5rem;
  color: var(--royal-blue);
  margin-bottom: 1.5rem;
}

.major-donors-list {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.major-donor {
  background: var(--off-white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--royal-blue);
}

/* --- Future Leadership Timeline --- */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--gold);
  z-index: 1;
}

.timeline-content {
  width: 42%;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.timeline-content .year {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.timeline-content h4 {
  font-size: 0.95rem;
  color: var(--royal-blue);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.timeline-content .role-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  font-size: 1.5rem;
  color: var(--royal-blue);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--royal-blue);
}

.contact-item h4 {
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--royal-blue);
  margin-bottom: 0.15rem;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-map {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--royal-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  transition: background var(--transition), transform var(--transition);
}

.social-link:hover {
  background: var(--gold);
  color: var(--royal-blue);
  transform: translateY(-2px);
}

/* --- Footer --- */
.footer {
  background: #001A3A;
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.7;
}

.footer-links h4, .footer-quick h4 {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.footer-links ul li, .footer-quick ul li {
  margin-bottom: 0.5rem;
}

.footer-links a, .footer-quick a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover, .footer-quick a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(0, 31, 68, 0.85));
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  transition: padding var(--transition);
}

.gallery-item:hover .gallery-caption {
  padding-bottom: 1rem;
}

/* --- Media Coverage --- */
.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.media-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.media-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.media-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--royal-blue);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--gold);
  transform: translateY(-2px);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    justify-items: center;
  }

  .hero-content {
    text-align: center;
    max-width: 640px;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-fourway {
    max-width: 360px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    max-height: 400px;
  }

  .leadership-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .timeline::before {
    left: 24px;
  }

  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: row;
    padding-left: 50px;
  }

  .timeline-dot {
    left: 24px;
  }

  .timeline-content {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }

  .section-title h2 {
    font-size: 1.75rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    gap: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .theme {
    font-size: 1.2rem;
  }

  .hero-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .hero-stat .number {
    font-size: 1.5rem;
  }

  .leadership-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .foundation-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .awards-grid {
    grid-template-columns: 1fr;
  }

  .donors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .dream-project {
    padding: 2rem 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.65rem;
  }

  .about-details {
    grid-template-columns: 1fr;
  }

  .foundation-grid {
    grid-template-columns: 1fr;
  }

  .donors-grid {
    grid-template-columns: 1fr;
  }

  .major-donors-list {
    flex-direction: column;
    align-items: center;
  }
}
