/* style/about.css */

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

/* Base styles for page-about */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* #F2FFF6 */
  background-color: var(--bg-color); /* #08160F from shared.css */
  padding-bottom: 60px; /* Space above footer */
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px; /* Small top padding, more bottom padding */
  overflow: hidden;
  background-color: var(--deep-green); /* #0A4B2C */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  min-height: 200px; /* Ensure min size */
}

.page-about__hero-content {
  position: relative; /* Ensure content is above image if z-index is used */
  padding: 40px 20px;
  max-width: 900px;
  z-index: 1;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: bold;
  color: var(--text-main); /* #F2FFF6 */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__intro-text {
  font-size: 1.1em;
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 30px;
}

.page-about__cta-button {
  display: inline-block;
  background: var(--button-gradient); /* Button color */
  color: var(--text-main); /* #F2FFF6 */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* Section Titles and Descriptions */
.page-about__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: var(--gold-color); /* #F2C14E */
  text-align: center;
  margin-top: 60px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-about__section-description {
  font-size: 1.05em;
  color: var(--text-secondary); /* #A7D9B8 */
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Card Grid Layout */
.page-about__card-grid,
.page-about__feature-grid,
.page-about__commitment-grid,
.page-about__future-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-about__card,
.page-about__feature-card,
.page-about__commitment-item,
.page-about__future-item {
  background-color: var(--card-bg); /* #11271B */
  border: 1px solid var(--border-color); /* #2E7A4E */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: var(--text-secondary); /* #A7D9B8 */
}

.page-about__card-title,
.page-about__feature-title,
.page-about__commitment-title,
.page-about__future-title {
  font-size: 1.5em;
  color: var(--text-main); /* #F2FFF6 */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__card-text,
.page-about__feature-text,
.page-about__commitment-text,
.page-about__future-text {
  font-size: 1em;
  color: var(--text-secondary); /* #A7D9B8 */
  flex-grow: 1; /* Allow text to take up available space */
}

.page-about__card-image,
.page-about__feature-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  object-fit: cover;
  min-height: 200px; /* Ensure min size */
}

.page-about__value-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.page-about__value-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: var(--text-secondary); /* #A7D9B8 */
}

.page-about__value-list li::before {
  content: '✓';
  color: var(--gold-color); /* #F2C14E */
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Team Section */
.page-about__team-section {
  padding: 60px 0;
  background-color: var(--deep-green); /* #0A4B2C */
}

.page-about__team-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.page-about__team-image {
  flex: 1 1 40%;
  min-width: 300px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px; /* Ensure min size */
}

.page-about__team-text {
  flex: 1 1 50%;
  min-width: 300px;
  color: var(--text-secondary); /* #A7D9B8 */
}

.page-about__team-subtitle {
  font-size: 1.4em;
  color: var(--text-main); /* #F2FFF6 */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__team-paragraph {
  margin-bottom: 20px;
  color: var(--text-secondary); /* #A7D9B8 */
}

/* FAQ Section */
.page-about__faq-section {
  padding: 60px 0;
}

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

.page-about__faq-item {
  background-color: var(--card-bg); /* #11271B */
  border: 1px solid var(--divider-color); /* #1E3A2A */
  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;
  color: var(--text-main); /* #F2FFF6 */
  font-weight: bold;
  cursor: pointer;
  background-color: var(--deep-green); /* #0A4B2C */
  border-bottom: 1px solid var(--divider-color); /* #1E3A2A */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-about__faq-question:hover {
  background-color: #1a4d33; /* Slightly lighter deep green on hover */
}

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

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

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--text-secondary); /* #A7D9B8 */
  background-color: var(--card-bg); /* #11271B */
}

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

.page-about__faq-link {
  color: var(--gold-color); /* #F2C14E */
  text-decoration: underline;
}

.page-about__faq-link:hover {
  color: #F2C14E; /* Keep gold, maybe slightly brighter */
  text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-content {
    padding: 30px 15px;
  }
  .page-about__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }
  .page-about__intro-text {
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: clamp(1.6em, 4vw, 2.4em);
  }
  .page-about__section-description {
    font-size: 0.95em;
  }
  .page-about__card-grid,
  .page-about__feature-grid,
  .page-about__commitment-grid,
  .page-about__future-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  .page-about__team-content {
    flex-direction: column;
  }
  .page-about__team-image {
    flex: none;
    width: 100%;
  }
  .page-about__team-text {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__hero-section {
    padding-top: 10px !important; /* body already has offset */
    padding-bottom: 40px;
  }
  .page-about__hero-image-wrapper {
    max-height: 300px;
  }
  .page-about__main-title {
    font-size: clamp(1.6em, 7vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-about__intro-text {
    font-size: 0.95em;
    margin-bottom: 25px;
  }
  .page-about__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-top: 40px;
    margin-bottom: 15px;
  }
  .page-about__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }
  .page-about__card-grid,
  .page-about__feature-grid,
  .page-about__commitment-grid,
  .page-about__future-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-about__card,
  .page-about__feature-card,
  .page-about__commitment-item,
  .page-about__future-item {
    padding: 20px;
  }
  .page-about__card-title,
  .page-about__feature-title,
  .page-about__commitment-title,
  .page-about__future-title {
    font-size: 1.3em;
  }
  .page-about img { /* Global image responsive for content area */
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Ensure all content containers are responsive and prevent overflow */
  .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__team-section,
  .page-about__future-section,
  .page-about__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal overflow */
  }
  .page-about__team-image {
    min-height: 200px;
  }
  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1.05em;
  }
  .page-about__faq-answer {
    padding: 15px 20px;
  }
}