/* ===== SAMDAN - Green Theme Responsive CSS ===== */
:root {
  --green-dark:   #1a5c2a;
  --green-main:   #198754;
  --green-light:  #28a745;
  --green-pale:   #d4edda;
  --green-accent: #20c997;
  --white:        #ffffff;
  --gray-light:   #f8f9fa;
  --gray-mid:     #e9ecef;
  --text-dark:    #212529;
  --shadow:       0 4px 16px rgba(0,0,0,.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  background: #fff;
}

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

/* ===== NAVBAR ===== */
.samdan-nav {
  background: var(--green-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.nav-logo img {
  height: 70px;
  width: auto;
  display: block;
  padding: 6px 0;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: .3s;
}
.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: .2rem;
}
.nav-menu li { position: relative; }
.nav-menu a {
  color: #fff;
  text-decoration: none;
  padding: .6rem .9rem;
  display: block;
  font-size: .92rem;
  font-weight: 500;
  border-radius: 4px;
  transition: background .2s;
}
.nav-menu a:hover, .nav-menu a.active { background: var(--green-light); }
.dropdown-toggle::after { content: ' ▾'; font-size: .75rem; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--green-dark);
  min-width: 200px;
  border-radius: 0 0 6px 6px;
  box-shadow: var(--shadow);
  z-index: 999;
}
.dropdown-menu a { font-size: .88rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.nav-menu li:hover > .dropdown-menu { display: block; }
.btn-donate {
  background: var(--green-accent);
  color: var(--green-dark) !important;
  font-weight: 700 !important;
  border-radius: 20px !important;
  padding: .5rem 1.2rem !important;
}
.btn-donate:hover { background: #fff !important; }

/* ===== DONATE MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 10px;
  max-width: 480px;
  width: 94%;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.modal-header {
  background: var(--green-dark);
  color: #fff;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h4 { font-size: 1.1rem; }
.modal-close {
  background: none; border: none; color: #fff;
  font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.modal-body { padding: 1.5rem; text-align: center; }
.modal-body img { max-width: 240px; margin: 0 auto 1rem; }
.modal-footer {
  background: var(--green-pale);
  padding: 1rem 1.5rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.modal-footer a {
  display: block;
  background: var(--green-main);
  color: #fff;
  text-decoration: none;
  padding: .6rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  transition: background .2s;
}
.modal-footer a:hover { background: var(--green-dark); }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green-light));
  color: #fff;
  text-align: center;
  padding: 3rem 1.5rem;
}
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 700; }
.page-hero p { opacity: .9; margin-top: .5rem; font-size: 1.05rem; }

/* ===== CAROUSEL ===== */
.carousel-wrap { position: relative; overflow: hidden; max-height: 520px; background:#000; }
.carousel-wrap img { width: 100%; height: 520px; object-fit: cover; opacity: .85; }
.carousel-caption-custom {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.55);
  color: #fff; border-radius: 8px;
  padding: .8rem 2rem; text-align: center;
  backdrop-filter: blur(4px);
  width: 90%; max-width: 700px;
}
.carousel-caption-custom h3 { font-size: 1.3rem; text-transform: uppercase; }
.carousel-caption-custom p { font-size: .95rem; opacity: .9; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,100,0,.7); border: none;
  color: #fff; font-size: 1.8rem;
  padding: .5rem 1rem; cursor: pointer; border-radius: 4px;
  transition: background .2s; z-index: 10;
}
.carousel-btn:hover { background: var(--green-main); }
.carousel-btn.prev { left: .8rem; }
.carousel-btn.next { right: .8rem; }
.carousel-dots { position: absolute; bottom: .5rem; left: 50%; transform: translateX(-50%); display: flex; gap: .4rem; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); border: none; cursor: pointer; transition: background .2s; }
.carousel-dot.active { background: #fff; }

/* ===== SECTIONS ===== */
.section { padding: 3.5rem 1.5rem; }
.section-center { max-width: 1100px; margin: 0 auto; }
.section-title {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--green-dark);
  margin-bottom: 1.5rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px; height: 4px;
  background: var(--green-accent);
  margin: .6rem auto 0;
  border-radius: 2px;
}
.bg-light-green { background: var(--green-pale); }
.bg-dark-green { background: var(--green-dark); color: #fff; }
.bg-dark-green .section-title { color: #fff; }
.bg-dark-green .section-title::after { background: var(--green-accent); }

/* ===== HERO BANNERS (Partnership / Believe / Volunteer) ===== */
.hero-banner {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
}
.hero-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,60,0,.6);
}
.hero-banner-content {
  position: relative; z-index: 1;
  max-width: 750px; padding: 2rem 1.5rem;
}
.hero-banner-content h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800; text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.hero-banner-content p { font-size: 1.05rem; margin-top: 1rem; line-height: 1.7; }
.hero-banner-content .btn-green {
  display: inline-block;
  margin-top: 1.2rem;
  background: var(--green-accent);
  color: var(--green-dark);
  text-decoration: none;
  padding: .7rem 2rem;
  border-radius: 25px;
  font-weight: 700;
  transition: all .2s;
}
.hero-banner-content .btn-green:hover { background: #fff; transform: translateY(-2px); }

/* ===== STATS COUNTERS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.2rem;
}
.stat-card {
  background: var(--green-dark);
  color: #fff;
  text-align: center;
  padding: 1.8rem 1rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-card i { font-size: 2.5rem; color: var(--green-accent); margin-bottom: .6rem; }
.stat-card h3 { font-size: 2rem; font-weight: 800; }
.stat-card p { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }

/* ===== PROGRAMMES CARDS ===== */
.prog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.prog-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.prog-card:hover { transform: translateY(-5px); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.prog-card img { width: 100%; height: 250px; object-fit: cover; }
.prog-card-body {
  padding: 1.2rem;
  background: #fff;
  border-top: 4px solid var(--green-main);
}
.prog-card-body h3 { color: var(--green-dark); margin-bottom: .4rem; }

/* ===== TESTIMONIALS ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: #fff;
  border-left: 5px solid var(--green-main);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.testimonial-card img {
  width: 65px; height: 65px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: .8rem;
  border: 3px solid var(--green-main);
}
.testimonial-card .name { font-weight: 700; color: var(--green-dark); }
.testimonial-card .role { font-size: .85rem; color: #666; margin-bottom: .6rem; }

/* ===== PHOTO GRID ===== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .8rem;
}
.photo-grid img {
  width: 100%; height: 200px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform .25s, opacity .25s;
}
.photo-grid img:hover { transform: scale(1.03); opacity: .9; }

/* ===== VIDEO EMBED ===== */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0; overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.video-wrap iframe, .video-wrap video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none; border-radius: 10px;
}
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

/* ===== PEOPLE CARDS (board/staff) ===== */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.people-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .25s;
}
.people-card:hover { transform: translateY(-5px); }
.people-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top;
}
.people-card-body { padding: 1.1rem; }
.people-card-body h3 { color: var(--green-dark); font-size: 1rem; }
.people-card-body .role { color: var(--green-main); font-size: .85rem; font-weight: 600; margin: .2rem 0; }
.people-card-body p { font-size: .88rem; color: #555; }
.btn-contact {
  display: inline-block;
  margin-top: .7rem;
  background: var(--green-main);
  color: #fff;
  text-decoration: none;
  padding: .45rem 1.2rem;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  transition: background .2s;
}
.btn-contact:hover { background: var(--green-dark); }

/* ===== HISTORY PAGE ===== */
.history-section { max-width: 900px; margin: 0 auto; }
.history-section p { margin-bottom: 1.2rem; font-size: 1.05rem; color: #333; }
.quote-block {
  background: var(--green-dark);
  color: #fff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  margin: 2rem 0;
}
.quote-block blockquote { font-size: 1.3rem; font-style: italic; }
.quote-block cite { display: block; margin-top: .7rem; font-size: .95rem; opacity: .85; }
.history-img {
  float: right;
  width: 200px;
  border-radius: 50%;
  margin: 0 0 1rem 1.5rem;
  border: 4px solid var(--green-main);
}
@media(max-width:600px){
  .history-img { float: none; width: 130px; margin: 0 auto 1rem; border-radius: 50%; }
}

/* ===== TABLE ===== */
.samdan-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.samdan-table th {
  background: var(--green-dark);
  color: #fff; padding: 12px 16px; text-align: left;
}
.samdan-table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-mid); }
.samdan-table tr:nth-child(even) td { background: var(--green-pale); }
.samdan-table tr:hover td { background: #d0f0da; }
.table-wrap { overflow-x: auto; border-radius: 8px; box-shadow: var(--shadow); }

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}
.contact-grid iframe { width: 100%; height: 380px; border: none; border-radius: 8px; }
.contact-form label { display: block; margin-bottom: .3rem; font-weight: 600; color: var(--green-dark); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: .75rem 1rem;
  border: 2px solid var(--gray-mid);
  border-radius: 6px; font-size: .95rem;
  margin-bottom: 1rem; outline: none;
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--green-main);
}
.contact-form textarea { height: 130px; resize: vertical; }
.btn-submit {
  background: var(--green-main);
  color: #fff; border: none;
  padding: .75rem 2rem;
  border-radius: 25px; font-size: 1rem;
  font-weight: 700; cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-submit:hover { background: var(--green-dark); transform: translateY(-2px); }

/* ===== BLOGS ===== */
.blog-entry {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: start;
}
.blog-entry img {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--green-main);
}
.blog-entry h2 { color: var(--green-dark); font-size: 1.15rem; }
.blog-entry .blog-sub { color: var(--green-main); font-size: .88rem; font-weight: 600; margin-bottom: .5rem; }
.blog-entry p { font-size: .95rem; color: #444; line-height: 1.7; }
@media(max-width:500px){
  .blog-entry { grid-template-columns: 1fr; }
  .blog-entry img { margin: 0 auto; }
}

/* ===== DOWNLOAD TABLE ===== */
.download-section { max-width: 900px; margin: 0 auto; }

/* ===== BG SECTIONS ===== */
.bg-image-section {
  background-size: cover;
  background-position: center;
  min-height: 300px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--green-dark);
  color: #fff;
  padding: 2rem 1.5rem 1rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.footer-col h4 { color: var(--green-accent); margin-bottom: .8rem; font-size: 1rem; }
.footer-col p, .footer-col a {
  font-size: .9rem; color: rgba(255,255,255,.8);
  text-decoration: none; line-height: 1.9;
  display: block;
}
.footer-col a:hover { color: var(--green-accent); }
.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}

/* ===== RESPONSIVE ===== */
@media(max-width: 768px){
  .hamburger { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--green-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: .5rem 0 1rem;
    gap: 0;
    border-top: 2px solid var(--green-light);
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a { border-radius: 0; padding: .7rem 1.2rem; }
  .dropdown-menu { position: static; box-shadow: none; background: rgba(0,0,0,.2); }
  .samdan-nav { position: relative; }
  .carousel-wrap img { height: 300px; }
  .hero-banner { min-height: 280px; }
  .blog-entry { grid-template-columns: 1fr; }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.section-text { max-width: 850px; margin: 0 auto; font-size: 1.05rem; color: #333; }
