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

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

.page-about__hero-section {
  background-color: #007bff; /* Main brand color */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

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

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffc107; /* Accent color for title */
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__hero-button {
  display: inline-block;
  background-color: #ffc107; /* Accent color for button */
  color: #007bff; /* Main brand color for button text */
  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;
}

.page-about__hero-button:hover {
  background-color: #e0a800;
  color: #0056b3;
}

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

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

.page-about__story-section,
.page-about__mission-values-section,
.page-about__why-choose-us-section,
.page-about__cta-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-about__story-section {
  background-color: #ffffff;
}

.page-about__section-title {
  font-size: 2.5em;
  color: #007bff; /* Main brand color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__story-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure minimum size */
}

.page-about__story-content .page-about__text {
  font-size: 1.1em;
  margin-bottom: 20px;
}

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

.page-about__value-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-about__card-title {
  font-size: 1.6em;
  color: #007bff; /* Main brand color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__values-image {
    text-align: center;
    margin-top: 40px;
}

.page-about__values-image img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-about__link {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.page-about__link:hover {
  text-decoration: underline;
}

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

.page-about__feature-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-about__features-image {
    text-align: center;
    margin-top: 40px;
}

.page-about__features-image img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-about__cta-section {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-about__cta-section .page-about__section-title {
  color: #ffc107; /* Accent color */
  margin-bottom: 20px;
}

.page-about__cta-section .page-about__text {
  font-size: 1.15em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-button {
  display: inline-block;
  background-color: #ffc107; /* Accent color */
  color: #007bff; /* Main brand color */
  padding: 18px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-about__cta-button:hover {
  background-color: #e0a800;
  color: #0056b3;
}

.page-about__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-about__cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    display: block;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__story-grid {
    grid-template-columns: 1fr;
  }
  .page-about__story-image {
    order: -1;
  }
  .page-about__hero-image img,
  .page-about__story-image img,
  .page-about__values-image img,
  .page-about__features-image img,
  .page-about__cta-image img {
    max-width: 100%;
    height: auto;
    display: block; /* Ensure images are not tiny */
  }
}

@media (max-width: 768px) {
  .page-about {
    padding-top: var(--header-offset, 120px); /* Ensure mobile content is not hidden */
    max-width: 100%; /* Prevent horizontal overflow */
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__hero-description,
  .page-about__text {
    font-size: 1em;
  }
  .page-about__hero-button,
  .page-about__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__value-card,
  .page-about__feature-card {
    padding: 20px;
  }
  .page-about__hero-image img,
  .page-about__story-image img,
  .page-about__values-image img,
  .page-about__features-image img,
  .page-about__cta-image img {
    max-width: 100%;
    height: auto;
    display: block; /* Ensure images are not tiny */
  }
  /* Enforce minimum image size for content area images */
  .page-about img {
    min-width: 200px; /* Enforce minimum width for all content images */
    min-height: 200px; /* Enforce minimum height for all content images */
  }
  .page-about__story-image img,
  .page-about__values-image img,
  .page-about__features-image img,
  .page-about__cta-image img {
    width: 100%;
    height: auto; /* Responsive sizing for larger images */
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__container {
    padding: 0 15px;
  }
}