/* style/about.css */

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff; /* White text on dark background */
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
  z-index: 0;
}

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

.page-about__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  max-width: 900px;
  width: 90%;
  padding: 20px;
  box-sizing: border-box;
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-about__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box;
  max-width: 100%;
}

.page-about__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

.page-about__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

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

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

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

.page-about__sub-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #26A9E0;
}

/* Grid Layout for Content Blocks */
.page-about__grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.page-about__grid-layout--reverse {
  grid-template-areas: "image text";
}

.page-about__grid-layout--reverse .page-about__image-block {
  grid-area: image;
}

.page-about__grid-layout--reverse .page-about__text-block {
  grid-area: text;
}

.page-about__image-block {
  text-align: center;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure it behaves as a block element */
}

.page-about__text-block {
  color: #333333;
}

.page-about__text-block--white {
  color: #ffffff;
}

/* Values Section */
.page-about__values {
  background-color: #26A9E0;
  padding: 80px 0;
}

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

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-about__value-card .page-about__card-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-about__value-card p {
  font-size: 1rem;
  line-height: 1.5;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

.page-about__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #26A9E0;
}

.page-about__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: #555555;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-about__faq-item[open] .page-about__faq-answer {
  max-height: 500px; /* Sufficiently large to show content */
  transition: max-height 0.5s ease-in;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 500px !important; /* For JS fallback */
}

.page-about__faq-answer p {
  margin: 0;
}

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

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


/* Responsive Design */
@media (max-width: 992px) {
  .page-about__grid-layout {
    grid-template-columns: 1fr;
    margin-bottom: 40px;
  }

  .page-about__grid-layout--reverse {
    grid-template-areas: unset;
  }

  .page-about__hero-content {
    width: 95%;
    padding: 15px;
  }

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

  .page-about__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .page-about__sub-title {
    font-size: 1.5rem;
  }

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

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

  .page-about__hero-content {
    padding: 10px;
  }

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

  .page-about__description {
    font-size: 1rem;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__container {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

  .page-about__sub-title {
    font-size: 1.3rem;
  }

  /* Mobile image and video responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__image-block,
  .page-about__video-container,
  .page-about__video-wrapper,
  .page-about__section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-about__video-section {
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-about__value-card {
    padding: 20px;
  }

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

  .page-about__faq-answer {
    padding: 0 15px 15px 15px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-section {
    padding-bottom: 40px;
  }

  .page-about__main-title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }

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

  .page-about__sub-title {
    font-size: 1.2rem;
  }
}