/* style/about.css */

/* Base styles for page-about */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Default text color, will be overridden by section specific */
  background-color: var(--background-color); /* Default background color */
}

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

/* Section styles */
.page-about__section {
  padding: 60px 0;
  text-align: center;
}

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

.page-about__light-bg {
  background-color: var(--background-color-light);
  color: var(--text-secondary-color);
}

.page-about__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 30px;
  color: var(--text-main-color);
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__description {
  color: var(--text-main-color);
}

.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__description {
  color: var(--text-secondary-color);
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body handles padding-top, this is for internal spacing */
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image slightly for text readability */
}

.page-about__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  max-width: 900px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-main-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* CTA Button */
.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-about__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main-color);
  border: none;
}

.page-about__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  margin-left: 15px;
}

.page-about__btn-secondary:hover {
  background-color: var(--main-color);
  color: var(--text-main-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* History and Commitment Sections */
.page-about__content-wrapper {
  text-align: left;
  margin-top: 30px;
}

.page-about__content-wrapper p {
  margin-bottom: 15px;
  font-size: 1em;
  color: inherit; /* Inherit from section, then override for contrast */
}

.page-about__light-bg .page-about__content-wrapper p {
  color: var(--text-secondary-color);
}

.page-about__dark-section .page-about__content-wrapper p {
  color: var(--text-main-color);
}

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

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

.page-about__feature-card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-about__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-main-color);
}

.page-about__card-text {
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
  color: var(--text-secondary-color);
}

.page-about__card-link {
  display: inline-block;
  color: var(--gold-color);
  text-decoration: none;
  font-weight: bold;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--gold-color);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-about__card-link:hover {
  color: var(--glow-color);
  border-color: var(--glow-color);
}

/* Commitment List */
.page-about__commitment-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-about__commitment-item {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  color: var(--text-main-color);
}

.page-about__commitment-heading {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main-color);
}

.page-about__commitment-item p {
  font-size: 0.95em;
  line-height: 1.5;
  color: var(--text-secondary-color);
}

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

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

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--card-bg-color);
  color: var(--text-main-color);
  border-bottom: 1px solid transparent; /* default */
  transition: background-color 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-question {
  border-bottom-color: var(--border-color);
}

.page-about__faq-question:hover {
  background-color: var(--deep-green-color);
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 20px;
  color: var(--gold-color);
}

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

/* CTA Section */
.page-about__cta-section {
  padding: 80px 0;
  background-color: var(--deep-green-color);
  color: var(--text-main-color);
}

.page-about__cta-section .page-about__section-title {
  color: var(--text-main-color);
}

.page-about__cta-section .page-about__description {
  color: var(--text-secondary-color);
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-about__hero-content {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-about__container {
    padding: 0 15px; /* Add padding for mobile content */
  }

  .page-about__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-about__hero-content {
    position: static;
    transform: none;
    margin-top: 20px;
    padding: 0 15px;
  }

  .page-about__hero-image-wrapper {
    max-height: 400px;
  }

  .page-about__main-title {
    font-size: clamp(1.5em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-about__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-about__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  .page-about__btn-secondary {
    margin-left: 0;
    margin-top: 15px; /* Stack buttons */
  }

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

  .page-about__grid-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__commitment-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__content-wrapper,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

  .page-about__faq-answer {
    padding: 0 20px 15px 20px;
  }
}

/* Ensure images don't have filter applied */
.page-about img {
  filter: none; /* Remove any potential filter */
}