/* style/about.css */
.page-about {
  color: #333333; /* Dark text for light body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #f8f9fa; /* Light background for hero section */
  overflow: hidden;
}

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

.page-about__hero-title {
  font-size: 3.5em;
  color: #007bff;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

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

.page-about__hero-btn {
  display: inline-block;
  padding: 15px 30px;
  margin: 0 10px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-about__hero-btn--primary {
  background-color: #007bff;
  color: #ffffff;
  border: 2px solid #007bff;
}

.page-about__hero-btn--primary:hover {
  background-color: #0056b3;
  transform: translateY(-3px);
}

.page-about__hero-btn--secondary {
  background-color: transparent;
  color: #007bff;
  border: 2px solid #007bff;
}

.page-about__hero-btn--secondary:hover {
  background-color: #007bff;
  color: #ffffff;
  transform: translateY(-3px);
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
}

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

.page-about__section-title {
  font-size: 2.8em;
  color: #007bff;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-about__section-paragraph {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-about__story-section {
  background-color: #ffffff;
  padding: 60px 0;
}

.page-about__story-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-about__mission-vision-section {
  background-color: #f0f8ff; /* Light blue background */
  padding: 60px 0;
}

.page-about__mission-vision-section .page-about__container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.page-about__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  flex: 1 1 calc(50% - 30px);
  max-width: calc(50% - 30px);
  text-align: center;
  transition: transform 0.3s ease;
  min-width: 280px; /* Ensure cards are not too small */
}

.page-about__card:hover {
  transform: translateY(-5px);
}

.page-about__card-title {
  font-size: 1.8em;
  color: #007bff;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__card-paragraph {
  font-size: 1em;
  line-height: 1.7;
  color: #666666;
}

.page-about__values-section {
  background-color: #ffffff;
  padding: 60px 0;
}

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

.page-about__value-item {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease;
}

.page-about__value-item:hover {
  background-color: #e9ecef;
}

.page-about__value-title {
  font-size: 1.5em;
  color: #007bff;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-about__value-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: #666666;
}

.page-about__values-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  margin-top: 60px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-about__cta-section {
  background-color: #007bff; /* Primary color background */
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-about__cta-content {
  position: relative;
  z-index: 2;
}

.page-about__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-about__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
}

.page-about__cta-btn {
  display: inline-block;
  background-color: #ffc107; /* Accent color button */
  color: #333333; /* Dark text for accent button */
  padding: 18px 40px;
  border-radius: 8px;
  font-size: 1.3em;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__cta-btn:hover {
  background-color: #e0a800;
  transform: translateY(-5px);
}

.page-about__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.2;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__section-title {
    font-size: 2.2em;
  }
  .page-about__card {
    flex: 1 1 calc(100% - 20px);
    max-width: calc(100% - 20px);
  }
  .page-about__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 60px 15px;
  }
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-btn {
    padding: 12px 25px;
    font-size: 1em;
    margin: 0 5px 15px 5px; /* Stack buttons on mobile */
  }
  .page-about__hero-content {
    margin-bottom: 20px;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__section-paragraph,
  .page-about__card-paragraph,
  .page-about__value-description {
    font-size: 0.9em;
  }
  .page-about__cta-title {
    font-size: 2em;
  }
  .page-about__cta-description {
    font-size: 1em;
  }
  .page-about__cta-btn {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-about__container {
    padding: 30px 15px;
  }
  /* Mobile content area image overflow prevention */
  .page-about img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__hero-description {
    font-size: 0.9em;
  }
  .page-about__hero-btn {
    width: 100%;
    margin: 10px 0;
  }
  .page-about__hero-content {
    margin-bottom: 0;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__cta-title {
    font-size: 1.8em;
  }
}