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

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #1a1a2e;
  overflow: hidden;
}

.page-about__hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-about__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken video to ensure text contrast */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Slightly darker overlay for text readability */
  border-radius: 8px;
}

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

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

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-register,
.page-about__btn-login {
  display: inline-block;
  padding: 14px 28px;
  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;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

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

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

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

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

.page-about__btn-register {
  background-color: #C30808;
  color: #000000; /* Adjusted for WCAG AA contrast with #C30808 */
  border: 2px solid #C30808;
}

.page-about__btn-register:hover {
  background-color: #9c0606;
  border-color: #9c0606;
}

.page-about__btn-login {
  background-color: #C30808;
  color: #000000; /* Adjusted for WCAG AA contrast with #C30808 */
  border: 2px solid #C30808;
}

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

.page-about__section {
  padding: 80px 20px;
  background-color: #1a1a2e;
  color: #ffffff;
}

.page-about__section--mission {
  background-color: #1a1a2e;
}

.page-about__section--values {
  background-color: #2a2a4a;
}

.page-about__section--strengths {
  background-color: #1a1a2e;
}

.page-about__section--journey {
  background-color: #2a2a4a;
}

.page-about__section--team {
  background-color: #1a1a2e;
}

.page-about__section--faq {
  background-color: #2a2a4a;
}

.page-about__dark-section {
  background-color: #017439;
  color: #ffffff;
}

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

.page-about__container--cta {
  text-align: center;
}

.page-about__heading {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 50px;
  color: #ffffff;
  font-weight: bold;
}

.page-about__heading--cta {
  font-size: 2.5em;
  margin-bottom: 25px;
}

.page-about__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-about__paragraph--centered {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__paragraph--cta {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  font-size: 1.2em;
}

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

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

.page-about__text-block {
  flex: 1;
}

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

.page-about__image-wrapper--center {
  margin-top: 40px;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

.page-about__card {
  background-color: rgba(255, 255, 255, 0.08); /* Light transparent background on dark */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-about__card-image--round {
  border-radius: 50%;
  object-fit: cover;
  width: 200px;
  height: 200px;
}

.page-about__card-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #ffffff;
  font-weight: bold;
}

.page-about__card-role {
  font-size: 1.1em;
  color: #017439;
  margin-bottom: 10px;
}

.page-about__card-description {
  font-size: 1em;
  color: #e0e0e0;
}

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

.page-about__list-item {
  font-size: 1.1em;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: #f0f0f0;
}

.page-about__list-item::before {
  content: '✔';
  color: #017439;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

.page-about__journey-timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto;
  padding-left: 30px;
  border-left: 3px solid #017439;
}

.page-about__timeline-item {
  margin-bottom: 40px;
  position: relative;
  padding-left: 30px;
}

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 5px;
  width: 16px;
  height: 16px;
  background-color: #017439;
  border-radius: 50%;
  border: 3px solid #ffffff;
}

.page-about__timeline-year {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 10px;
}

.page-about__timeline-description {
  font-size: 1.1em;
  color: #f0f0f0;
}

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

.page-about__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

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

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

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

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

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

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

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

  .page-about__heading {
    font-size: 2.4em;
  }
}

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

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

  .page-about__hero-title {
    font-size: 2.2em;
  }

  .page-about__hero-description {
    font-size: 1em;
  }

  .page-about__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-register,
  .page-about__btn-login {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }

  .page-about__section {
    padding: 50px 15px;
  }

  .page-about__heading {
    font-size: 2em;
    margin-bottom: 30px;
  }

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

  .page-about__image-wrapper {
    order: -1; /* Image first on mobile */
  }

  .page-about__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-about__values-grid,
  .page-about__team-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-about__card {
    padding: 25px;
  }

  .page-about__card-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-about__journey-timeline {
    padding-left: 20px;
    margin: 40px auto;
  }

  .page-about__timeline-item {
    padding-left: 20px;
  }

  .page-about__timeline-item::before {
    left: -10px;
  }

  .page-about__faq-question {
    padding: 18px 20px;
  }

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

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

  /* Ensure video responsiveness */
  .page-about video,
  .page-about__video,
  .page-about__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__hero-video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

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

  .page-about__heading {
    font-size: 1.8em;
  }
}