/* style/register.css */
/* BEM Naming: page-register__element-name */

/* Base Styles */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Default page background */
}

/* Header Offset - Apply to the first main content section or the main tag itself */
.page-register__hero-section {
  padding-top: var(--header-offset, 120px);
  position: relative;
  overflow: hidden; /* For hero image */
}

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

.page-register__section {
  padding: 60px 0;
}

.page-register__dark-section {
  background-color: #017439; /* Primary brand color */
  color: #ffffff; /* White text for dark background */
}

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

.page-register__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherits color from parent section */
}

.page-register__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-register__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  position: relative;
  z-index: 1; /* Ensure content is above image */
}

.page-register__hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Overlay for readability */
  z-index: -1;
}

.page-register__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2; /* Behind overlay */
  filter: none !important; /* NO CSS FILTER */
}

.page-register__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Custom font color for register/login */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* For contrast */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #ffffff;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-register__cta-buttons--center {
  margin-top: 40px;
}

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box; /* Ensure padding is included in width */
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-register__btn-primary {
  background-color: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom font color for register */
  border: 2px solid #C30808;
}

.page-register__btn-primary:hover {
  background-color: #e02c2c;
  border-color: #e02c2c;
}

.page-register__btn-secondary {
  background-color: #017439; /* Primary brand color for login */
  color: #ffffff; /* White text */
  border: 2px solid #017439;
}

.page-register__btn-secondary:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

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

.page-register__benefit-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

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

.page-register__benefit-icon {
  width: 100%; /* Ensure image fills card width */
  height: auto;
  max-height: 250px; /* Limit height */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  filter: none !important; /* NO CSS FILTER */
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}

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

.page-register__card-text {
  font-size: 1em;
  color: #555555;
  text-align: left;
}

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

.page-register__step-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom font color for register */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  border: 4px solid #017439; /* Border with primary color */
}