* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body { color: #333; background: #fff; }

.container { width: 90%; max-width: 1200px; margin: auto; }

header.main-header { background: #06b26b; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
header .container { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 140px; height: 140px; border-radius: 50%; }
.navbar ul { list-style: none; display: flex; gap: 20px; background: #06b26b; padding: 15px 20px; border-radius: 8px; }
.navbar a { text-decoration: none; color: #fff; font-weight: 500; transition: 0.3s; }
.navbar a:hover { color: #dcf2e0; }

.hero {
    position: relative;
    background: url('assets/hero-bg.jpg') center/cover no-repeat;
    height: 85vh;
    color: white;
}
.hero .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex; align-items: center; justify-content: center;
}
.hero-text { text-align: center; max-width: 700px; }
.hero-text h2 { font-size: 2.5rem; margin-bottom: 15px; }
.hero-text p { font-size: 1.2rem; margin-bottom: 25px; }
.btn {
    background: #00843D;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
}
.btn {
  border: 2px solid #118a4d;
  background: #15a754;
  color: #fff;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
}

.welcome { padding: 60px 0; text-align: center; }
.welcome h2 { color: #00843D; margin-bottom: 20px; }

/* Advocacy page specific spacing and components */
.advocacy-hero {
    background: linear-gradient(180deg,#16a34a,#0ea5a9);
    color: #fff;
    padding: 44px 0;
}
.advocacy-hero .container { max-width: 1100px; padding: 0 20px; }

/* Page wrapper for advocacy pages (moved from inline styles) */
.advocacy-page { background:#f7f7f7; min-height:100vh; padding-bottom:40px; }

.advocacy-title { font-size:32px; margin:0 0 8px; }
.advocacy-lead { max-width:760px; margin:0; opacity:0.95; }

.advocacy-card h3 { margin:0 0 8px; font-size:18px; color:#0f1724; }
.advocacy-card p { margin:0 0 12px; color:#6b7280; font-size:14px; }
.card-footer { margin-top:auto; text-align:right; }
.card-footer .btn { background:#16a34a; }

.advocacy-filters {
    margin-top: -28px;
    position: relative;
    z-index: 10;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.advocacy-filters .search { flex:1; min-width:220px; padding:8px 10px; border:1px solid #eee; border-radius:10px; }
.advocacy-filters .chips { display:flex; gap:8px; }

.advocacy-cards { display:grid; gap:18px; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); }
.advocacy-card { background:#fff; border-radius:12px; box-shadow:0 6px 18px rgba(0,0,0,0.06); padding:18px; display:flex; flex-direction:column; }

.advocacy-cta { background:#fff; border-radius:12px; box-shadow:0 6px 18px rgba(0,0,0,0.06); padding:20px; display:flex; align-items:center; justify-content:space-between; gap:16px; }

@media (max-width:900px){
    .advocacy-hero .container { padding: 0 16px; }
    .advocacy-filters { margin-top:-18px; padding:10px; }
    .advocacy-cta { flex-direction:column; align-items:flex-start; }
}

footer {
    background: #00843D;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* Education page styles */
.education-page { background:#f4fbf8; min-height:100vh; padding-bottom:60px; }
.education-hero {
    background: linear-gradient(180deg,#e6ffef,#d1fae5);
    color: #064e3b;
    padding: 48px 0;
}
.education-hero .container { max-width:1100px; padding:0 20px; }
.education-title { font-size:30px; margin:0 0 8px; color:#064e3b; }
.education-lead { max-width:760px; margin:0; color:#065f46; opacity:0.95; }

.education-cards { display:grid; gap:18px; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); margin-top:18px; }
.education-card { background:#fff; border-radius:12px; box-shadow:0 8px 26px rgba(2,6,23,0.06); padding:20px; display:flex; flex-direction:column; transition:transform .18s ease, box-shadow .18s ease; }
.education-card:hover { transform:translateY(-6px); box-shadow:0 14px 40px rgba(2,6,23,0.09); }
.education-card h3 { margin:0 0 10px; font-size:18px; color:#064e3b; letter-spacing:0.4px; }
.education-card p { margin:0 0 14px; color:#4b5563; font-size:14px; line-height:1.45; }
.education-card .card-footer { margin-top:auto; display:flex; justify-content:flex-end; }
.education-card .btn { background:#06b26b; padding:10px 18px; border-radius:8px; }
.education-card .btn:hover { background:#05935a; }

@media (max-width:900px){
    .education-hero .container { padding: 0 16px; }
    .education-cards { grid-template-columns:1fr; }
}

/* Utility and page-specific classes moved from inline markup */
.section-gap { margin: 28px auto 0; }
.lead-italic { font-size:20px; font-style:italic; }

/* Modal sections used in programs&services.php */
.modal-section { display: none; }

/* Gallery styles (moved from inline in gallery.php) */
.gallery-page { padding:0 0 30px; background:#f7f7f7; }
.featured-carousel { background:#000; margin-bottom:40px; position:relative; }
.carousel-container { position:relative; max-width:1400px; margin:0 auto; height:450px; overflow:hidden; }
.carousel-track { position:relative; height:100%; }
.carousel-slide { position:absolute; inset:0; opacity:0; transition:opacity 0.8s ease; overflow:hidden; background:#000; }
.carousel-slide img { width:100%; height:100%; object-fit:cover; display:block; position:absolute; inset:0; }
.carousel-slide video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center center; display:block; background:#000; }
.slide-caption { position:absolute; bottom:0; left:0; right:0; padding:20px; background:linear-gradient(transparent, rgba(0,0,0,0.8)); color:#fff; }
.slide-caption h2 { margin:0; font-size:24px; }
.slide-caption p { margin:8px 0 0; font-size:16px; }
.carousel-prev, .carousel-next { position:absolute; top:50%; transform:translateY(-50%); background:rgba(0,0,0,0.5); color:#fff; border:0; padding:12px 16px; border-radius:50%; cursor:pointer; font-size:18px; }
.carousel-prev { left:20px; }
.carousel-next { right:20px; }
.carousel-indicators { position:absolute; bottom:20px; left:50%; transform:translateX(-50%); display:flex; gap:8px; }

.container-inner { max-width:1100px; margin:0 auto; padding:0 20px; }
.thumb-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px; margin-top:18px; }
.thumb img, .thumb video { width:100%; height:120px; object-fit:cover; border-radius:6px; display:block; }

/* Slideshow modal styles */
#slideshow { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.75); z-index:1200; align-items:center; justify-content:center; }
.modal-inner { width:90%; max-width:1100px; background:#111; color:#fff; border-radius:10px; overflow:hidden; position:relative; }
.modal-inner .viewer { flex:1; min-height:320px; display:flex; align-items:center; justify-content:center; background:#000; }
.modal-inner .viewer img, .modal-inner .viewer video { max-width:100%; max-height:80vh; display:block; }
.modal-inner aside { width:260px; background:#0f1724; padding:12px; box-sizing:border-box; }
.modal-inner .controls button { background:#1a7020; border:0; color:#fff; padding:8px 12px; border-radius:6px; cursor:pointer; }

/* FourBox modular */
#fourbox-modular { max-width:1100px; margin:36px auto; padding:0 20px; }
.fourbox-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; }
.fourbox { text-align:left; padding:18px; border-radius:10px; background:#fff; border:1px solid #eee; cursor:pointer; }
.fourbox video, .fourbox img { width:100%; height:150px; object-fit:cover; border-radius:8px; }
.fourbox p { margin-top:10px; color:#374151; }
#fourbox-modal { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.6); z-index:1300; align-items:center; justify-content:center; }
#fourbox-modal .modal-content-inner { background:#fff; max-width:900px; width:92%; padding:18px; border-radius:10px; }

/* small extra styles for focus and accessibility moved from inline */
.thumb:focus { outline:3px solid #8ee08e; }
#thumbList img, #thumbList video { width:100%; height:70px; object-fit:cover; border-radius:6px; }
.thumb-small { background:transparent; border:0; padding:0; cursor:pointer; }

/* Additional helpers used in gallery.php */
.gallery-title { color:#1a7020; margin-bottom:14px; }
.gallery-desc { color:#444; }
.flex-gap { display:flex; gap:12px; }
.thumb-video-wrap { position:relative; }
.video-label { position:absolute; left:8px; bottom:8px; background:rgba(0,0,0,0.6); color:#fff; padding:4px 8px; border-radius:4px; font-size:12px; }
.modal-close { position:absolute; right:12px; top:12px; background:transparent; border:0; color:#fff; font-size:28px; cursor:pointer; }
.thumbs-title { color:#ddd; font-size:14px; margin-bottom:8px; }

/* Fourbox helpers */
#fourbox-modular { max-width:1100px; margin:36px auto; padding:0 20px; }
.fourbox-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; }
.fourbox { text-align:left; padding:18px; border-radius:10px; background:#fff; border:1px solid #eee; cursor:pointer; }
.box-media { width:100%; height:150px; overflow:hidden; border-radius:8px; }
.box-row { display:flex; gap:12px; align-items:center; }
.box-icon { width:48px; height:48px; border-radius:10px; display:flex; align-items:center; justify-content:center; }
.box-meta { color:#6b7280; font-size:13px; }
.box-text { margin-top:10px; color:#374151; }
#fourbox-modal { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.6); z-index:1300; align-items:center; justify-content:center; }
#fourbox-modal .modal-content-inner { background:#fff; max-width:900px; width:92%; padding:18px; border-radius:10px; }

/* Generic programs styles (shared by advocacy and education) */
.programs-page { background:#f4fbf8; min-height:100vh; padding-bottom:60px; }
.programs-hero {
  background: linear-gradient(180deg,#e6ffef,#d1fae5);
  color: #064e3b;
  padding: 48px 0;
  text-align: center;
}
.programs-hero .container { max-width:1100px; padding:0 20px; }
.programs-title { font-size:30px; margin:0 0 8px; color:#064e3b; }
.programs-lead { max-width:760px; margin:0 auto; color:#065f46; opacity:0.95; }

.programs-cards { display:grid; gap:18px; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); margin-top:18px; }
.program-card { background:#fff; border-radius:12px; box-shadow:0 8px 26px rgba(2,6,23,0.06); padding:20px; display:flex; flex-direction:column; transition:transform .18s ease, box-shadow .18s ease; }
.program-card:hover { transform:translateY(-6px); box-shadow:0 14px 40px rgba(2,6,23,0.09); }
.program-card h3 { margin:0 0 10px; font-size:18px; color:#064e3b; letter-spacing:0.4px; }
.program-card p { margin:0 0 14px; color:#4b5563; font-size:14px; line-height:1.45; }
.program-card .card-footer { margin-top:auto; display:flex; justify-content:flex-end; }
.program-card .btn { background:#06b26b; padding:10px 18px; border-radius:8px; }
.program-card .btn:hover { background:#05935a; }

@media (max-width:900px){
  .programs-hero .container { padding: 0 16px; }
  .programs-cards { grid-template-columns:1fr; }
}

/* Modal styles */
.modal { display:none; position:fixed; inset:0; align-items:center; justify-content:center; z-index:9999; }
.modal.open { display:flex; }
.modal-overlay { position:absolute; inset:0; background:rgba(2,6,23,0.6); }
.modal-dialog { position:relative; width:90%; max-width:900px; background:#fff; border-radius:12px; box-shadow:0 30px 80px rgba(2,6,23,0.3); overflow:hidden; transform:translateY(12px); }
.modal-body { display:flex; gap:20px; align-items:flex-start; padding:18px; }
.modal-image { flex:0 0 240px; max-width:240px; }
.modal-image img { width:100%; height:160px; object-fit:cover; border-radius:8px; display:block; }
.modal-content { flex:1; }
.modal-close { position:absolute; right:12px; top:8px; background:transparent; border:0; font-size:28px; line-height:1; cursor:pointer; color:#374151; }

@media (max-width:700px){
  .modal-body { flex-direction:column; }
  .modal-image { width:100%; max-width:none; }
  .modal-image img { height:200px; }
}

/* Contact page styles */
.contact { padding: 60px 0; }
.contact h2 { text-align: center; color: #00843D; margin-bottom: 40px; font-size: 32px; }

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid #00843D;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 132, 61, 0.15);
}

.contact-item i {
  font-size: 28px;
  color: #00843D;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item i.icon-small {
  font-size: 20px;
  width: 25px;
  height: 25px;
}

.contact-item i.icon-large {
  font-size: 32px;
  width: 40px;
  height: 40px;
}

.contact-item i.icon-extra-large {
  font-size: 36px;
  width: 45px;
  height: 45px;
}

.contact-details h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #333;
}

.contact-details p {
  margin: 0;
  color: #666;
  font-size: 15px;
  line-height: 1.5;
}

.contact form {
  max-width: 600px;
  margin: 0 auto;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
}

.contact form input,
.contact form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
}

.contact form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact form input:focus,
.contact form textarea:focus {
  outline: none;
  border-color: #00843D;
}

.contact form button {
  width: 100%;
  border: none;
  font-size: 16px;
}

@media (max-width: 768px) {
  .contact-info {
    grid-template-columns: 1fr;
  }

  .contact h2 {
    font-size: 26px;
  }
}

/* Gallery page additional styles */
.thumb:focus { outline: 3px solid #8ee08e; }
#slideshow .viewer img, #slideshow .viewer video { max-width: 100%; max-height: 80vh; display: block; }
#slideshow .modal-inner > div { display: flex; gap: 12px; }
#thumbList { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-height: 520px; overflow: auto; }
#thumbList button { background: transparent; border: 0; padding: 0; cursor: pointer; }
#thumbList img, #thumbList video { width: 100%; height: 70px; object-fit: cover; border-radius: 6px; }
.fourbox:focus { outline: 3px solid #a7f3d0; }
#fourbox-modal img { width: 100%; height: 140px; object-fit: cover; border-radius: 6px; }

/* Featured carousel video fix */
.carousel-slide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: #000;
}