/* style/about.css */

/* Base styles for page-about, ensuring text color contrast with body background */
.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Assuming body background is dark, use light text */
  background-color: var(--background); /* This will be overridden by sections */
}

/* Sections */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, larger bottom for content */
  text-align: center;
  overflow: hidden;
  color: var(--text-main);
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  filter: brightness(0.6);
  min-height: 400px; /* Ensure hero image has a decent height */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  border-radius: 10px;
}

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 20px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.page-about__description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

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

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background: var(--card-bg);
  color: var(--text-main);
  border: 2px solid var(--border);
}

.page-about__btn-secondary:hover {
  background: var(--border);
  color: #ffffff;
  transform: translateY(-2px);
}

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

.page-about__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

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

.page-about__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--main-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: var(--text-secondary);
}

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

.page-about__light-bg {
  background-color: #08160F; /* Fallback to a dark background for light-bg sections if custom light not provided */
  color: var(--text-main);
}

/* Mission & Vision Section */
.page-about__mission-vision,
.page-about__history,
.page-about__commitment {
  padding: 60px 0;
}

.page-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__grid--reversed {
  grid-template-areas: "image text";
}

.page-about__grid--reversed .page-about__text-block {
  grid-area: text;
}

.page-about__grid--reversed .page-about__image-block {
  grid-area: image;
}

.page-about__text-block p,
.page-about__text-block--light p {
  color: var(--text-secondary);
}

.page-about__text-block--light h3 {
  color: var(--main-color);
}

.page-about__image-block {
  text-align: center;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: block;
}

/* Why Choose Section */
.page-about__why-choose {
  padding: 60px 0;
}

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

.page-about__feature-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  color: var(--text-main);
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
}

.page-about__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--main-color);
  margin-bottom: 15px;
}

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

.page-about__image-block--full {
  grid-column: 1 / -1;
  margin-top: 30px;
}

/* 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);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: var(--text-main);
}

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

.page-about__faq-question::-webkit-details-marker {
  display: none; /* For details tag */
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--main-color);
}

.page-about__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

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

/* Contact CTA Section */
.page-about__contact-cta {
  padding: 80px 20px;
  text-align: center;
}

.page-about__contact-cta .page-about__description {
  margin-bottom: 40px;
}

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

  .page-about__grid--reversed .page-about__text-block,
  .page-about__grid--reversed .page-about__image-block {
    grid-area: unset;
  }

  .page-about__image-block {
    order: -1; /* Image first on smaller screens */
  }

  .page-about__hero-content {
    padding: 20px;
  }
}

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

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile button responsiveness */
  .page-about__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-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__container,
  .page-about__hero-section,
  .page-about__mission-vision,
  .page-about__history,
  .page-about__why-choose,
  .page-about__commitment,
  .page-about__faq-section,
  .page-about__contact-cta,
  .page-about__features-grid,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-about__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-about__feature-card {
    padding: 20px;
  }
  
  .page-about__hero-image {
    min-height: 300px;
  }
}

/* Ensure content area images meet min size requirements */
.page-about__text-block img {
  min-width: 200px;
  min-height: 200px;
}

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