/* style/about.css */
.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 15px;
}

.page-about__hero-section {
  position: relative;
  padding: 100px 0 60px; /* Adjusted padding to prevent header overlap */
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  text-align: center;
  color: #FFFFFF;
  background-color: #017439; /* Brand primary color for dark background */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
}

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

.page-about__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #FFFFFF;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
}

.page-about__btn-primary {
  background-color: #C30808; /* Register/Login button color */
  color: #FFFFFF; /* Ensures WCAG AA contrast for #C30808 background */
  border: 2px solid #C30808;
}

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

.page-about__btn-secondary {
  background-color: #FFFFFF;
  color: #017439; /* Brand primary color for text */
  border: 2px solid #017439;
}

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

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

.page-about__dark-bg .page-about__section-title {
  color: #FFFFFF;
}

.page-about__vision-mission-section,
.page-about__highlights-section,
.page-about__future-vision-section,
.page-about__faq-section {
  padding: 80px 0;
}

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

.page-about__dark-bg {
  background-color: #017439;
  color: #FFFFFF;
}

.page-about__grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__grid-layout--reversed {
  grid-template-areas: "image text";
}

.page-about__grid-layout--reversed .page-about__image-wrapper {
  grid-area: image;
}

.page-about__grid-layout--reversed .page-about__text-block {
  grid-area: text;
}

.page-about__text-block p,
.page-about__text-block li {
  margin-bottom: 15px;
  font-size: 1.1em;
}

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

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

.page-about__dark-bg .page-about__sub-title {
  color: #FFFFFF;
}

.page-about__list {
  list-style: disc inside;
  padding-left: 20px;
}

.page-about__list li {
  margin-bottom: 10px;
}

.page-about__image-wrapper {
  text-align: center;
}

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

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

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

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

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFFFFF;
  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-answer p {
  padding-bottom: 15px;
  color: #F0F0F0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Ensure content is fully visible */
  padding: 15px 20px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(0deg); /* '+' becomes '-' */
}

/* Floating Buttons */
.page-about__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.page-about__floating-btn {
  display: block;
  padding: 12px 20px;
  border-radius: 50px;
  text-align: center;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background-color 0.3s ease;
  white-space: nowrap;
}

.page-about__floating-btn:hover {
  transform: translateY(-3px);
}

.page-about__floating-btn--register {
  background-color: #C30808; /* Register button color */
  color: #FFFFFF; /* Ensures WCAG AA contrast for #C30808 background */
}

.page-about__floating-btn--register:hover {
  background-color: #a00606;
}

.page-about__floating-btn--login {
  background-color: #017439; /* Brand primary color */
  color: #FFFFFF;
}

.page-about__floating-btn--login:hover {
  background-color: #005a2e;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__grid-layout {
    grid-template-columns: 1fr;
    grid-template-areas: unset;
  }

  .page-about__grid-layout--reversed .page-about__image-wrapper,
  .page-about__grid-layout--reversed .page-about__text-block {
    grid-area: unset;
  }

  .page-about__hero-title {
    font-size: 2.2em;
  }

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

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

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

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 80px 0 40px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header */
    min-height: unset;
  }

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

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

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }

  .page-about__vision-mission-section,
  .page-about__highlights-section,
  .page-about__future-vision-section,
  .page-about__faq-section {
    padding: 50px 0;
  }

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

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

  .page-about__text-block p,
  .page-about__text-block li {
    font-size: 1em;
  }

  .page-about__image {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__image-wrapper,
  .page-about__content-area,
  .page-about__container,
  .page-about__cta-buttons,
  .page-about__faq-list,
  .page-about__faq-item,
  .page-about__faq-question,
  .page-about__faq-answer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
  }

  .page-about__floating-buttons {
    flex-direction: row;
    bottom: 10px;
    right: 10px;
    left: 10px;
    width: auto;
    justify-content: space-around;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 10px;
  }

  .page-about__floating-btn {
    flex: 1;
    margin: 0 5px;
    padding: 10px 15px;
    font-size: 0.9em;
    white-space: normal;
  }
}