.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 is not hidden by fixed header */
}

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

.page-about__hero-section {
  background-color: #000000; /* Main color as background for hero */
  padding: 0;
  position: relative;
  overflow: hidden;
  color: #FFFFFF; /* Light text for dark background */
}

.page-about__hero-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

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

.page-about__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 900px;
  width: 90%;
  padding: 20px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for readability */
  border-radius: 10px;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color for highlight */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.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;
  border: none;
  cursor: pointer;
}

.page-about__button--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Dark text for light button */
}

.page-about__button--primary:hover {
  background-color: #FFD700;
}

.page-about__button--secondary {
  background-color: #FFFFFF; /* Register button color */
  color: #000000; /* Dark text for light button */
  border: 2px solid #FCBC45;
}

.page-about__button--secondary:hover {
  background-color: #FCBC45;
  color: #FFFFFF;
}

.page-about__button--tertiary {
  background-color: #000000; /* Main color */
  color: #FCBC45; /* Login button color for highlight */
  border: 2px solid #FCBC45;
}

.page-about__button--tertiary:hover {
  background-color: #FCBC45;
  color: #000000;
}

.page-about__button--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

.page-about__section-title {
  font-size: 2.8em;
  color: #000000; /* Dark text for light background */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-about__section-intro {
  font-size: 1.2em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #333333;
}

.page-about__mission-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-about__mission-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-about__mission-text {
  flex: 1;
  min-width: 300px;
}

.page-about__mission-text p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #333333;
}

.page-about__mission-image-wrapper {
  flex: 1;
  min-width: 400px;
  text-align: center;
}

.page-about__mission-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-about__why-choose-us-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

.page-about__feature-card {
  background-color: #f0f0f0;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

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

.page-about__feature-icon {
  width: 100%;
  max-width: 400px; /* Ensure images are not too small */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
  object-fit: cover;
}

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

.page-about__feature-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about__feature-link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push link to bottom */
}

.page-about__feature-link:hover {
  color: #000000;
}

.page-about__responsible-gaming-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-about__responsible-gaming-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap-reverse;
}

.page-about__responsible-gaming-text {
  flex: 1;
  min-width: 300px;
}

.page-about__responsible-gaming-text p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #333333;
}

.page-about__responsible-gaming-image-wrapper {
  flex: 1;
  min-width: 400px;
  text-align: center;
}

.page-about__responsible-gaming-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-about__cta-section {
  background-color: #000000; /* Main color */
  padding: 80px 20px;
  text-align: center;
  color: #FFFFFF;
}

.page-about__cta-title {
  font-size: 3em;
  color: #FCBC45;
  margin-bottom: 20px;
}

.page-about__cta-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__contact-info-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  text-align: center;
}

.page-about__contact-details p {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #333333;
}

.page-about__contact-link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-about__contact-link:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__section-title {
    font-size: 2.2em;
  }
  .page-about__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-about__mission-content, .page-about__responsible-gaming-content {
    flex-direction: column;
  }
  .page-about__mission-image-wrapper, .page-about__responsible-gaming-image-wrapper {
    min-width: unset;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__section-intro {
    font-size: 1em;
  }
  .page-about__cta-title {
    font-size: 2em;
  }
  .page-about__cta-description {
    font-size: 1.2em;
  }
  /* Ensure images in content area are responsive and do not overflow */
  .page-about img {
    max-width: 100%;
    height: auto;
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.5em;
  }
  .page-about__hero-description {
    font-size: 0.9em;
  }
  .page-about__button {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__section-intro {
    font-size: 0.9em;
  }
  .page-about__cta-title {
    font-size: 1.8em;
  }
  .page-about__cta-description {
    font-size: 1em;
  }
  .page-about__features-grid {
    grid-template-columns: 1fr;
  }
  .page-about__feature-card {
    padding: 20px;
  }
}