/* style/about.css */

/* Body background is dark (#0a0a0a), so text color should be light */
.page-about {
  color: #ffffff; /* Light text for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Rely on body background from shared.css */
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px; /* Small top padding, more bottom padding */
  overflow: hidden;
  background-color: #0a0a0a; /* Ensure dark background for this section */
}

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

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 40px 20px;
  color: #ffffff;
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__intro-text {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-about__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #26A9E0;
}

/* General Section Styling */
.page-about__mission-vision-section,
.page-about__highlights-section,
.page-about__faq-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-about__commitment-section,
.page-about__join-us-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff; /* Light text for brand color background */
}

.page-about__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  color: inherit; /* Inherit color from parent section */
}

/* Mission Vision Section */
.page-about__mission-vision-section .page-about__section-title {
  color: #333333;
}

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

.page-about__grid-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-about__grid-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-about__grid-text {
  font-size: 1rem;
  line-height: 1.7;
}

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

.page-about__value-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-about__value-list li::before {
  content: '✔';
  color: #26A9E0;
  position: absolute;
  left: 0;
  top: 0;
}

.page-about__value-highlight {
  color: #26A9E0;
}

/* Commitment Section */
.page-about__commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-about__commitment-card {
  background-color: rgba(255, 255, 255, 0.15); /* Semi-transparent white on brand color */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__commitment-icon {
  width: 100%;
  max-width: 150px; /* Adjust size for content images */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-about__card-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #f0f0f0;
}

/* Highlights Section */
.page-about__highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-about__highlight-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__highlight-card .page-about__card-title {
  color: #26A9E0;
}

.page-about__highlight-card .page-about__card-text {
  color: #555555;
  margin-bottom: 20px;
}

.page-about__btn-text {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  margin-top: auto; /* Push to bottom */
}

.page-about__btn-text:hover {
  text-decoration: underline;
}

/* Join Us Section */
.page-about__join-us-text {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

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

.page-about__faq-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: #26A9E0;
  background-color: #eaf7fc; /* Light blue background for summary */
  border-bottom: 1px solid #e0e0e0;
}

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

.page-about__faq-item[open] > .page-about__faq-question {
  border-bottom: 1px solid #e0e0e0; /* Keep border when open */
}

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 20px;
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or use '−' */
}

.page-about__faq-answer {
  padding: 20px 30px;
  font-size: 1rem;
  line-height: 1.7;
  color: #555555;
  background-color: #ffffff;
}

.page-about__faq-answer .page-about__btn-text {
  margin-top: 15px;
  display: inline-block;
}

/* Ensure details summary marker is hidden */
.page-about__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-about__faq-item summary {
  list-style: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-about__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-about__hero-section {
    padding: 10px 0 40px;
  }

  .page-about__hero-content {
    padding: 20px 15px;
  }

  .page-about__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-about__intro-text {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-about__mission-vision-section,
  .page-about__commitment-section,
  .page-about__highlights-section,
  .page-about__join-us-section,
  .page-about__faq-section {
    padding: 40px 0;
  }

  .page-about__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-about__container {
    padding: 0 15px;
  }

  .page-about__grid,
  .page-about__commitment-grid,
  .page-about__highlights-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__grid-item,
  .page-about__commitment-card,
  .page-about__highlight-card,
  .page-about__faq-item {
    padding: 20px;
  }

  .page-about__grid-title,
  .page-about__card-title {
    font-size: 1.4rem;
  }

  .page-about__grid-text,
  .page-about__card-text,
  .page-about__join-us-text,
  .page-about__faq-answer p {
    font-size: 0.95rem;
  }

  .page-about__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-about__faq-toggle {
    font-size: 1.2rem;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__hero-image {
    filter: brightness(0.3) !important; /* Make hero image darker on mobile */
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__grid-item,
  .page-about__commitment-card,
  .page-about__highlight-card,
  .page-about__faq-item,
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  /* Specific overrides for padding on full-width sections if needed */
  .page-about__hero-section,
  .page-about__commitment-section,
  .page-about__join-us-section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-about__video-section {
    padding-top: 10px !important;
  }
}