/* style/about.css */

/* Base styles for the page, ensuring text color contrasts with the dark body background */
.page-about {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Light text for dark body background */
  line-height: 1.6;
  font-size: 1rem;
  background-color: transparent; /* Main content background is transparent to show body background */
}

/* Sections */
.page-about__section {
  padding: 60px 20px;
  text-align: center;
}

.page-about__dark-bg {
  background-color: #000000; /* Use body background color or a darker variant */
  color: #ffffff;
}

.page-about__light-bg {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast against dark body */
  color: #ffffff;
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image then text */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px; /* Space between image and text */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-about__hero-content {
  max-width: 900px;
  text-align: center;
  z-index: 1;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* Responsive H1 font size */
  font-weight: 700;
  color: #26A9E0; /* Brand color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* CTA Buttons */
.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-about__cta-buttons--center {
  margin-top: 40px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.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: #26A9E0;
  border: 2px solid #26A9E0;
}

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

.page-about__btn-spacing {
  margin-top: 20px;
}

/* Section Titles and Subtitles */
.page-about__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-about__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: #ffffff;
  margin-top: 30px;
  margin-bottom: 15px;
  line-height: 1.4;
}

/* Content Grid Layouts */
.page-about__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-about__content-grid:nth-child(even) {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
  min-width: 300px;
  color: #f0f0f0;
}

.page-about__image-block {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  /* Ensure minimum size */
  min-width: 200px;
  min-height: 200px;
}

.page-about__grid-2-col,
.page-about__grid-3-col {
  display: grid;
  gap: 30px;
  text-align: left;
}

.page-about__grid-2-col {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-about__grid-3-col {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Cards */
.page-about__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  height: 100%;
  color: #ffffff;
}

.page-about__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-about__card-text {
  font-size: 1rem;
  color: #f0f0f0;
}

/* FAQ Section */
.page-about__faq-list {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-about__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #f0f0f0;
  max-height: 0; /* For JS-controlled div version */
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

/* Styles for <details> tag, if used natively */
.page-about__faq-item[open] .page-about__faq-answer {
  max-height: fit-content; /* Allow content to dictate height */
  max-height: 1000px; /* Fallback for older browsers / transition */
  padding: 15px 25px 20px;
}

.page-about__faq-item.active .page-about__faq-answer { /* For JS-controlled div version */
  max-height: 2000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 20px;
}

/* CTA content block */
.page-about__cta-content {
  background-color: rgba(38, 169, 224, 0.1); /* A subtle brand-colored background */
  padding: 40px;
  border-radius: 12px;
  margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-about__content-grid {
    flex-direction: column;
  }
  .page-about__content-grid:nth-child(even) {
    flex-direction: column; /* Keep consistent on mobile */
  }
  .page-about__image-block {
    order: -1; /* Image always on top for mobile */
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 15px;
  }

  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .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: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-about__sub-title {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }

  .page-about__grid-2-col,
  .page-about__grid-3-col {
    grid-template-columns: 1fr;
  }

  .page-about__card {
    padding: 25px;
  }

  /* Responsive image rules for content area */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Image and content containers */
  .page-about__hero-image-wrapper,
  .page-about__image-block,
  .page-about__container,
  .page-about__content-grid,
  .page-about__grid-2-col,
  .page-about__grid-3-col,
  .page-about__cta-buttons,
  .page-about__faq-list,
  .page-about__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-about__video-section {
    padding-top: 10px !important;
  }
}

/* Ensure content images meet minimum size requirements */
.page-about__image-content {
  min-width: 200px;
  min-height: 200px;
}
.page-about__image-block img {
  min-width: 200px;
  min-height: 200px;
}
/* No filter on images */
.page-about img {
  filter: none;
}