:root {
  --green: #1f4c3a;
  --green-700: #163729;
  --orange: #c8642a;
  --cream: #f4efe6;
  --ink: #0f1a16;
  --muted: #5a6a63;
  --ring: rgba(31, 76, 58, .25);
  --radius: 14px;
  --shadow: 0 8px 20px rgba(15, 26, 22, .08);
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--cream), #ffffff);
  line-height: 1.55;
}

/* Layout */
.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* Top bar */
.topbar {
  background: var(--green);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  object-fit: cover
}

.brand span {
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
}

/* Links */
.navlinks {
  margin-left: auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.navlinks a {
  color: #dce8e3;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 9px;
}

.navlinks a:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff
}

.navlinks a.active {
  background: #fff;
  color: var(--green);
  font-weight: 700
}

/* Hero */
.hero {
  background:
    radial-gradient(1200px 300px at 50% -120px, rgba(31, 76, 58, .18), transparent),
    linear-gradient(180deg, #ffffff00 0%, #ffffff 65%);
  padding: 64px 0 26px;
  border-bottom: 1px solid rgba(31, 76, 58, .1);
}

.hero-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: grid;
  gap: 18px;
  border: 1px solid rgba(31, 76, 58, .08);
}

.kicker {
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .82rem
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw + 1rem, 2.6rem);
  color: var(--green-700)
}

.hero p {
  margin: 0;
  color: var(--muted)
}

/* Buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--green);
}

.btn.primary {
  background: var(--orange);
  color: #fff;
  border-color: transparent
}

.btn.primary:hover {
  filter: brightness(.96)
}

/* Sections */
.section {
  padding: 34px 0
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(31, 76, 58, .08);
  box-shadow: var(--shadow);
}

.grid-3 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr)
}

.grid-2 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr)
}

@media (max-width:900px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr
  }
}

@media (max-width:640px) {

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr
  }
}

/* Image placeholders */
.ph {
  background: repeating-linear-gradient(-45deg, rgba(31, 76, 58, .08) 0 8px, rgba(198, 100, 42, .08) 8px 16px);
  border: 1px dashed rgba(31, 76, 58, .25);
  border-radius: 12px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 600;
}

/* Schedule table */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(31, 76, 58, .12);
  background: #fff;
  box-shadow: var(--shadow);
}

.table th,
.table td {
  padding: 14px 16px;
  text-align: left
}

.table thead th {
  background: var(--green);
  color: #fff;
  font-weight: 700;
  position: sticky;
  top: 0;
}

.table tbody tr:nth-child(even) {
  background: #faf8f3
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 700;
  background: rgba(198, 100, 42, .12);
  color: var(--orange);
}

/* Board cards */
.member {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: center;
}

.avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(31, 76, 58, .15);
  background: #fff;
}

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

.title {
  font-weight: 800;
  color: var(--green-700)
}

.role {
  color: var(--orange);
  font-weight: 700
}

.meta {
  color: var(--muted)
}

/* Footer */
footer {
  margin-top: 34px;
  padding: 30px 0;
  border-top: 1px solid rgba(31, 76, 58, .12);
  color: var(--muted);
}

footer a {
  color: var(--green-700)
}

/* ---- Gallery (scoped) ---- */
.section.gallery .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  /* closer spacing for gallery images */
}

.section.gallery .card {
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(31, 76, 58, .08);
  aspect-ratio: 4 / 3;
  margin: 0;
  /* slightly taller images for impact */
}

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

.section.gallery .card img:hover {
  transform: scale(1.03);
}
