/* style/about.css */

/* --- Base Styles for page-about --- */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared, default to white */
}

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

/* --- Hero Section --- */
.page-about__hero-section {
  position: relative;
  width: 100%;
  padding: 80px 0; /* Adjust for header offset */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  text-align: center;
  background-color: #017439; /* Brand primary color for dark background */
  color: #FFFFFF; /* Light text for dark background */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  box-sizing: border-box;
}

.page-about__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFF00; /* Yellow for prominence, ensure contrast on dark green */
}

.page-about__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0; /* Slightly off-white for readability */
}

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

.page-about__cta-buttons--center {
    justify-content: center;
}

/* --- 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;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-about__btn-primary {
  background-color: #C30808; /* Red for register/login */
  color: #FFFF00; /* Yellow text for contrast */
  border: 2px solid #C30808;
}

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

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

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

/* --- Mission & Vision Section --- */
.page-about__mission-vision-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* Light background */
  color: #333333;
}

.page-about__grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.page-about__card {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  box-sizing: border-box;
}

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

.page-about__card-title {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #017439; /* Brand primary color */
}

.page-about__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  object-fit: cover;
}

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

/* --- Why Choose Us Section --- */
.page-about__why-choose-us-section {
  padding: 60px 0;
  background-color: #017439; /* Dark background */
  color: #FFFFFF;
  text-align: center;
}

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Yellow for prominence */
}

.page-about__section-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

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

.page-about__feature-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #FFFFFF;
  box-sizing: border-box;
}

.page-about__feature-icon {
  width: 100%; /* Ensure large image, not icon */
  height: auto;
  max-height: 200px; /* Constraint height for uniform look */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block; /* Ensure it takes full width of its container */
}

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

.page-about__feature-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* --- History Section --- */
.page-about__history-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* Light background */
  color: #333333;
  text-align: center;
}

.page-about__timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto 0 auto;
  padding: 20px 0;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #017439;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.page-about__timeline-item {
  padding: 20px 0;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.page-about__timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 50px;
  text-align: right;
}

.page-about__timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 50px;
  text-align: left;
}

.page-about__timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -12px;
  background-color: #C30808;
  border: 4px solid #FFFFFF;
  top: 28px;
  border-radius: 50%;
  z-index: 1;
}

.page-about__timeline-item:nth-child(even)::after {
  left: -8px;
}

.page-about__timeline-year {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 10px;
}

.page-about__timeline-text {
  font-size: 1em;
  color: #555555;
}

/* --- Video Section --- */
.page-about__video-section {
  padding: 60px 0;
  background-color: #017439; /* Dark background */
  color: #FFFFFF;
  text-align: center;
}

.page-about__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 1000px; /* Max width for video */
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  cursor: pointer; /* Indicate clickable */
}

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

/* --- FAQ Section --- */
.page-about__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* Light background */
  color: #333333;
  text-align: center;
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #f5f5f5;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #333333;
  transition: background-color 0.3s ease;
}

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

.page-about__faq-question h3 {
  margin: 0;
  color: #017439;
}

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

.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;
  background-color: #FFFFFF;
}

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

/* --- CTA Bottom Section --- */
.page-about__cta-bottom-section {
  padding: 60px 0;
  background-color: #017439; /* Dark background */
  color: #FFFFFF;
  text-align: center;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__grid-layout {
    grid-template-columns: 1fr; /* Stack cards on smaller screens */
  }
  .page-about__timeline::before {
    left: 20px; /* Move timeline line to left */
  }
  .page-about__timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
    text-align: left;
  }
  .page-about__timeline-item::after {
    left: 12px;
    right: auto;
  }
  .page-about__timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 0;
    text-align: left;
  }
  .page-about__timeline-item:nth-child(even) {
    left: 0;
  }
}

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

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

  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent overflow */
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-about__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  .page-about__card-title {
    font-size: 1.5em;
  }
  .page-about__card-image {
    max-height: 150px; /* Adjust image height for mobile cards */
  }

  .page-about__feature-item {
    padding: 20px;
  }
  .page-about__feature-icon {
    max-height: 120px;
  }
  .page-about__feature-title {
    font-size: 1.3em;
  }

  .page-about__timeline {
    margin-top: 40px;
  }
  .page-about__timeline::before {
    left: 15px;
  }
  .page-about__timeline-item {
    padding-left: 45px;
  }
  .page-about__timeline-item::after {
    left: 7px;
    width: 16px;
    height: 16px;
    top: 30px;
  }
  .page-about__timeline-year {
    font-size: 1.3em;
  }

  /* Video responsiveness */
  .page-about__video-section,
  .page-about__video-container,
  .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__faq-list {
    padding: 0 15px;
  }
  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-about__faq-toggle {
    font-size: 1.2em;
  }
  .page-about__faq-answer {
    padding: 0 20px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 10px 20px;
  }

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

  /* Ensure all images are responsive */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

/* Color Contrast Safeguard - Examples from prompt, applied as BEM */
.page-about__dark-bg {
  color: #ffffff; /* Deep green background, light text */
  background: #017439;
}

.page-about__light-bg {
  color: #333333; /* White background, dark text */
  background: #ffffff;
}