.page-contact {
  color: #333333;
}

.page-contact__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header on desktop */
  padding-bottom: 60px;
  background-color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.page-contact__hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 1;
}

.page-contact__hero-title {
  font-size: 3.5em;
  color: #000000;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-contact__hero-description {
  font-size: 1.2em;
  color: #333333;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

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

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

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

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

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

.page-contact__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-contact__info-section, .page-contact__channels-section, .page-contact__responsible-gaming-section, .page-contact__security-section, .page-contact__join-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #FFFFFF;
}

.page-contact__section-title {
  font-size: 2.8em;
  color: #000000;
  text-align: center;
  margin-bottom: 25px;
  font-weight: 700;
}

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

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

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

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

.page-contact__feature-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-contact__feature-description {
  font-size: 1em;
  color: #666666;
  line-height: 1.6;
}

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

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

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

.page-contact__channel-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-contact__channel-description {
  font-size: 1em;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 25px;
}

.page-contact__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 0.95em;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__responsible-gaming-section, .page-contact__security-section, .page-contact__join-section {
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.page-contact__responsible-gaming-container, .page-contact__security-container, .page-contact__join-container {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
  position: relative;
}

.page-contact__responsible-gaming-image, .page-contact__security-image, .page-contact__join-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-contact__responsible-gaming-image img, .page-contact__security-image img, .page-contact__join-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3);
}

.page-contact__responsible-gaming-section .page-contact__section-title, .page-contact__security-section .page-contact__section-title, .page-contact__join-section .page-contact__section-title {
  color: #FFFFFF;
}

.page-contact__responsible-gaming-section .page-contact__section-intro, .page-contact__security-section .page-contact__section-intro, .page-contact__join-section .page-contact__section-intro {
  color: #f0f0f0;
}

.page-contact__security-actions, .page-contact__join-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-contact__hero-title {
    font-size: 2.5em;
  }

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

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

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

  .page-contact__features-grid, .page-contact__channel-grid {
    grid-template-columns: 1fr;
  }

  .page-contact__hero-section, .page-contact__info-section, .page-contact__channels-section, .page-contact__responsible-gaming-section, .page-contact__security-section, .page-contact__join-section {
    padding: 40px 15px;
  }

  .page-contact__channel-card img {
    height: 200px;
  }

  .page-contact__security-actions, .page-contact__join-actions {
    flex-direction: column;
    gap: 15px;
  }

  /* Ensure content images do not overflow on mobile */
  .page-contact img {
    max-width: 100%;
    height: auto;
  }
}

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

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

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

  .page-contact__button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}