/* style/about.css */

/* Base styles for the about page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-about__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-about__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px;
}

.page-about__intro-text {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-about__text-block {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-about__text-block p {
  margin-bottom: 1em;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px 20px; /* Small top padding, larger bottom */
  background-color: #0a0a0a; /* Ensure dark background */
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  margin-bottom: 30px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__hero-content {
  text-align: center;
  z-index: 1; /* Ensure content is above image if any overlap */
  padding: 0 15px;
  box-sizing: border-box;
}

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

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

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

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

.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__cta-final-section .page-about__btn-primary {
  background-color: #EA7C07;
  border-color: #EA7C07;
}

.page-about__cta-final-section .page-about__btn-primary:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

.page-about__cta-final-section .page-about__btn-secondary {
  color: #EA7C07;
  border-color: #EA7C07;
}

.page-about__cta-final-section .page-about__btn-secondary:hover {
  background-color: #EA7C07;
  color: #ffffff;
}

/* Image containers */
.page-about__image-container {
  margin-top: 30px;
  text-align: center;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
}

/* Grid container for values section */
.page-about__grid-container {
  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.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
}

.page-about__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

/* Content wrappers for alternating image/text layout */
.page-about__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

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

.page-about__content-wrapper .page-about__text-block,
.page-about__content-wrapper .page-about__image-container {
  flex: 1;
  min-width: 300px;
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #26A9E0;
  background-color: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__faq-question::-webkit-details-marker, /* Hide default marker for Chrome/Safari */
.page-about__faq-question::marker { /* Hide default marker for Firefox */
  display: none;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  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: 15px 25px 20px;
  font-size: 1em;
  color: #f0f0f0;
}

.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;
}

/* Final CTA Section */
.page-about__cta-final-section {
  text-align: center;
  padding: 80px 20px;
  background-color: #0a0a0a;
}

.page-about__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 20px auto 40px auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-about__hero-section {
    padding: 10px 15px 40px 15px;
  }
  .page-about__section {
    padding: 40px 15px;
  }
}

@media (max-width: 768px) {
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-about__intro-text {
    font-size: 1em;
  }
  .page-about__text-block {
    font-size: 0.95em;
  }
  .page-about__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Images responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__hero-image-wrapper,
  .page-about__image-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Buttons responsive */
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    font-size: 1em;
  }

  /* General container padding for mobile */
  .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__content-wrapper {
    flex-direction: column;
  }
  .page-about__content-wrapper:nth-child(even) {
    flex-direction: column;
  }
  .page-about__grid-container {
    grid-template-columns: 1fr;
  }
  .page-about__card {
    padding: 20px;
  }
  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-about__faq-answer {
    padding: 10px 20px 15px;
  }
  .page-about__cta-final-section {
    padding: 60px 15px;
  }
}