/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

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

.page-about__dark-bg {
  background-color: #000000; /* Dark background from body */
  color: #ffffff;
}

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

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

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

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0; /* Light grey for readability on dark backgrounds */
  text-align: justify;
}

.page-about__light-bg .page-about__text-block {
  color: #333333;
}

.page-about__list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: left;
}

.page-about__list-item {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for items on dark bg */
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 1.05em;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.page-about__light-bg .page-about__list-item {
  background: #f9f9f9;
  color: #333333;
  border: 1px solid #e0e0e0;
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-about__hero-content {
  z-index: 2;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-about__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
  line-height: 1.5;
}

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

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

/* CTA Buttons */
.page-about__hero-cta-buttons, .page-about__button-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

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

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

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

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

/* Strengths Section */
.page-about__strengths .page-about__section-title {
  color: #ffffff;
}

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

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

.page-about__card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #333333;
}

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

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

.page-about__card-description {
  font-size: 1em;
  color: #555555;
}

/* FAQ Section */
.page-about__faq-section {
  text-align: left;
}

.page-about__faq-section .page-about__section-title {
  color: #26A9E0;
}

.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  background: #f0f0f0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #e8e8e8;
  border-bottom: 1px solid #d0d0d0;
  user-select: none;
}

.page-about__faq-item[open] .page-about__faq-question {
  border-bottom: 1px solid #d0d0d0;
}

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

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

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

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 1.05em;
  color: #555555;
  line-height: 1.7;
  background-color: #ffffff;
}

/* Hide default details marker */
.page-about__faq-item > summary {
  list-style: none;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-about__hero-section {
    flex-direction: column;
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-about__hero-title {
    font-size: 2.5em;
  }

  .page-about__hero-description {
    font-size: 1em;
  }

  .page-about__hero-cta-buttons, .page-about__button-group {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-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__section {
    padding: 40px 0;
  }

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

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

  .page-about__text-block {
    font-size: 1em;
    padding: 0 15px;
    text-align: left;
  }

  .page-about__list-item {
    font-size: 0.95em;
    padding: 10px 15px;
  }

  .page-about__cards-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-about__card {
    padding: 20px;
  }

  .page-about__card-image {
    height: 180px;
  }

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

  .page-about__faq-answer {
    font-size: 0.95em;
    padding: 15px 20px;
  }
  
  /* Ensure all images are responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__faq-section,
  .page-about__faq-list,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Add horizontal padding to containers to prevent content touching edges */
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Override specific section padding for mobile */
  .page-about__section:not(.page-about__hero-section) {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Color Contrast Fixes (if necessary based on dynamic analysis) */
/* The body background is #000000 (dark), so main text color should be light. */
/* This is handled by default .page-about color and specific section colors. */
/* Cards are light-bg, so text is dark. */
/* Buttons are designed with sufficient contrast. */