.page-about {
  background-color: #F4F7FB;
  color: #1F2D3D;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%);
  color: #FFFFFF;
  text-align: center;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Adjust max-width as needed for visual balance */
  margin-bottom: 30px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

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

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFFFF;
}

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

.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__cta-button:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
}

.page-about__cta-button--secondary {
  background: #FFFFFF;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
}

.page-about__cta-button--secondary:hover {
  background: #F0F0F0;
  color: #2F6BFF;
}

.page-about__mission-vision-section,
.page-about__values-section,
.page-about__legal-info {
  padding: 60px 0;
  text-align: center;
}

.page-about__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #1F2D3D;
}

.page-about__cards-wrapper {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.page-about__card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  max-width: 450px;
  text-align: left;
  transition: transform 0.3s ease;
  border: 1px solid #D6E2FF;
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-about__card-image {
  width: 100%;
  height: auto;
  max-height: 300px; /* Ensure images are not too tall */
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-about__card-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #2F6BFF;
}

.page-about__card-text {
  font-size: 1rem;
  color: #1F2D3D;
}

.page-about__values-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-about__value-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  border: 1px solid #D6E2FF;
}

.page-about__value-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #2F6BFF;
}

.page-about__value-description {
  font-size: 0.95rem;
  color: #1F2D3D;
}

.page-about__cta-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #D6E2FF;
}

.page-about__cta-bottom p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #1F2D3D;
}

.page-about__legal-info {
  background-color: #E0EBFB;
  padding: 40px 0;
}

.page-about__legal-links {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.page-about__legal-links li a {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.page-about__legal-links li a:hover {
  color: #1F2D3D;
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .page-about__hero-image-wrapper {
    max-width: 90%;
  }
  .page-about__cards-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .page-about__card {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }
  .page-about__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
  .page-about__description {
    font-size: 1rem;
  }
  .page-about__section-title {
    font-size: 2rem;
  }
  .page-about__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .page-about__hero-image {
    max-width: 100%;
    height: auto; /* Ensure images are responsive */
  }
  .page-about__card-image {
    max-width: 100%;
    height: auto; /* Ensure images are responsive */
  }
  .page-about__values-list {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  .page-about__legal-links {
    flex-direction: column;
  }
  .page-about__legal-links li a {
    font-size: 0.9rem;
  }
  /* Mobile overflow prevention */
  .page-about img {
    max-width: 100%;
    height: auto;
  }
  .page-about__card {
    padding: 20px;
  }
  .page-about__value-item {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }
  .page-about__section-title {
    font-size: 1.8rem;
  }
  .page-about__hero-content {
    padding: 0 15px;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__cards-wrapper {
    gap: 20px;
  }
  .page-about__card {
    padding: 15px;
  }
  .page-about__value-item {
    padding: 15px;
  }
}