/* style/about.css */

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

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

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

.page-about__section-title {
  font-size: 2.5em;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-about__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 20px;
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
}

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

.page-about__section-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about a {
  color: var(--gold-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;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  box-sizing: border-box;
  background-color: var(--deep-green-color);
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  position: relative;
  margin-bottom: 30px;
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image slightly for text contrast */
}

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

.page-about__subtitle {
  font-size: 1.25em;
  color: var(--text-main);
  margin-bottom: 30px;
  font-weight: 300;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons adapt to mobile */
  white-space: normal;
  word-wrap: break-word;
}

.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 {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--glow-color);
  border: 2px solid var(--glow-color);
}

.page-about__btn-secondary:hover {
  background: var(--glow-color);
  color: var(--main-bg);
  transform: translateY(-2px);
}

/* Mission and Vision Section */
.page-about__mission-vision-section {
  padding: 80px 0;
  background-color: var(--main-bg);
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.page-about__text-block {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

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

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

.page-about__feature-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__feature-icon {
  width: 100%; /* Ensure images are responsive */
  max-width: 250px; /* Max size for icon-like images */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

/* Commitment Section */
.page-about__commitment-section {
  padding: 80px 0;
  background-color: var(--main-bg);
}

.page-about__commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

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

.page-about__cta-bottom {
  text-align: center;
  margin-top: 40px;
}

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

.page-about__future-content {
  display: flex;
  justify-content: center;
}

.page-about__future-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: var(--main-bg);
}

.page-about__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--deep-green-color);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

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

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

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

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--text-secondary);
}

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

/* Contact CTA Section */
.page-about__contact-cta-section {
  padding: 80px 0;
  background-color: var(--deep-green-color);
  text-align: center;
}

/* General dark section style for contrast */
.page-about__dark-section {
  background-color: var(--deep-green-color);
  color: var(--text-main);
}

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

/* --- Responsive Design --- */

/* Tablet and Mobile */
@media (max-width: 992px) {
  .page-about__section-title {
    font-size: 2em;
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }

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

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

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

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100%;
    max-width: 300px; /* Limit button width on smaller screens */
    margin: 0 auto;
  }

  .page-about__mission-vision-section,
  .page-about__why-choose-section,
  .page-about__commitment-section,
  .page-about__future-section,
  .page-about__faq-section,
  .page-about__contact-cta-section {
    padding: 60px 0;
  }

  .page-about__text-block, .page-about__feature-card, .page-about__commitment-item {
    padding: 25px;
  }
}

/* Mobile specific styles */
@media (max-width: 768px) {
  .page-about__section-title {
    font-size: 1.8em !important;
  }

  .page-about__main-title {
    font-size: clamp(1.6em, 6vw, 2.5em) !important;
  }

  .page-about__sub-title {
    font-size: 1.4em !important;
  }

  .page-about p,
  .page-about li,
  .page-about__section-description,
  .page-about__subtitle {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  /* Mandatory mobile image adaptation */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mandatory mobile button adaptation */
  .page-about__cta-button,
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .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;
  }
  
  /* Mandatory mobile container adaptation for images/buttons/videos */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__mission-vision-section,
  .page-about__why-choose-section,
  .page-about__commitment-section,
  .page-about__future-section,
  .page-about__faq-section,
  .page-about__contact-cta-section,
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container,
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal overflow */
  }

  .page-about__hero-image-wrapper {
    padding-bottom: 75%; /* Adjust aspect ratio for mobile hero */
  }

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

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

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