.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark background */
  background-color: var(--dark-bg-1); /* Inherit from shared */
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6); /* Darken image for text readability */
}

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

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

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

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  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;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: #C30808; /* Custom color for Login/Register */
  color: #FFFF00; /* Custom font color */
  border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
  background-color: #e00b0b;
  color: #ffffff;
}

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

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

/* Intro Video Section */
.page-about__intro-video-section {
  padding: 60px 0;
  text-align: center;
  background-color: #017439; /* Brand color background */
  color: #ffffff;
}

.page-about__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Max width for video */
  margin: 30px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.page-about__video {
  width: 100%;
  height: auto;
  display: block;
}

.page-about__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2); /* Subtle overlay for clickability */
  pointer-events: none; /* Allow click to pass through to video element */
}

.page-about__video-caption {
  font-size: 1.1em;
  max-width: 900px;
  margin: 20px auto 0;
}

/* General Section Styling */
.page-about__section {
  padding: 80px 0;
  background-color: var(--dark-bg-1);
  color: #ffffff;
}

.page-about__section:nth-of-type(even) {
  background-color: #0d0d0d; /* Slightly different dark background */
}

.page-about__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 60px;
  color: #017439; /* Brand color for titles */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

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

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

.page-about__content-grid--reverse .page-about__image-content {
  order: 2;
}

.page-about__content-grid--reverse .page-about__text-block {
  order: 1;
}

.page-about__text-block {
  padding: 20px;
  background: rgba(255, 255, 255, 0.05); /* Subtle background for text blocks */
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

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

.page-about__text-block ul {
  list-style: none;
  padding-left: 0;
}

.page-about__text-block ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: #f0f0f0;
}

.page-about__text-block ul li::before {
  content: '✓';
  color: #017439; /* Brand color checkmark */
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-about__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  /* Ensure min-size is met for content images */
  min-width: 200px;
  min-height: 200px;
}

/* FAQ Section */
.page-about__faq-section {
  padding-bottom: 80px;
}

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Darker background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background-color: #017439; /* Brand color for question background */
  transition: background-color 0.3s ease;
}

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

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

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Plus to X effect */
}

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

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px;
}

.page-about__faq-answer p {
  margin-bottom: 0;
  padding-top: 10px;
}

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

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

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

  .page-about__content-grid--reverse .page-about__image-content {
    order: initial;
  }

  .page-about__content-grid--reverse .page-about__text-block {
    order: initial;
  }
  
  .page-about__image-content {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    min-height: 450px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

  .page-about__hero-title {
    font-size: 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;
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__intro-video-section,
  .page-about__section {
    padding: 40px 0;
  }

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 40px;
  }

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

  .page-about__text-block {
    padding: 15px;
  }

  .page-about p,
  .page-about li {
    font-size: 0.95em;
  }
  
  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__container,
  .page-about__text-block,
  .page-about__hero-content,
  .page-about__video-wrapper,
  .page-about__faq-list,
  .page-about__hero-buttons,
  .page-about__cta-buttons {
    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: var(--header-offset, 120px) !important; /* Ensure video section also respects header offset on mobile */
  }
  
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

/* Ensure content images meet minimum size for content area */
.page-about__image-content {
  min-width: 200px;
  min-height: 200px;
}

/* Video specific mobile styling */
.page-about video,
.page-about__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-about__video-section,
.page-about__video-container,
.page-about__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .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;
  }
}