/* CSS VARIABLES + BASE RESET */
:root {
  --blue: #004d99;
  --accent: #ff9900;
  --dark: #1a1a1a;
  --light: #f5f7fa;
  --gray: #e0e0e0;
  --water: #e0f2fe;
  --beige: #F5F3EE;
  --beige-border: #EAE6DF;
  --accent-orange: #F8B42B;
  --accent-dark: #D94F04;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 20px rgba(0,0,0,0.12);
  --gap: 1.5rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: #fff;
  text-align: center;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
  padding: 2.5rem 0;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  margin-bottom: 0.6em;
  color: var(--blue);
}
h1 { text-align: center; font-size: clamp(2rem, 4vw, 2.8rem); }
h2 {text-align: center; font-size: 1.8rem; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1rem; margin-top: 1rem; }
p, li, label, address { text-align: left; margin-left: 1.5rem;}
a { color: var(--blue); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent); }
small { font-size: 0.85rem; color: #555; }

/* LAYOUT: HEADER, NAV, FOOTER */
.focus-img {
  width: 200px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

header {
  background: var(--water);
  border-bottom: 1px solid var(--gray);
}

.sticky-header-container {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding: 1rem 0;
}

.logo img {
  width: 120px;
  height: 50px;
  border-radius: 0;
}

.index-number {
  font-weight: 800;
  color: var(--accent);
  font-size: 0.95rem;
  margin-left: 1rem;
  align-self: center;
}
/* Partners table tweaks */
.partners-table td:nth-child(2) {
  text-align: center;
  vertical-align: middle;
}

nav {
  background: #fff;
  border-bottom: 1px solid var(--gray);
}

.nav-wrap {
  padding: 0.75rem 0;
}

nav ul {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
}

nav a {
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
  color: var(--accent);
}
nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

footer {
  background: var(--water);
  color: var(--dark);
  margin-top: 1.25rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--gray);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
  text-align: left;
}

.centered-table {
  margin-inline: auto;
  width: min(760px, 100%);
  text-align: center;
}

.centered-table th,
.centered-table td {
  padding: 1rem;
  vertical-align: middle;
}
.footer-grid h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.4rem;
}
.footer-grid p,.footer-grid address {
  font-size: 0.9rem;
  line-height: 1.4;
  font-style: normal;
  margin-bottom: 0.25rem;
}
.footer-logo {
  height: 14px;
  width: auto;
  border-radius: 0;
  margin-bottom: 0.4rem;
}

footer .container { padding: 0.5rem 0; }
.socials {
  display: flex;
  gap: 0.8rem;
  list-style: none;
  margin-top: 0.5rem;
}
.socials img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  transition: transform 0.3s ease;
}
.socials img:hover {
  transform: scale(1.15);
}

/* HERO SECTION - Used on Home & Support */
.hero {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 1rem 2rem;
  gap: 0.8rem;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  text-shadow: 0 3px 10px rgba(0,0,0,0.6);
  margin: 0;
  color: #fff;
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 700px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  margin: 0;
  text-align: center;
}

/* Hero background video (absolute, behind content) */
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  z-index: 1;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
}

@media (max-width: 700px) {
  .hero .hero-bg-video { display: none; }
}

.cta-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* BUTTONS */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  text-align: center;
}
.btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: #e68a00;
}

/* SECTIONS & CARDS BASE */
section {
  margin-bottom: 3rem;
  text-align: left;
}
section h2 {
  margin-bottom: 1rem;
}
section img {
  margin: 1.5rem 0;
  max-height: 400px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-align: left;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* GRID LAYOUTS: Sidebar & Main */
.content-wrap,.project-layout,.gallery-layout,.volunteer-layout,.support-layout,.contact-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: calc(var(--gap) * 1.5);
  align-items: start;
  width: min(1200px, 92%);
  margin-inline: auto;
  padding: 2.5rem 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--gap);
  align-items: start;
  margin: 1rem 0 2rem;
}
.two-col .form-aside {
  background: var(--light);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
}

aside.sidebar {
  background: var(--light);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}
aside.sidebar h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
aside.sidebar p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
aside.sidebar ul {
  list-style: none;
}
aside.sidebar ul li {
  margin-bottom: 0.8rem;
}
aside.sidebar ul li a {
  font-weight: 600;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--gray);
}

/* STATS + OPPORTUNITY & IMPACT CARD */
.stats,.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
  margin: 2rem 0;
}

