/* style/about.css */

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

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

.page-about__section {
  padding: 60px 0;
  position: relative;
  z-index: 1; /* Ensure content is above any potential background elements */
}

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

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

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

/* --- Color Contrast Classes (for specific sections) --- */
.page-about__dark-bg {
  background-color: #0d0d0d; /* Slightly lighter dark for sections */
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* --- Buttons --- */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1.1em;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

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

.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__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-about__cta-buttons--center {
  text-align: center;
}

/* --- Image & Video Styles --- */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

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

.page-about__image-block--center {
  margin: 40px auto 0 auto;
}

.page-about__hero-video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 40px;
}

.page-about__hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer; /* For JS click handling */
}

/* --- Hero Section --- */
.page-about__hero-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #0a0a0a; /* Ensure hero has a dark background */
}

.page-about__hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

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

.page-about__hero-description {
  font-size: 1.4em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Introduction & History Sections --- */
.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-about__content-grid--reverse {
  grid-template-areas: "image text";
}

.page-about__content-grid--reverse .page-about__image-block {
  grid-area: image;
}

.page-about__content-grid--reverse .page-about__text-block {
  grid-area: text;
}

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

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

.page-about__value-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__value-card p {
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-about__member-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-about__member-avatar {
  width: 200px; /* Min size 200x200 */
  height: 200px; /* Min size 200x200 */
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px auto;
  border: 3px solid #26A9E0;
}

.page-about__member-name {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 5px;
  font-weight: bold;
}

.page-about__member-role {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-about__member-bio {
  font-size: 0.95em;
  color: #cccccc;
}

/* --- Support Section --- */
.page-about__support-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  max-width: 800px;
}

.page-about__support-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 1.1em;
  color: #ffffff;
  display: flex;
  align-items: center;
}

.page-about__support-item::before {
  content: '✔️'; /* Checkmark icon */
  margin-right: 15px;
  color: #26A9E0;
  font-size: 1.2em;
}

/* --- Future Section --- */
.page-about__future-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.page-about__future-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px 25px;
  border-radius: 10px;
  font-size: 1.1em;
  color: #ffffff;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-about__future-item::before {
  content: '🚀'; /* Rocket icon */
  margin-right: 15px;
  font-size: 1.5em;
}

/* --- FAQ Section --- */
.page-about__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

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

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

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

/* Hide default details marker */
.page-about__faq-item summary {
  list-style: none;
}
.page-about__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #26A9E0;
  margin-left: 15px;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  content: '−';
}

.page-about__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__section-title {
    font-size: 2.5em;
  }
  .page-about__content-grid {
    grid-template-columns: 1fr;
  }
  .page-about__content-grid--reverse {
    grid-template-areas: unset; /* Reset for mobile */
  }
  .page-about__content-grid--reverse .page-about__image-block,
  .page-about__content-grid--reverse .page-about__text-block {
    grid-area: unset;
  }
}

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

  /* Force important for mobile images/videos/containers */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__hero-video-wrapper,
  .page-about__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important; /* This will be overridden by padding-top for aspect ratio */
    display: block !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__image-block,
  .page-about__hero-video-wrapper,
  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

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

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

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

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

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

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

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

  .page-about__member-avatar {
    width: 150px; /* Adjust for smaller screens but keep >= 200px rule in mind for generation */
    height: 150px;
  }

  .page-about__value-card,
  .page-about__member-card,
  .page-about__support-item,
  .page-about__future-item,
  .page-about__faq-item {
    padding: 15px !important;
  }

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

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

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