/* style/about-us.css */

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

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

.page-about-us__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand primary color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about-us__sub-title {
  font-size: 1.8em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about-us__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0; /* Light text for dark background */
}

/* Hero Section */
.page-about-us__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  min-height: 600px;
  background-color: #0a0a0a; /* Ensure hero section has a background */
}

.page-about-us__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-about-us__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-about-us__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #ffffff;
}

.page-about-us__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

.page-about-us__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

/* Buttons */
.page-about-us__btn-primary,
.page-about-us__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;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

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

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

.page-about-us__btn-secondary {
  background-color: transparent;
  color: #017439; /* Brand primary color for text */
  border: 2px solid #017439;
}

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

/* Introduction Section */
.page-about-us__introduction-section {
  padding: 60px 0;
}

.page-about-us__dark-bg {
  background-color: #0a0a0a; /* Ensure content sections have dark background */
  color: #ffffff;
}

/* Mission & Vision Section */
.page-about-us__mission-vision-section {
  padding: 60px 0;
  background-color: #0d0d0d; /* Slightly different dark background for contrast */
}

.page-about-us__image-content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-about-us__image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-about-us__content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.page-about-us__text-content {
  flex: 2;
}

/* Values & Commitment Section */
.page-about-us__values-commitment-section {
  padding: 60px 0;
  background-color: #0a0a0a;
}

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

.page-about-us__card {
  background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white for cards on dark background */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff; /* Light text for card content */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

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

.page-about-us__card-image {
  width: 100%;
  max-width: 400px; /* Constrain card image width */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-about-us__card-text {
  font-size: 1em;
  color: #e0e0e0;
  text-align: left;
}

/* Why Choose Us Section */
.page-about-us__why-choose-us-section {
  padding: 60px 0;
  background-color: #0d0d0d;
}

.page-about-us__content-grid {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 40px;
}

.page-about-us__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-about-us__feature-item {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #f0f0f0;
  position: relative;
  padding-left: 25px;
}

.page-about-us__feature-item::before {
  content: '✅'; /* Checkmark icon */
  position: absolute;
  left: 0;
  color: #017439;
  font-size: 1.1em;
  line-height: 1.6;
}

.page-about-us__cta-button {
  margin-top: 30px;
}

/* Video Section */
.page-about-us__video-section {
  padding: 60px 0;
  background-color: #0a0a0a;
  text-align: center;
}

.page-about-us__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 40px auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  background-color: #000;
}

.page-about-us__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  cursor: pointer; /* Indicate clickability */
}

.page-about-us__video-description {
  font-size: 1.1em;
  margin-top: 20px;
  color: #e0e0e0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-about-us__faq-section {
  padding: 60px 0;
  background-color: #0d0d0d;
}

.page-about-us__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about-us__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-about-us__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: #017439; /* Brand color for question background */
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Remove default details marker */
.page-about-us__faq-item summary {
  list-style: none;
}
.page-about-us__faq-item summary::-webkit-details-marker {
  display: none;
}

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

.page-about-us__faq-item[open] .page-about-us__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to form an X or minus */
}

.page-about-us__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #e0e0e0;
  background-color: rgba(255, 255, 255, 0.03); /* Lighter background for answer */
}

.page-about-us__faq-answer p {
  margin: 0;
  color: #e0e0e0;
}

/* Contact CTA Section */
.page-about-us__contact-cta-section {
  padding: 60px 0;
  background-color: #017439; /* Brand primary color for CTA background */
  text-align: center;
}

.page-about-us__contact-cta-section .page-about-us__section-title {
  color: #ffffff;
}

.page-about-us__contact-cta-section .page-about-us__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-about-us__contact-cta-section .page-about-us__cta-buttons {
  justify-content: center;
}

.page-about-us__contact-cta-section .page-about-us__btn-primary {
  background-color: #C30808;
  border-color: #C30808;
  color: #FFFF00;
}

.page-about-us__contact-cta-section .page-about-us__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border-color: #ffffff;
}
.page-about-us__contact-cta-section .page-about-us__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #017439;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about-us__hero-title {
    font-size: 2.8em;
  }

  .page-about-us__hero-description {
    font-size: 1.1em;
  }

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

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

  .page-about-us__image-content-wrapper,
  .page-about-us__content-grid {
    flex-direction: column;
    gap: 30px;
  }
  .page-about-us__content-grid .page-about-us__image-wrapper {
    order: -1; /* Image first on mobile for this section */
  }

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

@media (max-width: 768px) {
  .page-about-us__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure offset on mobile */
  }

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

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

  .page-about-us__hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px; /* Constrain button group width */
    margin: 0 auto;
  }

  /* Universal responsive rules for images, videos, buttons */
  .page-about-us img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about-us video,
  .page-about-us__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about-us__section,
  .page-about-us__card,
  .page-about-us__container,
  .page-about-us__video-section,
  .page-about-us__video-container,
  .page-about-us__video-wrapper,
  .page-about-us__cta-buttons,
  .page-about-us__button-group,
  .page-about-us__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-about-us__cta-button,
  .page-about-us__btn-primary,
  .page-about-us__btn-secondary,
  .page-about-us a[class*="button"],
  .page-about-us a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    /* Remove padding-left/right if already handled by container */
    padding-left: 0 !important; /* Let container handle padding */
    padding-right: 0 !important; /* Let container handle padding */
  }
  
  /* Ensure buttons in a flex container wrap */
  .page-about-us__hero-buttons,
  .page-about-us__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px !important;
  }

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

  .page-about-us__faq-answer {
    font-size: 0.95em;
    padding: 15px 20px;
  }

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

@media (max-width: 480px) {
  .page-about-us__hero-title {
    font-size: 1.8em;
  }
  .page-about-us__section-title {
    font-size: 1.5em;
  }
  .page-about-us__sub-title {
    font-size: 1.3em;
  }
  .page-about-us__text-block,
  .page-about-us__feature-item,
  .page-about-us__card-text {
    font-size: 0.95em;
  }
  .page-about-us__btn-primary,
  .page-about-us__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
}