/* style/about.css */
.page-about {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D;
  line-height: 1.6;
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles main offset */
  margin-bottom: 40px;
}

.page-about__hero-image-container {
  width: 100%;
  height: auto;
  display: block;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #2F6BFF;
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-about__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: #1F2D3D;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

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

.page-about__btn-primary,
.page-about__btn-contact,
.page-about__btn-join {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover,
.page-about__btn-contact:hover,
.page-about__btn-join:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

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

.page-about__btn-secondary:hover {
  background: #D6E2FF;
  color: #2F6BFF;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.2);
}

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

.page-about__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #2F6BFF;
}

.page-about__section-title--white {
  color: #ffffff;
}

.page-about__sub-section-title {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 600;
  color: #2F6BFF;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about__text-block p {
  margin-bottom: 15px;
  color: #1F2D3D;
}

.page-about__text-block--white p,
.page-about__text-block--white .page-about__sub-section-title {
  color: #ffffff;
}

.page-about__introduction-section,
.page-about__commitment-section {
  padding: 60px 0;
  background-color: #F4F7FB;
}

.page-about__why-choose-section,
.page-about__future-section {
  padding: 60px 0;
  background-color: #2F6BFF;
}

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

.page-about__content-grid--reverse {
  grid-template-columns: 1fr 1fr;
  direction: rtl; /* For image-left, text-right layout */
}

.page-about__content-grid--reverse > .page-about__image-block {
  direction: ltr;
}

.page-about__content-grid--reverse > .page-about__text-block {
  direction: ltr;
}

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

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
  min-width: 200px;
  min-height: 200px;
}

/* Ensure all images are responsive by default */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsive styles */
@media (max-width: 1024px) {
  .page-about__hero-content {
    margin-top: 15px;
  }

  .page-about__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-about__subtitle {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  }

  .page-about__section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  }

  .page-about__sub-section-title {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-contact,
  .page-about__btn-join {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .page-about__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-about__content-grid--reverse {
    direction: ltr; /* Reset for mobile */
    grid-template-columns: 1fr;
  }

  .page-about__content-grid--reverse > .page-about__image-block {
    order: -1; /* Move image above text */
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: 10px !important;
    margin-bottom: 20px;
  }

  .page-about__hero-content {
    padding: 0 10px;
  }

  .page-about__main-title {
    font-size: 2.2rem !important;
  }

  .page-about__subtitle {
    font-size: 1rem !important;
  }

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

  .page-about__sub-section-title {
    font-size: 1.4rem !important;
    margin-top: 20px;
    margin-bottom: 10px;
  }

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

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

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

  .page-about__introduction-section,
  .page-about__why-choose-section,
  .page-about__commitment-section,
  .page-about__future-section {
    padding: 40px 0;
  }

  .page-about__content-grid {
    gap: 20px;
  }

  /* Mandatory mobile image and container styles */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__hero-section,
  .page-about__introduction-section,
  .page-about__why-choose-section,
  .page-about__commitment-section,
  .page-about__future-section,
  .page-about__container,
  .page-about__cta-buttons,
  .page-about__content-grid,
  .page-about__text-block,
  .page-about__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific overrides for mobile padding on sections that might inherit global padding */
  .page-about__introduction-section .page-about__container,
  .page-about__why-choose-section .page-about__container,
  .page-about__commitment-section .page-about__container,
  .page-about__future-section .page-about__container {
    padding-left: 0;
    padding-right: 0;
  }

  .page-about__text-block,
  .page-about__image-block {
    padding-left: 0;
    padding-right: 0;
  }
}