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

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

.page-about__section {
  padding: 60px 0;
  text-align: center;
}

.page-about__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__section-subtitle,
.page-about__dark-section .page-about__sub-title {
  color: #ffffff;
}

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #26A9E0;
}

.page-about__section-subtitle {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #555555;
}

.page-about__dark-section .page-about__section-subtitle {
  color: #f0f0f0;
}

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

.page-about__text-block p {
  margin-bottom: 15px;
  text-align: left;
}

/* Hero Section */
.page-about__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  background-color: #f0f8ff;
}

.page-about__hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-about__hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.page-about__hero-slide.is-active {
  opacity: 1;
}

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

.page-about__hero-slider-prev,
.page-about__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 2em;
  border-radius: 5px;
}

.page-about__hero-slider-prev {
  left: 15px;
}

.page-about__hero-slider-next {
  right: 15px;
}

.page-about__hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 40px 15px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  margin-top: 20px;
  max-width: 800px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-about__main-title {
  color: #26A9E0;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 100%;
  margin-bottom: 20px;
}

.page-about__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555555;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin: 10px;
  max-width: 100%;
  box-sizing: border-box;
  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: #1e87c0;
  border-color: #1e87c0;
}

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

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

/* Intro Section */
.page-about__intro-section .page-about__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

.page-about__intro-section .page-about__content-image {
  flex: 0 0 50%;
  max-width: 50%;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-about__intro-section .page-about__text-block {
  flex: 0 0 50%;
  max-width: 50%;
}

/* Why Choose Us Section - Guide Grid (5 team cards) */
.page-about__why-choose-us-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-about__guide-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-about__guide-card {
  flex: 0 0 calc(20% - 15px);
  max-width: calc(20% - 15px);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease;
}

.page-about__guide-card:hover {
  transform: translateY(-10px);
}

.page-about__guide-card img {
  aspect-ratio: 250 / 350;
  object-fit: cover;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  display: block;
}

.page-about__guide-card--pos-1 { padding-top: 50px; }
.page-about__guide-card--pos-2 { padding-top: 25px; }
.page-about__guide-card--pos-4 { padding-top: 25px; }
.page-about__guide-card--pos-5 { padding-top: 50px; }

.page-about__guide-text-content {
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.page-about__guide-text-content p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-about__guide-text-content .page-about__sub-title {
  color: #ffffff;
}

/* Commitment Section */
.page-about__commitment-section .page-about__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

.page-about__commitment-section .page-about__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-about__commitment-section .page-about__content-image {
  flex: 0 0 50%;
  max-width: 50%;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-about__commitment-section .page-about__text-block {
  flex: 0 0 50%;
  max-width: 50%;
}

.page-about__commitment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

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

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

/* CTA Bottom Section */
.page-about__cta-bottom-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-about__cta-bottom-section .page-about__section-title,
.page-about__cta-bottom-section .page-about__section-subtitle {
  color: #ffffff;
}

.page-about__button-group {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Responsive Styles */
/* General image and button responsive styles */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-about__section,
.page-about__container,
.page-about__content-wrapper,
.page-about__guide-grid,
.page-about__button-group {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2em;
  }

  .page-about__sub-title {
    font-size: 1.5em;
  }

  .page-about__intro-section .page-about__content-wrapper,
  .page-about__commitment-section .page-about__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__intro-section .page-about__content-image,
  .page-about__intro-section .page-about__text-block,
  .page-about__commitment-section .page-about__content-image,
  .page-about__commitment-section .page-about__text-block {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .page-about__guide-card {
    flex: 0 0 calc(33.333% - 15px);
    max-width: calc(33.333% - 15px);
  }
}

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

  .page-about__hero-section {
    padding-top: 10px !important;
    min-height: 400px;
  }

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

  .page-about__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-about__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-about__section {
    padding: 40px 0;
  }

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-about__section-subtitle {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-about__sub-title {
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  /* General image and button responsive styles */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__section,
  .page-about__container,
  .page-about__content-wrapper,
  .page-about__guide-grid,
  .page-about__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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;
    margin: 8px 0 !important; /* Adjust margin for vertical stacking */
  }

  .page-about__button-group {
    flex-direction: column !important;
    gap: 10px;
  }

  /* Guide Box + 5 team vertical cards */
  .page-about__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }

  .page-about__guide-card {
    padding-top: 0 !important; /* Reset staggered padding */
    flex: auto; /* Allow auto sizing in grid */
    max-width: none; /* Reset max-width from flex */
  }

  .page-about__guide-card--pos-1,
  .page-about__guide-card--pos-2 {
    grid-column: span 3; /* Two cards per row */
  }

  .page-about__guide-card--pos-3,
  .page-about__guide-card--pos-4,
  .page-about__guide-card--pos-5 {
    grid-column: span 2; /* Three cards per row for the rest */
  }

  .page-about__guide-card img {
    aspect-ratio: 250 / 350;
    object-fit: cover;
    width: 100%;
    height: auto;
  }

  /* home_content box is not explicitly used here, but for general content-like wrappers */
  /* If there was a fixed-height scrollable content box, it would be adjusted here */
  /* Example for a generic content box that might have been mistaken for home_content */
  .page-about__content-box-like-structure {
    height: auto !important;
    overflow: visible !important;
  }

  /* Blog cards (if present, this page does not have a blog section directly) */
  .page-about__blog-grid {
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 15px;
  }
}