/* style/about.css */

/* Base styles for the page-about scope */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color, #333333); /* Fallback to a dark color if body background is light */
}

/* Ensure text color contrasts with body background */
.page-about.page-content {
  /* Assuming shared.css sets body background. If it's light, this color is fine. */
  /* If body background is dark, this should be #ffffff. */
  /* For this context, we infer a light background for main content sections based on design. */
  color: #333333;
}

/* Section spacing and container */
.page-about__section {
  padding: 60px 0;
  text-align: center;
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom */
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
  color: #FFFFFF;
}

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

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

/* Section Titles */
.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #26A9E0;
  text-align: center;
}

/* Text Blocks */
.page-about__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  text-align: justify;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

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

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

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

.page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #26A9E0;
}

.page-about__btn-large {
  font-size: 1.2em;
  padding: 18px 35px;
}

/* Dark and Light Sections for contrast */
.page-about__dark-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #FFFFFF;
}

.page-about__dark-section .page-about__section-title {
  color: #FFFFFF;
}

.page-about__dark-section .page-about__text-block {
  color: #FFFFFF;
}

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

/* Image Content */
.page-about__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Grid Layouts */
.page-about__grid-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Cards */
.page-about__card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #FFFFFF;
  height: 100%; /* Ensure cards in grid have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-about__card--mission,
.page-about__card--vision {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly different background for cards in dark section */
  color: #FFFFFF;
  text-align: left;
}

.page-about__feature-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.page-about__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-about__card--mission .page-about__card-title,
.page-about__card--vision .page-about__card-title {
  color: #FFFFFF;
}

.page-about__feature-card .page-about__text-block {
  text-align: center;
  flex-grow: 1;
}

.page-about__card-link {
  display: inline-block;
  margin-top: 20px;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-about__card-link:hover {
  text-decoration: underline;
}

/* Lists */
.page-about__list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 800px;
  text-align: left;
}

.page-about__list-item {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-about__list-item strong {
  color: #26A9E0;
}

/* Team Members */
.page-about__team-member {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #FFFFFF;
}

.page-about__team-photo {
  width: 100%;
  height: auto;
  max-width: 200px;
  border-radius: 50%;
  margin-bottom: 15px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__member-name {
  font-size: 1.3em;
  margin-bottom: 5px;
  color: #FFFFFF;
}

.page-about__member-role {
  font-size: 0.9em;
  color: #f0f0f0;
}

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

.page-about__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  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;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  color: #333333;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

.page-about__faq-question:hover {
  background-color: #f0f0f0;
}

.page-about__faq-item[open] .page-about__faq-question {
  background-color: #e0e0e0;
  border-bottom-color: #d0d0d0;
}

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

.page-about__faq-item[open] .page-about__faq-toggle {
  content: '−'; /* Changed by JS */
}

.page-about__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #e0e0e0;
  background-color: #FFFFFF;
}

.page-about__faq-answer .page-about__text-block {
  margin-bottom: 0;
}

/* Conclusion Section */
.page-about__conclusion-section {
  padding-bottom: 80px;
}

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

  .page-about__hero-section {
    min-height: 400px;
    padding-bottom: 40px;
  }

  .page-about__main-title {
    font-size: 2em; /* Adjusted for mobile */
    line-height: 1.3;
  }

  .page-about__description {
    font-size: 1em;
  }

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

  .page-about__container {
    padding: 0 15px !important; /* Force padding */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-about__grid-two-cols {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 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;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto;
    box-sizing: border-box !important;
  }

  .page-about__card,
  .page-about__feature-card,
  .page-about__team-member {
    padding: 20px;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }

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

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

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

  .page-about__section-title {
    font-size: 1.8em;
  }
}