/* style/register.css */

/* Base styles for the page-register scope */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-register__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-register__section-subtitle {
  font-size: 1.2em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
}

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

.page-register__light-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

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

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

.page-register__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(1, 116, 57, 0.7), rgba(0, 0, 0, 0.8)); /* Overlay with brand color */
  z-index: 2;
}

.page-register__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  color: #ffffff;
}

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

.page-register__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
}

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

.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: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary {
  background-color: #C30808; /* Custom Register color */
  color: #ffffff; /* Forced white for contrast with #C30808 */
  border: 2px solid #C30808;
}

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

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

.page-register__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* 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__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
  height: 100%; /* Ensure cards are same height */
  display: flex;
  flex-direction: column;
}

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

.page-register__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure it behaves as a block element */
}

.page-register__card-title {
  font-size: 1.5em;
  color: #017439; /* Brand green for titles */
  margin-bottom: 15px;
  flex-grow: 0;
}

.page-register__card-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-register__card-link {
  color: #FFFF00; /* Yellow for links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push link to bottom */
}

.page-register__card-link:hover {
  color: #e6e600;
  text-decoration: underline;
}

/* Registration Guide Section */
.page-register__registration-guide {
  padding: 80px 0;
}

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

.page-register__step-item {
  text-align: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__step-number {
  font-size: 3em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
}

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

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

.page-register__step-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

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

/* Claim Bonus Section */
.page-register__claim-bonus-section {
  padding: 80px 0;
}

.page-register__claim-bonus-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-register__claim-bonus-text {
  flex: 1;
  min-width: 300px;
  color: #ffffff;
}

.page-register__claim-bonus-image {
  flex: 1;
  min-width: 300px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.page-register__claim-bonus-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-register__claim-bonus-list li {
  background-color: rgba(1, 116, 57, 0.2); /* Transparent brand color */
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 1.1em;
  color: #ffffff;
}

.page-register__claim-bonus-list li strong {
  color: #FFFF00; /* Yellow for strong text */
}

.page-register__claim-bonus-note {
  font-style: italic;
  color: #f0f0f0;
  margin-top: 20px;
}

/* Games Showcase Section */
.page-register__games-showcase-section {
  padding: 80px 0;
}

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

.page-register__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  text-decoration: none;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-register__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-register__game-card-title {
  font-size: 1.4em;
  color: #017439;
  margin: 20px 15px 10px;
}

.page-register__game-card-description {
  font-size: 0.95em;
  color: #f0f0f0;
  padding: 0 15px 20px;
  flex-grow: 1;
}

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

.page-register__security-support-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap-reverse; /* Image on left for desktop, text first for mobile */
}

.page-register__security-support-text {
  flex: 1;
  min-width: 300px;
  color: #ffffff;
}

.page-register__security-support-image {
  flex: 1;
  min-width: 300px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.page-register__text-block {
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-register__cta-buttons-inline {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* 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: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-register__faq-item summary {
  display: block;
  padding: 20px;
  cursor: pointer;
  position: relative;
  list-style: none;
  user-select: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-register__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-register__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #f0f0f0;
}

/* Final CTA Section */
.page-register__final-cta-section {
  padding: 80px 0;
  text-align: center;
}

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

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

@media (max-width: 768px) {
  .page-register__hero-section {
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

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

  .page-register__section-subtitle {
    font-size: 1em;
  }

  .page-register__cta-buttons,
  .page-register__cta-buttons-inline {
    flex-direction: column;
    gap: 15px;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-register__benefits-section,
  .page-register__registration-guide,
  .page-register__claim-bonus-section,
  .page-register__games-showcase-section,
  .page-register__security-support-section,
  .page-register__faq-section,
  .page-register__final-cta-section {
    padding: 50px 0;
  }

  .page-register__benefits-grid,
  .page-register__guide-steps,
  .page-register__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__card-image,
  .page-register__step-image,
  .page-register__claim-bonus-image,
  .page-register__game-card-image,
  .page-register__security-support-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-register__claim-bonus-content,
  .page-register__security-support-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-register__claim-bonus-image,
  .page-register__security-support-image {
    order: -1; /* Image appears first on mobile */
  }

  /* Ensure all containers with images/videos/buttons are responsive */
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-section,
  .page-register__benefits-section,
  .page-register__registration-guide,
  .page-register__claim-bonus-section,
  .page-register__games-showcase-section,
  .page-register__security-support-section,
  .page-register__faq-section,
  .page-register__final-cta-section,
  .page-register__cta-buttons,
  .page-register__cta-buttons-inline {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

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

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

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

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

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

  .page-register__btn-primary,
  .page-register__btn-secondary {
    font-size: 0.9em;
    padding: 10px 15px;
  }
}