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

:root {
  --primary: #2D5016;
  --primary-light: #3a6b1e;
  --primary-dark: #1a3a0a;
  --secondary: #8B6914;
  --accent: #C49B2A;
  --bg: #FAF8F5;
  --bg-alt: #E8F0E2;
  --text: #2C2C2C;
  --text-light: #5a5a5a;
  --white: #ffffff;
  --shadow: 0 2px 12px rgba(45,80,22,0.06);
  --shadow-lg: 0 8px 30px rgba(45,80,22,0.1);
  --radius: 10px;
  --danger: #c0392b;
  --danger-bg: #fde8e8;
  --success: #27ae60;
  --success-bg: #e8f8ef;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
}

a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.navbar.scrolled {
  background: var(--primary);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
  padding: 10px 0;
}

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

.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
}

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

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('../images/Main_home_.jpeg') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 58, 10, 0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 20px;
  animation: fadeInUp 0.8s ease;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-primary {
  background: var(--white);
  color: var(--primary);
}

.btn-secondary {
  background: var(--primary);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--primary-light);
}

/* ===== Sections ===== */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.section-subtitle {
  color: var(--text-light);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

.bg-alt { background: var(--bg-alt); }

/* ===== Feature Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-top: 3px solid transparent;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--primary);
}

.card-icon {
  color: var(--primary);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--bg-alt);
  border-radius: 50%;
}

.card-icon svg {
  width: 32px;
  height: 32px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== Inline Stats ===== */
.stats-row-inline {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0;
}

.stat-inline {
  background: var(--white);
  border-radius: 8px;
  padding: 16px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  min-width: 100px;
  flex: 0 1 auto;
}

.stat-number {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Event Cards ===== */
.event-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  border-left: 3px solid var(--primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.event-date-box {
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  padding: 12px 16px;
  text-align: center;
  min-width: 64px;
  flex-shrink: 0;
}

.event-date-box .month { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
.event-date-box .day { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }

.event-info h3 { font-size: 1.1rem; margin-bottom: 4px; }
.event-info .meta { font-size: 0.85rem; color: var(--text-light); margin-bottom: 6px; }
.event-info p { font-size: 0.9rem; color: var(--text-light); }

/* ===== Page Header ===== */
.page-header {
  background: url('../images/Main_home_.jpeg') center/cover no-repeat;
  position: relative;
  padding: 140px 0 60px;
  text-align: center;
  color: var(--white);
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 58, 10, 0.6);
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 { font-size: 2.6rem; margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,0.8); font-size: 1.1rem; }

/* ===== Stats Row ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
  padding: 48px 0;
}

.stat h3 {
  font-size: 2.4rem;
  color: var(--primary);
}

.stat p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ===== Content Sections ===== */
.content-block {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

.content-block p + p { margin-top: 16px; }

.photo-placeholder {
  background: var(--bg-alt);
  border-radius: var(--radius);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.95rem;
  border: 2px dashed #c5d4bb;
  margin: 40px 0;
}

/* ===== Calendar ===== */
.calendar-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.calendar-controls button {
  background: var(--primary);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s;
}

.calendar-controls button:hover { background: var(--primary-light); }
.calendar-controls h2 { font-size: 1.5rem; min-width: 220px; text-align: center; }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  background: #ddd;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.calendar-grid .day-header {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 10px 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calendar-grid .day-cell {
  background: var(--white);
  min-height: 70px;
  padding: 8px;
  font-size: 0.85rem;
  cursor: default;
  transition: background 0.15s;
  position: relative;
}

.calendar-grid .day-cell.empty { background: #f5f5f3; }

.calendar-grid .day-cell.has-event {
  cursor: pointer;
  background: var(--bg-alt);
  font-weight: 600;
}

.calendar-grid .day-cell.has-event::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.calendar-grid .day-cell.has-event:hover { background: #d4e6c8; }

.calendar-grid .day-cell.selected {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
}

.calendar-grid .day-cell.selected::after {
  background: var(--white);
}

.event-detail-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 48px;
  display: none;
  border-left: 3px solid var(--primary);
  animation: fadeInUp 0.3s ease;
}

.event-detail-box.visible { display: block; }
.event-detail-box h3 { color: var(--primary); margin-bottom: 8px; }
.event-detail-box .meta { color: var(--text-light); font-size: 0.9rem; margin-bottom: 8px; }

/* ===== Board Member Cards ===== */
.board-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
  max-width: 920px;
  margin: 0 auto;
}

.board-grid .member-card {
  grid-column: span 2;
}

.board-grid .member-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.board-grid .member-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.member-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.member-photo {
  height: 180px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.member-photo svg {
  width: 72px;
  height: 72px;
}

.member-info {
  padding: 20px;
}

.member-info h3 { font-size: 1.15rem; margin-bottom: 4px; }
.member-info .role { color: var(--secondary); font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.member-info .email { color: var(--text-light); font-size: 0.85rem; }

.reveal-contact {
  margin-top: 6px;
  background: none;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.reveal-contact:hover { background: var(--primary); color: var(--white); }

/* ===== Contact Form ===== */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,80,22,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== Footer ===== */
.footer {
  background: #1a2e0d;
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.footer-links { list-style: none; }
.footer-links li + li { margin-top: 8px; }
.footer-links a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

/* ===== Loading State ===== */
.events-loading {
  text-align: center;
  color: var(--text-light);
  padding: 40px 0;
  font-size: 0.95rem;
}

/* ===== FAQ Accordion ===== */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item[open] {
  box-shadow: var(--shadow-lg);
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 24px;
  font-weight: 600;
  color: var(--primary);
  font-size: 1.05rem;
  list-style: none;
  position: relative;
  padding-right: 48px;
  transition: background 0.15s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--primary);
  transition: transform 0.2s;
  font-weight: 400;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item summary:hover {
  background: var(--bg-alt);
}

.faq-item p {
  padding: 0 24px 20px;
  color: var(--text-light);
  line-height: 1.7;
}

.faq-item p a {
  color: var(--primary);
  text-decoration: underline;
}

.faq-item .accordion-body {
  padding: 0 24px 20px;
  color: var(--text-light);
  line-height: 1.7;
}

.faq-item .accordion-body p {
  margin-bottom: 12px;
}

.faq-item .accordion-body p:last-child {
  margin-bottom: 0;
}

.faq-item .accordion-body ul,
.faq-item .accordion-body ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.faq-item .accordion-body li + li {
  margin-top: 6px;
}

.faq-item .accordion-body a {
  color: var(--primary);
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: var(--primary);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right 0.3s;
    box-shadow: -4px 0 20px rgba(0,0,0,0.2);
  }

  .nav-links.open { right: 0; }

  .hamburger { display: flex; }

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

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

  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .board-grid .member-card,
  .board-grid .member-card:nth-child(4),
  .board-grid .member-card:nth-child(5) { grid-column: auto; }
  .board-grid .member-card:nth-child(5) { grid-column: 1 / -1; max-width: 400px; margin: 0 auto; width: 100%; }

  .event-card { flex-direction: column; }

  .footer-inner { flex-direction: column; }

  .calendar-grid .day-cell { min-height: 50px; padding: 4px; font-size: 0.75rem; }
  .calendar-controls h2 { font-size: 1.2rem; min-width: 180px; }

}
