/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Titillium Web"; /* Global font */
  font-weight: 400;
  background: #eaeaea;
  color: #000000;
  line-height: 1.6;
}

/* ================= COMMON ================= */
.section-label {
  display: inline-block;
  font-size: 24px;
  letter-spacing: 4px;
  font-weight: 600;
  color: #36bd84;
  margin-bottom: 16px;
}

/* ================= ABOUT SECTION ================= */
.about-section:nth-of-type(1) {
  padding: 150px 0 0 0;
}

.about-section:nth-of-type(2) {
  padding: 40px 0 0 0;
}

.about-container {
  width: min(90%, 1200px);
  margin: auto;
}

.about-text p {
  font-size: 20px;
  max-width: 100%;
  font-weight: 400;
}

.about-text strong {
  font-weight: 600;
}

.about-line {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================
   TEAM SECTION
========================= */
.about-leadership-section {
  display: flex;
  flex-direction: column; /* stack children vertically */
  align-items: center; /* center children horizontally */
  text-align: center; /* fallback for text */
  padding: 0.2rem; /* optional spacing */
}

.about-leadership-section .about-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 10;
  padding-top: 1rem;
}

.about-leadership-section .nav-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #2d4b5a;
  border-radius: 0.5rem;
  cursor: pointer; /* disable nav clicking for privacy */
  transition: all 0.3s ease;
}

.about-leadership-section .nav-btn img {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.3s ease;
}

.about-leadership-section .nav-btn:hover {
  background: #2d4b5a;
  border-color: #00dd87;
  box-shadow:
    0 0 0.625rem rgba(0, 221, 135, 0.5),
    0 0 1.25rem rgba(0, 221, 135, 0.3);
}

.about-leadership-section .nav-btn.prev img {
  transform: scaleX(-1);
}

/* =========================
   TEAM CONTAINER
========================= */
.about-leadership-section .about-container {
  width: 100%;
  padding: 1.5rem 1rem 3rem 1rem;
  box-sizing: border-box;
}

.about-leadership-section .about-row {
  max-width: 1070px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

/* =========================
   TEAM CARDS
========================= */
.about-leadership-section .about-cards-wrapper {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin: 0;
  padding: 0;
  transition: transform 0.5s ease;
  width: 100%;
}

.about-leadership-section .about-card {
  flex: 0 0 auto;
  height: auto;
  cursor: default;
  transition: transform 0.4s ease, opacity 0.4s ease;
  position: relative;
  box-sizing: border-box;
  margin-right: 16px;
  overflow: visible;
  user-select: none;
}

.about-leadership-section .about-card-inner {
  height: 100%;
}

.about-leadership-section .about-card .about-image {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  height: 100%;
  position: relative;
  margin-right: 8px;
}

.about-leadership-section .about-card .about-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* Card Footer - Name and LinkedIn at bottom of image */
.about-leadership-section .about-card .about-card-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(27, 27, 37, 0.9);
  color: #fff;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.about-leadership-section .about-card .about-card-footer .author-name {
  font-size: clamp(1rem, 1.3vw, 1.4rem);
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.about-leadership-section .about-card .about-card-footer .linkedin-link {
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.about-leadership-section .about-card .about-card-footer .linkedin-link:hover {
  transform: scale(1.1);
}

.about-leadership-section .about-card .about-card-footer .linkedin-link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* ================= SOCIAL INITIATIVES ================= */
.social-section {
  padding: 30px 0 30px;
}

.social-container {
  width: min(90%, 1200px);
  margin: auto;
}

.social-text {
  max-width: 100%;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 50px;
  font-weight: 400;
}

/* ================= NGO GRID ================= */
.ngo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.ngo-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 372.532px;
  height: 245.211px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.ngo-card:hover {
  transform: translateY(-8px); /* 👈 slight lift */
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08); /* optional depth */
}
.ngo-card img {
  max-width: 385px;
  max-height: 185px;
  object-fit: contain;
}

/* ================= RESPONSIVE ================= */
@media (min-width: 1500px) {
  .about-container {
    width: min(95%, 1600px);
    gap: 80px;
  }

  .about-text p {
    font-size: 22px;
    max-width: 100%;
  }

  .section-label {
    font-size: 32px;
  }
  .social-container {
    width: min(95%, 1600px);
  }

  .social-text {
    font-size: 22px;
    margin-bottom: 60px;
    max-width: 100%;
  }

  .ngo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  .ngo-card {
    width: 100%;
    height: 280px;
    padding: 35px;
  }

  .ngo-card img {
    max-width: 100%;
    max-height: 200px;
  }
}

@media (min-width: 1025px) {
  .about-leadership-section .about-card {
    height: 422px;
    width: 192px !important;
    margin-right: 0;
  }
  .about-leadership-section .about-row {
    max-width: 952px;
  }
}

@media (min-width: 481px) and (max-width: 1024px) {
  .about-leadership-section .about-card {
    width: 200px !important;
    margin-right: 5px;
  }
 
  .about-container {
    max-width: 800px;
  }
  
  .ngo-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .about-text p {
    font-size: 18px;
  }

  .ngo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .ngo-card {
    width: 350px;
    height: 250px;
    padding: 25px;
  }

  .about-leadership-section .about-row{
    max-width: 602px;

  }

  .about-line{
    display: none;
  }
}

@media (max-width: 768px) {
  .about-text p {
    font-size: 16px;
  }

  .social-text {
    font-size: 18px;
    margin-bottom: 40px;
  }

  .ngo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ngo-card {
    width: 100%;
    height: 230px;
    padding: 20px;
  }
  .about-line{
    display: none;
  }
}

@media (max-width: 480px) {
  .ngo-grid {
    grid-template-columns: 1fr;
  }

  .about-section {
    padding: 60px 0 0 0;
  }

  .social-section {
    padding: 30px 0 0 0;
  }

  .about-leadership-section .about-row {
    max-width: 300px;
  }
  .about-line {
    display: none;
  }
}
