/* style/about.css */

/* Base styles for the About page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--body-bg, #FFFFFF);
}

.page-about__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;
}

.page-about__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-about__paragraph--centered {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  padding: 120px 20px 60px; /* Adjust padding-top for fixed header */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
  padding-top: var(--header-offset, 120px);
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.5); /* Darken image slightly for text readability */
}

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  max-width: 900px;
}

.page-about__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.1em;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-about__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
  margin-right: 15px;
}

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

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

.page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
  border-color: #005a2e;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Sections */
.page-about__mission-vision-section,
.page-about__why-choose-us-section,
.page-about__review-process-section,
.page-about__expert-team-section,
.page-about__future-outlook-section,
.page-about__faq-section,
.page-about__cta-section {
  padding: 80px 0;
}

.page-about__dark-section {
  background-color: #017439;
  color: #ffffff;
}

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

.page-about__dark-section .page-about__paragraph {
  color: #f0f0f0;
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-about__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

.page-about__content-wrapper .page-about__text-block {
  flex: 2;
}

.page-about__content-wrapper .page-about__image-content {
  flex: 1;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

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

.page-about__grid--two-columns {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.page-about__card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-about__light-bg .page-about__card {
  background-color: #f9f9f9;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-about__card:hover {
  transform: translateY(-5px);
}

.page-about__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: inherit;
  font-weight: bold;
}

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

.page-about__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-top: 40px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-about__image-full-width {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px 0;
}

.page-about__light-bg .page-about__faq-item {
  border-bottom: 1px solid #e0e0e0;
}

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

.page-about__faq-question:hover {
  color: #f0f0f0; /* Lighter hover for dark section */
}

.page-about__light-bg .page-about__faq-question:hover {
  color: #017439; /* Brand color hover for light section */
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1em;
  line-height: 1.7;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__content-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .page-about__content-wrapper .page-about__text-block {
    flex: none;
    width: 100%;
  }
  .page-about__content-wrapper .page-about__image-content {
    max-width: 100%;
  }
  .page-about__grid--two-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 100px 15px 40px; /* Adjust padding for mobile */
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__paragraph {
    font-size: 1em;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-about__mission-vision-section,
  .page-about__why-choose-us-section,
  .page-about__review-process-section,
  .page-about__expert-team-section,
  .page-about__future-outlook-section,
  .page-about__faq-section,
  .page-about__cta-section {
    padding: 40px 0;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__grid {
    grid-template-columns: 1fr;
  }
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__faq-answer {
    padding: 0 10px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__hero-description {
    font-size: 0.95em;
  }
  .page-about__section-title {
    font-size: 1.6em;
  }
  .page-about__card-title {
    font-size: 1.3em;
  }
  .page-about__faq-question {
    font-size: 1.1em;
  }
}