/* ============================================================
   NCAR — Shared Inner Pages CSS
   ============================================================ */

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(rgba(15,50,25,0.82), rgba(8,30,14,0.88)),
              linear-gradient(135deg, #1a5c30, #0d3d1e);
  padding: 5rem 5% 4rem;
  border-bottom: 3px solid var(--green);
}
.page-tag {
  display: inline-block;
  background: rgba(212,148,10,0.2); border: 1px solid rgba(212,148,10,0.4);
  color: var(--gold-light); padding: 4px 14px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.page-hero-content h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700;
  color: #fff; margin-bottom: 0.75rem;
}
.page-hero-content p { font-size: 1rem; color: rgba(255,255,255,0.7); max-width: 560px; }

/* ── LAYOUT HELPERS ── */
.green-bar { width: 48px; height: 3px; background: var(--gold); border-radius: 2px; margin: 0.75rem 0 1.25rem; }
.content-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 700; color: var(--green-dark);
}
.content-p { font-size: 0.95rem; color: var(--muted); line-height: 1.8; margin-bottom: 0.9rem; }
.two-col-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: start; }

/* ── ABOUT ── */
.about-flag-card {
  background: var(--green-dark); color: #fff;
  border-radius: 12px; padding: 3rem 2rem;
  text-align: center;
}
.flag-display {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-bottom: 1.25rem;
}
.flag-display img {
  display: block; width: 80px; height: 52px; object-fit: cover;
  border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.about-flag-card h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.3rem; margin-bottom: 0.75rem; color: var(--gold-light);
}
.about-flag-card p { font-size: 0.9rem; color: rgba(255,255,255,0.7); line-height: 1.7; }

/* ── MISSION/VISION ── */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.mv-card {
  border-radius: 12px; padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.mv-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.mv-mission { background: var(--white); }
.mv-mission::before { background: var(--green); }
.mv-vision { background: var(--green-dark); }
.mv-vision::before { background: var(--gold); }
.mv-icon { font-size: 2rem; margin-bottom: 1rem; }
.mv-card h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.3rem; font-weight: 700; margin-bottom: 0.75rem;
}
.mv-mission h3 { color: var(--green-dark); }
.mv-vision h3 { color: var(--gold-light); }
.mv-mission p { color: var(--muted); font-size: 0.95rem; line-height: 1.75; }
.mv-vision p { color: rgba(255,255,255,0.75); font-size: 0.95rem; line-height: 1.75; }

/* ── VALUES ── */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.value-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.75rem 1.25rem; text-align: center;
  transition: all .2s;
}
.value-card:hover { background: var(--green); border-color: var(--green); }
.value-card:hover h4, .value-card:hover p { color: #fff !important; }
.value-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.value-card h4 { font-size: 0.9rem; font-weight: 800; color: var(--green-dark); margin-bottom: 0.4rem; transition: color .2s; }
.value-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.6; transition: color .2s; }

