:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --primary: #185adb;
  --primary-strong: #143b92;
  --button-color: #0FB509;
  --button-color-dark: #0C9107;
  --text: #12213f;
  --muted: #5f6c8f;
  --border: #dde4ef;
}

/* Reduce video sizes in slider for better layout control */
.video-slider .slider-track {
  min-height: 240px !important;
}

.video-slide video {
  width: auto;
  max-width: 640px;
  max-height: 240px;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 992px) {
  .video-slide video {
    max-width: 520px;
    max-height: 220px;
  }
}

@media (max-width: 640px) {
  .video-slide video {
    max-width: 100%;
    max-height: 180px;
  }
  .video-slider .slider-track {
    min-height: 200px !important;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, calc(100% - 2rem));
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (max-width: 992px) {
  .container {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

body {
  min-height: 100vh;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: visible;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-strong);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.brand .logo {
  width: auto;
  max-width: 280px;
  max-height: 82px; /* slightly larger so logo appears bigger but keeps navbar stable */
  object-fit: contain;
  display: block;
  transition: transform 0.18s ease;
}

@media (min-width: 992px) {
  /* Visually enlarge the logo on desktop using transform so it doesn't alter navbar layout */
  .brand .logo {
    transform: scale(1.7);
    transform-origin: left center;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 100;
}

.nav-toggle span {
  width: 24px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(138, 224, 153, 0.35);
  color: #0f522d;
  transform: translateY(-1px);
}

.nav a:active {
  background: rgba(138, 224, 153, 0.55);
  color: #0d4025;
}

.nav-donate {
  background: var(--button-color);
  color: #fff !important;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-donate:hover,
.nav-donate:focus-visible {
  background: var(--button-color-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(28, 145, 90, 0.25);
}

.nav-donate:active {
  background: var(--button-color-dark);
  transform: translateY(0);
}

/* Ensure Bootstrap .nav-link gets the same interactive styles */
.nav .nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav .nav-link:hover,
.nav .nav-link:focus {
  background: rgba(15,181,9,0.12);
  color: #0FB509;
  transform: translateY(-1px);
}

.nav .nav-link.active {
  background: rgba(15,181,9,0.18);
  color: #0FB509;
}

.hero {
  background: linear-gradient(135deg, #d8f4d0 0%, #f8fff2 100%);
  padding: 3rem 0;
}

.hero-content {
  width: 100%;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 2.4vw, 4rem);
  line-height: 1.05;
}

.hero p {
  margin: 0 1.25rem 1.6rem 0;
  max-width: 40rem;
  color: var(--muted);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-image {
  display: flex;
  justify-content: flex-end;
}

.hero-slider {
  position: relative;
  overflow: visible;
  min-height: 320px;
  width: 100%;
  border-radius: 28px;
  background: rgba(232, 240, 255, 0.9);
}

.video-section {
  position: relative;
  background: linear-gradient(135deg, #0b5f2a 0%, #0fb509 42%, #16c565 100%);
  color: #fff;
  margin-top: 4rem;
  overflow: hidden;
}

.video-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 36%);
  pointer-events: none;
}

.events-preview + .video-section {
  margin-top: 5rem;
}

.video-section .section-header {
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
}

.video-pill {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.28);
  color: #f2fff4;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.video-section,
.video-slider {
  overflow: visible;
}

.video-slider {
  position: relative;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow: 0 24px 48px rgba(5, 58, 29, 0.24);
  backdrop-filter: blur(10px);
  padding: 1.1rem 3.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.video-slider .slider-control {
  z-index: 20;
}

.video-slider .slider-prev {
  left: 1rem;
}

.video-slider .slider-next {
  right: 1rem;
}

/* Video slides should participate in document flow so full height is visible */
.video-slider .video-slide {
  position: relative;
  inset: auto;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}

.video-slide.active {
  opacity: 1;
}

.video-slider .video-slide video {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  border-radius: 16px;
  background: #000;
  object-fit: contain;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.video-meta {
  width: 100%;
  max-width: 960px;
  text-align: left;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  background: rgba(7, 57, 28, 0.2);
  border: 1px solid rgba(255,255,255,0.16);
}

.video-meta h3,
.video-section .section-header h2 {
  color: #fff;
}

.video-meta p,
.video-section .section-header p,
.video-section .eyebrow {
  color: rgba(255, 255, 255, 0.88);
}

.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #ffffff 0%, #eefcf1 100%);
  color: #0b5f2a;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(7, 56, 28, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
}

.slider-prev {
  left: 1rem;
}

.slider-next {
  right: 1rem;
}

.video-section .slider-control {
  color: #0B661A;
  border: 1px solid rgba(11, 102, 26, 0.12);
}

.slider-track {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  z-index: 1;
}

.slider-track .slide {
  display: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.slider-track .slide.active {
  display: block;
  opacity: 1;
}

.hero-slider .slider-control,
.video-slider .slider-control,
.member-slider .slider-control {
  z-index: 100;
  pointer-events: auto;
}

.hero-slider .slider-track,
.video-slider .slider-track,
.member-slider .slider-track {
  position: relative;
  z-index: 1;
}

.hero-slider .slider-prev {
  left: 1rem;
}

.hero-slider .slider-next {
  right: 1rem;
}

.video-slider .slider-prev {
  left: 0.75rem;
}

.video-slider .slider-next {
  right: 0.75rem;
}
.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-strong);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(17, 46, 94, 0.08);
}

.slider-prev {
  left: 1rem;
}

.slider-next {
  right: 1rem;
}

.button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: none;
  background: var(--button-color);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.button-secondary {
  background: transparent;
  color: var(--button-color-dark);
  border: 1px solid var(--button-color);
}

.info-block {
  /* Use Bootstrap grid inside this section; avoid overriding layout */
  margin: 2rem 0;
  padding: 0;
}

.info-card {
  background: rgba(191, 230, 106, 0.22);
  border: 1px solid rgba(191, 230, 106, 0.35);
  border-radius: 18px;
  padding: 1.75rem;
  color: #0f2b0a;
  box-shadow: 0 24px 60px rgba(33, 57, 12, 0.12);
  backdrop-filter: blur(8px);
}

.info-card h2,
.info-card p {
  color: #0f2b0a;
}

.causes-section {
  padding: 3rem 0;
}

.cause-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* Diagonal split hero used above members section */
.split-hero {
  width: 100%;
  overflow: hidden;
  margin: 2.5rem 0;
}
.split-hero-inner {
  display: flex;
  align-items: stretch;
  min-height: 320px;
}
.split-left {
  flex: 1 1 50%;
  background: linear-gradient(180deg, rgba(8,11,15,0.96) 0%, rgba(18,21,26,0.96) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 3.25rem 2.5rem;
}
.split-left .container {
  padding: 0;
}
.split-left .eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.split-left h2 {
  margin: 0.6rem 0 1rem;
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  line-height: 1.02;
  color: #fff;
  font-weight: 800;
}
.split-left p.muted {
  color: rgba(255,255,255,0.82);
  margin-bottom: 1.25rem;
}
.split-left .button {
  background: var(--button-color);
  color: #fff;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(15,181,9,0.14);
  font-weight: 800;
}
.split-right {
  flex: 1 1 50%;
  position: relative;
  min-height: 320px;
  background: #f3f4f6;
}
.split-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  clip-path: polygon(35% 0, 100% 0, 65% 100%, 0% 100%);
  transform: scale(1.01);
}

/* Logo-specific styling for split hero: center and contain the logo without clipping */
.split-right .logo-hero {
  width: auto;
  height: 100%;
  max-width: 72%;
  margin: 0 auto;
  display: block;
  object-fit: contain;
  padding: 1.5rem 2rem;
  clip-path: none;
  transform: none;
}

@media (max-width: 900px) {
  .split-right .logo-hero {
    max-width: 60%;
    height: 200px;
    padding: 1rem;
  }
}

@media (max-width: 900px) {
  .split-hero-inner {
    flex-direction: column-reverse;
  }
  .split-right img {
    clip-path: none;
    transform: none;
    height: 220px;
  }
  .split-left {
    padding: 2rem 1rem;
    text-align: center;
  }
}

.cause-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 0;
  border: 1px solid transparent;
  box-shadow: 0 20px 50px rgba(44, 253, 16, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cause-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.cause-card > h3,
.cause-card > p,
.cause-card > a {
  margin-left: 2rem;
  margin-right: 2rem;
}

.cause-card > h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.cause-card > p {
  color: var(--muted);
  line-height: 1.7;
}

.cause-price {
  margin: 1.4rem 2rem 0;
  font-size: 2rem;
  font-weight: 800;
  color: #1c915a;
}

.cause-button {
  display: inline-flex;
  margin: 1.5rem 2rem 2rem;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  background: var(--button-color);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cause-button:hover {
  background: var(--button-color-dark);
  transform: translateY(-1px);
}

.cause-education {
  border-color: rgba(28, 145, 90, 0.18);
}

.cause-health {
  border-color: rgba(25, 107, 168, 0.18);
}

.cause-food {
  border-color: rgba(220, 121, 72, 0.18);
}

@media (max-width: 900px) {
  .cause-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cause-grid {
    grid-template-columns: 1fr;
  }
}

.info-card h2 {
  margin-top: 0;
}


.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-header.text-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
}

.section-header > div {
  width: 100%;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.map-section {
  margin-top: 3rem;
}

.map-embed {
  width: 100%;
  min-height: 360px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.section-header h2,
.section-header h1 {
  margin: 0;
  font-weight: 800;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

/* Ensure event card images display fully (no vertical crop) */
.event-image {
  width: 100%;
  overflow: visible;
  margin-bottom: 0.75rem;
}

.event-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 12px;
}

.event-card-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.event-card-thumb {
  width: calc(33.333% - 0.33rem);
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.event-card-thumb img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  display: block;
}

.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
}

@media (max-width: 640px) {
  .section-header {
    justify-content: flex-start;
    align-items: flex-start;
  }
}


.member-section {
  padding: 3rem 0;
}

.member-slider {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.2rem;
}

.member-slider .slider-track {
  position: relative;
  min-height: 340px;
}

.member-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.member-slider .slide.active {
  opacity: 1;
}

.member-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  height: 100%;
}

.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: 20px;
}

.member-info h3 {
  margin: 0;
  font-size: 1.15rem;
}

.member-info p {
  margin: 0;
  color: var(--muted);
}

/* Latest events layout */
.latest-events {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.latest-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.25rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 18px 35px rgba(17,46,94,0.05);
}

.latest-media {
  overflow: hidden;
  border-radius: 18px;
  position: relative;
}

.latest-media img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.latest-media-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  backdrop-filter: blur(8px);
}

.latest-media-caption h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  line-height: 1.2;
}

.latest-media-caption p {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.9;
}

.latest-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.latest-content h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 1.8rem);
  line-height: 1.1;
}

.latest-content .muted {
  color: var(--muted);
  margin: 0;
}

.latest-content p {
  margin: 0;
  color: var(--text);
  line-height: 1.9;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
.latest-content .button {
  align-self: flex-start;
  margin-top: 0.5rem;
}

  /* Keep the future project donate button at the bottom-right of the content block */
  .future-projects .latest-content,
  .future-item .latest-content {
    height: 100%;
  }

  .future-projects .latest-content .button,
  .future-item .latest-content .button {
    align-self: flex-end !important;
    margin-top: auto !important;
  }


  .latest-media img {
    min-height: 120px;
  }
}

/* Event detail layout */
.event-detail-card {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 1.5rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
}

.event-detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-detail-main {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.event-detail-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-detail-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.event-detail-thumb {
  border: none;
  background: transparent;
  padding: 0;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
}

.event-detail-thumb.active,
.event-detail-thumb:hover {
  border-color: var(--button-color);
}

.event-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-detail-content h1 {
  margin: 0 0 0.75rem;
}

@media (max-width: 900px) {
  .event-detail-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .member-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .member-group {
    grid-template-columns: 1fr;
  }
}
.member-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 40px rgba(17, 46, 94, 0.08);
}

.member-info h3 {
  margin: 0;
  font-size: 1.15rem;
}

.member-info p {
  margin: 0;
  color: var(--muted);
}

.event-card h3 {
  margin-top: 0;
}

.event-card p {
  margin: 0.75rem 0;
  color: var(--muted);
}

/* Events gallery: 12 thumbnails, 4 per row on desktop */
.events-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.events-gallery .events-thumb {
  width: 100%;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.events-gallery .events-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

@media (max-width: 992px) {
  .events-gallery { grid-template-columns: repeat(3, 1fr); }
  .events-gallery .events-thumb img { height: 180px; }
}

@media (max-width: 720px) {
  .events-gallery { grid-template-columns: repeat(2, 1fr); }
  .events-gallery .events-thumb img { height: 160px; }
}

@media (max-width: 480px) {
  .events-gallery { grid-template-columns: 1fr; }
  .events-gallery .events-thumb img { height: 200px; object-fit: contain; }
}

/* Constrain hero slider so it doesn't grow too wide on large screens */
.hero-image .hero-slider {
  max-width: 520px;
  width: 100%;
  margin-left: auto;
}

@media (max-width: 420px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    justify-content: center;
    gap: 0.5rem;
  }

  .nav .nav-link,
  .nav a.btn {
    flex: 1 1 100%;
    text-align: center;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    margin-right: 0;
  }

  .slider-control {
    width: 2rem;
    height: 2rem;
    font-size: 0.95rem;
  }

  .video-slider {
    padding: 0.5rem;
  }

  .video-slide video {
    max-height: 220px;
  }

  .cause-card > h3,
  .cause-card > p,
  .cause-card > a,
  .cause-price {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .events-gallery .events-thumb img {
    height: 150px;
  }
}

@media (max-width: 992px) {
  .hero-image {
    justify-content: center;
  }
  .hero-image .hero-slider {
    margin: 0 auto;
  }
}

/* Floating social icons (left side) */
.social-float {
  position: fixed;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 99999;
}

.social-float .social-link {
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-strong);
  box-shadow: 0 6px 18px rgba(17,46,94,0.06);
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.social-float .social-link:hover {
  transform: translateY(-4px);
  background: rgba(15,181,9,0.08);
  color: var(--button-color);
}

.social-float .social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Hide floating icons on small screens to avoid covering content */
@media (max-width: 768px) {
  .social-float { display: none; }
}

.event-badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(24, 90, 219, 0.1);
  color: var(--primary-strong);
  font-size: 0.85rem;
  font-weight: 700;
}

.page-content {
  padding: 2rem 0 3rem;
}
.about-hero {
  background: linear-gradient(135deg, #e9f0ff 0%, #ffffff 100%);
  padding: 4rem 0;
  margin-bottom: 2rem;
}

.about-hero h1 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0.5rem 0 1rem;
  line-height: 1.2;
}

.about-hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0;
}

.about-section {
  margin-bottom: 3rem;
}

.about-section h2 {
  font-size: 1.8rem;
  margin: 0 0 1rem;
  color: var(--primary-strong);
}

.about-section p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0.75rem 0;
}

