:root {
  /* Colors */
  --primary-green: #008751;
  --primary-dark: #00663d;
  --accent-gold: #FFD700;
  --accent-gold-hover: #e6c200;
  --surface-white: #FFFFFF;
  --surface-off-white: #F9FAFB;
  --text-dark: #111827;
  --text-gray: #6B7280;
  --text-light: #9CA3AF;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;

  /* Radius & Shadows */
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--surface-off-white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

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

.text-primary {
  color: var(--primary-green);
}

.text-gold {
  color: var(--accent-gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-heading);
}

.btn-primary {
  background-color: var(--primary-green);
  color: var(--surface-white);
  border: 2px solid var(--primary-green);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
  background-color: rgba(0, 135, 81, 0.05);
  transform: translateY(-2px);
}

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

.btn-white:hover {
  background-color: var(--surface-off-white);
  transform: translateY(-2px);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: var(--spacing-md) 0;
}

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

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
}

.nav-link:hover {
  color: var(--primary-green);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  background: white;
  position: relative;
  overflow: hidden;
}

.hero::after {
  /* Geometric Accent */
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 135, 81, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
}

.hero-text p {
  font-size: 1.125rem;
  color: var(--text-gray);
  margin-bottom: var(--spacing-lg);
  max-width: 500px;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* Placeholder for generated image or user provided image */
  background: #f0f0f0;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Stats Row inside Hero */
.hero-stats {
  display: flex;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

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

.stat-item p {
  font-size: 0.875rem;
  margin: 0;
}


/* Why Join Section */
.benefits {
  padding: 100px 0;
  background-color: var(--surface-off-white);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--spacing-xl);
}

.section-tag {
  text-transform: uppercase;
  color: var(--primary-green);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 1px;
  display: block;
  margin-bottom: var(--spacing-sm);
}

.section-header h2 {
  font-size: 2.5rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.benefit-card {
  background: var(--surface-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 135, 81, 0.2);
}

.icon-box {
  width: 50px;
  height: 50px;
  background-color: rgba(0, 135, 81, 0.1);
  color: var(--primary-green);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
}

/* Roles Section */
.roles {
  padding: 100px 0;
  background: var(--surface-white);
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.role-card {
  padding: var(--spacing-lg);
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-lg);
  text-align: center;
}

.role-card.featured {
  border: 2px solid var(--primary-green);
  background: #f0fdf4;
  position: relative;
  transform: scale(1.05);
}

.role-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gold);
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.role-card h3 {
  margin-bottom: var(--spacing-sm);
}

.role-card ul {
  list-style: none;
  margin: var(--spacing-md) 0;
  text-align: left;
}

.role-card li {
  margin-bottom: 8px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.role-card li::before {
  content: '✓';
  color: var(--primary-green);
  margin-right: 8px;
  font-weight: bold;
}

/* CTA Section */
.cta {
  padding: 100px 0;
  background: var(--primary-green);
  color: var(--surface-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-container {
  background: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-dark);
  position: relative;
  box-shadow: var(--shadow-lg);
}

.cta-header {
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.cta-header h2 {
  color: var(--primary-green);
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.cta-header p {
  color: var(--text-gray);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Tally Embed & Spinner */
.tally-wrapper {
  position: relative;
  width: 100%;
  min-height: 500px;
  /* Min height to show spinner nicely */
}

.tally-iframe {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: var(--radius-md);
  position: relative;
  z-index: 2;
}

.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--primary-green);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 135, 81, 0.1);
  border-left-color: var(--primary-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: var(--spacing-sm);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-logo {
  margin-bottom: var(--spacing-md);
}

.footer h4 {
  color: white;
  margin-bottom: var(--spacing-md);
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 10px;
}

.footer a {
  color: var(--text-gray);
}

.footer a:hover {
  color: var(--accent-gold);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-gray);
}


/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p {
    margin: 0 auto var(--spacing-lg);
  }

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

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
  }

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

  .mobile-toggle {
    display: block;
  }

  .role-card.featured {
    transform: scale(1);
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }
}
/* FAQ Section */
.faq {
    padding: 100px 0;
    background: var(--surface-white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid #E5E7EB;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.accordion-header h3 {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
    padding-right: 20px;
}

.accordion-icon {
    font-size: 1.25rem;
    color: var(--primary-green);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-body {
    padding-bottom: 24px;
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 1rem;
}

/* Active State */
.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-item.active {
    background-color: #F0FDF4; /* Light Green background */
    padding-left: 20px;
    padding-right: 20px;
    border-radius: var(--radius-md);
    border-bottom: none;
    margin-bottom: 10px;
}


/* Mandate Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: start;
    background: #F9FAFB;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    font-family: 'Inter', sans-serif;
}

.mandate-section {
    margin-bottom: 25px;
}

.mandate-section h3 {
    font-size: 1.1rem;
    color: var(--primary-green);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.mandate-section p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 10px;
}

.mandate-list, .mandate-list-simple {
    padding-left: 20px;
    margin-bottom: 15px;
}

.mandate-list li {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.5;
}

.mandate-list-simple li {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    list-style-type: disc;
}

.mandate-requirement {
    background: #F0FDF4;
    padding: 15px;
    border-left: 4px solid var(--primary-green);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #E5E7EB;
    background: #F9FAFB;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

