/* style/about.css */

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

.page-about__section-padded {
  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.5rem;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-about__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-about__dark-bg {
  background-color: #26A9E0;
  color: #FFFFFF;
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: #f5f5f5;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-about__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 30px 15px;
  box-sizing: border-box;
}

.page-about__main-title {
  font-weight: 700;
  line-height: 1.2;
  color: #26A9E0;
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3rem); /* Responsive font size */
}

.page-about__intro-text {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #555555;
}

.page-about__btn-primary {
  display: inline-block;
  background-color: #26A9E0;
  color: #FFFFFF;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background-color: #1e87c0;
}

/* Story Section */
.page-about__story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__story-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-about__story-content p {
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: #555555;
}

/* Mission & Vision Section */
.page-about__mv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.page-about__mv-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  color: #FFFFFF;
}

.page-about__mv-card-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: #FFFFFF;
}

.page-about__mv-card p {
  font-size: 1.05rem;
}

.page-about__mv-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

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

.page-about__value-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-about__value-card-title {
  font-size: 1.6rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: #26A9E0;
}

.page-about__value-card p {
  font-size: 1rem;
}

/* Why Choose Us Section */
.page-about__wcu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.page-about__wcu-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  color: #FFFFFF;
}

.page-about__wcu-item-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: #FFFFFF;
}

.page-about__wcu-item p {
  font-size: 1.05rem;
}

.page-about__wcu-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-about__cta-section {
  text-align: center;
  margin-top: 40px;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.page-about__cta-text {
  font-size: 1.4rem;
  margin-bottom: 25px;
  color: #FFFFFF;
  font-weight: 600;
}

/* FAQ Section */
.page-about__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-about__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: #26A9E0;
  list-style: none; /* For details/summary */
}

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

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

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
}

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

.page-about__faq-answer p {
  margin: 0;
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-about__story-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-about__story-grid:nth-child(even) {
    grid-template-areas: "image content";
  }

  .page-about__story-grid:nth-child(odd) {
    grid-template-areas: "content image";
  }

  .page-about__story-content {
    grid-area: content;
  }

  .page-about__story-image-wrapper {
    grid-area: image;
  }

  .page-about__mv-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-about__wcu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .page-about__wcu-image-wrapper {
    grid-column: 1 / -1; /* Span full width */
  }
}

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

  .page-about__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-about__intro-text {
    font-size: 1rem;
  }

  .page-about__btn-primary {
    padding: 12px 24px;
    font-size: 0.95rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Image responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__hero-image-wrapper,
  .page-about__story-image-wrapper,
  .page-about__mv-image-wrapper,
  .page-about__wcu-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Button responsive */
  .page-about__cta-section {
    padding: 20px;
  }

  .page-about__cta-text {
    font-size: 1.2rem;
  }

  .page-about__cta-section > .page-about__btn-primary {
    margin-top: 15px;
  }

  .page-about__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

  .page-about__section-padded {
    padding: 40px 15px;
  }

  /* Ensure all content containers are constrained */
  .page-about__container,
  .page-about__story-grid,
  .page-about__mv-grid,
  .page-about__values-grid,
  .page-about__wcu-grid,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-about__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__story-content,
  .page-about__mv-card,
  .page-about__value-card,
  .page-about__wcu-item {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video specific rules (even if no video on this page, the rules must exist) */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-about__video-section {
    padding-top: 10px !important;
  }
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}