/* style/about.css */

/* Core styles for the About Us page */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Text Main from custom palette, for dark background */
  background-color: #140C0C; /* Background from custom palette */
}

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

.page-about__section {
  padding: 60px 0;
  text-align: center;
}

.page-about__section--mission,
.page-about__section--future {
  background-color: #140C0C; /* Consistent dark background */
}

.page-about__section--safety,
.page-about__section--support {
  background-color: #2A1212; /* Card BG from custom palette */
}

.page-about__section--experience {
  background-color: #140C0C; /* Consistent dark background */
}

.page-about__section--faq {
  background-color: #2A1212; /* Card BG from custom palette */
}

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding-bottom: 40px; /* Space for content below image */
  padding-top: 10px; /* Small top padding as per instructions */
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly dim the image for text readability */
}

.page-about__hero-content {
  position: relative; /* Ensure content is above image but not overlapping */
  z-index: 10;
  text-align: center;
  max-width: 800px;
  margin-top: 40px; /* Separates content from the image */
  padding: 0 20px;
}

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #F3C54D; /* Gold from custom palette */
  margin-bottom: 20px;
}

.page-about__main-description {
  font-size: 1.1rem;
  color: #FFF1E8; /* Text Main from custom palette */
  margin-bottom: 30px;
}

.page-about__section-title {
  font-size: 2.5rem;
  color: #F3C54D; /* Gold from custom palette */
  margin-bottom: 40px;
  font-weight: 600;
}

.page-about__text-block {
  font-size: 1rem;
  color: #FFF1E8; /* Text Main from custom palette */
  margin-bottom: 20px;
  text-align: left;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button color from custom palette */
  color: #FFF1E8; /* Text Main for button text */
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.page-about__cta-button:hover {
  background: linear-gradient(180deg, #D86A14 0%, #FFB04A 100%);
}

.page-about__cta-button--small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.page-about__section--safety .page-about__container,
.page-about__section--support .page-about__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-about__image-content {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-about__content-text-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
}

.page-about__section--safety .page-about__image-content {
  order: 1;
}

.page-about__section--safety .page-about__content-text-wrapper {
  order: 2;
}

.page-about__section--support .page-about__image-content {
  order: 2;
}

.page-about__section--support .page-about__content-text-wrapper {
  order: 1;
}

.page-about__text-link {
  color: #F3C54D; /* Gold for links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-about__text-link:hover {
  color: #FFB04A;
}

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

.page-about__feature-item {
  background-color: #2A1212; /* Card BG from custom palette */
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #6A1E1E; /* Border from custom palette */
}

.page-about__feature-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-about__feature-title {
  font-size: 1.8rem;
  color: #F3C54D; /* Gold from custom palette */
  margin-bottom: 15px;
}

.page-about__feature-description {
  font-size: 1rem;
  color: #FFF1E8; /* Text Main from custom palette */
}

.page-about__feature-description a {
  color: #FFB04A;
  text-decoration: none;
}

.page-about__feature-description a:hover {
  text-decoration: underline;
}

/* FAQ styles */
.page-about__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-about__faq-item {
  background-color: #140C0C; /* Background from custom palette */
  border: 1px solid #6A1E1E; /* Border from custom palette */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  color: #F3C54D; /* Gold for FAQ question */
  font-size: 1.1rem;
  list-style: none; /* Remove default marker for details */
}

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

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

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  padding: 0 20px 20px;
  color: #FFF1E8; /* Text Main from custom palette */
  font-size: 1rem;
  line-height: 1.5;
}

.page-about__faq-answer a {
  color: #FFB04A;
  text-decoration: none;
}

.page-about__faq-answer a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__section--safety .page-about__container,
  .page-about__section--support .page-about__container {
    flex-direction: column;
    text-align: center;
  }

  .page-about__image-content,
  .page-about__content-text-wrapper {
    max-width: 100%;
    order: unset; /* Reset order for smaller screens */
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    min-height: 400px;
    padding-bottom: 20px;
  }

  .page-about__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-about__main-description {
    font-size: 1rem;
  }

  .page-about__section-title {
    font-size: 2rem;
  }

  .page-about__text-block,
  .page-about__feature-description,
  .page-about__faq-answer {
    font-size: 0.95rem;
  }

  .page-about__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !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__hero-content {
    margin-top: 20px;
    padding: 0 15px;
  }

  .page-about__hero-image {
    max-height: 300px; /* Limit hero image height on mobile */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__image-content,
  .page-about__feature-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__feature-image {
    height: 200px; /* Adjust feature image height for mobile */
  }

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

  .page-about__faq-question {
    font-size: 1rem;
  }

  .page-about__faq-toggle {
    font-size: 1.2rem;
  }
}