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

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

.page-contact__hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff; /* Light text for dark hero background */
  padding-bottom: 60px; /* Space below content */
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-contact__hero-overlay {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Ensure hero section has a minimum height */
}

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

.page-contact__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin-bottom: 40px;
}

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

.page-contact__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  min-width: 200px; /* Ensure buttons are not too small */
  text-align: center;
}

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

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

.page-contact__button--secondary {
  background-color: transparent;
  color: #ffffff; /* White text for transparent button */
  border: 2px solid #ffffff;
}

.page-contact__button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-contact__section-title {
  font-size: 2.5em;
  color: #000000; /* Black for titles */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 60px;
}

.page-contact__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-contact__methods-section,
.page-contact__faq-section,
.page-contact__responsible-gaming-section,
.page-contact__join-us-section {
  padding: 40px 0;
}

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

.page-contact__method-card,
.page-contact__info-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__method-icon,
.page-contact__info-icon {
  width: 100%; /* Ensure image fills card */
  height: auto;
  max-width: 400px; /* Constraint for larger images in cards */
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

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

.page-contact__method-description,
.page-contact__info-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 25px;
  flex-grow: 1; /* Allow description to take available space */
}

.page-contact__contact-info {
  font-weight: bold;
  color: #FCBC45;
}

.page-contact__faq-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-contact__faq-question {
  font-size: 1.3em;
  color: #000000;
  margin-bottom: 10px;
}

.page-contact__faq-answer {
  font-size: 1em;
  color: #666666;
}

.page-contact__actions {
  text-align: center;
  margin-top: 40px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-contact__join-us-section .page-contact__section-title,
.page-contact__join-us-section .page-contact__section-intro {
  color: #000000;
}

@media (max-width: 768px) {
  .page-contact__hero-overlay {
    padding: 60px 15px;
    min-height: 400px;
  }

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

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

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

  .page-contact__button {
    width: 100%;
    max-width: 300px;
  }

  .page-contact__section-title {
    font-size: 2em;
    padding-top: 40px;
  }

  .page-contact__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-contact__method-grid,
  .page-contact__faq-grid,
  .page-contact__info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__method-card,
  .page-contact__info-card,
  .page-contact__faq-item {
    padding: 20px;
  }

  .page-contact__method-icon,
  .page-contact__info-icon,
  .page-contact__hero-image img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce min image size for mobile */
    min-height: 200px; /* Enforce min image size for mobile */
  }

  /* Ensure no horizontal scroll */
  .page-contact {
    overflow-x: hidden;
  }
  .page-contact__container {
    padding: 0 15px;
  }
}