/* style/about.css */

/* Base Styles */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Body background from shared.css */
}

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

.page-about__section {
  padding: 60px 0;
  text-align: center;
}

.page-about__dark-bg {
  background-color: #017439;
  color: #FFFFFF;
}

.page-about__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-about__hero-section {
  position: relative;
  padding: 100px 0 60px 0;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  background-color: #017439; /* Brand primary color */
  color: #FFFFFF;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #FFFF00; /* Register/Login font color for emphasis */
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__heading {
  font-size: 2.5em;
  margin-bottom: 30px;
  font-weight: bold;
  color: inherit; /* Inherit color from section for contrast */
}

.page-about__dark-bg .page-about__heading {
  color: #FFFF00; /* Yellow for headings on dark background */
}

.page-about__light-bg .page-about__heading {
  color: #017439; /* Primary green for headings on light background */
}

.page-about__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
  text-align: justify;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-about__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #017439;
}

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

.page-about__grid-layout img {
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
}

.page-about__content-block {
  padding: 20px;
}

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

.page-about__feature-card {
  background-color: #FFFFFF;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-about__card-icon {
  width: 100%; /* Ensure images take up card width */
  height: auto;
  max-width: 200px; /* Max width for icons */
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__card-description {
  font-size: 1em;
  line-height: 1.7;
  text-align: justify;
}

.page-about__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-about__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.page-about__video-overlay-button {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.page-about__video-overlay-button:hover {
  background-color: #a00606;
}

.page-about__faq-section {
  padding: 80px 0;
}

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

.page-about__faq-item {
  background-color: #FFFFFF;
  color: #333333;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f8f8f8;
  border-bottom: 1px solid #eee;
  color: #017439;
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #C30808; /* Red for toggle icon */
}

.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-out, padding 0.3s ease-out;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 25px;
}

.page-about__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
  text-align: justify;
  color: #333333;
}

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

.page-about__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-about__cta-content .page-about__heading {
  color: #FFFF00;
}

.page-about__cta-content .page-about__paragraph {
  color: #FFFFFF;
  margin-bottom: 40px;
}


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

  .page-about__heading {
    font-size: 2em;
  }

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

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

  .page-about__container {
    padding: 0 15px;
  }

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

  .page-about__hero-section {
    padding: 80px 0 40px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure space below fixed header on mobile */
  }

  .page-about__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-about__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-about__heading {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

  .page-about__paragraph {
    font-size: 1em;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-about__image,
  .page-about__card-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto;
    margin-right: auto;
  }

  .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;
  }

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

  .page-about__video-overlay-button {
    font-size: 1em;
    padding: 10px 20px;
  }

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

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

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

  /* Ensure content containers also adapt */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__content-block,
  .page-about__feature-card,
  .page-about__faq-list,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

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

  .page-about__heading {
    font-size: 1.5em;
  }

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