/* style/about.css */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Matching body background from shared.css */
}

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

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

.page-about__hero-section {
  position: relative;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #26A9E0, #1A7FB5);
  color: #ffffff;
}

.page-about__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-about__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-about__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

.page-about__btn-secondary:hover {
  background-color: #e0e0e0;
}

.page-about__section-title {
  font-size: 2.2em;
  margin-bottom: 40px;
  text-align: center;
  color: #26A9E0;
}

.page-about__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-about__content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.page-about__content-grid--reverse {
  flex-direction: row-reverse;
}

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

.page-about__text-block p {
  margin-bottom: 15px;
  color: #ffffff;
}

.page-about__text-block a {
  color: #26A9E0;
  text-decoration: underline;
}

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

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

.page-about__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-about__list li {
  margin-bottom: 10px;
  color: #ffffff;
}

.page-about__nested-list {
  list-style: circle inside;
  margin-left: 20px;
  margin-top: 10px;
}

.page-about__ordered-list {
  list-style: decimal inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-about__ordered-list li {
  margin-bottom: 10px;
  color: #ffffff;
}

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

.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg .page-about__sub-title {
  color: #26A9E0;
}

.page-about__light-bg {
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__sub-title {
  color: #26A9E0;
}

.page-about__video-section {
  padding: 60px 0;
  background-color: #000000;
  text-align: center;
  color: #ffffff;
}

.page-about__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__video-wrapper .page-about__video,
.page-about__video-wrapper .page-about__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

.page-about__video-wrapper .page-about__video-link {
  display: block;
}

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

.page-about__text-block--small {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
  font-size: 1.1em;
}

.page-about__faq-section {
  background-color: #000000;
  color: #ffffff;
}

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

.page-about__faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-about__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #ffffff;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background-color: #0d0d0d;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #ffffff;
}

.page-about__faq-answer p {
  margin: 15px 0;
  color: #ffffff;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 20px;
}

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

.page-about__cta-final {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-about__cta-final .page-about__section-title {
  color: #26A9E0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 2.5em;
  }

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

  .page-about__sub-title {
    font-size: 1.6em;
  }

  .page-about__content-grid {
    flex-direction: column;
  }

  .page-about__content-grid--reverse {
    flex-direction: column;
  }
}

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

  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
  }

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

  .page-about__intro-text {
    font-size: 1em;
  }

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

  .page-about__section-title {
    font-size: 1.8em;
  }

  .page-about__sub-title {
    font-size: 1.4em;
  }

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

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

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

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

  .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: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
  }

  /* Button responsiveness */
  .page-about__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 !important;
    padding-right: 15px !important;
  }

  .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 !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-about__faq-question {
    padding: 12px 15px;
  }

  .page-about__faq-title {
    font-size: 1.1em;
  }

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

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 12px 15px;
  }
}