.difference-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.difference-list li {
  padding: 0.75rem 0 0.75rem 2.5rem;
  position: relative;
  color: var(--text);
  line-height: 1.7;
}

.difference-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #1c915a;
  font-weight: 700;
  font-size: 1.3rem;
}

.about-values-section {
  margin: 3.5rem 0;
}

.about-values-section h2 {
  font-size: 1.8rem;
  margin: 0 0 2rem;
  color: var(--primary-strong);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
}

.value-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
  color: var(--primary-strong);
}

.divider {
  color: var(--primary);
  font-size: 1.8rem;
  margin: 0.75rem 0;
}

.value-text {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 640px) {
  .values-grid {
    grid-template-columns: 1fr;
  }

  .about-hero {
    padding: 2.5rem 0;
  }

  .about-section h2,
  .about-values-section h2 {
    font-size: 1.4rem;
  }
}
.admin-page .admin-panel {
  display: grid;
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem;
}

.donation-panel .donation-card {
  border-color: rgba(15,181,9,0.15);
}

.donation-panel .donation-card h2 {
  margin-top: 0;
  color: var(--primary-strong);
}

.donation-panel .donation-card ul {
  padding-left: 1.25rem;
  color: var(--muted);
}

/* Future project card - single project layout */
.future-card.single {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  align-items: center;
}

