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

/* Base styles for the page, assuming a dark body background from shared.css */
.page-about {
  background-color: var(--sao79-background); /* Override for specific page background if needed, otherwise relies on body */
  color: var(--sao79-text-main); /* Light text for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-about a {
  color: var(--sao79-secondary-color);
  text-decoration: none;
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image block first, then text block */
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  box-sizing: border-box;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 70vh; /* Limit height of the image wrapper */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  min-height: 300px; /* Minimum height for hero image */
}

.page-about__hero-content {
  max-width: 900px;
  padding: 40px 20px;
  text-align: center;
  z-index: 1; /* Ensure text is above any potential background elements */
  box-sizing: border-box;
}

.page-about__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  color: var(--sao79-gold);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-about__intro-text {
  font-size: 1.15rem;
  color: var(--sao79-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* General Section Styles */
.page-about__section {
  padding: 80px 0;
  border-bottom: 1px solid var(--sao79-divider);
}

.page-about__section:last-of-type {
  border-bottom: none;
}

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

.page-about__section-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--sao79-text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  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-color: var(--sao79-primary-color);
  border-radius: 2px;
}

.page-about__subtitle {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--sao79-gold);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-about__paragraph {
  font-size: 1rem;
  color: var(--sao79-text-secondary);
  margin-bottom: 15px;
}

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

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

.page-about__list-item::before {
  content: '✔️'; /* Unicode checkmark */
  position: absolute;
  left: 0;
  color: var(--sao79-primary-color);
}

/* Grid Layouts */
.page-about__grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 30px;
}

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

.page-about__grid-item {
  background-color: var(--sao79-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--sao79-border);
  height: 100%;
  box-sizing: border-box;
}

.page-about__grid-item:nth-child(even) {
  order: 2;
}

.page-about__grid-item:nth-child(odd) {
  order: 1;
}

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

.page-about__image--full-width {
  width: 100%;
  margin-top: 30px;
}

/* Buttons */
.page-about__btn-primary {
  display: inline-block;
  background: var(--sao79-button-gradient);
  color: #ffffff; /* White text for contrast */
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-about__btn-primary--large {
  padding: 18px 40px;
  font-size: 1.2rem;
}

/* FAQ Section */
.page-about__faq-section {
  padding-bottom: 80px;
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sao79-text-main);
  cursor: pointer;
  background-color: var(--sao79-deep-green);
  border-bottom: 1px solid var(--sao79-divider);
  list-style: none; /* For details/summary */
}

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

.page-about__faq-item[open] .page-about__faq-question {
  border-bottom: 1px solid var(--sao79-border);
}

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

.page-about__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sao79-gold);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}

.page-about__faq-answer {
  padding: 20px;
  font-size: 1rem;
  color: var(--sao79-text-secondary);
  background-color: var(--sao79-card-bg);
  border-top: none;
}

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

  .page-about__grid-item:nth-child(even),
  .page-about__grid-item:nth-child(odd) {
    order: unset; /* Reset order for smaller screens */
  }

  .page-about__grid-item img {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-bottom: 40px;
  }

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

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

  .page-about__intro-text {
    font-size: 1rem;
  }

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

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

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

  .page-about__subtitle {
    font-size: clamp(1.3rem, 5vw, 1.7rem);
    margin-top: 30px;
  }

  .page-about__paragraph,
  .page-about__list-item,
  .page-about__faq-answer p {
    font-size: 0.95rem;
  }

  /* Images responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset !important; /* Allow smaller images on mobile if needed for layout */
    min-height: unset !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__hero-image-wrapper,
  .page-about__hero-content,
  .page-about__grid-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  /* Buttons responsiveness */
  .page-about__btn-primary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex; /* Ensure flex context for wrap/column */
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

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

/* Color Contrast Fixes (if needed, based on smart analysis) */
/* Assuming var(--sao79-background) is dark, text is light by default */
.page-about__card {
  background-color: var(--sao79-card-bg);
  color: var(--sao79-text-main);
}

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

.page-about__btn-primary {
  background: var(--sao79-button-gradient);
  color: #ffffff;
}

.page-about__btn-secondary {
  background: #ffffff;
  color: var(--sao79-primary-color);
  border: 2px solid var(--sao79-primary-color);
}