/* ===========================
   RESET & BASE
=========================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

/* ===========================
   THEME VARIABLES
=========================== */
:root {
  background: fixed;
  background-image: url('BG.JPG');          /* Light minty WhatsApp green background */
  --surface: #ffffff;
  --text: #0a1a11;
  --muted: #3d5c4a;
  --brand: #25D366;       /* WhatsApp original green for buttons */
  --brand-2: #1eb255;     /* Slightly darker hover */
  --ring: rgba(37, 211, 102, 0.35);
  --card: #ffffff;
  --shadow: 0 10px 24px rgba(0,0,0,.1);
}

.dark {
  --bg: #0d1a13;          /* Deep background for dark mode */
  --surface: #101d16;
  --text: #eaf5ee;
  --muted: #9bb8a7;
  --brand: #25D366;       /* WhatsApp green accent */
  --brand-2: #1eb255;
  --ring: rgba(37, 211, 102, 0.35);
  --card: #16251d;
  --shadow: 0 10px 24px rgba(0,0,0,.45);
}






/* ===========================
   CONFETTI
=========================== */
#confetti {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--surface);
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transition: background 0.3s, box-shadow 0.3s;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.logo {
  font-size: 1.5rem;
}
.brand-text {
  letter-spacing: .4px;
  font-size: 1.0rem;
  height: 55px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===========================
   HERO SECTION
=========================== */
.hero {
  max-width: 1100px;
  margin: 24px auto 12px;
  padding: 28px;
  background: linear-gradient(140deg, var(--surface) 0%, var(--card) 65%);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow);
  border-radius: 22px;
  text-align: center;
  transition: transform .2s ease, box-shadow .3s ease;
}
.hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0,0,0,.12);
}
.hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.7rem, 2.5vw, 2.4rem);
  font-weight: 700;
}
.hero p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .12s ease, box-shadow .25s ease, background .25s ease;
  box-shadow: var(--shadow);
  outline: 2px solid transparent;
  outline-offset: 2px;
  user-select: none;
}
.btn:active {
  transform: translateY(1px) scale(0.98);
}
.btn.primary {
  background: var(--brand);
  color: #fff;
}
.btn.primary:hover {
  background: var(--brand-2);
}
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(0,0,0,.12);
}
.btn.ghost:hover {
  background: rgba(0,0,0,.06);
}

/* ===========================
   EVENTS SECTION
=========================== */
.events {
  max-width: 1100px;
  margin: 26px auto;
  padding: 0 18px;
}
.events h2 {
  margin: 10px 0 14px;
  font-size: 1.4rem;
  font-weight: 600;
}

/* ===========================
   GRID & CARDS
=========================== */
.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(1, minmax(0,1fr));
}
@media (min-width: 620px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--card);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 230px;
  transition: transform .18s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(0,0,0,.15);
}
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
}
.icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(26,143,75,.12);
  border: 1px solid rgba(26,143,75,.25);
  border-radius: 12px;
}
.badge {
  margin-left: auto;
  font-size: .78rem;
  font-weight: 500;
  background: rgba(26,143,75,.12);
  color: var(--brand);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(26,143,75,.2);
}
.card h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 600;
}
.card p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: .95rem;
}
.card .actions {
  margin-top: auto;
  padding: 14px 18px;
  display: flex;
  gap: 10px;
}

/* ===========================
   FOOTER
=========================== */
.footer {
  max-width: 1100px;
  margin: 28px auto 60px;
  padding: 0 16px;
  color: black;
  text-align: center;
  font-size: .9rem;
}

/* ===========================
   TOAST
=========================== */
#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(140%);
  background: var(--surface);
  color: var(--text);
  border: 1px solid rgba(0,0,0,.08);
  padding: 11px 16px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  z-index: 60;
  pointer-events: none;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0%);
}

/* ===========================
   FOCUS RING
=========================== */
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* ===== Modal ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}
.modal.open { display: flex; }

.modal-content {
  background: var(--card);
  color: var(--text);
  padding: 20px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  animation: scaleIn 0.3s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  position: relative;
}
.modal-content h2 {
  margin-top: 0;
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.modal-content ul {
  padding-left: 20px;
}
.modal-content li {
  margin: 6px 0;
}
.modal .close {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #888;
  transition: color .2s;
}
.modal .close:hover {
  color: var(--brand);
}

@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.coordinators {
  text-align: center;
  margin: 3rem auto;
  padding: 1rem;
}

.coordinators h2 {
  font-size: 1.8rem;
  color:black; /* green highlight */
  margin-bottom: 1rem;
}

.coordinator-box {
  display: inline-block;
  text-align: left;
  background: var(--card-bg, #ffffff);
  border: 2px solid #0ea765;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.coordinator-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.coordinator-box p {
  font-size: 1.1rem;
  margin: 0.5rem 0;
  color: var(--text-color, #1a1a1a);
}

.coordinator-box strong {
  color: #0c9158; /* deeper green for names */
}
/* ===========================
   OFFICE BEARERS
=========================== */
.office-bearers {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 18px;
  text-align: center;
}

.office-bearers h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: black;
}

.bearers-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.bearer-card {
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px 16px;
  transition: transform .2s ease, box-shadow .3s ease;
}

.bearer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.15);
}

.bearer-card img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--brand);
  margin-bottom: 12px;
}

.bearer-card h3 {
  margin: 6px 0 4px;
  font-size: 1.1rem;
  font-weight: 600;
}

.bearer-card .role {
  display: inline-block;
  margin: 6px 0;
  padding: 4px 10px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 999px;
  background: rgba(14, 167, 101, 0.12);
  color: var(--brand);
  border: 1px solid rgba(14, 167, 101, 0.25);
}

.bearer-card p {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.about-us {
  padding: 2rem;
  text-align: center;
  background: var(--card-bg);
  border-radius: 12px;
  margin: 2rem auto;
  max-width: 900px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.about-us h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: black;
}

.about-us p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
}
/* ===========================
   RESPONSIVE NAVBAR (BURGER)
=========================== */
.burger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 768px) {
  .nav-actions {
    position: fixed;
    top: 60px;
    right: 10px;
    background: var(--surface);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 12px;
    flex-direction: column;
    gap: 12px;
    display: none;
  }

  .nav-actions.open {
    display: flex;
  }

  .burger {
    display: flex;
  }
}
