/* style/about.css */

/* Body background is dark from shared.css, so use light text colors */
.page-about {
  color: var(--text-main); /* #F2FFF6 */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-about__section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--background-color);
}

.page-about__dark-bg {
  background-color: var(--background-color);
  color: var(--text-main);
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body already has padding-top from --header-offset */
  overflow: hidden;
  background-color: var(--background-color);
}

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

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

.page-about__hero-content {
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
  z-index: 1;
}

.page-about__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.page-about__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.page-about__btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: #ffffff;
  color: var(--primary-color); /* #11A84E */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
  border: 2px solid var(--primary-color); /* #11A84E */
  cursor: pointer;
  box-sizing: border-box;
}

.page-about__btn-secondary:hover {
  background: var(--primary-color); /* #11A84E */
  color: #ffffff;
  transform: translateY(-2px);
}

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

.page-about__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: var(--text-main);
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
}

.page-about__sub-title {
  font-size: clamp(1.4em, 2.5vw, 2em);
  color: var(--glow-color); /* #57E38D */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__paragraph {
  font-size: 1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: left;
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 30px;
}

@media (min-width: 768px) {
  .page-about__content-grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  .page-about__content-grid--reverse {
    grid-template-columns: 1fr 1fr;
  }
  .page-about__content-grid--reverse .page-about__image-block {
    order: 2;
  }
  .page-about__content-grid--reverse .page-about__text-block {
    order: 1;
  }
}

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

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

.page-about__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.page-about__list-item {
  color: var(--text-secondary);
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-about__list-item::before {
  content: '✓';
  color: var(--glow-color); /* #57E38D */
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-about__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-about__faq-item {
  background-color: var(--card-bg-color); /* #11271B */
  border: 1px solid var(--border-color); /* #2E7A4E */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-main);
  list-style: none; /* For <details> summary */
}

.page-about__faq-item details > summary {
  list-style: none;
}
.page-about__faq-item details > summary::-webkit-details-marker {
  display: none;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--glow-color); /* #57E38D */
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  padding: 0 25px 18px 25px;
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.6;
}

.page-about__cta-section {
  padding: 80px 0;
  background-color: var(--deep-green-color); /* #0A4B2C */
}

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

/* Ensure all images are responsive by default */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

/* Ensure all buttons are responsive by default */
.page-about a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-about__hero-content {
    margin-top: 30px;
    padding: 0 15px;
  }

  .page-about__main-title {
    font-size: 2em;
  }

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

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

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

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

  .page-about__container {
    padding: 0 15px;
  }

  .page-about__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-about__content-grid--reverse .page-about__image-block {
    order: unset;
  }
  .page-about__content-grid--reverse .page-about__text-block {
    order: unset;
  }

  .page-about__paragraph {
    font-size: 0.95em;
  }

  .page-about__list-item {
    font-size: 0.95em;
  }

  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-about__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95em;
  }

  .page-about__cta-section {
    padding: 60px 0;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

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

  /* Mobile specific image handling */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-image-wrapper,
  .page-about__image-block,
  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  /* Adjust padding for sections/containers to prevent content touching edges */
  .page-about__section > .page-about__container,
  .page-about__cta-section > .page-about__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Custom Colors */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg-color: #11271B;
  --background-color: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* Ensure content area p and li inherit text-secondary */
.page-about p, .page-about li {
  color: var(--text-secondary);
}

/* Ensure titles in dark sections are text-main or glow */
.page-about__dark-bg .page-about__section-title {
  color: var(--text-main);
}
.page-about__dark-bg .page-about__sub-title {
  color: var(--glow-color);
}