/* style/about.css */

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

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure hero section has a decent height */
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3; /* Slightly dim the background image */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  padding: 30px;
  border-radius: 10px;
}

.page-about__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-about__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

/* General button styles */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 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;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  text-align: center;
}

.page-about__btn-primary {
  background-color: #C30808; /* Red for register/login */
  color: #FFFF00; /* Yellow text for register/login */
  border: 2px solid #C30808;
}

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

.page-about__btn-secondary {
  background-color: #017439; /* Brand green */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-about__btn-secondary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

/* Section common styles */
.page-about__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

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

/* Overview Section */
.page-about__overview-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

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

.page-about__content-grid > .page-about__text-block {
  flex: 1;
  min-width: 300px;
}

.page-about__content-grid > .page-about__image {
  flex: 1;
  min-width: 400px;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

/* Why Choose Section */
.page-about__why-choose-section {
  padding: 60px 0;
  background-color: #017439; /* Brand primary color for a dark section */
  color: #ffffff;
}

.page-about__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__feature-card {
  background-color: rgba(0, 0, 0, 0.3); /* Darker card background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__feature-card:hover {
  transform: translateY(-10px);
}

.page-about__feature-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 400px; /* Max size for feature image */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-about__feature-title {
  font-size: 1.5em;
  color: #FFFF00; /* Yellow for titles in this section */
  margin-bottom: 15px;
}

.page-about__feature-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Video Section */
.page-about__video-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Similar to overview for consistency */
}

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

.page-about__video-wrapper .page-about__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block; /* Make the whole area clickable */
  cursor: pointer;
}

.page-about__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.08); /* Slightly different background */
}

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

.page-about__faq-item {
  background-color: rgba(0, 0, 0, 0.3); /* Darker card background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.4);
  font-size: 1.2em;
  color: #ffffff;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFFF00; /* Yellow toggle icon */
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Rotate to form an 'x' or '-' */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(0, 0, 0, 0.2);
  color: #f0f0f0;
}

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

.page-about__faq-answer p {
  margin-bottom: 0;
  font-size: 1em;
}

/* CTA Section */
.page-about__cta-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color */
  text-align: center;
  color: #ffffff;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__content-grid {
    flex-direction: column;
  }
  .page-about__content-grid > .page-about__image {
    max-width: 100%;
    min-width: unset;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    min-height: 450px;
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
  }
  .page-about__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-about__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-about__hero-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;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__content-grid > .page-about__image {
    max-width: 100%;
    min-width: unset;
  }
  .page-about__feature-icon {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Mobile 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: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-about__video-wrapper {
    padding-bottom: 60%; /* Adjust aspect ratio for mobile if needed, or keep 16:9 */
  }

  /* Mobile container padding */
  .page-about__container,
  .page-about__section,
  .page-about__card,
  .page-about__text-block,
  .page-about__feature-card,
  .page-about__faq-item,
  .page-about__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__feature-title {
    font-size: 1.3em;
  }
  .page-about__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-about__faq-answer {
    padding: 10px 20px 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__hero-description {
    font-size: 0.9em;
  }
}