:root {
  --brand-green: #2C5F34;
  --brand-gold: #FFD700;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --bg-soft: #f8fafc;
  --card-bg: #ffffff;
  --shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Reset & base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: var(--text-dark); background: var(--bg-soft); line-height: 1.6; }
h1,h2,h3 { font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Navbar */
.navbar {
  position: fixed; inset: 0 0 auto 0; height: 72px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 1000; color: #fff; 
  background: rgba(44,95,52,0.65);
  backdrop-filter: blur(8px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled { background: rgba(44,95,52,0.92); box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.brand span { font-weight: 700; letter-spacing: .5px; font-size: 18px; line-height: 1.1; }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: #fff; font-weight: 600; letter-spacing: .2px; position: relative; }
.nav-links a::after{ content: ""; position:absolute; left:0; bottom:-6px; width:0; height:2px; background: var(--brand-gold); transition: width .25s ease; }
.nav-links a:hover::after{ width:100%; }

/* Mobile menu */
.hamburger { display: none; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; align-items: center; justify-content: center; cursor: pointer; }
.hamburger span{ display:block; width:20px; height:2px; background:#000; position:relative; }
.hamburger span::before, .hamburger span::after{ content:""; position:absolute; left:0; width:20px; height:2px; background:#000; }
.hamburger span::before{ top:-6px; } .hamburger span::after{ top:6px; }

/* Mission, Vision & Core Values */
.mv-cards {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.mv-card {
  text-align: center;
}

.mv-card .icon {
  background: rgba(44,95,52,0.12);
  color: var(--brand-green);
  font-size: 22px;
  margin: 0 auto 12px;
}

.mv-card h3 {
  color: var(--brand-green);
  font-size: 20px;
  margin-bottom: 10px;
}

.mv-card p {
  font-size: 15px;
  color: var(--text-muted);
}

.values-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.values-list li {
  background:green;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}




@media (max-width: 980px){
  .nav-links { display:none; position: absolute; top:72px; right:16px; background: rgba(44,95,52,0.97); border-radius: 14px; padding: 16px; flex-direction: column; width: min(260px, 80vw); box-shadow: var(--shadow); }
  .nav-links.open { display:flex; }
  .hamburger { display:flex; }
}

/* Hero / Background slideshow */
.hero { margin-top:72px; position: relative; height: 70vh; min-height: 520px; color: #fff; display:flex; align-items:center; justify-content:center; text-align:center; overflow:hidden; }
.hero .slides { position:absolute; inset:0; }
.hero .slides img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; }
.hero .slides img.active{ opacity:1; z-index:0; }

/* Per-image entrance animations */
.hero .slides img:nth-child(1).active { animation: fadeIn 1.2s ease-in-out; }
.hero .slides img:nth-child(2).active { animation: slideInLeft 1.2s ease-in-out; }
.hero .slides img:nth-child(3).active { animation: zoomIn 1.2s ease-in-out; }
.hero .slides img:nth-child(4).active { animation: slideUp 1.2s ease-in-out; }

@keyframes fadeIn { from {opacity:0} to {opacity:1} }
@keyframes slideInLeft { from {opacity:0; transform:translateX(-80px)} to {opacity:1; transform:translateX(0)} }
@keyframes zoomIn { from {opacity:0; transform:scale(1.15)} to {opacity:1; transform:scale(1)} }
@keyframes slideUp { from {opacity:0; transform:translateY(60px)} to {opacity:1; transform:translateY(0)} }

.hero::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.25)); z-index:1; }
.hero .content{ position:relative; z-index:2; max-width: 920px; padding: 0 20px; }
.hero h1{ font-size: clamp(28px, 5vw, 52px); margin: 0 0 10px; }
.hero p.lead{ font-size: clamp(16px, 2.4vw, 20px); color:#eef2ff; opacity:.95; margin-bottom: 22px; }
.cta-row{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.btn{ display:inline-block; padding:12px 20px; border-radius:10px; font-weight:700; border:2px solid transparent; transition:.25s ease; }
.btn-primary{ background:var(--brand-gold); color:#2b2b2b; }
.btn-primary:hover{ transform: translateY(-2px); }
.btn-ghost{ background:transparent; border-color:#fff; color:#fff; }
.btn-ghost:hover{ background:rgba(255,255,255,.12); }

/* Section base */
section { padding: 72px 20px; background: var(--bg-soft); }
.container{ max-width: 1100px; margin: 0 auto; }
.section-head{ text-align:center; margin-bottom: 36px; }
.eyebrow{ color: var(--brand-green); font-weight:800; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
.section-head h2{ font-size: clamp(24px, 3.6vw, 36px); margin: 10px 0 8px; }
.section-head p{ color: var(--text-muted); max-width: 740px; margin: 0 auto; }

/* Stats */
.stats-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap:20px; }
.stat{ background: var(--card-bg); border-radius: 16px; box-shadow: var(--shadow); padding:24px; text-align:center; opacity:0; transform: translateY(28px); transition: .6s ease; }
.stat.visible{ opacity:1; transform: translateY(0); }
.stat h3{ color: var(--brand-green); font-size: 32px; margin: 6px 0 6px; }
.stat p{ margin:0; color: var(--text-muted); }

/* Programs */
.cards{ display:grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap:20px; }
.card{ background: var(--card-bg); border-radius: 16px; box-shadow: var(--shadow); padding:22px; transition: transform .25s ease, box-shadow .25s ease; position:relative; overflow:hidden; }
.card:hover{ transform: translateY(-6px); box-shadow: 0 14px 36px rgba(0,0,0,.10); }
.card .icon{ width:48px; height:48px; border-radius:12px; display:grid; place-items:center; margin-bottom:10px; background: rgba(44,95,52,.1); color: var(--brand-green); }
.card h3{ margin: 4px 0 8px; font-size:20px; }
.card p{ color: var(--text-muted); font-size: 15px; }

/* News & Events */
.news-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap:20px; }
.news{ background: var(--card-bg); border-radius: 16px; box-shadow: var(--shadow); overflow:hidden; display:flex; flex-direction:column; }
.news img{ width:100%; height:160px; object-fit:cover; }
.news .body{ padding:16px; }
.news h4{ margin: 4px 0 8px; font-size: 18px; }
.news p{ color: var(--text-muted); font-size: 14px; }
.news a{ color: var(--brand-green); font-weight:700; margin-top: auto; padding: 0 16px 16px; }

/* Call to action */
.cta{ background: linear-gradient(120deg, var(--brand-green), #20452a); color:#fff; text-align:center; border-radius: 18px; padding: 36px 18px; box-shadow: var(--shadow); }
.cta p{ color: #e6f3ea; }

/* Contact & footer */
.contact{ 
  display:grid; 
  grid-template-columns: 1.1fr .9fr; 
  gap:26px; 
  overflow-x: hidden; /* ✅ Prevent horizontal scroll */
}
.contact .panel{ background: var(--card-bg); border-radius: 16px; box-shadow: var(--shadow); padding: 22px; }
.contact .list{ list-style:none; padding:0; margin:0; }
.contact .list li{ display:flex; gap:12px; align-items:flex-start; margin-bottom: 12px; color: var(--text-muted); }
.contact iframe{ 
  width:100%; 
  max-width:100%; /* ✅ Keep inside container */
  height: 260px; 
  border:0; 
  border-radius: 12px; 
  display:block; /* ✅ Prevent inline overflow */
}

footer{ background: var(--brand-green); color:#e6f3ea; padding: 28px 20px; margin-top: 56px; }
.footer-inner{ max-width:1100px; margin:0 auto; display:flex; gap: 18px; justify-content: space-between; align-items:center; flex-wrap:wrap; }
.social a{ margin-right: 12px; color: #e6f3ea; }

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; }
}

/* ✅ Responsive Fixes */
@media (max-width: 980px) {
  .brand span { font-size: 14px; line-height: 1.2; }
  .hero { height: auto; padding: 60px 15px; }
  .hero h1 { font-size: clamp(22px, 6vw, 34px); }
  .hero p.lead { font-size: clamp(14px, 4vw, 18px); }
  .cta-row { flex-direction: column; gap: 12px; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    width: 100%;
    right: 0;
    left: 0;
    border-radius: 0;
  }
  .brand img { width: 44px; height: 44px; }
  .brand span { font-size: 12px; }
  .section-head h2 { font-size: 20px; }
  .stats-grid,
  .cards,
  .news-grid { grid-template-columns: 1fr; }
  footer .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
