/* style/register.css */

/* Base styles for the register page */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default light text color for dark body background */
  background-color: transparent; /* Inherit from body or shared, will set specific section backgrounds */
}

/* Fixed header offset */
.page-register__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  min-height: 70vh; /* Make hero section prominent */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF; /* Light text for hero content */
}

.page-register__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  /* No filter property allowed */
}

.page-register__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: -1;
}

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

.page-register__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFFFF; /* Ensure contrast */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-register__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0; /* Ensure contrast */
}

.page-register__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* General section styling */
.page-register__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-register__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 40px;
  color: #FFFFFF; /* Default for dark sections */
}

.page-register__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

/* Color contrast enforcement */
.page-register__dark-bg {
  background-color: #017439; /* Brand primary color */
  color: #ffffff; /* Light text for dark background */
}

.page-register__light-bg {
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text for light background */
}

/* Button styles */
.page-register__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Custom red for register */
  color: #FFFF00; /* Custom yellow for register font */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box; /* Important for responsiveness */
}

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

.page-register__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #FFFFFF; /* Light text for dark background */
  padding: 15px 30px;
  border: 2px solid #FFFFFF;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  box-sizing: border-box; /* Important for responsiveness */
}

.page-register__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #017439; /* Brand primary color */
  transform: translateY(-2px);
}

.page-register__btn-submit {
  display: block;
  width: 100%;
  background-color: #C30808; /* Custom red for register */
  color: #FFFF00; /* Custom yellow for register font */
  padding: 15px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  margin-top: 20px;
  box-sizing: border-box; /* Important for responsiveness */
}

.page-register__btn-submit:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

/* Benefits section */
.page-register__benefits-section {
  padding: 60px 0;
}

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

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

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

.page-register__benefit-icon {
  width: 100%;
  height: auto;
  max-width: 250px; /* Ensure images are not too wide in card */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Enforce min image size */
  min-width: 200px; /* Enforce min image size */
}

.page-register__card-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #333333; /* Dark text for light card background */
}

.page-register__card-text {
  color: #555555; /* Slightly lighter dark text */
}