.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Inherited from shared.css, explicitly set for context */
}

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

.page-register__dark-bg {
  background-color: #000080; /* Auxiliary color for dark sections */
  color: #ffffff;
}

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

/* Hero Section */
.page-register__hero-section {
  padding: calc(var(--header-offset, 120px) + 60px) 20px 80px; /* Adjust padding-top for header offset */
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image: url('[GALLERY:hero_bg:1920x1080:online_betting,registration,welcome_bonus,dynamic_lights]');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-register__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 128, 0.7); /* Dark blue overlay */
  z-index: 1;
}

.page-register__hero-section > .page-register__container {
  position: relative;
  z-index: 2;
}

.page-register__hero-title {
  font-size: 3.2em;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-register__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-register__btn-primary,
.page-register__btn-secondary,
.page-register__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-register__btn-primary {
  background-color: #FFD700;
  color: #000080; /* Dark blue text on gold button */
  border: 2px solid #FFD700;
}

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

.page-register__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-register__btn-secondary:hover {
  background-color: #FFD700;
  color: #000080;
}

.page-register__btn-tertiary {
  background-color: #000080; /* Dark blue button */
  color: #FFD700; /* Gold text */
  border: 2px solid #000080;
}

.page-register__btn-tertiary:hover {
  background-color: #000066;
  border-color: #000066;
}

/* General Section Styles */
.page-register__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: #FFD700; /* Gold for section titles */
  line-height: 1.3;
}

.page-register__light-bg .page-register__section-title {
  color: #000080; /* Dark blue title on light background */
}

.page-register__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
}

.page-register__light-bg .page-register__section-intro {
  color: #555555;
}

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

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

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

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

.page-register__benefit-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

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

/* Steps Section */
.page-register__steps-section {
  padding: 80px 0;
}

.page-register__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.page-register__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-register__step-number {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 2.5em;
  font-weight: bold;
  color: #FFD700;
  opacity: 0.7;
  line-height: 1;
}

.page-register__step-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-top: 20px;
  margin-bottom: 15px;
}

.page-register__step-description {
  font-size: 1em;
  margin-bottom: 25px;
}

.page-register__step-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Security Section */
.page-register__security-section {
  padding: 80px 0;
}

.page-register__security-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-register__security-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-register__security-item-title {
  font-size: 1.4em;
  color: #000080;
  margin-bottom: 10px;
}

.page-register__security-item-description {
  font-size: 1em;
  color: #555555;
}

/* Promotions Section */
.page-register__promotions-section {
  padding: 80px 0;
}

.page-register__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-register__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-register__promo-image {
  width: 100%;
  height: auto;
  max-height: 250px; /* Constrain image height */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

.page-register__promo-description {
  font-size: 1em;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-register__center-cta {
  text-align: center;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
}

.page-register__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
}

.page-register__faq-question:hover {
  background-color: #e6e6e6;
}

.page-register__faq-title {
  font-size: 1.2em;
  color: #000080;
  margin: 0;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD700;
  transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg); /* Plus to X */
  color: #000080; /* Dark blue when active */
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
  padding-top: 0;
}

.page-register__faq-answer p {
  margin: 0;
  color: #555555;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 2.8em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__benefits-grid, .page-register__steps-grid, .page-register__security-list, .page-register__promo-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-register__hero-section {
    padding: calc(var(--header-offset, 120px) + 40px) 15px 60px; /* Mobile padding-top with header offset */
  }
  .page-register__hero-title {
    font-size: 2.2em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-register__btn-primary, .page-register__btn-secondary, .page-register__btn-tertiary {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__section-intro {
    font-size: 0.95em;
  }
  .page-register__benefits-grid, .page-register__steps-grid, .page-register__security-list, .page-register__promo-cards {
    grid-template-columns: 1fr;
  }
  .page-register__benefit-card, .page-register__step-item, .page-register__security-item, .page-register__promo-card, .page-register__faq-item {
    padding: 20px;
  }
  .page-register__step-number {
    font-size: 2em;
  }
  .page-register__step-title {
    font-size: 1.5em;
  }
  .page-register__promo-image, .page-register__benefit-icon, .page-register__step-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register__section, .page-register__card, .page-register__container, .page-register__cta-buttons, .page-register__promo-cards, .page-register__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important; 
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }
  .page-register__section-title {
    font-size: 1.5em;
  }
  .page-register__btn-primary, .page-register__btn-secondary, .page-register__btn-tertiary {
    font-size: 0.9em;
  }
}