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

.page-about__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Minimum height for hero */
}

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

.page-about__hero-overlay {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  padding: 40px;
  text-align: center;
  color: #FFFFFF;
  max-width: 900px;
  margin: 20px;
  border-radius: 10px;
}

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color for emphasis */
  line-height: 1.2;
}

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

.page-about__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-about__button {
  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;
}

.page-about__button--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-about__button--register:hover {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
}

.page-about__button--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-about__button--login:hover {
  background-color: transparent;
  color: #FCBC45;
  border-color: #FCBC45;
}

.page-about__content-area {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.page-about__section-title {
  font-size: 2.5em;
  color: #000000;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  border-radius: 2px;
}

.page-about__text {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

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

.page-about__feature-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.page-about__feature-icon {
  width: 100%; /* Occupy full card width */
  max-width: 200px; /* Limit max width of the source image */
  height: auto;
  margin: 0 auto 20px auto;
  object-fit: contain;
  min-width: 200px; /* Enforce minimum display size */
  min-height: 200px;
}

.page-about__feature-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 15px;
}

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

.page-about__cta-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #f8f8f8;
  border-radius: 10px;
  margin-bottom: 40px;
}

.page-about__cta-section .page-about__section-title {
  color: #000000;
}

.page-about__cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-about__button--primary {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-about__button--primary:hover {
  background-color: transparent;
  color: #FCBC45;
  border-color: #FCBC45;
}

.page-about__button--secondary {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-about__button--secondary:hover {
  background-color: transparent;
  color: #000000;
  border-color: #000000;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-about__hero-overlay {
    padding: 30px;
    margin: 10px;
  }

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

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

  .page-about__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-about__button {
    width: 100%;
    padding: 12px 20px;
  }

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

  .page-about__text {
    font-size: 1em;
  }

  .page-about__features-grid {
    grid-template-columns: 1fr;
  }

  .page-about__feature-icon {
    max-width: 100%; /* Ensure images don't overflow */
    height: auto;
  }
  
  .page-about__image {
    max-width: 100%; /* Ensure images don't overflow */
    height: auto;
  }
  
  .page-about__content-area {
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  
  .page-about__hero-image {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }

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

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

/* Ensure no image filter is applied */
.page-about img {
  filter: none; /* Explicitly disable any potential filter inheritance */
}

/* Content area images must be at least 200px */
.page-about img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon) {
  min-width: 200px;
  min-height: 200px;
}

/* Mobile specific for content images to prevent overflow */
@media (max-width: 768px) {
  .page-about img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon) {
    max-width: 100%;
    height: auto;
  }
}