.page-about-us {
  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-us__hero-section {
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF; /* Light text for dark background */
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-about-us__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background effect */
  display: block;
}

.page-about-us__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-about-us__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FCBC45; /* Gold accent for title */
  line-height: 1.2;
}

.page-about-us__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-about-us__hero-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-about-us__hero-button--register {
  background-color: #FCBC45; /* Login color for register button */
  color: #000000;
}

.page-about-us__hero-button--register:hover {
  background-color: #e0a53b;
}

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

.page-about-us__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.page-about-us__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  margin: 15px auto 0;
}

.page-about-us__mission-vision-section {
  background-color: #FFFFFF;
  padding: 60px 0;
}

.page-about-us__mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-about-us__mission-card, .page-about-us__vision-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-about-us__mission-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about-us__card-text {
  font-size: 1.1em;
  color: #555555;
}

.page-about-us__history-section {
  background-color: #f0f0f0;
  padding: 60px 0;
}

.page-about-us__history-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-about-us__paragraph {
  font-size: 1.1em;
  color: #444444;
  text-align: justify;
  max-width: 900px;
}

.page-about-us__history-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-about-us__values-section {
  background-color: #FFFFFF;
  padding: 60px 0;
}

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

.page-about-us__value-card {
  background-color: #000000; /* Dark background for value cards */
  color: #FFFFFF; /* Light text */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about-us__value-card .page-about-us__card-title {
  color: #FCBC45; /* Gold accent for card titles */
}

.page-about-us__value-card .page-about-us__card-text {
  color: #e0e0e0;
}

.page-about-us__responsible-gaming-section {
  background-color: #f0f0f0;
  padding: 60px 0;
}

.page-about-us__responsible-gaming-flex {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.page-about-us__responsible-gaming-text {
  max-width: 700px;
  text-align: justify;
}

.page-about-us__responsible-gaming-image-wrapper {
  width: 100%;
  max-width: 600px;
}

.page-about-us__responsible-gaming-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-about-us__link:hover {
  text-decoration: underline;
}

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

.page-about-us__advantages-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px auto;
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-about-us__list-item {
  background-color: #f9f9f9;
  border-left: 5px solid #FCBC45;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  font-size: 1.1em;
}

.page-about-us__list-item strong {
  color: #000000;
}

.page-about-us__cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-about-us__cta-button {
  display: inline-block;
  padding: 18px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  background-color: #FCBC45; /* Gold for CTA */
  color: #000000;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about-us__cta-button:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
}

.page-about-us__contact-section {
  background-color: #000000;
  color: #FFFFFF;
  padding: 60px 0;
  text-align: center;
}

.page-about-us__contact-section .page-about-us__section-title {
  color: #FCBC45;
}

.page-about-us__contact-section .page-about-us__section-title::after {
  background-color: #FCBC45;
}

.page-about-us__contact-section .page-about-us__paragraph {
  color: #e0e0e0;
  margin-bottom: 40px;
}

.page-about-us__contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-about-us__contact-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-about-us__contact-button--contact {
  background-color: #FFFFFF;
  color: #000000;
}

.page-about-us__contact-button--contact:hover {
  background-color: #f0f0f0;
}

.page-about-us__contact-button--support {
  background-color: #FCBC45;
  color: #000000;
}

.page-about-us__contact-button--support:hover {
  background-color: #e0a53b;
}

/* Responsive Design */
@media (min-width: 768px) {
  .page-about-us__mission-vision-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-about-us__history-content {
    flex-direction: row;
    text-align: left;
  }

  .page-about-us__history-content .page-about-us__paragraph:first-of-type {
    order: 1;
    flex: 1;
  }

  .page-about-us__history-image {
    order: 2;
    margin: 0 30px;
  }

  .page-about-us__history-content .page-about-us__paragraph:last-of-type {
    order: 3;
    flex: 1;
  }

  .page-about-us__responsible-gaming-flex {
    flex-direction: row;
    text-align: left;
  }

  .page-about-us__responsible-gaming-text {
    flex: 1;
  }

  .page-about-us__responsible-gaming-image-wrapper {
    flex: 1;
    margin-left: 40px;
  }

  .page-about-us__hero-title {
    font-size: 4.5em;
  }

  .page-about-us__hero-description {
    font-size: 1.5em;
  }

  .page-about-us__advantages-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .page-about-us__hero-title {
    font-size: 2.5em;
  }

  .page-about-us__hero-description {
    font-size: 1em;
  }

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

  .page-about-us__card-title {
    font-size: 1.5em;
  }

  .page-about-us__paragraph {
    font-size: 1em;
  }

  .page-about-us__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-about-us__cta-button {
    padding: 15px 25px;
    font-size: 1.1em;
  }

  /* Critical: Prevent image overflow on mobile */
  .page-about-us img {
    max-width: 100%;
    height: auto;
  }

  .page-about-us__hero-section {
    padding: 60px 15px;
  }

  .page-about-us__content-container {
    padding: 30px 15px;
  }

  .page-about-us__contact-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-about-us__contact-button {
    width: 100%;
    max-width: 300px;
  }
}

/* Ensure all content images meet minimum size requirements */
.page-about-us__mission-image,
.page-about-us__history-image,
.page-about-us__responsible-gaming-image {
  min-width: 200px;
  min-height: 200px;
}

/* Ensure CSS width/height for images are consistent or responsive */
.page-about-us__hero-image {
  width: 100%; /* Occupy full width of wrapper */
  height: 100%; /* Occupy full height of wrapper */
  object-fit: cover;
}

.page-about-us__mission-image {
  width: 100%; /* Responsive up to max-width */
  height: auto;
}

.page-about-us__history-image {
  width: 100%; /* Responsive up to max-width */
  height: auto;
}

.page-about-us__responsible-gaming-image {
  width: 100%; /* Responsive up to max-width */
  height: auto;
}