:root {
  --navy: #1e6b34;
  --navy-dark: #123e1e;
  --gold: #7c4dbb;
  --gold-light: #ded0f0;
  --grey-bg: #f5f6f8;
  --text: #232323;
  --muted: #6b7280;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 4px 14px rgba(18, 62, 30, 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--grey-bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1140px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand .crest {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--gold-light);
}

.brand .crest img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text .title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.brand-text .subtitle {
  font-size: 11px;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #dbe3ef;
  font-size: 14.5px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(201,162,75,0.18);
  color: var(--gold-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 10px 20px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 70px 20px;
  text-align: center;
}

.hero.small { padding: 46px 20px; }

.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 14px;
}

.hero p {
  max-width: 650px;
  margin: 0 auto;
  color: #cfd8e6;
  font-size: 1.05rem;
}

.hero .gold-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 18px auto 0;
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 30px;
  margin-top: 24px;
  font-size: 14.5px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(201,162,75,0.35); }

.btn.outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold-light);
}

/* Sections */
section { padding: 56px 0; }

.section-title {
  text-align: center;
  margin-bottom: 8px;
  font-size: 1.9rem;
  color: var(--navy);
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 34px;
}

.section-eyebrow {
  text-align: center;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

/* Cards / Grids */
.grid {
  display: grid;
  gap: 24px;
}

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

@media (max-width: 900px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card .card-media {
  height: 150px;
  background: linear-gradient(135deg, var(--navy) 0%, #1c3b63 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 2rem;
}

.card .card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }

.card .tag {
  align-self: flex-start;
  background: var(--gold-light);
  color: var(--navy);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.card h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--navy); }
.card p { color: var(--muted); font-size: 14.5px; margin: 0 0 12px; }
.card .meta { font-size: 12.5px; color: var(--gold); font-weight: 600; margin-top: auto; }

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 28px 16px;
}
.stat-card .num { font-size: 2.2rem; font-weight: 800; color: var(--navy); }
.stat-card .label { color: var(--muted); font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Timeline (History page) */
.timeline {
  position: relative;
  margin: 0 auto;
  max-width: 800px;
  padding-left: 30px;
  border-left: 3px solid var(--gold-light);
}

.timeline-item {
  position: relative;
  margin-bottom: 34px;
  padding-left: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -39px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--navy);
}

.timeline-item .year {
  font-weight: 800;
  color: var(--navy);
  font-size: 1.05rem;
}

.timeline-item p { color: var(--muted); margin: 6px 0 0; }

/* Committee */
.person-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 26px 18px;
}

.person-card .avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--navy-dark);
  font-size: 1.3rem;
}

.person-card h3 { margin: 0 0 4px; color: var(--navy); font-size: 1.05rem; }
.person-card .role { color: var(--gold); font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.person-card .contact { font-size: 12.5px; color: var(--muted); }

/* Membership Directory */
.search-bar {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin: 0 auto 30px;
  flex-wrap: wrap;
}

.search-bar input, .search-bar select {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  font-size: 14.5px;
  min-width: 160px;
}

table.directory {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

table.directory th, table.directory td {
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid #edf0f4;
}

table.directory th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.4px;
}

table.directory tr:last-child td { border-bottom: none; }
table.directory tr:hover td { background: #f8f9fb; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
}
.badge.active { background: #e3f5e9; color: #1c8a4a; }
.badge.honorary { background: var(--gold-light); color: var(--navy); }

.member-note {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 16px;
}

/* CSR */
.csr-banner {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin-bottom: 40px;
}
.csr-banner h2 { margin-top: 0; }
.csr-banner p { color: #cfd8e6; max-width: 700px; margin: 0 auto; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 50px 20px;
}
.cta-band h2 { margin-top: 0; }
.cta-band p { color: #cfd8e6; }

/* Footer */
footer.site-footer {
  background: var(--navy-dark);
  color: #b9c3d4;
  padding: 44px 0 22px;
}

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

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid h4 {
  color: var(--gold-light);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 14px; }
.footer-grid a:hover { color: var(--gold-light); }

.social-links { display: flex; gap: 12px; margin-top: 6px; }
.social-links a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--gold-light);
}
.social-links a:hover { background: var(--gold); color: var(--navy-dark); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
  text-align: center;
  font-size: 12.5px;
  color: #7c8aa0;
}

/* Page header (inner pages) */
.page-crumb { color: var(--gold-light); font-size: 13px; margin-top: 8px; }
