/* style/about.css */

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

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

.page-about__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-about p {
  margin-bottom: 15px;
  font-size: 1em;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
  margin-bottom: 30px;
}

.page-about__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Using clamp for responsive H1 */
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

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

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  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: #1e87b8;
  border-color: #1e87b8;
}

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

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

/* Light Background Section */
.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

/* Dark Background Section */
.page-about__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 60px 0;
}

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

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

@media (min-width: 768px) {
  .page-about__content-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-about__content-grid:nth-child(even) .page-about__image-wrapper {
    order: 2;
  }
  .page-about__content-grid:nth-child(even) .page-about__text-block {
    order: 1;
  }
}

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

.page-about__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* Mission Vision Section */
.page-about__mission-vision-section .page-about__content-grid .page-about__text-block:nth-child(1) {
    grid-column: 1 / -1; /* Mission text spans full width */
}
.page-about__mission-vision-section .page-about__content-grid .page-about__image-wrapper {
    grid-column: 1 / -1; /* Image spans full width below mission text */
}
.page-about__mission-vision-section .page-about__content-grid .page-about__text-block:nth-child(3) {
    grid-column: 1 / -1; /* Vision text spans full width below image */
}

@media (min-width: 768px) {
    .page-about__mission-vision-section .page-about__content-grid {
        grid-template-columns: 1fr 1fr;
    }
    .page-about__mission-vision-section .page-about__content-grid .page-about__text-block:nth-child(1) {
        grid-column: 1 / 2;
    }
    .page-about__mission-vision-section .page-about__content-grid .page-about__image-wrapper {
        grid-column: 2 / 3;
        grid-row: 1 / 3;
    }
    .page-about__mission-vision-section .page-about__content-grid .page-about__text-block:nth-child(3) {
        grid-column: 1 / 2;
    }
}

/* History Section */
.page-about__history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-about__history-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  text-align: left;
}

.page-about__history-year {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__history-item p {
  color: #f0f0f0;
}

/* Why Choose Us Section (Features) */
.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-about__feature-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  color: #333333;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
}

.page-about__feature-icon {
  width: 80px; /* Min 200px requirement is for content images, not icons */
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  display: inline-block;
}

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

/* FAQ Section */
.page-about__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-about__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-about__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #26A9E0;
  list-style: none;
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #555555;
}

/* CTA Section */
.page-about__cta-section {
  text-align: center;
  padding: 80px 0;
}

.page-about__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #ffffff;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-about__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-about__hero-image {
    max-height: 300px;
    margin-bottom: 20px;
  }

  .page-about__main-title {
    font-size: 2em; /* Adjusted for smaller screens */
    margin-bottom: 15px;
  }

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

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 0.9em;
  }

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

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

  .page-about__light-bg, .page-about__dark-bg {
    padding: 40px 0;
  }

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

  .page-about__history-grid,
  .page-about__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__history-item,
  .page-about__feature-card {
    padding: 20px;
  }

  .page-about__feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

  .page-about__feature-title {
    font-size: 1.1em;
  }

  .page-about__faq-item summary {
    padding: 15px;
    font-size: 1em;
  }

  .page-about__faq-answer {
    padding: 0 15px 15px;
  }

  .page-about__cta-section {
    padding: 60px 0;
  }

  .page-about__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  /* Image and Video responsiveness for mobile */
  .page-about img,
  .page-about video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__image-wrapper,
  .page-about__video-container,
  .page-about__video-wrapper,
  .page-about__hero-section,
  .page-about__mission-vision-section,
  .page-about__history-section,
  .page-about__why-choose-us-section,
  .page-about__responsibility-section,
  .page-about__team-culture-section,
  .page-about__future-section,
  .page-about__faq-section,
  .page-about__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-about__hero-content {
    padding: 0 15px !important;
  }
}