.page-contact {
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Explicitly set for clarity */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-contact__hero-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 450px; /* Minimum height for hero section */
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.6); /* Darken image for text readability */
}

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

.page-contact__hero-title {
  font-size: 2.8em;
  margin-bottom: 15px;
  color: #FFFFFF;
}

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

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

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

.page-contact__cta-button--primary:hover {
  background-color: #333333;
  transform: translateY(-3px);
}

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

.page-contact__cta-button--secondary:hover {
  background-color: #E0A030;
  transform: translateY(-3px);
}

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

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

.page-contact__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FCBC45;
  border-radius: 2px;
}

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

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

.page-contact__method-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-contact__method-icon {
  width: 200px; /* Minimum size requirement */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}

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

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

.page-contact__method-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-contact__method-button:hover {
  background-color: #E0A030;
}

.page-contact__info-section {
  background-color: #F0F0F0;
  padding: 60px 20px;
  text-align: center;
}

.page-contact__info-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-contact__info-text {
  font-size: 1.1em;
  line-height: 1.6;
  color: #444444;
  margin-bottom: 30px;
}

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

.page-contact__info-button:hover {
  background-color: #333333;
  transform: translateY(-3px);
}

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

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

  .page-contact__cta-button {
    padding: 12px 20px;
    font-size: 1em;
  }

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

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

  .page-contact__method-icon {
    width: 250px; /* Maintain minimum size */
    height: auto;
  }

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

  .page-contact {
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
}

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

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

  .page-contact__cta-button {
    display: block;
    margin: 10px auto;
  }

  .page-contact__method-icon {
    width: 200px; /* Further adjust for smaller screens, maintaining minimum */
    height: auto;
  }
}