/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Default body background */
}

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

.page-about__dark-section {
  background-color: #017439;
  color: #ffffff;
  padding: 80px 0;
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 80px 0;
}

.page-about__section-title {
  font-size: 2.5em;
  color: inherit;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

/* Hero Section */
.page-about__hero-section {
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  padding-bottom: 80px;
}

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-about__hero-description {
  font-size: 1.3em;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-about__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-about__btn-secondary {
  background-color: #FFFFFF;
  color: #017439;
  border: 2px solid #017439;
}

.page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
  border-color: #005a2e;
}

.page-about__btn-small {
  padding: 10px 20px;
  font-size: 1em;
}

/* Mission & Vision Section */
.page-about__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

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

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure it behaves as a block element for max-width */
}

/* Core Values Section */
.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__card {
  background-color: #FFFFFF;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-about__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__card p {
  font-size: 1em;
  line-height: 1.7;
}

/* Why Choose Section */
.page-about__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-about__feature-list li {
  font-size: 1.1em;
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
}

.page-about__feature-list li::before {
  content: '✅';
  position: absolute;
  left: 0;
  top: 0;
}

/* Future Vision Section */
.page-about__future-vision .page-about__text-block {
  max-width: 900px;
  margin: 0 auto 20px auto;
  font-size: 1.1em;
  text-align: center;
}

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

.page-about__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  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.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #eaf7ed;
  transition: background-color 0.3s ease;
}

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

.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); /* Plus sign rotates to form an 'x' or similar */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-about__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #555555;
}

/* Bottom CTA Section */
.page-about__cta-bottom {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 80px;
}

.page-about__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-about__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }

  .page-about__section-title {
    font-size: 2em;
  }

  .page-about__values-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-about__hero-section,
  .page-about__mission-vision,
  .page-about__core-values,
  .page-about__why-choose,
  .page-about__future-vision,
  .page-about__faq-section,
  .page-about__cta-bottom {
    padding: 60px 0;
  }

  .page-about__hero-title {
    font-size: 2.2em;
  }

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

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__grid-two-columns {
    grid-template-columns: 1fr;
  }

  .page-about__section-title {
    font-size: 1.8em;
  }

  .page-about__card-title {
    font-size: 1.3em;
  }

  .page-about__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__image-wrapper,
  .page-about__text-block,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-about__cta-title {
    font-size: 2em;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }

  .page-about__section-title {
    font-size: 1.5em;
  }

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

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