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

:root {
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10b981;
  --green-100: #d1fae5;
  --green-50: #ecfdf5;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1120px;
  --header-height: 72px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-700);
  line-height: 1.7;
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--green-700);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--green-600);
}

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

h1, h2, h3, h4 {
  color: var(--gray-900);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.35rem; }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--green-800);
  white-space: nowrap;
}

.logo-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-icon img {
  height: 72px;
  width: auto;
  object-fit: contain;
}

/* Desktop nav */
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--green-50);
  color: var(--green-800);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--gray-700);
}

.menu-toggle svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 2.75rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto 2rem;
  opacity: 0.9;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--green-50);
  color: var(--green-900);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-green {
  background: var(--green-700);
  color: var(--white);
  border-color: var(--green-700);
}

.btn-green:hover {
  background: var(--green-800);
  border-color: var(--green-800);
  color: var(--white);
}

/* ===== Page Header (sub-pages) ===== */
.page-header {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.85;
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
}

.section--gray {
  background: var(--gray-50);
}

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

.section-title h2 {
  margin-bottom: 0.75rem;
}

.section-title p {
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Card Grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 2rem;
  transition: box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--green-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--green-700);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin-bottom: 0.6rem;
}

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

/* ===== Objectives (About page) ===== */
.objectives-list {
  display: grid;
  gap: 1.5rem;
  counter-reset: obj;
}

.objective-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.objective-number {
  counter-increment: obj;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--green-700);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 0.1rem;
}

.objective-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.objective-item p {
  font-size: 0.95rem;
  color: var(--gray-600);
}

/* ===== Governance (About page) ===== */
.governance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  text-align: center;
}

.gov-role {
  padding: 1.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
}

.gov-role .role-title {
  font-weight: 700;
  color: var(--green-800);
  margin-bottom: 0.25rem;
}

.gov-role .role-desc {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ===== Membership Benefits ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.benefit-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.benefit-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--green-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

.benefit-check svg {
  width: 16px;
  height: 16px;
  stroke: var(--green-700);
  fill: none;
  stroke-width: 2.5;
}

/* ===== Membership Types ===== */
.membership-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.membership-type {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.membership-type h3 {
  margin-bottom: 0.5rem;
}

.membership-type .price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--green-700);
  margin-bottom: 0.25rem;
}

.membership-type .price-note {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.membership-type ul {
  list-style: none;
  text-align: left;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.membership-type ul li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.membership-type ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 8px;
  height: 8px;
  background: var(--green-500);
  border-radius: 50%;
}

/* ===== Events ===== */
.events-list {
  display: grid;
  gap: 1.5rem;
}

.event-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  transition: box-shadow 0.25s;
}

.event-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.event-date-badge {
  flex-shrink: 0;
  text-align: center;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  min-width: 80px;
}

.event-date-badge .month {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-date-badge .day {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--green-900);
  line-height: 1.2;
}

.event-info h3 {
  margin-bottom: 0.4rem;
}

.event-meta {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.event-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.event-meta svg {
  width: 14px;
  height: 14px;
  stroke: var(--gray-500);
  fill: none;
  stroke-width: 2;
}

.event-tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--green-100);
  color: var(--green-800);
}

.event-tag--upcoming {
  background: #fef3c7;
  color: #92400e;
}

.event-tag--past {
  background: var(--gray-100);
  color: var(--gray-500);
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-500);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  stroke: var(--gray-300);
  fill: none;
  stroke-width: 1.5;
  margin: 0 auto 1.25rem;
}

.empty-state h3 {
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

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

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

.contact-item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--green-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--green-700);
  fill: none;
  stroke-width: 2;
}

.contact-item h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

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

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--gray-700);
  transition: border-color 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

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

/* ===== Highlight Banner ===== */
.highlight-banner {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.highlight-banner h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.highlight-banner p {
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 1.75rem;
}

/* ===== Stats ===== */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.35rem;
}

/* ===== Footer ===== */
.site-footer {
  margin-top: auto;
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 0 1.5rem;
}

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

.footer-about .logo {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-about .logo-icon {
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--gray-500);
}

.footer-links h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

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

.footer-links a {
  color: var(--gray-500);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--green-400);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gray-500);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ===== Application Form ===== */
.apply-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.form-instructions {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.form-section {
  margin-bottom: 1.75rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
}

.form-section-title {
  background: var(--green-800);
  color: var(--white);
  padding: 0.7rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.form-section-body {
  padding: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.radio-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 0.9rem;
  line-height: 1.5;
}

.radio-label:hover {
  border-color: var(--green-500);
  background: var(--green-50);
}

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--green-700);
  flex-shrink: 0;
}

.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  line-height: 1.45;
}

.declaration-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 1.25rem;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.declaration-box ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
}

.declaration-box ul li {
  margin-bottom: 0.35rem;
}

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn-submit {
  width: 100%;
  max-width: 400px;
  justify-content: center;
  font-size: 1rem;
  padding: 0.85rem 2rem;
}

.btn-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.required {
  color: #dc2626;
}

.form-message {
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
}

.form-message--success {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  color: var(--green-800);
}

.form-message--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  margin-top: 1rem;
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    flex-direction: column;
    padding: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

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

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

  .hero {
    padding: 3.5rem 0;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

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

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

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

  .stats-row {
    gap: 2rem;
  }

  .event-card {
    flex-direction: column;
    gap: 1rem;
  }

  .page-header {
    padding: 2.5rem 0;
  }

  .section {
    padding: 3.5rem 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .form-section-body {
    padding: 1rem;
  }
}
