/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Inherit from body or shared, ensuring text contrast */
}

.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: 70vh;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #1a1a2e; /* Dark background for hero */
  overflow: hidden;
  gap: 40px;
}

.page-about__hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 1;
  text-align: left;
}

.page-about__hero-title {
  font-size: 3.2em;
  color: #26A9E0; /* Brand color for title */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-about__hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap; /* Added for mobile responsiveness */
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  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; /* Include padding in width calculation */
  max-width: 100%;
}

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

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

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

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

.page-about__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 50%; /* Limit image width */
    z-index: 0;
}

.page-about__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

/* Video Section */
.page-about__video-section {
    padding: 60px 0;
    background-color: #1a1a2e;
    text-align: center;
}

.page-about__video-section .page-about__section-title {
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-about__video-section .page-about__section-description {
    color: #f0f0f0;
    margin-bottom: 40px;
    font-size: 1.1em;
}

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

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

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

/* General Section Styles */
.page-about__section {
  padding: 60px 0;
}

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

.page-about__section--why-choose {
    background-color: #26A9E0; /* Brand primary color background */
    color: #ffffff; /* White text for brand color background */
}

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

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

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

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

.page-about__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-about__section--why-choose .page-about__section-title,
.page-about__section--why-choose .page-about__section-description {
    color: #ffffff; /* White for titles/descriptions on primary brand color background */
}

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

.page-about__text-block {
  font-size: 1em;
  margin-bottom: 15px;
  color: #f0f0f0;
}

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

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

.page-about__list-item {
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-about__list-item strong {
    color: #26A9E0;
}

/* Features Grid (Why Choose Section) */
.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__feature-card {
  background-color: rgba(0, 0, 0, 0.2); /* Slightly transparent dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff; /* Ensure white text on dark card background */
}

.page-about__feature-title {
  font-size: 1.5em;
  color: #26A9E0; /* Brand color for feature titles */
  margin-bottom: 15px;
}

.page-about__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-about__feature-description {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about__feature-card .page-about__btn-primary {
    margin-top: auto; /* Push button to bottom */
}

.page-about__feature-list {
    list-style-type: none;
    padding-left: 0;
    text-align: left;
    margin-top: 15px;
}
.page-about__feature-list .page-about__list-item {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    color: #ffffff;
}
.page-about__feature-list .page-about__list-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #EA7C07; /* Login/Register color for checkmark */
    font-weight: bold;
}


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

.page-about__team-member {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-about__team-image {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  width: 200px;
  height: 200px;
  object-fit: cover;
  margin: 0 auto 20px auto;
  border: 4px solid #26A9E0;
  display: block;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-about__member-name {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-about__member-role {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent dark background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.08); /* Slightly darker for question */
  transition: background-color 0.3s ease;
}

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

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

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #EA7C07; /* Login/Register color for toggle */
  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: #f0f0f0;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
  }

  .page-about__hero-content {
    max-width: 100%;
    margin-bottom: 40px;
  }

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

  .page-about__hero-image-wrapper {
      max-width: 100%;
  }

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

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

  .page-about__features-grid,
  .page-about__team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Ensure all images are responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure all video elements are responsive */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all containers containing images/videos/buttons are responsive */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper,
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container,
  .page-about__features-grid,
  .page-about__team-grid,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific padding-top for video section on mobile if needed, but shared should handle */
  .page-about__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* Buttons responsiveness */
  .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;
    padding-right: 15px;
    text-align: center; /* Center button text on mobile */
  }

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

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

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__sub-title {
    font-size: 1.3em;
  }
  .page-about__faq-title {
    font-size: 1.1em;
  }
}

/* Color Contrast Enforcement - Fallback/Safety */
/* Assuming body is dark from shared.css */
/* All text content within .page-about should be light */
.page-about p,
.page-about li,
.page-about__hero-description,
.page-about__section-description,
.page-about__text-block,
.page-about__feature-description,
.page-about__member-role,
.page-about__faq-answer p {
    color: #f0f0f0; /* Light grey for general text */
}

/* Links within text blocks */
.page-about__text-block a,
.page-about__faq-answer a {
    color: #26A9E0; /* Brand color for links */
    text-decoration: underline;
}

/* Ensure contrast for elements on potentially changing backgrounds */
.page-about__dark-bg {
  background-color: #26A9E0; /* Example brand color as dark background */
  color: #ffffff; /* White text on brand color background */
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text on light background */
}

/* Specific overrides for contrast safety */
.page-about__card, .page-about__team-member, .page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white on dark body background */
    color: #ffffff;
}

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

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

.page-about__faq-title, .page-about__feature-title, .page-about__member-name {
    color: #26A9E0; /* Brand color for titles */
}

.page-about__faq-toggle {
    color: #EA7C07; /* Login/Register button color for toggle */
}