.page-contact {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF;
  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;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  padding: 80px 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

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

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  padding: 40px;
  border-radius: 10px;
  max-width: 800px;
}

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

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

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

/* General Buttons */
.page-contact__btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 1.1em;
  text-align: center;
}

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

.page-contact__btn--register:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

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

.page-contact__btn--login:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-contact__btn--primary {
  background-color: #000000; /* Primary button using main color */
  color: #FFFFFF;
  border: 2px solid #000000;
}

.page-contact__btn--primary:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

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

.page-contact__btn--secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-contact__text-link {
  color: #000000;
  text-decoration: underline;
  font-weight: bold;
}

.page-contact__text-link:hover {
  color: #FCBC45;
}

/* Section Titles & Intros */
.page-contact__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

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

/* Contact Methods Section */
.page-contact__methods-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.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 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-contact__method-icon {
  width: 200px; /* Min size 200px */
  height: 133px; /* Proportionate height for 600x400 source */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 5px;
}

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

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

/* Support Topics Section */
.page-contact__topics-section {
  padding: 80px 0;
}

.page-contact__topics-list {
  list-style: none;
  padding: 0;
  margin-bottom: 50px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-contact__topic-item {
  background-color: #f0f0f0;
  padding: 20px;
  border-left: 5px solid #000000;
  border-radius: 5px;
  font-size: 1.1em;
  color: #333333;
  transition: border-left-color 0.3s ease;
}

.page-contact__topic-item:hover {
  border-left-color: #FCBC45;
}

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

.page-contact__cta-block {
  text-align: center;
  margin-top: 50px;
}

.page-contact__cta-text {
  font-size: 1.3em;
  color: #000000;
  margin-bottom: 20px;
  font-weight: bold;
}

/* Commitment Section */
.page-contact__commitment-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

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

.page-contact__commitment-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-contact__commitment-icon {
  width: 200px; /* Min size 200px */
  height: 133px; /* Proportionate height for 600x400 source */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 5px;
}

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

.page-contact__commitment-description {
  font-size: 1em;
  color: #666666;
}

.page-contact__section-outro {
  text-align: center;
  font-size: 1.1em;
  color: #555555;
  margin-top: 50px;
}

/* Responsible Gaming Section */
.page-contact__responsible-gaming-section {
  padding: 80px 0;
}

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

.page-contact__responsible-gaming-image {
  flex: 1 1 400px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Ensure min size */
}

.page-contact__responsible-gaming-text {
  flex: 2 1 500px;
  font-size: 1.1em;
  color: #555555;
}

.page-contact__responsible-gaming-text p {
  margin-bottom: 20px;
}

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

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

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

  .page-contact__hero-content {
    padding: 30px;
  }

  .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__btn {
    width: 100%;
  }

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

  .page-contact__section-intro {
    font-size: 1em;
  }

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

  .page-contact__topic-item {
    font-size: 1em;
  }

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

  .page-contact__responsible-gaming-image {
    flex: none;
    width: 100%;
    min-width: 200px;
    height: auto; /* Ensure responsive scaling */
  }

  .page-contact__responsible-gaming-text {
    flex: none;
    width: 100%;
    font-size: 1em;
  }

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

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

  .page-contact__hero-content {
    padding: 20px;
  }

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

  .page-contact__btn {
    padding: 10px 20px;
    font-size: 1em;
  }
}