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

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

.page-contact__hero-section {
  position: relative;
  text-align: center;
  color: #FFFFFF;
  padding: 80px 0;
  overflow: hidden;
}

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6);
}

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.page-contact__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-contact__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.page-contact__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 50px;
  font-weight: bold;
}

.page-contact__methods-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

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

.page-contact__method-card:hover {
  transform: translateY(-10px);
}

.page-contact__method-icon {
  width: 250px; /* Enforce minimum size */
  height: 200px; /* Enforce minimum size */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px;
}

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

.page-contact__method-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 25px;
}

.page-contact__email-address {
  font-size: 1.1em;
  font-weight: bold;
  color: #FCBC45;
  margin-bottom: 25px;
}

.page-contact__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.page-contact__button--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-contact__button--primary:hover {
  background-color: #e0a53a;
  border-color: #e0a53a;
}

.page-contact__button--secondary {
  background-color: #FFFFFF; /* Register button color */
  color: #000000;
  border: 2px solid #000000;
}

.page-contact__button--secondary:hover {
  background-color: #f0f0f0;
}

.page-contact__responsible-gaming-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-contact__responsible-gaming-image {
  width: 600px; /* Enforce minimum size */
  height: 450px; /* Enforce minimum size */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__responsible-gaming-text {
  flex: 1;
  max-width: 500px;
  color: #333333;
}

.page-contact__responsible-gaming-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 3em;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding: 60px 0;
  }

  .page-contact__hero-title {
    font-size: 2.5em;
  }

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

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

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

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

  .page-contact__responsible-gaming-content {
    flex-direction: column;
    text-align: center;
  }

  .page-contact__responsible-gaming-image {
    width: 100%;
    height: auto;
    max-width: 400px; /* Ensure images don't overflow */
  }

  .page-contact__responsible-gaming-text {
    max-width: 100%;
  }

  /* Ensure content images are responsive and don't overflow */
  .page-contact img {
    max-width: 100%;
    height: auto;
  }
  .page-contact__method-icon {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 2em;
  }
  .page-contact__method-icon {
    width: 100%;
    height: auto;
    max-width: 250px; /* Keep a reasonable max-width for smaller screens */
  }
  .page-contact__responsible-gaming-image {
    max-width: 300px;
  }
}