/* style/about.css */

/* --- General Styles --- */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #ffffff; /* Explicitly set for content area if needed, though body handles it */
}

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

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

.page-about__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for titles */
  line-height: 1.2;
}

.page-about__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for sub-titles */
}

.page-about__paragraph {
  font-size: 1.1em;
  margin-bottom: 15px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__list {
  list-style-type: disc;
  margin: 20px auto;
  padding-left: 40px;
  max-width: 800px;
  text-align: left;
}

.page-about__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

/* --- Hero Section --- */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #ffffff;
  color: #333333;
}

.page-about__hero-image-container {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 30px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.page-about__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
  font-weight: 800;
  color: #26A9E0; /* Brand color */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  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;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: #26A9E0; /* Brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-about__btn-primary:hover {
  background-color: #1e87b6;
  border-color: #1e87b6;
  transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87b6;
  border-color: #1e87b6;
  transform: translateY(-2px);
}

/* --- Dark Background Sections --- */
.page-about__dark-bg {
  background-color: #26A9E0; /* Brand color as background */
  color: #ffffff; /* White text for dark background */
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__sub-title {
  color: #ffffff; /* White titles for dark background */
}

.page-about__dark-section .page-about__paragraph,
.page-about__dark-section .page-about__list-item {
  color: #f0f0f0;
}

/* --- Image and Text Blocks --- */
.page-about__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 40px auto;
  max-width: 1000px;
  text-align: left;
}

.page-about__image-text-block.page-about__reverse-layout {
  flex-direction: row-reverse;
}

.page-about__content-image {
  flex: 1;
  min-width: 300px; /* Minimum width for image in flex layout */
  max-width: 50%; /* Max width for image in flex layout */
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.page-about__text-content {
  flex: 1;
  min-width: 300px; /* Minimum width for text in flex layout */
}

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

.page-about__value-card.page-about__card {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  text-align: center;
  border: 1px solid #e0e0e0;
}

.page-about__value-card .page-about__card-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Ensure card images are not too small */
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-about__value-card .page-about__card-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-about__value-card .page-about__card-text {
  font-size: 1em;
  color: #555555;
}

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

.page-about__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-about__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2em;
  font-weight: 600;
  color: #26A9E0;
  transition: background-color 0.3s ease;
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

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

.page-about__faq-answer p {
  margin-bottom: 10px;
}

/* --- Contact CTA Section --- */
.page-about__contact-cta {
  padding: 80px 0;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-about__image-text-block {
    flex-direction: column;
    text-align: center;
  }

  .page-about__image-text-block.page-about__reverse-layout {
    flex-direction: column; /* Stack vertically on smaller screens */
  }

  .page-about__content-image {
    max-width: 80%; /* Adjust image size in stacked layout */
    margin: 0 auto 20px;
  }
}

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

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

  .page-about__paragraph,
  .page-about__list-item,
  .page-about__faq-item summary,
  .page-about__faq-answer {
    font-size: 1em;
  }
  
  /* Mobile general content padding */
  .page-about__container,
  .page-about__cta-buttons,
  .page-about__value-grid,
  .page-about__faq-list,
  .page-about__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Images responsive */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Image containers responsive */
  .page-about__hero-image-container,
  .page-about__image-text-block,
  .page-about__value-card .page-about__card-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Buttons responsive */
  .page-about__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    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;
  }
  
  /* Hero section top padding (body handles header offset) */
  .page-about__hero-section {
    padding-top: 10px !important;
  }

  .page-about__value-grid {
    grid-template-columns: 1fr; /* Single column for cards */
  }

  .page-about__faq-item summary {
    padding: 15px 20px;
  }

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

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