/* style/register.css */
.page-register {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: var(--background-color, #ffffff); /* Fallback to white if var not defined */
}

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

.page-register__section {
  padding: 60px 0;
  text-align: center;
}

.page-register__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-register__section-description {
  font-size: 18px;
  color: #555555;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Hero Section */
.page-register__hero-section {
  padding: 10px 0 60px 0; /* body handles top padding, only small decorative top padding here */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure it takes full width */
  margin-bottom: 40px;
}

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

.page-register__hero-content {
  max-width: 900px;
  padding: 0 20px;
  text-align: center;
}

.page-register__main-title {
  font-size: clamp(32px, 5vw, 52px);
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-register__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 30px;
  font-weight: 300;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary,
.page-register__btn-game-detail,
.page-register__text-link {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-register__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1a8cc4;
}

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

.page-register__text-link {
  color: #26A9E0;
  text-decoration: underline;
  padding: 0;
  border: none;
  background: none;
  font-weight: normal;
}

.page-register__text-link:hover {
  color: #1a8cc4;
}

/* Dark Background Section */
.page-register__dark-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
}

.page-register__dark-section .page-register__section-title {
  color: #ffffff;
}

.page-register__dark-section .page-register__section-description {
  color: #f0f0f0;
}

/* Light Background Section */
.page-register__light-bg {
  background-color: #f5f5f5;
  color: #333333;
}

.page-register__light-bg .page-register__section-title {
  color: #26A9E0;
}

/* Benefits Section */
.page-register__benefits-section {
  background-color: #ffffff;
}

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

.page-register__card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  color: #333333;
}

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

.page-register__card-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-register__card-title {
  font-size: 24px;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-register__card p {
  font-size: 16px;
  color: #555555;
}

/* How-To Register Section */
.page-register__how-to-register-section {
  background-color: #f5f5f5;
}

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

.page-register__step-item {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #333333;
}

.page-register__step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #26A9E0;
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

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

.page-register__step-item p {
  font-size: 16px;
  color: #555555;
  flex-grow: 1;
}

.page-register__step-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* Security Section */
.page-register__security-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-register__security-grid {
  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.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__security-icon {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-register__security-title {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-register__security-item p {
  font-size: 16px;
  color: #f0f0f0;
}

/* Game Showcase Section */
.page-register__game-showcase-section {
  background-color: #ffffff;
}

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

.page-register__game-card {
  background-color: #f5f5f5;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-register__game-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-register__game-title {
  font-size: 22px;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-register__game-card p {
  font-size: 16px;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-register__btn-game-detail {
  background-color: transparent;
  color: #26A9E0;
  border: 1px solid #26A9E0;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

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

/* FAQ Section */
.page-register__faq-section {
  background-color: #f5f5f5;
}

.page-register__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

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

.page-register__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #26A9E0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.page-register__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  color: #26A9E0;
  margin-left: 15px;
}

.page-register__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 16px;
  color: #555555;
  border-top: 1px solid #eee;
  margin-top: 10px;
}

/* Final CTA Section */
.page-register__cta-final-section {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 80px 0;
}

.page-register__cta-final-section .page-register__section-title {
  color: #ffffff;
}

.page-register__cta-final-section .page-register__section-description {
  color: #f0f0f0;
  margin-bottom: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-content {
    padding: 0 30px;
  }

  .page-register__section-title {
    font-size: clamp(24px, 3.5vw, 38px);
  }

  .page-register__hero-description {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-register__section {
    padding: 40px 0;
  }

  .page-register__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-register__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, small decorative padding */
    padding-bottom: 40px;
  }

  .page-register__main-title {
    font-size: clamp(28px, 6vw, 40px);
  }

  .page-register__hero-description {
    font-size: 16px;
  }

  .page-register__grid-container,
  .page-register__steps-grid,
  .page-register__security-grid,
  .page-register__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__card,
  .page-register__step-item,
  .page-register__security-item,
  .page-register__game-card {
    padding: 20px;
  }

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

  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__step-item,
  .page-register__security-item,
  .page-register__game-card,
  .page-register__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons responsive */
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__btn-game-detail,
  .page-register a[class*="button"],
  .page-register a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-top: 10px; /* Add some spacing if stacked */
  }

  .page-register__cta-buttons,
  .page-register__button-group,
  .page-register__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column;
  }

  .page-register__faq-question {
    font-size: 16px;
  }

  .page-register__faq-answer p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .page-register__main-title {
    font-size: clamp(24px, 7vw, 36px);
  }

  .page-register__hero-description {
    font-size: 15px;
  }

  .page-register__btn-large {
    font-size: 18px;
    padding: 15px 30px;
  }
}