/* style/contact.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --accent-red: #C30808;
  --text-color-dark: #333333;
  --text-color-light: #FFFFFF;
  --background-light: #f9f9f9;
  --background-dark: #017439;
  --border-color: #e0e0e0;
}

.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--background-light);
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 50%, #005f2e 100%); /* Green gradient */
}

.page-contact__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-contact__hero-image-main {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 30px;
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 30px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  color: var(--text-color-light);
}

.page-contact__hero-title {
  font-size: 42px;
  margin-bottom: 20px;
  color: var(--text-color-light);
  font-weight: bold;
}

.page-contact__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--text-color-light);
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--accent-red); /* Using registration color for CTA */
  color: #FFFF00; /* Using registration font color for CTA */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-contact__cta-button:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* General Section Styles */
.page-contact__section {
  padding: 60px 0;
}

.page-contact__heading {
  font-size: 32px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-contact__heading--white {
  color: var(--text-color-light);
}

.page-contact__paragraph {
  font-size: 16px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: var(--text-color-dark);
}

.page-contact__paragraph--white {
  color: var(--text-color-light);
}

/* Contact Info Grid */
.page-contact__contact-info {
  background-color: var(--background-light);
}

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

.page-contact__card {
  background: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-contact__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-contact__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-contact__card-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__card-text {
  font-size: 15px;
  color: var(--text-color-dark);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-contact__link:hover {
  text-decoration: underline;
}

.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: auto;
}

.page-contact__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.page-contact__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--secondary-color);
  font-size: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}