.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Ensures consistency with body background */
}

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

.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
}

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

.page-register__hero-content {
  max-width: 800px;
  z-index: 1;
}

.page-register__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-register__description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  margin: 0 10px 15px 10px;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary {
  background: #EA7C07; /* Use custom color for login/register */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

.page-register__btn-secondary:hover {
  background: #e0f7fa;
  border-color: #26A9E0;
  transform: translateY(-2px);
}

.page-register__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: #26A9E0;
}

.page-register__text-block {
  font-size: 1.05rem;
  margin-bottom: 25px;
  text-align: justify;
  color: #333333;
}

/* Advantages Section */
.page-register__advantages-section, .page-register__promotions-section, .page-register__guide-section, .page-register__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #333333;
}

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

.page-register__advantage-card, .page-register__game-card, .page-register__promo-item, .page-register__step-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #e0e0e0; /* Added for contrast */
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-register__advantage-card:hover, .page-register__game-card:hover, .page-register__promo-item:hover, .page-register__step-card:hover {
  transform: translateY(-5px);
}

.page-register__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
}

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

.page-register__card-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-register__card-title a:hover {
  text-decoration: underline;
}

.page-register__card-text {
  font-size: 1rem;
  color: #555555;
  text-align: justify;
}

/* Guide Section */
.page-register__step-card {
  position: relative;
  padding-top: 50px;
}

.page-register__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #26A9E0;
  color: #FFFFFF;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 0 5px #26A9E0;
}

/* Security Section */
.page-register__security-section, .page-register__games-section, .page-register__cta-bottom-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-register__security-section .page-register__section-title,
.page-register__games-section .page-register__section-title,
.page-register__cta-bottom-section .page-register__section-title {
  color: #FFFFFF;
}

.page-register__security-section .page-register__text-block,
.page-register__games-section .page-register__text-block,
.page-register__cta-bottom-section .page-register__text-block {
  color: #f0f0f0;
}

/* FAQ Section */
.page-register__faq-list {
  margin-top: 40px;
}

.page-register__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #f9f9f9;
  color: #26A9E0;
  user-select: none;
}

.page-register__faq-item[open] .page-register__faq-question {
  background-color: #e6f7ff;
}

.page-register__faq-qtext {
  flex-grow: 1;
}

.page-register__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-register__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #555555;
  text-align: justify;
}

.page-register__faq-answer p {
  margin-top: 10px;
}

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

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

/* CTA Bottom Section */
.page-register__cta-bottom-section {
  text-align: center;
  padding-bottom: 80px;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-register__hero-content {
    max-width: 600px;
  }
  .page-register__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-register__description {
    font-size: 1rem;
  }
  .page-register__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
  .page-register__advantages-grid, .page-register__games-grid, .page-register__promo-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-register__card-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-register__hero-image-wrapper {
    margin-bottom: 15px;
  }
  .page-register__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-register__description {
    font-size: 0.95rem;
  }
  .page-register__cta-button {
    font-size: 1rem;
    padding: 12px 25px;
    margin: 0 5px 10px 5px;
    max-width: 100% !important;
    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;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-register__advantages-section, .page-register__promotions-section, .page-register__guide-section, .page-register__security-section, .page-register__games-section, .page-register__faq-section, .page-register__cta-bottom-section {
    padding: 40px 0;
  }
  .page-register__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-register__advantages-grid, .page-register__games-grid, .page-register__promo-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-register__card-image {
    height: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
  }
  .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__video-section, .page-register__video-container, .page-register__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-register__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-register__faq-answer {
    padding: 0 20px 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-register__main-title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }
  .page-register__section-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }
  .page-register__cta-button {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
  .page-register__step-number {
    width: 35px;
    height: 35px;
    font-size: 1.3rem;
  }
}