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

.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: #FFFFFF; /* Light background */
  text-align: center;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-about__hero-content {
  max-width: 900px;
  margin: 20px auto 0;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Responsive H1 font size */
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555555;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

.page-about__section {
  padding: 80px 0;
}

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

.page-about__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: #017439;
}

.page-about__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: #017439;
  margin-bottom: 20px;
}

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

.page-about__grid-two-columns--reversed {
  grid-template-columns: 1fr 1fr;
}

.page-about__image-block {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-about__text-block--full-width {
  grid-column: 1 / -1;
  margin-top: 30px;
}

/* Background colors for contrast */
.page-about__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

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

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

.page-about__dark-bg .page-about__text-block p {
  color: #f0f0f0;
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #017439;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
}

.page-about__faq-item[open] .page-about__faq-question {
  border-bottom: 1px solid #d0d0d0;
}

.page-about__faq-question::-webkit-details-marker, /* Hide default marker for Chrome */
.page-about__faq-question::marker { /* Hide default marker for Firefox */
  display: none;
}

.page-about__faq-qtext {
  flex-grow: 1;
}

.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 {
  content: '−';
}

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  background-color: #ffffff;
}

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

/* Contact Section */
.page-about__contact {
  text-align: center;
}

.page-about__contact-text {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: clamp(2em, 5vw, 2.5em);
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__sub-title {
    font-size: 1.5em;
  }
  .page-about__grid-two-columns {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-about__hero-content {
    padding: 0 15px;
  }
  .page-about__main-title {
    font-size: clamp(1.8em, 6vw, 2.2em);
  }
  .page-about__description {
    font-size: 1em;
  }
  .page-about__section {
    padding: 50px 0;
  }
  .page-about__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__sub-title {
    font-size: 1.3em;
  }
  .page-about__grid-two-columns {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
  }
  .page-about__grid-two-columns--reversed {
    grid-template-columns: 1fr;
  }
  .page-about__image-block {
    order: -1; /* Image first on mobile for reversed grids */
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Image responsive rules */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-image-wrapper,
  .page-about__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-about__faq-answer {
    padding: 15px 20px;
  }
}

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