:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #ffffff;
  --background-dark: #017439; /* Using primary color as dark background for sections */
  --button-register-login: #C30808;
  --button-register-login-text: #FFFF00;
  --border-color: #e0e0e0;
}

/* Page content base styles */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark); /* Default text color for light backgrounds */
  background-color: var(--background-light); /* Default light background */
}

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

/* Hero Section */
.page-support__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px; /* Adjust padding as needed */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: var(--background-light); /* Ensure light background for hero image */
}

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

.page-support__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden; /* Ensure image corners are rounded */
}

.page-support__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-support__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: -80px; /* Overlap with image */
  background-color: var(--background-dark); /* Dark background for text content */
  color: var(--text-color-light); /* Light text for dark background */
}

.page-support__hero-title {
  font-size: 38px;
  margin-bottom: 20px;
  color: var(--text-color-light);
  line-height: 1.2;
}

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

/* General Section Styles */
.page-support__content-section {
  padding: 80px 0;
  background-color: var(--background-light);
  color: var(--text-color-dark);
}

.page-support__dark-section {
  background-color: var(--background-dark);
  color: var(--text-color-light);
  padding: 80px 0;
}

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

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

.page-support__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: var(--text-color-dark);
}

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

/* Grid Layout for Cards */
.page-support__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Card Styles */
.page-support__card {
  background-color: var(--background-light);
  border-radius: 8px;
  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;
  display: flex;
  flex-direction: column;
  color: var(--text-color-dark);
}

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

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

.page-support__card-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--primary-color);
  flex-grow: 1; /* Allow title to take available space */
}

.page-support__card-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-support__card-title a:hover {
  text-decoration: underline;
}

.page-support__card-text {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--text-color-dark);
}

.page-support__card-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: auto; /* Push link to bottom */
}

.page-support__card-link:hover {
  background-color: #005a2e; /* Slightly darker primary */
}

.page-support__card--dark {
  background-color: #005a2e; /* Darker green for cards in dark sections */
  color: var(--text-color-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-support__card--dark .page-support__card-title a,
.page-support__card--dark .page-support__card-text {
  color: var(--text-color-light);
}

.page-support__card--dark .page-support__card-link {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-support__card--dark .page-support__card-link:hover {
  background-color: #e0e0e0;
}

/* CTA Button Styles (general) */
.page-support__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin: 10px; /* For multiple buttons */
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.page-support__btn-primary {
  background: var(--button-register-login); /* #C30808 */
  color: var(--button-register-login-text); /* #FFFF00 */
}

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

.page-support__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-support__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}