/* style/register.css */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark #0a0a0a, so text must be light */
  background-color: transparent; /* inherited from body #0a0a0a */
}

.page-register__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-register__hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

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

.page-register__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  color: #ffffff;
  padding: 20px;
}

.page-register__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Register/Login font color */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-register__section {
  padding: 80px 20px;
  text-align: center;
}

.page-register__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-register__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-register__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #017439; /* Primary color for titles on light background */
}

.page-register__section-title--white {
  color: #ffffff; /* White color for titles on dark background */
}

.page-register__section-intro {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #555555;
}

.page-register__section-intro--white {
  color: #f0f0f0;
}

.page-register__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-register__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-register__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #017439; /* Primary color */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  border: 2px solid #017439;
  cursor: pointer;
  margin-left: 20px;
}

.page-register__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-register__hero-cta {
  margin-top: 20px;
}

.page-register__feature-grid, .page-register__steps-grid, .page-register__bonus-grid, .page-register__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-register__card {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333; /* Ensure text is dark on light card background */
}

.page-register__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-register__card--dark-bg {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  color: #ffffff; /* Light text on dark card background */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-register__card--dark-bg:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-register__feature-icon, .page-register__bonus-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-register__feature-heading, .page-register__step-heading, .page-register__bonus-heading, .page-register__game-heading, .page-register__security-heading, .page-register__faq-heading {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #017439; /* Primary color for headings on light background */
}

.page-register__card--dark-bg .page-register__feature-heading,
.page-register__card--dark-bg .page-register__step-heading,
.page-register__card--dark-bg .page-register__bonus-heading,
.page-register__card--dark-bg .page-register__game-heading,
.page-register__card--dark-bg .page-register__security-heading,
.page-register__card--dark-bg .page-register__faq-heading {
  color: #FFFF00; /* Custom font color for headings on dark card background */
}

.page-register__feature-text, .page-register__step-text, .page-register__bonus-text, .page-register__game-text, .page-register__security-text {
  font-size: 1em;
  color: #555555;
}

.page-register__card--dark-bg .page-register__feature-text,
.page-register__card--dark-bg .page-register__step-text,
.page-register__card--dark-bg .page-register__bonus-text,
.page-register__card--dark-bg .page-register__game-text,
.page-register__card--dark-bg .page-register__security-text {
  color: #f0f0f0;
}

.page-register__step-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-register__step-number {
  width: 40px;
  height: 40px;
  background-color: #C30808;
  color: #FFFF00;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 20px;
}

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

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

.page-register__game-link {
  display: inline-block;
  margin-top: 15px;
  color: #C30808;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-register__game-link:hover {
  color: #a30606;
}

.page-register__security-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-register__security-item {
  padding: 25px;
  border-radius: 12px;
  background-color: #f0f0f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  color: #333333;
}

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

.page-register__security-item .page-register__security-text {
  color: #555555;
}

.page-register__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-register__faq-item {
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-register__faq-heading {
  margin: 0;
  font-size: 1.3em;
  color: #FFFF00;
}

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

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

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px;
  padding-top: 0; /* Adjust padding for visual flow */
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg);
}

.page-register__final-cta-btn {
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 3em;
  }

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

  .page-register__feature-grid, .page-register__steps-grid, .page-register__bonus-grid, .page-register__game-categories, .page-register__security-details {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    min-height: 450px;
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
  }

  .page-register__hero-title {
    font-size: 2.2em;
    line-height: 1.3;
  }

  .page-register__hero-description {
    font-size: 1em;
  }

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

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

  .page-register__section-intro {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

  .page-register__btn-primary, .page-register__btn-secondary {
    font-size: 1em;
    padding: 12px 25px;
    margin-left: 0; /* Remove margin for stacked buttons */
    margin-bottom: 15px; /* Add margin between stacked buttons */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-register__cta-buttons {
    flex-direction: column;
    gap: 10px; /* Reduce gap for stacked buttons */
  }

  .page-register__cta-buttons > * {
    margin: 0 !important; /* Reset margins for flex items */
  }

  .page-register__feature-grid, .page-register__steps-grid, .page-register__bonus-grid, .page-register__game-categories, .page-register__security-details {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Responsive images */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-register__section,
  .page-register__card,
  .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__faq-question {
    padding: 15px;
  }

  .page-register__faq-heading {
    font-size: 1.1em;
  }

  .page-register__faq-answer {
    padding: 0 15px;
  }
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px;
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }

  .page-register__section-title {
    font-size: 1.5em;
  }
  
  .page-register__step-number {
    width: 35px;
    height: 35px;
    font-size: 1.2em;
  }

  .page-register__feature-heading, .page-register__step-heading, .page-register__bonus-heading, .page-register__game-heading, .page-register__security-heading, .page-register__faq-heading {
    font-size: 1.3em;
  }
}