/* style/about.css */

/* Base Styles for About Page */
.page-about {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text for light body background */
  background-color: #ffffff; /* Default body background */
  line-height: 1.6;
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  background-color: #017439; /* Brand primary color */
  padding: 80px 20px;
  min-height: 500px;
  overflow: hidden;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 30px;
}

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

.page-about__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.3); /* Dark overlay */
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* Buttons */
.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;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: #C30808; /* Custom red for register/login */
  color: #FFFF00; /* Custom yellow for register/login font */
  border: 2px solid #C30808;
}

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

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

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

.page-about__cta-buttons--bottom .page-about__btn-primary {
  background-color: #017439; /* Brand primary for general CTA */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-about__cta-buttons--bottom .page-about__btn-primary:hover {
  background-color: #005a2b;
  border-color: #005a2b;
}

.page-about__cta-buttons--bottom .page-about__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-about__cta-buttons--bottom .page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2b;
}

/* Content Sections */
.page-about__content-area {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

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

.page-about__section-title--center {
  text-align: center;
}

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

.page-about strong {
  font-weight: bold;
  color: #017439;
}

/* Image Blocks */
.page-about__image-block {
  margin: 40px 0;
  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;
  margin: 0 auto;
}

/* Value Grid */
.page-about__value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 50px 0;
}

.page-about__value-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-about__value-description {
  font-size: 1em;
  color: #555555;
}

/* Commitment List */
.page-about__commitment-list {
  list-style: none;
  padding: 0;
  margin: 40px 0;
}

.page-about__commitment-item {
  background-color: #f0fdf5; /* Light green background */
  border-left: 5px solid #017439;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.page-about__commitment-heading {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__commitment-description {
  font-size: 1.05em;
  color: #444444;
}

.page-about__commitment-description a {
  color: #017439;
  text-decoration: underline;
}

.page-about__commitment-description a:hover {
  color: #005a2b;
}

/* Video Section */
.page-about__video-section {
  padding: 60px 0;
  text-align: center;
  background-color: #f5f5f5;
  margin-top: 60px;
  padding-top: var(--header-offset, 120px); /* Ensure spacing from fixed header */
}

.page-about__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto 20px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  width: 100%;
  box-sizing: border-box;
}

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

.page-about__video-caption {
  font-size: 0.9em;
  color: #777777;
  margin-top: 10px;
}

/* CTA Buttons at bottom */
.page-about__cta-buttons--bottom {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap;
}

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

.page-about__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.03);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #fdfdfd;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

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

.page-about__faq-heading {
  font-size: 1.2em;
  color: #333333;
  margin: 0;
  font-weight: bold;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  color: #017439;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
  font-size: 1em;
  text-align: justify;
}

.page-about__faq-answer p {
  margin-bottom: 15px;
}

.page-about__faq-answer ul {
  margin-left: 20px;
  list-style: disc;
}

.page-about__faq-answer li {
  margin-bottom: 5px;
}

/* Active state for FAQ */
.page-about__faq-item.active .page-about__faq-question {
  background-color: #f0fdf5;
  border-bottom: none;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__hero-description {
    font-size: 1.2em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__value-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    padding: 60px 15px;
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__content-area {
    padding: 40px 0;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 30px;
  }
  .page-about__text-block {
    font-size: 1em;
  }
  .page-about__value-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__commitment-item {
    padding: 20px;
  }
  .page-about__commitment-heading {
    font-size: 1.2em;
  }

  /* Image and Video responsiveness */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__image-block,
  .page-about__video-wrapper,
  .page-about__cta-buttons,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-about__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    padding-left: 0;
    padding-right: 0;
  }
  .page-about__video-wrapper {
    padding-bottom: 56.25% !important; /* Ensure aspect ratio */
    width: 100% !important;
    max-width: 100% !important;
  }
  .page-about__video {
    width: 100% !important;
    height: 100% !important;
  }
  .page-about__cta-buttons--bottom {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__faq-question,
  .page-about__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 15px !important;
  }
}