/* ── OBJECTIVES ── */
.objectives-list { list-style: none; margin-top: 0.5rem; }
.objectives-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 0.75rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.9rem; color: var(--muted); line-height: 1.5;
}
.obj-arrow { color: var(--green); font-weight: 800; flex-shrink: 0; }
.incorporation-box {
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem;
  border-top: 4px solid var(--green);
}
.incorporation-box h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.15rem; color: var(--green-dark); margin-bottom: 0.75rem;
}
.incorporation-box > p { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.25rem; line-height: 1.65; }
.incorp-list { list-style: none; }
.incorp-list li { font-size: 0.875rem; color: var(--muted); padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.incorp-list li strong { color: var(--text); }

/* ── TEAM ── */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
.team-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  text-align: center; transition: box-shadow .2s;
}
.team-card:hover { box-shadow: var(--shadow-lg); }
.team-avatar {
  width: 100%; height: 250px;
  margin: 0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-light);
}
.team-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.team-info { padding: 0 1rem 1.5rem; }
.team-info h4 { font-size: 0.875rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.team-role {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  background: var(--green-light); color: var(--green-dark);
  padding: 2px 10px; border-radius: 100px; margin-bottom: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.team-info p { font-size: 0.78rem; color: var(--muted); line-height: 1.55; margin-bottom: 0.75rem; }
.team-bio { display: none; }
.team-bio.visible { display: block; }

/* ── MEMBERSHIP ── */
.membership-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.benefits-card {
  background: var(--green-dark); border-radius: 12px; padding: 2.5rem;
  color: #fff; border-top: 4px solid var(--gold);
  position: relative;
}
.benefits-card h3 { font-family: 'Merriweather', serif; font-size: 1.5rem; color: #fff; margin-bottom: 0.5rem; }
.dues-pill {
  display: inline-block;
  background: rgba(212,148,10,0.25); border: 1px solid rgba(212,148,10,0.5);
  color: var(--gold-light); padding: 6px 18px; border-radius: 100px;
  font-size: 0.875rem; font-weight: 800; margin: 0.75rem 0 1.5rem;
}
.benefits-ul { list-style: none; }
.benefits-ul li {
  display: flex; align-items: center; gap: 10px;
  padding: 0.55rem 0; border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 0.875rem; color: rgba(255,255,255,0.8);
}
.benefits-ul li::before { content: '✓'; color: #4ee88a; font-weight: 800; flex-shrink: 0; }
.eligibility-note {
  margin-top: 1.5rem; padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.06); border-radius: 8px; border-left: 3px solid var(--gold);
  font-size: 0.82rem; color: rgba(255,255,255,0.6);
}
.reg-form-wrap {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 2.5rem;
  border-top: 4px solid var(--green);
}
.reg-form-wrap h3 { font-family: 'Merriweather', serif; font-size: 1.4rem; color: var(--green-dark); margin-bottom: 1.5rem; }

/* ── EVENTS ── */
.events-page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.event-page-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.event-page-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.event-page-img {
  height: 150px;
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
}
.event-page-body { padding: 1.25rem; }
.event-page-body h4 { font-family: 'Merriweather', serif; font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--text); }
.event-page-body .event-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.3rem; }
.event-page-body .event-location { font-size: 0.8rem; color: var(--muted); margin-bottom: 1rem; }
.event-page-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ── PROGRAMS ── */
.programs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.program-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; padding: 2rem 1.25rem; text-align: center;
  transition: all .2s;
}
.program-card:hover { background: var(--green); border-color: var(--green); }
.program-card:hover h4, .program-card:hover p { color: #fff !important; }
.prog-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.program-card h4 { font-size: 0.9rem; font-weight: 800; color: var(--green-dark); margin-bottom: 0.4rem; transition: color .2s; }
.program-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.6; transition: color .2s; }

/* ── GALLERY ── */
.gallery-filter { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn {
  padding: 7px 18px; border-radius: 100px;
  border: 2px solid var(--border); background: var(--white);
  font-size: 0.8rem; font-weight: 700; color: var(--muted);
  cursor: pointer; transition: all .2s; font-family: inherit;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--green); border-color: var(--green); color: #fff;
}
.gallery-masonry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gal-item {
  border-radius: 8px; overflow: hidden;
  aspect-ratio: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; transition: transform .2s, opacity .2s;
}
.gal-item:hover { transform: scale(1.03); opacity: 0.88; }
.gal-item.tall { grid-row: span 2; aspect-ratio: unset; }

/* ── SPONSORS ── */
.sponsors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.sponsor-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; padding: 2rem;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; transition: box-shadow .2s;
}
.sponsor-card:hover { box-shadow: var(--shadow-lg); }
.sponsor-badge {
  width: 72px; height: 72px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800; color: #fff;
  margin-bottom: 1rem;
}
.sponsor-card h4 { font-size: 0.95rem; font-weight: 800; color: var(--text); margin-bottom: 0.3rem; }
.sponsor-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }
.become-sponsor {
  background: var(--green-dark); border-radius: 12px; padding: 3rem;
  text-align: center; margin-top: 3rem; color: #fff;
}
.become-sponsor h3 { font-family: 'Merriweather', serif; font-size: 1.6rem; margin-bottom: 0.75rem; }
.become-sponsor p { font-size: 0.95rem; color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; }
.sponsorship-packages-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }

