/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #f8f8f8; /* Light background for the page content */
}

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

.page-about__section {
  padding: 60px 0;
  background-color: #ffffff; /* Default section background */
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-about__section:first-of-type {
  padding-top: 10px; /* Small top padding for the first section */
  box-shadow: none;
  background-color: transparent;
  margin-bottom: 0;
}

.page-about__section-title {
  font-size: 38px;
  font-weight: 700;
  color: #26A9E0; /* Primary color for section titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #26A9E0;
  border-radius: 2px;
}

.page-about__subsection-title {
  font-size: 24px;
  font-weight: 600;
  color: #333333;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about p {
  margin-bottom: 15px;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  background-color: #26A9E0; /* Brand primary color */
  padding-bottom: 60px; /* Adjust as needed */
  overflow: hidden;
  border-radius: 0 0 15px 15px;
  margin-bottom: 20px;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height of image wrapper */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover; /* Ensures image covers the area */
  display: block;
}

.page-about__hero-content {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: center;
  color: #FFFFFF;
  padding: 0 20px;
}

.page-about__hero-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-about__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-about__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-about__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #FFFFFF;
}

.page-about__btn-primary:hover {
  background-color: #d66c06;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-about__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0; /* Primary brand color */
  border-color: #FFFFFF;
}

.page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* About Us Section specific */
.page-about__about-us {
  background-color: #f0f8ff; /* Light blue tint */
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

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

.page-about__image {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-about__value-list {
  list-style: disc inside;
  padding-left: 0;
  margin-top: 20px;
}

.page-about__value-list li {
  margin-bottom: 10px;
  padding-left: 5px;
  font-size: 16px;
  color: #555555;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
  background-color: #FFFFFF;
}

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

.page-about__feature-card {
  background-color: #f0f8ff; /* Light blue tint */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-about__feature-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 300px; /* Max width for feature icons */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.page-about__feature-title {
  font-size: 22px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

/* Commitment Section */
.page-about__commitment {
  background-color: #f0f8ff; /* Light blue tint */
}

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

.page-about__commitment-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-about__commitment-item:hover {
  transform: translateY(-5px);
}

/* Join Us Section */
.page-about__join-us {
  background-color: #26A9E0; /* Primary brand color */
  color: #FFFFFF;
  text-align: center;
  border-radius: 15px;
}

.page-about__join-content .page-about__section-title {
  color: #FFFFFF;
}

.page-about__join-content .page-about__section-title::after {
  background-color: #FFFFFF;
}

.page-about__join-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

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

/* FAQ Section */
details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
  display: none;
}
details.page-about__faq-item summary.page-about__faq-question:hover {
  background: #f5f5f5;
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-about__faq-toggle {
  font-size: 28px; /* Larger for better visibility */
  font-weight: bold;
  color: #26A9E0; /* Brand color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px; /* Slightly larger hit area */
  text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #555555;
  font-size: 16px;
}
details.page-about__faq-item[open] .page-about__faq-question {
  background-color: #e0f2ff; /* Light blue when open */
}

/* Global image responsiveness */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 34px;
  }
  .page-about__hero-title {
    font-size: 48px;
  }
  .page-about__hero-description {
    font-size: 17px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-about__content-grid {
    grid-template-columns: 1fr;
  }
  .page-about__image-block {
    order: -1; /* Image appears above text on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-about__container {
    padding: 0 15px;
  }

  .page-about__section {
    padding: 40px 0;
  }
  
  .page-about__section:first-of-type {
    padding-top: 10px; /* Still small top padding */
  }

  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  
  .page-about__subsection-title {
    font-size: 20px;
    margin-top: 25px;
  }

  /* Hero Section */
  .page-about__hero-image-wrapper {
    max-height: 250px;
  }
  .page-about__hero-image {
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }
  .page-about__hero-content {
    margin-top: 30px;
  }
  .page-about__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-about__hero-description {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-about__hero-cta-buttons,
  .page-about__join-cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
  }
  
  /* Buttons */
  .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: 12px 15px;
    font-size: 16px;
  }
  
  /* Button containers */
  .page-about__hero-cta-buttons,
  .page-about__join-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;
    flex-wrap: wrap !important; /* Allow wrapping for multiple buttons */
    gap: 10px;
  }

  /* About Us Section */
  .page-about__content-grid {
    gap: 30px;
  }
  .page-about__image {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Why Choose Us Section */
  .page-about__features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-about__feature-card {
    padding: 25px;
  }
  .page-about__feature-icon {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Commitment Section */
  .page-about__commitment-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-about__commitment-item {
    padding: 25px;
  }

  /* FAQ Section */
  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px;
  }
  .page-about__faq-qtext {
    font-size: 16px;
  }
  .page-about__faq-toggle {
    font-size: 24px;
    width: 25px;
  }
  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 15px 15px;
    font-size: 15px;
  }

  /* Ensure all images inside page-about are responsive */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  /* All containers for images should be responsive */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__text-block,
  .page-about__image-block,
  .page-about__feature-card,
  .page-about__commitment-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}