.future-card.single .future-image {
  width: 100%;
  max-height: 260px;
  overflow: hidden;
  border-radius: 8px;
}

.future-card.single .future-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.future-card.single .future-body {
  padding: 0.5rem 0.75rem;
}

.future-card.single h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.future-card.single p { 
  color: var(--muted);
}

.future-card.single .future-amount {
  margin-top: 0.5rem;
  font-weight: 700;
  color: #0b8a2a; /* bold green */
  font-size: 1.05rem;
}

/* Ensure future amount is styled when using latest-item markup */
.future-projects .future-amount,
.future-item .future-amount {
  margin-top: 0.6rem;
  font-weight: 800;
  color: #0b8a2a;
  font-size: 1.15rem;
}

/* Slightly tweak latest-item when used in future-projects */
.future-projects .latest-item,
.future-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
}

.future-projects .latest-media {
  border-radius: 12px;
  overflow: hidden;
}

/* Make the image and content columns equal width for the future project */
.future-projects .latest-item,
.future-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.future-projects .latest-media img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  min-height: 240px;
}

/* Keep donate button anchored at bottom of the content column */
.future-projects .latest-content,
.future-item .latest-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
}

.future-projects .latest-content .button,
.future-item .latest-content .button {
  margin-top: auto;
  align-self: flex-end;
}

