/* style/about.css */
.page-about {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
  background-color: #f8f9fa;
}

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

.page-about__hero-section {
  position: relative;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  text-align: center;
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff; /* White text for brand color background */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

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

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

.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;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-about__btn-primary {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-about__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Brand primary color */
  border: 2px solid #26A9E0;
  margin-left: 20px;
}

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

.page-about__intro-section,
.page-about__credibility-section,
.page-about__experience-section,
.page-about__support-section,
.page-about__commitment-section,
.page-about__faq-section {
  padding: 60px 20px;
  overflow: hidden; /* Prevent content overflow */
}

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

.page-about__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-about__heading {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Brand primary color */
}

.page-about__dark-bg .page-about__heading {
  color: #ffffff;
}

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

.page-about__content-wrapper--reverse {
  flex-direction: row-reverse;
}

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

.page-about__text-block--light {
  color: #ffffff;
}

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

.page-about__highlight {
  font-weight: bold;
  color: #26A9E0;
}

.page-about__dark-bg .page-about__highlight {
  color: #ffffff;
}

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

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

/* FAQ Section */
.page-about__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-about__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #f5f5f5;
  transition: background-color 0.3s ease;
}

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

.page-about__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #333333;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

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

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

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__heading {
    font-size: 2em;
  }
  .page-about__content-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .page-about__text-block,
  .page-about__image-block {
    flex: none;
    width: 100%;
  }
  .page-about__btn-secondary {
    margin-left: 0;
    margin-top: 15px;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__heading {
    font-size: 1.8em;
  }
  .page-about__intro-section,
  .page-about__credibility-section,
  .page-about__experience-section,
  .page-about__support-section,
  .page-about__commitment-section,
  .page-about__faq-section {
    padding: 40px 15px;
  }

  /* Image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Button responsiveness */
  .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;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 10px !important;
    padding: 12px 20px !important;
  }

  .page-about__hero-section .page-about__btn-primary {
    margin-top: 20px !important;
  }

  /* FAQ responsiveness */
  .page-about__faq-question {
    padding: 15px;
  }
  .page-about__faq-title {
    font-size: 1.1em;
  }
  .page-about__faq-answer {
    padding: 0 15px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px;
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__heading {
    font-size: 1.5em;
  }
  .page-about__faq-title {
    font-size: 1em;
  }
  .page-about__hero-section {
    min-height: 300px;
  }
}