/* style/about.css */
/* 
  Body padding-top is handled by shared.css:
  body { padding-top: var(--header-offset); }
  Do not duplicate padding-top with var(--header-offset) in .page-about or its direct children.
*/

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

.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color for the page, as body is dark */
  background-color: var(--background-color); /* Ensure consistency if main has its own bg */
  line-height: 1.6;
}

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

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

.page-about__section-title {
  font-size: 2.8em;
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-about__sub-title {
  font-size: 1.8em;
  color: var(--text-main);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__description,
.page-about__description-text {
  font-size: 1.1em;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-about p {
  margin-bottom: 1em;
  color: var(--text-secondary);
}

/* 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;
  background-color: var(--deep-green); /* Fallback/background for hero */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Max height for the image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Space between image and content */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum size for images */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-about__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em); /* Responsive H1 font size */
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

/* Buttons */
.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%; /* Ensure container takes full width */
  box-sizing: border-box;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  max-width: 100%; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
}

.page-about__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__btn-secondary {
  background-color: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__btn-secondary:hover {
  background-color: var(--gold-color);
  color: var(--background-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-about__btn-link {
  color: var(--gold-color);
  text-decoration: none;
  font-weight: 600;
  margin-top: 15px;
  display: inline-block;
  transition: color 0.3s ease;
}

.page-about__btn-link:hover {
  color: var(--glow-color);
  text-decoration: underline;
}

/* Content Grid for Mission/Vision */
.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

@media (min-width: 769px) {
  .page-about__content-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-about__content-grid:nth-child(even) .page-about__text-block {
      order: 2;
  }
  .page-about__content-grid:nth-child(even) .page-about__image-block {
      order: 1;
  }
}

.page-about__image-block {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image-block--center {
  margin-top: 40px;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
  background-color: var(--deep-green); /* Darker background for contrast */
  color: var(--text-main);
}

.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-about__feature-card {
  background-color: var(--card-bg); /* Card background */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
}

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

.page-about__feature-card p {
  color: var(--text-secondary);
  flex-grow: 1;
}

/* Our Values Section */
.page-about__our-values {
  background-color: var(--background-color);
}

.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-about__value-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  text-align: center;
}

.page-about__value-title {
  font-size: 1.4em;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-about__value-item p {
  color: var(--text-secondary);
}

/* Team Section */
.page-about__team {
  background-color: var(--deep-green);
}

.page-about__team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__team-member {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  text-align: center;
}

.page-about__team-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid var(--gold-color);
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.5); /* Gold glow */
  min-width: 200px;
  min-height: 200px;
}

.page-about__member-name {
  font-size: 1.4em;
  color: var(--text-main);
  margin-bottom: 5px;
  font-weight: 700;
}

.page-about__member-role {
  font-size: 0.95em;
  color: var(--text-secondary);
}

/* Future Vision Section */
.page-about__future-vision {
  background-color: var(--deep-green);
  padding-bottom: 80px;
}

/* FAQ Section */
.page-about__faq {
  background-color: var(--background-color);
}

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

.page-about__faq-item {
  background-color: var(--card-bg);
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden; /* For smooth transition if JS fallback */
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--divider-color);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-about__faq-item[open] .page-about__faq-question {
  background-color: var(--deep-green);
  color: var(--gold-color);
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold-color);
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: var(--text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-about__faq-item[open] .page-about__faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding-top: 15px;
}

/* CTA Banner Section */
.page-about__cta-banner {
  padding: 80px 0;
}

.page-about__cta-banner .page-about__container {
  background: linear-gradient(90deg, var(--deep-green) 0%, var(--primary-color) 100%);
  padding: 60px 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--glow-color);
}

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

.page-about__cta-banner .page-about__description-text {
  color: var(--text-secondary);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2.5em;
  }
  .page-about__main-title {
    font-size: clamp(2.2em, 5vw, 3.2em);
  }
}

@media (max-width: 768px) {
  .page-about__container {
    padding: 0 15px;
  }

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

  .page-about__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important; /* Ensure smaller H1 on mobile */
  }

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

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
  }

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

  /* Images responsive adaptation */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure images take full width of their container */
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
    min-width: 200px !important; /* Ensure min size */
    min-height: 200px !important; /* Ensure min size */
  }

  /* All image containers must also adapt */
  .page-about__hero-image-wrapper,
  .page-about__image-block,
  .page-about__team-photo {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Specific containers for images */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__cta-banner .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Video section top padding for mobile, small amount, not header offset */
  .page-about__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-bottom: 40px !important;
  }

  .page-about__content-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .page-about__text-block {
    order: 2; /* Text block below image on mobile */
  }
  .page-about__image-block {
    order: 1; /* Image block above text on mobile */
  }

  .page-about__features-grid,
  .page-about__values-grid,
  .page-about__team-grid {
    grid-template-columns: 1fr;
  }

  .page-about__team-photo {
    width: 150px;
    height: 150px;
    min-width: 150px;
    min-height: 150px;
  }
  
  .page-about__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

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