@media (max-width: 760px) {
  .future-card.single {
    grid-template-columns: 1fr;
  }
  .future-card.single .future-image {
    max-height: 200px;
  }
}

.donation-panel .donation-card ul li {
  margin-bottom: 0.75rem;
}

.form-card {
  display: grid;
  gap: 1rem;
}

.form-card label {
  font-weight: 700;
  text-align: left;
  display: block;
  width: 100%;
}

.contact-form label {
  text-align: left;
  display: block;
  width: 100%;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
  font: inherit;
}

.hidden {
  display: none;
}

.admin-message {
  color: var(--primary-strong);
  font-weight: 700;
}

.site-footer {
  background: linear-gradient(180deg, #0fb509 0%, #0a8b08 100%);
  color: white;
  padding: 2rem 0 1rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.8fr) minmax(180px, 1fr) minmax(220px, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.footer-brand-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: white;
}

.footer-logo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 16px;
  background: rgba(255,255,255,0.18);
  padding: 0.35rem;
}

.footer-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
}

.footer-tag,
.footer-text {
  margin: 0;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
}

.footer-links-group,
.footer-contact-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-links-group h3,
.footer-contact-group h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links {
  display: grid;
  gap: 0.25rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: #d7f7c8;
  transform: translateX(2px);
}