/* ── NEWS ── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.news-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; transition: box-shadow .2s;
}
.news-card:hover { box-shadow: var(--shadow-lg); }
.news-img { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.news-body { padding: 1.25rem; }
.news-date { font-size: 0.72rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.news-body h4 { font-family: 'Merriweather', serif; font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); line-height: 1.45; }
.news-body p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
.read-more { font-size: 0.8rem; font-weight: 700; color: var(--green); display: flex; align-items: center; gap: 5px; }
.read-more:hover { gap: 9px; }

/* ── CONTACT ── */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 3.5rem; }
.contact-info-card {
  background: var(--green-dark); color: #fff;
  border-radius: 12px; padding: 2.5rem;
}
.contact-info-card h3 { font-family: 'Merriweather', serif; font-size: 1.3rem; color: var(--gold-light); margin-bottom: 1.5rem; }
.c-info-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.c-info-item > div:last-child { min-width: 0; }
.c-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(255,255,255,0.1); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.c-info-item h5 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.45); margin-bottom: 3px; }
.c-info-item p, .c-info-item a { font-size: 0.88rem; color: rgba(255,255,255,0.85); }
.c-info-item a { overflow-wrap: anywhere; }
.c-info-item a:hover { color: var(--gold-light); }
.social-row { display: flex; gap: 10px; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); }
.social-btn {
  padding: 8px 18px; border-radius: 6px;
  background: rgba(255,255,255,0.1); color: #fff;
  font-size: 0.78rem; font-weight: 700;
  transition: background .2s;
}
.social-btn:hover { background: var(--green); }
.contact-form-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 2.5rem;
  border-top: 4px solid var(--green);
}
.contact-form-card h3 { font-family: 'Merriweather', serif; font-size: 1.4rem; color: var(--green-dark); margin-bottom: 1.5rem; }

/* ── DONATION ── */
.donation-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.donate-info h2 { font-family: 'Merriweather', serif; font-size: 1.8rem; color: #fff; margin-bottom: 0.75rem; }
.donate-info p { font-size: 0.95rem; color: rgba(255,255,255,0.7); line-height: 1.75; margin-bottom: 2rem; }
.amount-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.donate-amount-btn {
  background: rgba(255,255,255,0.08); border: 2px solid rgba(255,255,255,0.15);
  color: #fff; padding: 1rem; border-radius: 10px; cursor: pointer;
  font-family: 'Merriweather', serif; font-size: 1.5rem; font-weight: 700;
  text-align: center; transition: all .2s;
}
.donate-amount-btn span { display: block; font-family: 'Nunito Sans', sans-serif; font-size: 0.72rem; color: rgba(255,255,255,0.4); font-weight: 400; margin-top: 2px; }
.donate-amount-btn:hover, .donate-amount-btn.active {
  background: var(--gold); border-color: var(--gold);
}
.donate-form-card {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; padding: 2.5rem;
}
.donate-form-card h3 { font-family: 'Merriweather', serif; font-size: 1.3rem; color: #fff; margin-bottom: 1.5rem; }
.donate-form-card .form-group label { color: rgba(255,255,255,0.5); }
.donate-form-card .form-group input,
.donate-form-card .form-group select {
  background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: #fff;
}
.donate-form-card .form-group input::placeholder { color: rgba(255,255,255,0.3); }
.btn-donate {
  width: 100%; padding: 14px;
  background: var(--gold); color: #fff;
  border: none; border-radius: var(--radius);
  font-size: 1rem; font-weight: 800;
  cursor: pointer; transition: background .2s;
  font-family: inherit;
}
.btn-donate:hover { background: var(--gold-light); color: var(--text); }
.zeffy-note { font-size: 0.72rem; color: rgba(255,255,255,0.3); text-align: center; margin-top: 0.6rem; }
.zeffy-note code { color: rgba(255,255,255,0.55); }
.payment-message { min-height: 1.4em; font-size: 0.8rem; text-align: center; margin-top: 0.7rem; color: #f0b429; }
.payment-message.error { color: #ffb4a8; }
.payment-types { margin-top: 1.5rem; }
.payment-types h4 { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-bottom: 0.75rem; }
.payment-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.payment-tag {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5); padding: 4px 12px; border-radius: 100px; font-size: 0.75rem;
}

/* ── LIGHTBOX ── */
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.9); align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .two-col-layout, .membership-layout, .mv-grid,
  .contact-layout, .donation-layout { grid-template-columns: 1fr; }
  .events-page-grid, .news-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-masonry { grid-template-columns: repeat(2, 1fr); }
  .sponsors-grid, .sponsorship-packages-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .values-grid, .programs-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .gallery-masonry { grid-template-columns: repeat(2, 1fr); }
  .sponsors-grid, .sponsorship-packages-grid { grid-template-columns: 1fr; }
  .contact-info-card, .contact-form-card { padding: 1.5rem; }
}
