/* style/about.css */

/* General Body/Page Styling - Assuming dark background from shared.css */
.page-about {
  color: #FFF3E6; /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #0D0E12; /* Explicitly set main background */
}

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

.page-about__container--center {
  text-align: center;
}

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

.page-about__dark-section {
  background-color: #17191F; /* Card BG color for dark sections */
  color: #FFF3E6;
}

.page-about__section-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size */
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFB04D; /* Glow color for titles */
  line-height: 1.2;
}

.page-about__sub-title {
  font-size: clamp(1.5em, 3vw, 2em); /* Responsive font size */
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #FFA53A; /* Auxiliary color for subtitles */
}

.page-about__intro-text {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF3E6;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: 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;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  padding: 40px 20px;
  margin-top: -100px; /* Pull content slightly over image for visual flow, but not overlapping text */
  background: linear-gradient(0deg, rgba(13, 14, 18, 0.9) 0%, rgba(13, 14, 18, 0.5) 100%);
  border-radius: 8px;
}

.page-about__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
  font-weight: 900;
  color: #FFB04D; /* Use glow color for H1 */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 176, 77, 0.5);
}

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

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

.page-about__btn-primary,
.page-about__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: none;
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

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

.page-about__btn-secondary:hover {
  background: #FFA53A;
  color: #17191F;
  box-shadow: 0 5px 15px rgba(255, 165, 58, 0.3);
}

/* Grid Layouts */
.page-about__grid-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

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

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

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

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

.page-about__image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
  object-fit: cover;
}

.page-about__image-block--center {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__feature-card {
  background-color: #17191F; /* Card BG color */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF3E6;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  background-color: #17191F; /* Card BG color */
  border: 1px solid #A84F0C;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFF3E6;
}

.page-about__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: #17191F; /* Card BG color */
  color: #FFB04D; /* Glow color for FAQ questions */
  user-select: none;
  list-style: none; /* For <details> summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* For <details> summary */
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: #FFA53A;
}

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

.page-about__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.05em;
  line-height: 1.7;
  color: #FFF3E6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px; /* Large enough to accommodate content */
  padding-top: 10px;
  transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-content {
    margin-top: -80px;
  }
}

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

  .page-about__section {
    padding: 40px 0;
  }

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

  .page-about__sub-title {
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .page-about__intro-text {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

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

  .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: 1em;
    margin: 0 auto; /* Center buttons */
  }

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

  .page-about__grid-two-cols--reverse {
    grid-template-areas: unset; /* Reset grid area for mobile */
  }

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

  .page-about__hero-image-wrapper {
    max-height: 400px;
  }

  .page-about__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }

  /* Responsive Images/Videos/Buttons (Mobile) - Must include !important */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .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;
  }

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

  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__cta-button,
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Ensure vertical stacking for buttons on mobile */
  }
}