/* style/about.css */

/* Base styles for the About page */
.page-about {
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-about__hero-section {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #017439, #005f2f);
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-about__main-title {
  font-size: 2.8em;
  color: #FFFF00; /* Highlighted title color */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-about__intro-text {
  font-size: 1.2em;
  color: #ffffff;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
}

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

.page-about__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

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

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

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

.page-about__dark-section .page-about__section-title {
  color: #ffffff;
}

.page-about__content-section,
.page-about__history-section,
.page-about__why-choose-us-section,
.page-about__responsibility-section,
.page-about__contact-section {
  padding: 60px 20px;
}

.page-about__mission-vision-section,
.page-about__values-section,
.page-about__team-section,
.page-about__faq-section {
  padding: 60px 20px;
  background-color: #017439; /* Brand primary color for dark sections */
  color: #ffffff;
}

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

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

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

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

.page-about__flex-group {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-about__card {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 30px;
  flex: 1;
  min-width: 300px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-about__card-title {
  font-size: 1.8em;
  color: #FFFF00; /* Highlighted text */
  margin-bottom: 15px;
}

.page-about__card-text {
  font-size: 1em;
  color: #ffffff;
}

.page-about__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-about__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

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

.page-about__value-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-about__value-title {
  font-size: 1.6em;
  color: #FFFF00; /* Highlighted text */
  margin-bottom: 10px;
}

.page-about__value-description {
  font-size: 0.95em;
  color: #ffffff;
}

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

.page-about__feature-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.page-about__feature-icon {
  width: 150px; /* Adjusted from 250x250 to 150x150 for better visual balance */
  height: 150px;
  margin-bottom: 20px;
  border-radius: 50%;
  object-fit: cover;
}

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

.page-about__feature-description {
  font-size: 0.95em;
  color: #333333;
}

.page-about__team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-about__team-member {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-about__team-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #FFFF00;
}

.page-about__member-name {
  font-size: 1.4em;
  color: #FFFF00;
  margin-bottom: 5px;
}

.page-about__member-role {
  font-size: 1em;
  color: #ffffff;
  opacity: 0.8;
}

.page-about__faq-list {
  margin-top: 30px;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

.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: #f0f0f0;
}

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

.page-about__faq-answer p {
  margin-bottom: 0;
  color: #f0f0f0;
}

.page-about__faq-answer a {
  color: #FFFF00; /* Link color for FAQ answers */
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-about__main-title {
    font-size: 2.2em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__flex-group {
    flex-direction: column;
  }
  .page-about__card {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
  .page-about__main-title {
    font-size: 1.8em;
  }
  .page-about__intro-text {
    font-size: 1em;
  }
  .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: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__content-section,
  .page-about__mission-vision-section,
  .page-about__history-section,
  .page-about__values-section,
  .page-about__why-choose-us-section,
  .page-about__team-section,
  .page-about__responsibility-section,
  .page-about__faq-section,
  .page-about__contact-section {
    padding: 40px 15px;
  }
  .page-about__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about__paragraph,
  .page-about__list-item,
  .page-about__value-description,
  .page-about__feature-description,
  .page-about__member-role,
  .page-about__faq-answer p {
    font-size: 0.95em;
  }
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-about__feature-icon {
    width: 100px;
    height: 100px;
  }
  .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 all containers with images/videos/buttons are contained */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__flex-group,
  .page-about__grid-group,
  .page-about__feature-grid,
  .page-about__team-grid,
  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-about__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-about__team-photo {
    width: 150px;
    height: 150px;
  }
}