/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

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

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

.page-about__paragraph {
  font-size: 1em;
  margin-bottom: 15px;
  color: #f0f0f0; /* Light text for dark backgrounds */
}

.page-about__inline-link {
  color: #FFFF00; /* Yellow for links */
  text-decoration: underline;
}

.page-about__inline-link:hover {
  color: #017439;
  text-decoration: none;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: var(--header-offset, 120px);
  box-sizing: border-box;
}

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

.page-about__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-about__hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 20px;
}

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

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

/* Buttons */
.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, color 0.3s ease, border-color 0.3s ease;
  margin: 10px;
  max-width: 100%;
  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;
}

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

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

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

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

/* Mission & Vision Section */
.page-about__mission-vision {
  padding: 60px 0;
  background-color: #ffffff; /* Light background for this section */
  color: #333333; /* Dark text for light background */
}

.page-about__mission-vision .page-about__section-title {
  color: #333333;
}

.page-about__mission-vision .page-about__sub-title {
  color: #017439;
}

.page-about__mission-vision .page-about__paragraph {
  color: #333333;
}

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

/* Why Choose Us Section */
.page-about__why-choose {
  padding: 60px 0;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

.page-about__why-choose .page-about__section-title {
  color: #ffffff;
}

.page-about__why-choose .page-about__paragraph {
  color: #f0f0f0;
}

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

.page-about__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 450px; /* Ensure cards have some height */
}

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

.page-about__card-title {
  font-size: 1.5em;
  color: #FFFF00; /* Yellow for card titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__card-description {
  font-size: 0.95em;
  color: #f0f0f0;
  flex-grow: 1;
}

/* Team & Values Section */
.page-about__team-values {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-about__team-values .page-about__section-title {
  color: #333333;
}

.page-about__team-values .page-about__sub-title {
  color: #017439;
}

.page-about__team-values .page-about__paragraph {
  color: #333333;
}

.page-about__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 60px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-about__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: bold;
  color: #FFFF00; /* Yellow for FAQ questions */
  cursor: pointer;
  background-color: #017439; /* Brand color for question background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* Remove default marker for details/summary */
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none; /* Hide Webkit default marker */
}

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

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #ffffff;
}

.page-about__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-about__cta-bottom .page-about__section-title {
  color: #333333;
}

.page-about__cta-bottom .page-about__paragraph {
  color: #333333;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* Responsive styles */
@media (max-width: 992px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__sub-title {
    font-size: 1.5em;
  }
  .page-about__grid-two-columns {
    grid-template-columns: 1fr;
  }
  .page-about__grid-cards {
    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 {
    height: 450px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__sub-title {
    font-size: 1.3em;
  }
  .page-about__card {
    padding: 20px;
    min-height: auto;
  }
  .page-about__card-image {
    height: 180px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0;
    padding: 12px 20px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-about__container,
  .page-about__section,
  .page-about__card,
  .page-about__text-block,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .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;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__hero-section {
    height: 400px;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__sub-title {
    font-size: 1.2em;
  }
}