/* style/about.css */

/* --- General Page Styles --- */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Default body background is white */
}

.page-about__content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-about__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

/* --- Hero Section --- */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding for first section */
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-about__dark-section {
  background-color: #017439; /* Primary brand color */
  color: #ffffff; /* White text for dark background */
}

.page-about__light-bg {
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text for light background */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  max-height: 675px; /* Limit height for aesthetic */
  object-fit: cover;
  margin-bottom: 40px; /* Space between image and text */
  display: block; /* Ensure image behaves as a block element */
}

.page-about__hero-content {
  max-width: 900px;
  z-index: 1; /* Ensure text is above any potential background elements */
  padding: 20px;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size */
  color: #FFFF00; /* Custom font color for H1 in hero */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0; /* Slightly off-white for description */
}

.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
  text-align: center;
}

.page-about__btn-primary {
  background-color: #C30808; /* Custom red for primary CTA */
  color: #FFFF00; /* Custom yellow for primary CTA font */
  border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom yellow for secondary CTA font */
  border: 2px solid #FFFF00; /* Yellow border */
}

.page-about__btn-secondary:hover {
  background-color: #FFFF00;
  color: #017439; /* Dark green text on yellow hover */
  border-color: #FFFF00;
}

/* --- Introduction Section --- */
.page-about__introduction-section {
  padding: 80px 0;
}

.page-about__content-image {
  width: 100%;
  height: auto;
  max-width: 1000px;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 8px;
  object-fit: cover;
}

/* --- Mission & Values Section --- */
.page-about__mission-values-section {
  padding: 80px 0;
}

.page-about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__card {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: #ffffff; /* Light background for cards */
  color: #333333; /* Dark text for light background */
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards have equal height */
  box-sizing: border-box;
}

.page-about__card-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__card-text {
  font-size: 1em;
  line-height: 1.7;
  flex-grow: 1;
}

.page-about__value-list {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

.page-about__value-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  font-size: 1em;
}

.page-about__value-list li::before {
  content: '✓';
  color: #017439;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* --- Why Choose Us Section --- */
.page-about__why-choose-us-section {
  padding: 80px 0;
}

.page-about__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__feature-item {
  text-align: center;
  padding: 25px;
  border-radius: 10px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.page-about__feature-icon {
  width: 200px; /* Enforce min size 200px */
  height: 200px; /* Enforce min size 200px */
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 50%; /* Make icons circular if desired */
}

.page-about__feature-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__feature-description {
  font-size: 0.95em;
  line-height: 1.6;
  flex-grow: 1;
}

/* --- Commitment Section --- */
.page-about__commitment-section {
  padding: 80px 0;
}

.page-about__commitment-list {
  list-style: none;
  padding-left: 0;
  margin-top: 30px;
}

.page-about__commitment-list li {
  background-color: rgba(255, 255, 255, 0.1); /* Light background for list items in dark section */
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  position: relative;
  padding-left: 45px;
  color: #ffffff; /* White text */
  font-size: 1.1em;
}

.page-about__commitment-list li::before {
  content: '★';
  color: #FFFF00; /* Yellow star */
  position: absolute;
  left: 15px;
  font-size: 1.5em;
  top: 50%;
  transform: translateY(-50%);
}

/* --- Contact CTA Section --- */
.page-about__contact-cta-section {
  padding: 80px 0;
  text-align: center;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-about__hero-image {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__content-container {
    padding: 0 15px;
  }

  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body already handles header offset, small decorative padding */
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-about__description {
    font-size: 1em;
  }

  .page-about__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-about__introduction-section,
  .page-about__mission-values-section,
  .page-about__why-choose-us-section,
  .page-about__commitment-section,
  .page-about__contact-cta-section {
    padding: 50px 0;
  }

  .page-about__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-about__text-block {
    font-size: 0.95em;
  }

  .page-about__grid,
  .page-about__feature-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-about__card,
  .page-about__feature-item {
    padding: 20px;
  }

  .page-about__card-title,
  .page-about__feature-title {
    font-size: 1.5em;
  }

  .page-about__feature-icon {
    width: 200px !important; /* Enforce min size 200px */
    height: 200px !important; /* Enforce min size 200px */
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/videos/buttons */
  .page-about__hero-section,
  .page-about__introduction-section,
  .page-about__mission-values-section,
  .page-about__why-choose-us-section,
  .page-about__commitment-section,
  .page-about__contact-cta-section,
  .page-about__content-container,
  .page-about__card,
  .page-about__feature-item,
  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
}

@media (max-width: 480px) {
  .page-about__hero-section {
    padding: 30px 10px;
    padding-top: 10px !important;
  }

  .page-about__main-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }

  .page-about__description {
    font-size: 0.9em;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    font-size: 0.9em;
    padding: 10px 15px;
  }

  .page-about__section-title {
    font-size: 1.8em;
  }
}