/* style/about.css */

/* Base styles for the about page */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-about__section-title {
  font-size: 2.5em;
  color: #ffffff; /* Default for dark sections */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439;
  border-radius: 2px;
}

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

.page-about__sub-title {
  font-size: 1.8em;
  color: #017439; /* Brand green for sub-titles in light sections */
  margin-bottom: 20px;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-about__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.page-about__hero-section .page-about__container {
  position: relative;
  z-index: 1;
  color: #ffffff;
}

.page-about__main-heading {
  font-size: 3.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-about__sub-heading {
  font-size: 1.5em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-about__cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Buttons */
.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: all 0.3s ease;
  box-sizing: border-box; /* Ensure padding/border included in width */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow long words to break */
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-about__btn-primary {
  background-color: #C30808; /* Register/Login red */
  color: #FFFF00; /* Register/Login yellow text */
  border: 2px solid #C30808;
}

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

.page-about__btn-secondary {
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
}

.page-about__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Mission & Vision Section */
.page-about__mission-vision {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text for light background */
}

.page-about__mission-vision .page-about__section-title {
  color: #017439;
}

.page-about__mission-vision .page-about__section-title::after {
  background-color: #C30808;
}

.page-about__mission-content {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-about__text-block {
  flex: 1;
  min-width: 300px;
}

.page-about__text-block p {
  margin-bottom: 15px;
  color: #333333;
}

.page-about__image-block {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Values & Philosophy Section */
.page-about__values-philosophy {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background from body */
  color: #ffffff; /* Light text */
}

.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-about__value-card {
  background-color: rgba(1, 116, 57, 0.1); /* Transparent green */
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  border: 1px solid #017439;
}

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

.page-about__value-card p {
  color: #f0f0f0;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text */
}

.page-about__why-choose-us .page-about__section-title {
  color: #017439;
}

.page-about__why-choose-us .page-about__section-title::after {
  background-color: #C30808;
}

.page-about__choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-about__choose-item {
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid #eee;
}

.page-about__choose-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-about__item-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

.page-about__choose-item p {
  color: #555555;
}

/* Our Team Section */
.page-about__our-team {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff; /* Light text */
}

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

.page-about__team-member {
  text-align: center;
  background-color: rgba(1, 116, 57, 0.1);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  border: 1px solid #017439;
}

.page-about__member-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid #017439;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-about__member-name {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 5px;
}

.page-about__member-role {
  font-size: 1.1em;
  color: #C30808;
  margin-bottom: 15px;
}

.page-about__member-bio {
  color: #f0f0f0;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text */
}

.page-about__faq-section .page-about__section-title {
  color: #017439;
}

.page-about__faq-section .page-about__section-title::after {
  background-color: #C30808;
}

.page-about__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.page-about__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #017439;
  transition: background-color 0.3s ease;
}

.page-about__faq-item[open] > .page-about__faq-question {
  background-color: #e5e5e5;
  color: #C30808;
}

.page-about__faq-question:hover {
  background-color: #e5e5e5;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  color: #C30808;
}

.page-about__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1.1em;
  color: #555555;
}

.page-about__faq-answer p {
  margin-top: 15px;
}

/* Remove default details marker */
.page-about__faq-item summary {
  list-style: none;
}
.page-about__faq-item summary::-webkit-details-marker {
  display: none;
}


/* Contact CTA Section */
.page-about__contact-cta {
  padding: 80px 0;
  background-color: #017439; /* Brand green background */
  color: #ffffff; /* White text */
}

.page-about__contact-cta .page-about__section-title {
  color: #ffffff;
}

.page-about__contact-cta .page-about__section-title::after {
  background-color: #FFFF00;
}

.page-about__contact-cta .page-about__section-description {
  color: #f0f0f0;
}

.page-about__btn-large {
  padding: 18px 35px;
  font-size: 1.2em;
}

.page-about__text-center {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-heading {
    font-size: 3em;
  }
  .page-about__sub-heading {
    font-size: 1.3em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-about__main-heading {
    font-size: 2.2em;
  }
  .page-about__sub-heading {
    font-size: 1.1em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__sub-title {
    font-size: 1.5em;
  }

  .page-about__cta-group {
    flex-direction: column;
    gap: 15px;
  }

  /* Mobile image responsive adaptation */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure min size for content images */
    min-height: 200px !important; /* Ensure min size for content images */
  }

  /* Mobile video responsive adaptation (if any) */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile button responsive adaptation */
  .page-about__cta-button,
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Containers for overflow prevention */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__mission-content,
  .page-about__values-grid,
  .page-about__choose-grid,
  .page-about__team-grid,
  .page-about__faq-list,
  .page-about__cta-group,
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Add padding to prevent content touching edges */
    padding-right: 15px; /* Add padding to prevent content touching edges */
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-about__mission-content,
  .page-about__values-grid,
  .page-about__choose-grid,
  .page-about__team-grid {
    grid-template-columns: 1fr; /* Stack columns */
  }

  .page-about__text-block,
  .page-about__image-block {
    min-width: unset; /* Remove min-width constraint */
  }
}

@media (max-width: 480px) {
  .page-about__main-heading {
    font-size: 1.8em;
  }
  .page-about__sub-heading {
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }
}

/* Color contrast enforcement (based on dark body background #0a0a0a) */
.page-about {
  color: #ffffff; /* Default text color for dark body background */
}

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

.page-about__light-bg .page-about__section-description,
.page-about__light-bg .page-about__choose-item p,
.page-about__light-bg .page-about__faq-answer p {
  color: #555555;
}

.page-about__dark-bg {
  background-color: #0a0a0a; /* Explicitly set dark background */
  color: #ffffff; /* Light text for dark background */
}

.page-about__contact-cta {
  background-color: #017439; /* Brand green, dark enough for white text */
  color: #ffffff;
}

.page-about__contact-cta .page-about__section-title {
  color: #ffffff;
}

.page-about__contact-cta .page-about__section-description {
  color: #f0f0f0;
}

.page-about__value-card {
  background-color: rgba(1, 116, 57, 0.1); /* Slightly transparent green on dark background */
  color: #ffffff;
}
.page-about__value-card p {
  color: #f0f0f0;
}

.page-about__faq-item {
  color: #333333; /* Dark text on light background */
}
.page-about__faq-question {
  color: #017439; /* Brand green on light background */
}
.page-about__faq-item[open] > .page-about__faq-question {
  color: #C30808; /* Red on light background */
}
.page-about__faq-toggle {
  color: #017439;
}
.page-about__faq-item[open] .page-about__faq-toggle {
  color: #C30808;
}