/* style/about.css */

/* Base styles for page-about, considering the dark body background from shared.css */
.page-about {
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Add some padding to the bottom */
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
}

.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.6); /* Darken image slightly for text readability */
}

.page-about__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  max-width: 900px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  color: #F2FFF6; /* Ensure text is readable on darkened image */
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-about__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
}

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

/* Sections */
.page-about__section {
  padding: 60px 0;
}

.page-about__dark-section {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-about__light-bg {
  background-color: #11271B; /* Card BG, used as light background in this scheme */
  color: #F2FFF6; /* Text Main */
}

.page-about__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  border-radius: 2px;
}

.page-about__section-title--dark-text {
    color: #F2FFF6; /* Ensure text is light on Card BG */
}

.page-about__text-block {
  font-size: 1.1rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #A7D9B8; /* Text Secondary */
}

.page-about__text-block--dark-text {
    color: #A7D9B8; /* Ensure text is light on Card BG */
}

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

.page-about__grid--two-cols {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.page-about__grid--three-cols {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-about__grid--cta {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Cards */
.page-about__card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #F2FFF6; /* Text Main */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__card--dark-bg {
    background-color: #0A4B2C; /* Deep Green */
    border-color: #2E7A4E;
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.page-about__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-about__card-text {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about__card-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 15px auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-about__card--full-width {
    grid-column: 1 / -1;
}

/* Lists */
.page-about__list {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: 20px;
  color: #A7D9B8; /* Text Secondary */
}

.page-about__list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-about__list li::before {
  content: '✔';
  color: #2AD16F; /* Bright green checkmark */
  position: absolute;
  left: 0;
  top: 0;
}

.page-about__list--timeline li::before {
    content: '📅';
    font-size: 1.2em;
    top: -2px;
}

.page-about__list-strong {
  color: #F2FFF6; /* Text Main */
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main */
  border: none;
}

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

.page-about__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* Bright green */
  border: 2px solid #2AD16F;
}

.page-about__btn-secondary:hover {
  background-color: #2AD16F;
  color: #08160F; /* Background */
  transform: translateY(-2px);
}

/* FAQ Section */
.page-about__faq-section {
  margin-top: 60px;
  text-align: center;
}

.page-about__faq-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 30px;
}

.page-about__faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-about__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6; /* Text Main */
}

.page-about__faq-item summary {
  display: block;
  cursor: pointer;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  position: relative;
  list-style: none;
  user-select: none;
  transition: background-color 0.3s ease;
}

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

.page-about__faq-item summary:hover {
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-about__faq-toggle {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  line-height: 1;
  color: #2AD16F; /* Bright green */
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: translateY(-50%) rotate(180deg);
  content: '−'; /* Change to minus when open */
}

.page-about__faq-item[open] summary {
    background-color: #0A4B2C; /* Deep Green */
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
}

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

.page-about__faq-answer a {
    color: #2AD16F;
    text-decoration: none;
}

.page-about__faq-answer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-content {
    max-width: 80%;
  }
  .page-about__grid--two-cols {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

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

  .page-about__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is decorative */
    padding-bottom: 40px;
  }

  .page-about__hero-content {
    position: static;
    transform: none;
    padding: 20px;
    text-align: center;
    max-width: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Add background for readability on small screens */
    margin-top: -100px; /* Pull content up over image */
  }

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

  .page-about__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-about__hero-description {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-about__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-about__text-block {
    font-size: 1rem;
    margin-bottom: 40px;
  }

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

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

  .page-about__grid--three-cols {
    grid-template-columns: 1fr;
  }

  .page-about__card {
    padding: 25px;
  }

  .page-about__card-title {
    font-size: 1.3rem;
  }

  .page-about__card-text {
    font-size: 0.95rem;
  }

  .page-about__list li {
    padding-left: 20px;
  }

  .page-about__list li::before {
    font-size: 1.1em;
  }

  .page-about__faq-title {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }

  .page-about__faq-item summary {
    padding: 18px 20px;
    font-size: 1.05rem;
  }

  .page-about__faq-toggle {
    right: 20px;
  }

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

  /* Mobile image responsiveness */
  .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-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-about__hero-section {
    padding-top: 10px !important;
  }

  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-content {
    margin-top: -80px; /* Adjust for smaller screens */
  }
  .page-about__hero-image-wrapper {
    max-height: 300px;
  }
  .page-about__section-title {
    font-size: clamp(1.6rem, 8vw, 2rem);
  }
  .page-about__text-block {
    font-size: 0.9rem;
  }
  .page-about__card {
    padding: 20px;
  }
  .page-about__card-title {
    font-size: 1.2rem;
  }
  .page-about__card-text {
    font-size: 0.9rem;
  }
  .page-about__faq-item summary {
    font-size: 1rem;
  }
  .page-about__faq-answer {
    font-size: 0.9rem;
  }
}