/* style/about.css */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #FFF6D6); /* Default light text for dark body background */
  background-color: var(--body-bg, #0A0A0A);
}

.page-about__section {
  padding: 40px 0;
  position: relative;
  z-index: 1;
}

.page-about__dark-section {
  background-color: var(--card-bg, #111111);
  color: var(--text-main, #FFF6D6);
}

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

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: var(--header-offset, 120px);
  padding-bottom: 60px;
  background: linear-gradient(135deg, #F2C14E, #FFD36B);
  color: #111111; /* Dark text for light gradient background */
}

.page-about__hero-content-wrapper {
  max-width: 900px;
  margin-bottom: 30px;
  padding: 0 15px;
}

.page-about__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #111111; /* Dark text for light gradient background */
}

.page-about__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #333333; /* Dark text for light gradient background */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 20px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: block;
}

/* Section Titles */
.page-about__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main, #FFF6D6);
}

.page-about__dark-section .page-about__section-title {
  color: var(--text-main, #FFF6D6);
}

.page-about__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--text-main, #FFF6D6);
}

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

.page-about__cta-buttons--centered {
  margin-top: 40px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff; /* White text for gold gradient */
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
  transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
  background: var(--glow, #FFD36B);
  color: #111111; /* Dark text for light gold background */
  border-color: var(--glow, #FFD36B);
  transform: translateY(-2px);
}

/* Story Section */
.page-about__story-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about__story-content {
  flex: 1;
}

.page-about__story-subtitle {
  font-size: clamp(1.4em, 2.5vw, 2em);
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-main, #FFF6D6);
}

.page-about__story-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-about__story-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Why Choose Section */
.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-about__feature-card {
  background-color: var(--card-bg, #111111);
  border: 1px solid var(--border, #3A2A12);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: var(--text-main, #FFF6D6);
}

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

.page-about__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--glow, #FFD36B);
}

.page-about__card-text {
  font-size: 0.95em;
  color: var(--text-main, #FFF6D6);
}

/* Commitment Section */
.page-about__commitment-grid {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-about__commitment-item {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  text-align: center;
  color: var(--text-main, #FFF6D6);
}

.page-about__commitment-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-about__commitment-subtitle {
  font-size: 1.6em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--glow, #FFD36B);
}

.page-about__link {
  color: var(--glow, #FFD36B);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-about__link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Community Section */
.page-about__partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
}

.page-about__partner-logo {
  height: 127px; /* Fixed height for partner logos */
  width: auto; /* Maintain aspect ratio */
  max-width: 167px; /* Max width for partner logos */
  opacity: 0.7;
  transition: opacity 0.3s ease;
  display: block; /* Ensure no extra space below */
}

.page-about__partner-logo:hover {
  opacity: 1;
}

/* Vision Section */
.page-about__vision-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 40px auto;
  display: block;
  max-width: 1000px;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 30px;
}

.page-about__faq-item {
  background-color: var(--card-bg, #111111);
  border: 1px solid var(--border, #3A2A12);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main, #FFF6D6);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: var(--card-bg, #111111);
  font-size: 1.1em;
  font-weight: 600;
  color: var(--glow, #FFD36B);
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: #1a1a1a;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-main, #FFF6D6);
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 20px;
}

.page-about__faq-answer p {
  margin: 0;
  font-size: 0.95em;
}

/* CTA Section */
.page-about__cta-content {
  text-align: center;
}

.page-about__cta-content .page-about__section-title {
  color: var(--text-main, #FFF6D6);
}

.page-about__cta-content .page-about__text-block {
  color: var(--text-main, #FFF6D6);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__story-grid {
    flex-direction: column-reverse;
  }

  .page-about__story-content,
  .page-about__story-image-wrapper {
    flex: none;
    width: 100%;
  }

  .page-about__commitment-grid {
    flex-direction: column;
    align-items: center;
  }

  .page-about__commitment-item {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 100px) !important; /* Mobile: controlled by shared's media */
    padding-bottom: 40px;
  }

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

  .page-about__hero-description {
    font-size: 1em;
  }

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

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

  .page-about__story-subtitle {
    font-size: clamp(1.2em, 5vw, 1.6em);
  }

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

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

  .page-about__feature-card,
  .page-about__faq-item {
    padding: 20px;
  }

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

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

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px 20px;
  }

  /* Force responsive images */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-image-wrapper,
  .page-about__story-image-wrapper,
  .page-about__commitment-item,
  .page-about__vision-image,
  .page-about__partners-grid,
  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__partners-grid {
    gap: 15px;
  }
}

/* Ensure partner logos maintain aspect ratio while fitting */
.page-about__partner-logo {
  object-fit: contain;
  flex-shrink: 0;
}