/* style/about.css */

/* --- Base Styles --- */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--page-bg-color, #FFFFFF); /* Inherit from shared.css, fallback to white */
}

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

.page-about__section-title {
  font-size: 3em;
  color: #017439; /* Brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-about__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

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

/* --- Color Contrast Classes --- */
.page-about__dark-section {
  background-color: #017439; /* Main brand color */
  color: #ffffff; /* White text for dark background */
  padding: 80px 0;
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__sub-title {
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #ffffff; /* Auxiliary color / default light background */
  color: #333333; /* Dark text for light background */
  padding: 80px 0;
}

/* --- Buttons --- */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__faq-link {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

/* Specific colors for Register/Login buttons */
.page-about__hero-buttons .page-about__btn-primary,
.page-about__cta-buttons .page-about__btn-primary {
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-about__hero-buttons .page-about__btn-primary:hover,
.page-about__cta-buttons .page-about__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-about__hero-buttons .page-about__btn-secondary,
.page-about__cta-buttons .page-about__btn-secondary {
  background-color: #C30808; /* Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-about__hero-buttons .page-about__btn-secondary:hover,
.page-about__cta-buttons .page-about__btn-secondary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

/* General secondary button for other CTAs */
.page-about__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

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

.page-about__cta-center .page-about__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-about__cta-center .page-about__btn-primary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

.page-about__faq-link {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
  margin-top: 20px;
}

.page-about__faq-link:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

/* --- Hero Section --- */
.page-about__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  padding-top: 0; /* Assuming shared.css sets body padding-top */
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-about__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent dark overlay for readability */
  z-index: 2;
}

.page-about__hero-section .page-about__container {
  position: relative;
  z-index: 3; /* Ensure text is above overlay */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Fallback for header offset */
}

.page-about__hero-title {
  font-size: 4.5em;
  margin-bottom: 20px;
  line-height: 1.1;
  font-weight: bold;
  color: #ffffff;
}

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

.page-about__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Added for mobile responsiveness */
}

/* --- Mission Section --- */
.page-about__mission-section .page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__mission-section .page-about__text-block p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #444444;
}

/* --- Why Choose Us Section --- */
.page-about__why-choose-us .page-about__section-intro {
  color: #f0f0f0;
}

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

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark section */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-about__feature-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.2);
}

.page-about__feature-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #ffffff;
  font-weight: bold;
}

.page-about__feature-card p {
  font-size: 1.05em;
  color: #f0f0f0;
}

.page-about__cta-center {
  text-align: center;
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* --- Values Section --- */
.page-about__values-section .page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__values-section .page-about__content-grid--reverse {
  grid-template-areas: "text image"; /* Default order */
}

.page-about__values-section .page-about__content-grid--reverse .page-about__text-block {
  grid-area: text;
}

.page-about__values-section .page-about__content-grid--reverse .page-about__image {
  grid-area: image;
}

.page-about__values-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-about__values-list li {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.5;
  color: #444444;
}

.page-about__values-list li strong {
  color: #017439;
  font-size: 1.2em;
  display: block;
  margin-bottom: 5px;
}

.page-about__values-section .page-about__text-block .page-about__btn-primary {
  margin-top: 30px;
}

/* --- FAQ Section --- */
.page-about__faq-section .page-about__section-intro {
  color: #f0f0f0;
}

.page-about__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark section */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-about__faq-question h3 {
  margin: 0;
  font-size: 1.3em;
  color: #ffffff;
}

.page-about__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #ffffff;
  transition: transform 0.3s ease;
  line-height: 1;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px 25px;
}

.page-about__faq-answer p {
  margin-bottom: 10px;
  font-size: 1.05em;
  color: #f0f0f0;
}

.page-about__faq-answer p:last-child {
  margin-bottom: 0;
}

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

.page-about__cta-content {
  max-width: 900px;
}

.page-about__cta-title {
  font-size: 3em;
  color: #017439;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-about__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #555555;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Added for mobile responsiveness */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3.5em;
  }

  .page-about__hero-description {
    font-size: 1.3em;
  }

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

  .page-about__sub-title {
    font-size: 1.6em;
  }

  .page-about__mission-section .page-about__content-grid,
  .page-about__values-section .page-about__content-grid {
    grid-template-columns: 1fr;
  }

  .page-about__values-section .page-about__content-grid--reverse {
    grid-template-areas: unset; /* Reset grid area for single column */
  }
}