/* style/register.css */

/* Base styles for the page content */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Ensuring consistency with body background */
}

/* Section spacing and container */
.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: #26A9E0; /* Primary brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Buttons */
.page-register__btn {
  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;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow long words to break */
}

.page-register__btn--primary {
  background-color: #26A9E0; /* Primary color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-register__btn--secondary {
  background-color: transparent;
  color: #26A9E0; /* Primary color for text */
  border: 2px solid #26A9E0;
}

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

.page-register__btn--large {
  padding: 18px 35px;
  font-size: 1.1em;
}

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

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  background-color: #0d0d0d; /* Slightly lighter dark background for hero */
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding-bottom: 60px;
}

.page-register__hero-content {
  max-width: 900px;
  padding: 40px 20px;
  z-index: 1;
}

.page-register__hero-title {
  font-size: 3.5em;
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-top: 40px;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: #000000; /* Dark background for this section */
  color: #ffffff;
}

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

.page-register__benefit-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent card background */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__benefit-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  max-width: 100%; /* Ensure icon is responsive */
}

.page-register__benefit-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

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

/* Steps Section */
.page-register__steps-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background */
  color: #ffffff;
}

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

.page-register__step-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-register__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #26A9E0;
  background-color: rgba(38, 169, 224, 0.15);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.page-register__step-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-register__step-image {
  width: 100%;
  max-width: 400px; /* Constrain step images */
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-top: 15px;
}


/* Promotions Section */
.page-register__promotions-section {
  padding: 80px 0;
  background-color: #000000;
  color: #ffffff;
}

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

.page-register__promotion-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
}

.page-register__promotion-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-register__promotion-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 20px;
  font-weight: bold;
}

.page-register__promotion-text {
  font-size: 1em;
  color: #e0e0e0;
  padding: 0 20px;
}

/* Game Variety Section */
.page-register__game-variety-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  color: #ffffff;
}

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

.page-register__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 20px;
}

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

.page-register__game-image {
  width: 100%;
  height: 180px; /* Fixed height for game images */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-register__game-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 20px;
  font-weight: bold;
}

.page-register__game-text {
  font-size: 0.95em;
  color: #e0e0e0;
  padding: 0 20px;
}

/* Security Section */
.page-register__security-section {
  padding: 80px 0;
  background-color: #000000;
  color: #ffffff;
}

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

.page-register__security-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__security-subtitle {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

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

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  color: #ffffff;
}

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

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

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

.page-register__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #26A9E0;
}

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

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

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

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

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

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

/* Final CTA Section */
.page-register__cta-final-section {
  padding: 80px 0;
  background-color: #000000;
  color: #ffffff;
  text-align: center;
}

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

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

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

  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    padding-bottom: 40px;
  }

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

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

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

  .page-register__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !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-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-register__benefits-grid,
  .page-register__steps-wrapper,
  .page-register__promotions-grid,
  .page-register__game-cards-grid,
  .page-register__security-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

  /* Containers for images to prevent overflow */
  .page-register__hero-image-wrapper,
  .page-register__benefits-section,
  .page-register__steps-section,
  .page-register__promotions-section,
  .page-register__game-variety-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-final-section,
  .page-register__benefit-card,
  .page-register__step-card,
  .page-register__promotion-card,
  .page-register__game-card,
  .page-register__security-item,
  .page-register__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }
  
  /* Specific override for cards, as they already have padding */
  .page-register__benefit-card,
  .page-register__step-card,
  .page-register__promotion-card,
  .page-register__game-card,
  .page-register__security-item {
    padding-left: 30px;
    padding-right: 30px;
  }
  .page-register__faq-item {
    padding-left: 0;
    padding-right: 0;
  }
  .page-register__faq-answer {
    padding: 15px !important;
  }
  .page-register__faq-question {
    padding: 15px;
  }
  .page-register__faq-question h3 {
    font-size: 1.1em;
  }
}