.footer-contact-group p,
.footer-contact-group a {
  margin: 0;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  line-height: 1.2;
}

.footer-contact-group a:hover {
  color: #ffffff;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-social span {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.94);
  font-weight: 700;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.16);
  transition: background 0.15s ease, transform 0.15s ease;
}

.footer-social a:hover {
  background: rgba(255,255,255,0.32);
  transform: translateY(-1px);
}

.footer-social a svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: #ffffff;
}

.fixed-social-bar {
  position: fixed;
  right: 1rem;
  top: 40%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 9999;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  backdrop-filter: blur(10px);
}

.fixed-social-bar .social-link {
  width: 3.1rem;
  height: 3.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 1);
  color: #0FB509;
  border: 1px solid rgba(15, 181, 9, 0.16);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.fixed-social-bar .social-link:hover {
  transform: translateY(-2px);
  background: rgba(15, 181, 9, 0.08);
  border-color: #0FB509;
}

.fixed-social-bar .social-link svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: #0FB509;
}

@media (max-width: 640px) {
  .fixed-social-bar {
    right: auto;
    left: 0.5rem;
    top: auto;
    bottom: 1rem;
    flex-direction: row;
    justify-content: center;
    width: calc(100% - 1rem);
    max-width: calc(100% - 1rem);
    box-sizing: border-box;
    padding: 0.25rem 0.35rem;
    background: rgba(15, 181, 9, 0.12);
    border-radius: 999px;
  }
}

