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

/* Header offset for fixed header */
.page-register__hero-section {
  padding-top: var(--header-offset, 120px);
}

/* General container for content */
.page-register__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section styling */
.page-register__hero-section,
.page-register__benefits-section,
.page-register__guide-section,
.page-register__security-section,
.page-register__promotions-section,
.page-register__faq-section,
.page-register__cta-final-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-register__light-bg {
  background-color: #f8f8f8; /* Light background for contrast */
  color: #333333;
}

/* Titles and descriptions */
.page-register__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: inherit;
  font-weight: bold;
}

.page-register__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

/* Hero Section */
.page-register__hero-section {
  background-image: url('[GALLERY:hero_register_bg:1920x1080:sv388,registration,hero_background,dynamic_lines]'); /* Background image for hero */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  min-height: 600px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-register__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay */
  z-index: 1;
}

.page-register__hero-inner-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  text-align: left;
}

.page-register__hero-content {
  flex: 1;
  max-width: 600px;
}

.page-register__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

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

.page-register__hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-register__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 600px;
}

.page-register__hero-image {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
  height: auto;
  display: block;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary,
.page-register__btn-link {
  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, border-color 0.3s ease;
  margin: 10px 0;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-register__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom yellow for register/login font */
  border: 2px solid #FFFF00;
}

.page-register__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808;
}

.page-register__btn-link {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-register__btn-link:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

.page-register__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

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

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

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

.page-register__benefit-icon {
  width: 100%; /* Ensure image fills card width */
  height: auto;
  max-height: 200px; /* Limit height for consistency */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-register__benefit-text {
  font-size: 1em;
  color: #555555;
}

/* Guide Section */
.page-register__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.page-register__step-item {
  text-align: left;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  padding-top: 80px; /* Space for step number */
}

.page-register__step-number {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

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

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

.page-register__step-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Security Section */
.page-register__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-register__security-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
}

.page-register__security-icon {
  width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-register__security-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Promotions Section */
.page-register__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto 50px auto;
}

.page-register__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  color: #333333;
  overflow: hidden;
}

.page-register__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for promo images */
  object-fit: cover;
  display: block;
}

.page-register__promo-card .page-register__promo-title,
.page-register__promo-card .page-register__promo-text {
  padding: 0 25px;
}

.page-register__promo-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #017439;
  padding-top: 25px; /* Added padding to align with text */
}

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

.page-register__promo-card .page-register__btn-link {
  display: block;
  width: calc(100% - 50px);
  margin: 0 25px 25px 25px;
  text-align: center;
  padding: 12px 20px;
  font-size: 1em;
}

.page-register__cta-bottom {
  margin-top: 50px;
}

.page-register__cta-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #333333;
}

/* FAQ Section */
.page-register__faq-list {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.page-register__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: #333333;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  color: #017439;
  list-style: none; /* For details/summary */
}

.page-register__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

.page-register__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  margin-left: 15px;
}

.page-register__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

/* Final CTA Section */
.page-register__cta-final-section {
  padding: 80px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 3em;
  }
  .page-register__hero-description {
    font-size: 1.1em;
  }
  .page-register__hero-inner-container {
    flex-direction: column;
    text-align: center;
  }
  .page-register__hero-content {
    max-width: 100%;
  }
  .page-register__hero-image-wrapper {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Header offset for fixed header on mobile */
  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-register__container {
    padding: 0 15px !important;
  }

  .page-register__hero-section,
  .page-register__benefits-section,
  .page-register__guide-section,
  .page-register__security-section,
  .page-register__promotions-section,
.page-register__faq-section,
  .page-register__cta-final-section {
    padding: 40px 0;
  }

  .page-register__section-title {
    font-size: 2em;
  }

  .page-register__hero-title {
    font-size: 2.5em;
  }

  /* Images responsive */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Image containers responsive */
  .page-register__hero-image-wrapper,
  .page-register__benefit-card,
  .page-register__step-item,
  .page-register__security-item,
  .page-register__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Buttons responsive */
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin: 10px auto !important; /* Center and stack buttons vertically */
  }

  .page-register__hero-buttons {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .page-register__cta-bottom .page-register__btn-primary {
    margin: 20px auto 0 auto !important;
  }

  .page-register__cta-final-section .page-register__btn-large {
    margin: 30px auto 0 auto !important;
  }

  .page-register__benefits-grid,
  .page-register__guide-steps,
  .page-register__security-features,
  .page-register__promotions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 2em;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__hero-section {
    min-height: 400px;
  }
}