.stat-card,.impact-card {
  background: linear-gradient(135deg, var(--water), #fff);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--gray);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}
.stat-card:hover,.impact-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}
.stat-number,.impact-card.amount {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.stat-label,.impact-card p {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.5rem;
  text-align: center;
}

.core-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
  margin: 2rem 0;
}
.core-values .card {
  padding: 1.2rem;
   background: var(--beige);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid var(--beige-border);
  border-left: 6px solid var(--accent-orange);
  text-align: left;
}

.objective-card,.opportunity-card {
  background: var(--beige);
  padding: 1.8rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid var(--beige-border);
  border-left: 6px solid var(--accent-orange);
  text-align: left;
}
.objective-card h4,.opportunity-card.stat-number {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1A3C5A;
  margin: 0 0 0.5rem 0;
  text-align: left;
}

/* TESTIMONIAL , GALLERY & PROJECT CARDS */
.testimonials,.gallery-grid,.project-cards,.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
  margin: 2rem 0;
}

.testimonial-card {
  background: #fff;
  padding: 1.8rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 5px solid var(--accent);
}
.testimonial-card p {
  font-style: italic;
  color: #333;
  margin: 0;
}
.testimonial-card cite {
  font-weight: 600;
  color: var(--blue);
  font-style: normal;
}

.gallery-item {
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0;
}
.gallery-item h3 {
  padding: 1rem 1.2rem;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
}
.card h3 {
  padding: 1.2rem 1.5rem 0.5rem;
}
.card p {
  padding: 0 1.5rem 1rem;
  color: #444;
  flex-grow: 1;
}
.card.link {
  display: inline-block;
  padding: 0 1.5rem 1.5rem;
  color: var(--accent);
  font-weight: 700;
}

.contact.card {
  padding: 2rem;
  border-top: 5px solid var(--accent);
}

/* TABLES */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 1.5rem 0;
  border: none;
}
table[border], table[cellpadding], table[cellspacing] {
  border: none;
  border-spacing: 0;
}
caption {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem;
  text-align: center;
}
thead {
  background: var(--blue);
  color: #fff;
}
th, td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--gray);
  vertical-align: top;
}

thead th {
  text-align: center;
}
tbody tr {
  transition: background 0.2s ease;
}
tbody tr:hover {
  background: var(--light);
}
td img.partner-logo, .tbl-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.leadership-table th,
.leadership-table td {
  text-align: center;
  vertical-align: middle;
}
.leadership-img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0 auto 0.5rem;
}
td img[src=""], td img:not([src]) {
  display: none;
}

/* VIDEO & MAP */
.video-wrap,.map-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 1rem 0 2rem;
  width: 100%;
  max-width: 100%; 
}
.video-wrap iframe,.map-wrap iframe,
.video-wrap video,
.map-wrap video,
.map-wrap .map-image {
  position:absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-wrap video,
.map-wrap video {
  object-fit:cover;
  display: block;
}
.map-wrap .map-image {
  object-fit: cover;
  display: block;
}
section video {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 2rem;
  display: block;
}

/* FORMS */
fieldset {
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: #fff;
  margin-top: 1rem;
}
legend {
  font-weight: 700;
  color: var(--blue);
  padding: 0 0.5rem;
}
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}
label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
  display: block;
  margin-bottom: 0.3rem;
}
input, select, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray);
  border-radius: 8px;
  font-family: inherit;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}
input[type="file"] {
  padding: 0.5rem;
  border: 1px dashed var(--gray);
  background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,153,0,0.15);
}
textarea { resize: vertical; }


.radio-group,
.checkbox-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.radio-group label,
.checkbox-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border: 2px solid var(--gray);
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
}
.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
  accent-color: var(--accent);
  width: auto;
  margin: 0;
}
.radio-group label:has(input:checked),
.checkbox-group label:has(input:checked) {
  border-color: var(--accent);
  background: rgba(255, 153, 0, 0.1);
  font-weight: 700;
}
.note {
  font-size: 0.85rem;
  color: #555;
  margin-top: 1rem;
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 900px) {
 .content-wrap,.project-layout,.gallery-layout,.volunteer-layout,.support-layout,.contact-layout {
    grid-template-columns: 1fr;
  }
  aside.sidebar {
    position: static;
    margin-top: 2rem;
  }
}

@media (max-width: 700px) {
 .container { padding: 1.5rem 0; }
  h1 { font-size: 1.8rem; }
 .hero { height: 320px; }
 .header-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  nav ul {
    gap: 0.8rem 1rem;
  }

  table, thead, tbody, th, td, tr { display: block; }
  caption { text-align: center; }
  thead { display: none; }
  tr {
    margin-bottom: 1rem;
    border: 1px solid var(--gray);
    border-radius: var(--radius);
  }
  td {
    border: none;
    border-bottom: 1px solid var(--gray);
    position: relative;
    padding-left: 50%;
    min-height: 50px;
  }
  td:before {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    font-weight: 700;
    color: var(--blue);
  }
  td:last-child { border-bottom: none; }
 .tbl-img { width: 100%; height: 180px; }
}