/* style/about.css */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Matches body background */
}

.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 starts below fixed header */
  background: linear-gradient(135deg, #26A9E0, #FFFFFF);
  color: #333333; /* Dark text for a mixed/light background */
}

.page-about__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-about__main-title {
  font-size: 3.2em;
  color: #000000;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.2em;
  color: #333333;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 900px; /* Adjust max-width as needed */
  margin-top: 30px;
}

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

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #26A9E0; /* Primary brand color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-about__cta-button:hover {
  background: #1e87c0; /* Slightly darker primary color */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: #000000;
  margin-bottom: 20px;
}

.page-about__intro-text {
  font-size: 1.1em;
  color: #555555;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-about__mission-vision .page-about__text-block {
  padding-right: 20px;
}

.page-about__mission-vision .page-about__image-block {
  padding-left: 20px;
}

.page-about__mission-vision .page-about__image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

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

.page-about__why-choose-us {
  background-color: #26A9E0; /* Primary brand color for dark background */
  color: #ffffff; /* White text for dark background */
}

.page-about__why-choose-us .page-about__section-title,
.page-about__why-choose-us .page-about__intro-text {
  color: #ffffff;
}

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

.page-about__feature-card {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for cards on dark background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-about__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-about__feature-card .page-about__card-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-about__feature-card p {
  color: #f0f0f0;
  font-size: 0.95em;
}

.page-about__cta-center {
  margin-top: 50px;
}

.page-about__core-values {
  background-color: #f8f8f8;
}

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

.page-about__value-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

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

.page-about__value-item p {
  color: #555555;
  font-size: 0.95em;
}

.page-about__team-section {
  background-color: #000000; /* Dark background */
  color: #ffffff; /* White text */
}

.page-about__team-section .page-about__section-title,
.page-about__team-section .page-about__intro-text {
  color: #ffffff;
}

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

.page-about__team-member {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards on dark background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

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

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

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

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

.page-about__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #f9f9f9;
  color: #555555;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Ensure content expands fully */
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid #e0e0e0;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about__faq-item.active .page-about__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-about__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-about__faq-question:active {
  background: #eeeeee;
}

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #26A9E0;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #000000;
  transform: rotate(45deg); /* Change to X or rotate for minus */
}

.page-about__contact-cta {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-about__contact-cta .page-about__section-title,
.page-about__contact-cta .page-about__intro-text {
  color: #ffffff;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 2.8em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__mission-vision .page-about__content-grid {
    grid-template-columns: 1fr;
  }
  .page-about__mission-vision .page-about__text-block,
  .page-about__mission-vision .page-about__image-block {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__main-title {
    font-size: 2em;
  }
  .page-about__description {
    font-size: 1em;
  }
  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__section {
    padding: 40px 15px;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__intro-text {
    font-size: 0.95em;
  }
  .page-about__feature-grid,
  .page-about__values-grid,
  .page-about__team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__feature-card,
  .page-about__value-item,
  .page-about__team-member {
    padding: 20px;
  }
  .page-about__sub-title,
  .page-about__card-title,
  .page-about__value-title,
  .page-about__member-name {
    font-size: 1.3em;
  }
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__section,
  .page-about__container,
  .page-about__hero-container,
  .page-about__hero-image-wrapper,
  .page-about__feature-grid,
  .page-about__values-grid,
  .page-about__team-grid,
  .page-about__faq-list,
  .page-about__cta-center {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-about__faq-question {
    padding: 15px;
  }
  .page-about__faq-question h3 {
    font-size: 1em;
  }
  .page-about__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }
}