.footer-bottom {
  position: relative;
  margin-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 0.5rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
}
.footer-bottom p {
  margin: 0;
}
.footer-bottom .footer-copy {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.footer-bottom .footer-credit {
  flex: 0 0 auto;
  margin-left: 0;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
  .footer-bottom .footer-copy {
    position: static;
    transform: none;
    width: 100%;
  }
  .footer-bottom .footer-credit {
    width: 100%;
  }
}

.latest-section {
  margin-bottom: 4rem;
  padding-bottom: 1rem;
}

.latest-section + .events-preview {
  margin-top: 4rem;
}

@media (max-width: 860px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .info-block {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    align-items: stretch;
  }

  .footer-copy,
  .footer-links-wrap,
  .footer-links-group,
  .footer-contact-group,
  .footer-social {
    width: 100%;
  }

  .footer-links-wrap {
    justify-content: space-between;
  }

  .footer-links {
    width: 100%;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .hero-slider {
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
    margin-left: auto;
    height: 50px;
    align-items: center;
    justify-content: center;
  }

  .header-inner {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: space-between;
    gap: 0 !important;
    padding: 0.5rem 1rem;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.5rem;
    display: none !important;
    overflow: hidden;
    justify-content: flex-start;
    align-items: stretch;
  }

  .nav.active {
    display: flex !important;
  }

  .brand .logo {
    max-height: 50px;
    max-width: 130px;
  }

  .nav .nav-link,
  .nav a.btn {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    text-align: left;
  }

  .hero-buttons,
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons {
    width: 100%;
  }

  .hero {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .hero .container,
  .video-section .container,
  .events-preview,
  .causes-section,
  .member-section,
  .latest-section {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .hero,
  .video-section,
  .latest-section,
  .events-preview,
  .causes-section,
  .member-section {
    margin-bottom: 3rem;
  }

  .latest-section {
    margin-bottom: 4rem;
    padding-bottom: 1rem;
  }

  .events-preview {
    margin-top: 0;
    padding-top: 2rem;
  }

  .latest-section + .events-preview {
    margin-top: 4rem;
  }

  .hero-image,
  .video-slider {
    justify-content: center;
  }

  .section-header {
    justify-content: flex-start;
    align-items: flex-start;
  }

  .section-header > div {
    width: 100%;
    text-align: left;
  }

  .video-slider,
  .hero-slider,
  .events-gallery,
  .event-grid {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .video-slider {
    padding: 0.75rem;
  }

  .video-slider .slider-track {
    min-height: 260px;
  }

  .video-slide {
    position: relative;
    padding: 0.5rem;
  }

  .video-slide video {
    max-height: 260px;
  }

  .video-meta {
    width: 100%;
  }

  .button,
  .link-button {
    width: 100%;
  }

  .slider-control {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1rem;
  }

  .hero-image {
    justify-content: center;
    margin-top: 1.5rem;
  }

  .hero-image .hero-slider {
    width: 100%;
    max-width: 100%;
  }

  .hero-slider .slider-track {
    min-height: 220px;
  }

  .hero .eyebrow,
  .hero h1,
  .hero p {
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 6vw, 2.8rem);
    line-height: 1.08;
  }

  .hero p {
    max-width: 100%;
    margin: 0 auto 1.25rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .cause-card > h3,
  .cause-card > p,
  .cause-card > a,
  .cause-price {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .cause-image {
    height: 160px;
  }

  .member-slider {
    padding: 1rem;
  }

  .member-slider .slider-track {
    min-height: 280px;
  }

  .member-group {
    grid-template-columns: 1fr;
  }

  .member-card {
    padding: 0.85rem;
  }

  .latest-events {
    gap: 1rem;
  }

  .events-gallery {
    gap: 0.65rem;
  }

  .events-gallery .events-thumb img {
    height: 180px;
  }

  .section-header {
    gap: 0.75rem;
  }

  .section-header > div {
    width: 100%;
  }

  .nav {
    gap: 0.5rem;
  }

  .nav .nav-link,
  .nav a.btn {
    white-space: normal;
    text-align: center;
  }

  .hero-slider .slider-control,
  .video-slider .slider-control,
  .member-slider .slider-control {
    width: 2.4rem;
    height: 2.4rem;
  }

  .hero-image .hero-slider,
  .video-slider,
  .member-slider {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .footer-inner > * {
    min-width: 0 !important;
    width: 100% !important;
  }

  .footer-links,
  .footer-links-group,
  .footer-contact-group,
  .footer-social,
  .footer-links-wrap {
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 768px) {
  .fixed-social-bar {
    width: calc(100% - 1rem) !important;
    max-width: calc(100% - 1rem) !important;
    left: 0.5rem !important;
    right: 0.5rem !important;
    bottom: 1rem !important;
    top: auto !important;
  }
}
