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

.page-about__section-padding {
  padding: 60px 20px;
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: var(--text-main, #333333);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-about__text-block--light {
  color: #f0f0f0;
}

.page-about__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 20px auto;
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  background-color: var(--primary-color, #E53935);
  padding-top: 10px; /* Small top padding, body handles header offset */
  position: relative;
  overflow: hidden;
}

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

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

.page-about__hero-content-wrapper {
  padding: 40px 15px;
  text-align: center;
  max-width: 900px;
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.page-about__main-title {
  color: #ffffff;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button adapts to container */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

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

.page-about__btn-secondary:hover {
  background: #f0f0f0;
  color: #FF5A4F;
  border-color: #FF5A4F;
}

.page-about__btn-inline {
  margin-top: 20px;
}

/* Intro Section */
.page-about__intro-section .page-about__image-content {
  max-width: 800px;
}

/* Why Choose Us Section */
.page-about__dark-section {
  background-color: var(--primary-color, #E53935);
  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.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.page-about__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-about__feature-description {
  color: #f0f0f0;
  font-size: 1em;
}

/* Achievements Section */
.page-about__content-flex {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about__text-content {
  flex: 1;
}

.page-about__image-container {
  flex: 1;
  min-width: 300px;
}

/* Commitment Section */
.page-about__commitment-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-about__commitment-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-about__commitment-item span {
  color: var(--primary-color, #E53935);
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
  line-height: 1;
}

/* Future Vision Section */
.page-about__vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__vision-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  color: #ffffff;
}

.page-about__vision-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-about__vision-title {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-about__vision-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 30px;
}

.page-about__faq-item {
  background: var(--card-bg, #FFFFFF);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color, #E0E0E0);
}

.page-about__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-main, #333333);
  list-style: none;
  transition: background-color 0.3s ease;
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-about__faq-item summary:hover {
  background-color: #f9f9f9;
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color, #E53935);
}

.page-about__faq-item[open] .page-about__faq-toggle {
  content: "−";
}

.page-about__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: var(--text-main, #333333);
  text-align: justify;
}

/* CTA Section */
.page-about__cta-card {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  border-radius: 12px;
  padding: 50px;
  text-align: center;
  color: #ffffff;
}

/* --- Responsive Styles (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__hero-content-wrapper {
    padding: 30px 15px;
  }
  .page-about__main-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__feature-grid, .page-about__vision-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-about__content-flex {
    flex-direction: column;
  }
  .page-about__image-container {
    order: -1; /* Image appears above text on smaller screens */
  }
  .page-about__section-padding {
    padding: 40px 15px;
  }
}

/* --- Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  /* General content and image rules */
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__text-block {
    font-size: 1em;
  }
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .page-about__hero-image-wrapper, .page-about__image-container, .page-about__vision-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* 1. Hero Section (including image contain, not cover) */
  .page-about__hero-section {
    flex-direction: column;
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }
  .page-about__hero-image-wrapper {
    max-height: none; /* Remove max-height for mobile */
  }
  .page-about__hero-image {
    object-fit: contain; /* Image should be fully visible, not cropped */
    aspect-ratio: unset; /* Remove aspect ratio if any */
    height: auto; /* Ensure height adjusts */
  }
  .page-about__main-title {
    font-size: clamp(1.8em, 7vw, 2.2em); /* Responsive font size */
    text-align: center;
  }
  .page-about__hero-description {
    font-size: 1em;
    text-align: center;
  }
  .page-about__hero-content-wrapper {
    padding: 20px 15px;
  }

  /* 4. Buttons and Button Containers */
  .page-about__hero-cta-buttons,
  .page-about__cta-buttons,
  .page-about__btn-container {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .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-left: 15px;
    padding-right: 15px;
  }

  /* Feature Grid (Why Choose Us) */
  .page-about__feature-grid {
    grid-template-columns: 1fr;
  }

  /* Achievements Section */
  .page-about__content-flex {
    flex-direction: column;
  }
  .page-about__text-content {
    order: 2;
  }
  .page-about__image-container {
    order: 1;
    margin-bottom: 20px;
  }

  /* Commitment List */
  .page-about__commitment-item {
    font-size: 1em;
  }

  /* Future Vision Grid */
  .page-about__vision-grid {
    grid-template-columns: 1fr;
  }

  /* FAQ Section */
  .page-about__faq-item summary {
    font-size: 1em;
    padding: 15px;
  }
  .page-about__faq-answer {
    padding: 0 15px 15px;
  }

  /* CTA Card */
  .page-about__cta-card {
    padding: 30px 20px;
  }
}