/* style/about.css */

/* Base styles for the about page */
.page-about {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: var(--background, #FFFFFF); /* Ensure background is respected */
}

/* Fixed header offset for the main content area */
.page-about__hero-section {
  padding-top: var(--header-offset, 120px);
}

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

.page-about__section--alt-bg {
  background-color: #f5f5f5; /* Light grey background for contrast */
}

.page-about__section-container {
  max-width: 1100px;
  margin: 0 auto;
}

.page-about__section-title {
  font-size: 2.8em;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-about__section-subtitle {
  font-size: 1.2em;
  color: #555555;
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__hero-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.page-about__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
}

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

.page-about__text-content {
  flex: 1 1 500px;
  max-width: 600px;
  font-size: 1.05em;
  color: #444444;
}

.page-about__text-content p {
  margin-bottom: 15px;
}

.page-about__image-container {
  flex: 1 1 400px;
  max-width: 500px;
  text-align: center;
}

.page-about__image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  display: block; /* Ensure it respects max-width */
  object-fit: cover;
}

.page-about__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-about__list-item {
  background-color: #FFFFFF;
  border-left: 6px solid #26A9E0;
  padding: 18px 20px;
  margin-bottom: 12px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1em;
  color: #333333;
}

.page-about__list-item::before {
  content: '✓';
  color: #26A9E0;
  font-weight: bold;
  font-size: 1.4em;
  line-height: 1;
}

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

.page-about__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 35px;
  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, transform 0.2s ease;
  text-align: center;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  min-width: 180px;
}

.page-about__btn:hover {
  transform: translateY(-2px);
}

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

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

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

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

.page-about__btn--login {
  background-color: #EA7C07;
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-about__btn--login:hover {
  background-color: #c76706;
  border-color: #c76706;
}

/* Video section */
.page-about__video-section {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-about__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  cursor: pointer; /* Indicate clickable video */
  background-color: #000; /* Fallback for video load */
}

.page-about__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

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

.page-about__faq-item {
  margin-bottom: 15px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid #eee;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: #fcfcfc;
  border-bottom: 1px solid #eee;
  list-style: none; /* Remove default marker */
}

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

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

.page-about__faq-question .page-about__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  color: #26A9E0;
  transition: transform 0.3s ease;
  margin-left: 15px;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg); /* Plus sign to X or minus */
}

.page-about__faq-answer {
  padding: 0 25px 25px 25px;
  font-size: 1.05em;
  color: #555555;
}

.page-about__link {
  color: #26A9E0;
  text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-about__section-title {
    font-size: 2em;
  }

  .page-about__section-subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-about__hero-content,
  .page-about__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__content-wrapper--reverse {
    flex-direction: column; /* Ensure consistent column direction on mobile */
  }

  .page-about__text-content,
  .page-about__image-container {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent overflow */
  }

  .page-about__btn {
    width: 100% !important; /* Ensure buttons take full width */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    min-width: unset; /* Remove min-width for mobile */
  }

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

  /* Containers and sections for padding */
  .page-about__section,
  .page-about__section-container,
  .page-about__hero-content,
  .page-about__content-wrapper,
  .page-about__list-item,
  .page-about__faq-list,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video */
  .page-about__video-section {
    padding: 0 15px !important; /* Adjust padding for mobile */
  }

  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Adjust padding for sections on mobile */
  .page-about__section {
    padding: 40px 15px;
  }

  .page-about__faq-section {
    padding: 40px 15px;
  }

  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-about__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1em;
  }
}