/* General Styling for About Us Page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF); /* Assumed light body background */
}

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

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

.page-about__section-title {
  font-size: 3em;
  font-weight: bold;
  color: #26A9E0; /* Primary brand color */
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-about__subsection-title {
  font-size: 2.2em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 20px;
}

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

/* Hero Section */
.page-about__hero-section {
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  background-color: #f0f8ff; /* Light background for hero section */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-about__hero-image {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
}

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

.page-about__hero-content {
  padding: 40px 20px;
  max-width: 900px;
}

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

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

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 600px; /* Limit button group width */
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.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: background-color 0.3s ease, color 0.3s ease, border-color 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; /* Allow text to break words */
}

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

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

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

.page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87c0;
  border-color: #1e87c0;
}

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

.page-about__grid--3-cols {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-about__grid--reverse {
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
}

.page-about__grid-item {
  text-align: left;
}

.page-about__grid-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Cards */
.page-about__card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 250px; /* Ensure cards have some height */
}

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

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

/* Dark Section */
.page-about__dark-section {
  background-color: #26A9E0; /* Primary brand color as background */
  color: #ffffff;
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__subsection-title,
.page-about__dark-section .page-about__card-title {
  color: #ffffff;
}

.page-about__dark-section .page-about__text-block,
.page-about__dark-section .page-about__card-text {
  color: #f0f0f0;
}

.page-about__dark-section .page-about__card {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white for cards on dark bg */
  color: #ffffff;
  box-shadow: none;
}

.page-about__dark-section .page-about__card .page-about__card-text {
  color: #ffffff;
}

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

.page-about__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-about__list-item::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: #26A9E0;
}

/* Flex Center Utility */
.page-about__flex-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* All images must be responsive and not smaller than 200px */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

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

  /* Hero Section */
  .page-about__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
  }

  .page-about__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }

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

  .page-about__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* Section Titles */
  .page-about__section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }

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

  /* Grid Layout */
  .page-about__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__grid--reverse {
    grid-template-columns: 1fr; /* Stack items on mobile */
  }

  /* Cards */
  .page-about__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  /* General Images and Containers */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
    box-sizing: border-box !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__grid-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* List Styling */
  .page-about__list {
    padding-left: 15px;
    padding-right: 15px;
  }
}