/* === HERO IMAGE SECTION === */
/* Styles the full-width hero image at the top of the page */
.about_us {
  width: 100%;
  overflow: hidden;
}

.about_us img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* === MAIN SECTION BLOCKS === */
/* Each section block with padding and background */
.about-block {
  padding: 60px 40px;
  background-color: var(--gray);
}

/* Layout container for image + text */
.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* === IMAGE STYLING === */
/* Applies to all images used in sections */
.about-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  object-fit: cover;
}

/* Passport-style image (e.g. Juma's photo) */
.about-img.passport {
  max-width: 250px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Program images (Preparedness, Performance, Pathways) */
.about-img.program-image {
  max-width: 400px;
}

/* Performance images container */
.performance-images {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: flex-start;
  align-items: center;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.performance-images .about-img.program-image {
  max-width: 250px;
  flex: 0 0 auto;
  min-width: 0;
}

/* Pathways images container */
.pathways-images {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: flex-start;
  align-items: center;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.pathways-images .about-img.program-image {
  max-width: 250px;
  flex: 0 0 auto;
  min-width: 0;
}

/* Responsive: stack vertically on small screens */
@media (max-width: 768px) {
  .performance-images,
  .pathways-images {
    flex-direction: column;
    gap: 10px;
    overflow-x: visible;
  }

  .performance-images .about-img.program-image,
  .pathways-images .about-img.program-image {
    max-width: 100%;
  }
}

/* === TEXT STYLING === */
/* Text block next to image */
.about-text {
  flex: 1;
  text-align: left;
}

/* Ensures reversed sections still align left */
.about-block.reverse .about-text {
  text-align: left;
}

/* Headings inside text blocks */
.about-text h2,
.about-text h3 {
  color: var(--green);
  margin-bottom: 20px;
  font-size: 2em;
}

/* Paragraphs and lists */
.about-text p,
.about-text ul {
  font-size: 1.1em;
  line-height: 1.8;
  color: #333;
}

/* List styling */
.about-text ul {
  list-style: none;
  padding: 0;
}

.about-text ul li {
  background-color: var(--white);
  margin: 10px 0;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* === HIGHLIGHTED LIST ITEMS === */
/* Used for mission, goals, impact, etc. */
.highlight-list li {
  background-color: #fcee30;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* === RESPONSIVE DESIGN FOR SMALL SCREENS === */
@media (max-width: 900px) {
  /* Center content on mobile */
  .about-content {
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  /* Shrink image size on mobile */
  .about-img {
    max-width: 320px;
    margin-bottom: 10px;
  }

  /* Center text on mobile */
  .about-text {
    width: 100%;
    text-align: center;
    margin: 0 auto;
  }

  /* Smaller headings */
  .about-text h2,
  .about-text h3 {
    font-size: 1.6em;
  }

  /* Smaller paragraph and list text */
  .about-text p,
  .about-text ul {
    font-size: 1em;
  }

  /* Reduce padding for mobile */
  .about-block {
    padding: 40px 20px;
  }
}

/* === STATS SECTION === */
/* Displays counters for impact metrics */
.stats-section {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 60px 20px;
  background-color: var(--white);
  text-align: center;
}

.stat-box {
  background-color: var(--gray);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  width: 180px;
}

.counter {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--green);
  display: block;
  margin-bottom: 10px;
}

/* === PARALLAX SECTION === */
/* Background image with fixed scroll effect */
.parallax-section {
  background-image: url('../media/rugby-field.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  padding: 100px 20px;
  color: var(--white);
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.parallax-content {
  background-color: #006400;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Text above, slideshow below layout */
.text-left-slideshow-right .about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.text-left-slideshow-right .about-text {
  width: 100%;
  text-align: left;
  max-width: 800px;
}

.text-left-slideshow-right .slideshow-container {
  width: 100%;
  max-width: 600px;
  position: relative;
  overflow: hidden;
}

/* Text left, image right layout for "Our Story" */
.text-left-image-right .about-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.text-left-image-right .about-text {
  flex: 1;
  text-align: left;
  max-width: 600px;
}

.text-left-image-right .about-img {
  flex: 0 0 auto;
  max-width: 400px;
}

/* Responsive: adjust for smaller screens */
@media (max-width: 768px) {
  .text-left-slideshow-right .about-content {
    gap: 30px;
  }

  .text-left-slideshow-right .about-text {
    text-align: center;
  }

  .text-left-slideshow-right .slideshow-container {
    max-width: 100%;
  }

  .text-left-image-right .about-content {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .text-left-image-right .about-text {
    text-align: center;
    max-width: 100%;
  }

  .text-left-image-right .about-img {
    max-width: 320px;
  }
}

/* Full-width text for specific sections */
.full-width-text .about-text {
  width: 100%;
  text-align: left;
  margin: 0;
}

/* Slideshow containers in full-width sections */
.full-width-text .slideshow-container {
  width: 100%;
  margin-top: 30px;
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

/* Slideshow slides */
.slides {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 400px;
  transition: transform 0.3s ease-in-out;
}

.slide {
  flex: 0 0 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Navigation buttons */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color 0.3s;
}

.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Responsive slideshow */
@media (max-width: 768px) {
  .slides {
    height: 250px;
  }

  .prev, .next {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .slides {
    height: 200px;
  }

  .prev, .next {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
}
