/* style/contact.css */

/* Base styles for the page content */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #ffffff); /* Fallback to white if var not defined */
}

.page-contact__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-contact__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
}

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

.page-contact__section--dark {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-contact__section--dark .page-contact__section-title,
.page-contact__section--dark .page-contact__section-description,
.page-contact__section--dark h3,
.page-contact__section--dark p,
.page-contact__section--dark li {
  color: #ffffff; /* Ensure white text on dark background */
}

.page-contact__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  background-color: #017439; /* Brand primary color for hero */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-contact__hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3; /* Slightly transparent for text readability */
}

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

.page-contact__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #ffffff;
}

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

.page-contact__button-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-contact__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button doesn't overflow */
}

.page-contact__btn--primary {
  background-color: #C30808; /* Red for Register/Login */
  color: #FFFF00; /* Yellow font for Register/Login */
  border: 2px solid #C30808;
}

.page-contact__btn--primary:hover {
  background-color: #e00b0b;
  border-color: #e00b0b;
}

.page-contact__btn--secondary {
  background-color: #ffffff;
  color: #017439; /* Green text for secondary */
  border: 2px solid #017439;
}

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

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

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

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

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

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

.page-contact__social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}