/* style/register.css */
.page-register {
  background-color: #08160F; /* Nền tối theo custom color 'Background' */
  color: #F2FFF6; /* Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px;
}

.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: 10px 0 60px 0; /* Padding top 10px theo yêu cầu */
  overflow: hidden;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Giới hạn chiều cao cho hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

.page-register__hero-content {
  max-width: 900px;
  padding: 0 20px;
  position: relative;
  z-index: 1; /* Đảm bảo nội dung nằm trên hình ảnh nếu có bất kỳ lớp phủ nào */
}

.page-register__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem); /* Sử dụng clamp cho font-size H1 */
  font-weight: 700;
  line-height: 1.2;
  color: #F2FFF6;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-register__hero-description {
  font-size: 1.2rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal; /* Cho phép text xuống dòng */
  word-wrap: break-word; /* Cho phép từ xuống dòng */
  box-sizing: border-box;
  max-width: 100%;
}

.page-register__cta-button--primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6;
  border: none;
}

.page-register__cta-button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-register__cta-button--secondary {
  background: #11271B; /* Card BG */
  color: #2AD16F; /* Màu sáng hơn từ gradient button */
  border: 2px solid #2AD16F;
}

.page-register__cta-button--secondary:hover {
  transform: translateY(-2px);
  background: #2AD16F;
  color: #F2FFF6;
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-register__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

.page-register__section-description {
  font-size: 1.1rem;
  color: #A7D9B8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

/* General content wrapper for sections */
.page-register__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.page-register__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-register__text-content {
  flex: 1;
}

.page-register__text-content p {
  margin-bottom: 15px;
  color: #F2FFF6;
}

.page-register__text-content h3 {
  color: #2AD16F;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.page-register__image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-register__image {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-register__benefits-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 30px 0;
}

.page-register__benefits-item {
  background-color: #11271B; /* Card BG */
  border-left: 5px solid #2AD16F;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  color: #F2FFF6;
  font-size: 1.05rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-register__benefits-item strong {
  color: #57E38D; /* Glow */
}

.page-register__registration-steps-section {
  background-color: #0A4B2C; /* Deep Green */
  padding: 60px 0;
  margin-top: 40px;
}

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

.page-register__step-card {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
}

.page-register__step-title {
  font-size: 1.8rem;
  color: #57E38D; /* Glow */
  margin-bottom: 15px;
  text-align: center;
}

.page-register__step-description {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
}

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

.page-register__game-showcase-section {
  padding: 60px 0;
}

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

.page-register__game-card {
  background-color: #11271B; /* Card BG */
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
  text-align: center;
}

.page-register__game-title {
  font-size: 1.6rem;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-register__game-description {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
}

.page-register__game-description a,
.page-register__text-link {
  color: #2AD16F; /* Lighter green for links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-register__game-description a:hover,
.page-register__text-link:hover {
  color: #57E38D; /* Glow on hover */
}

.page-register__security-responsible-section {
  background-color: #0A4B2C; /* Deep Green */
  padding: 60px 0;
  margin-top: 40px;
}

.page-register__faq-section {
  padding: 60px 0;
}

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

.page-register__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  background-color: #1E3A2A; /* Divider for summary bg */
  transition: background-color 0.3s ease;
  list-style: none; /* Hide default marker */
}

.page-register__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-register__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green on hover */
}

.page-register__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #57E38D; /* Glow */
  margin-left: 15px;
}

.page-register__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  border-top: 1px solid #2E7A4E; /* Border */
}

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

.page-register__cta-final-section {
  padding: 60px 0 80px 0;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-register__content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .page-register__content-wrapper--reverse {
    flex-direction: column;
  }

  .page-register__image-container {
    margin-top: 30px;
  }

  .page-register__hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .page-register__section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-register__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile responsive for all images */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Image containers */
  .page-register__image-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile responsive for all buttons */
  .page-register__cta-button,
  .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 !important;
    padding-right: 15px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Button containers */
  .page-register__cta-wrapper,
  .page-register__cta-final-section .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  .page-register__hero-section {
    padding: 10px 0 40px 0; /* Adjust padding for mobile */
  }

  .page-register__hero-image-wrapper {
    max-height: 300px;
  }

  .page-register__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-register__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-register__section-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
    margin-bottom: 30px;
  }

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

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

  .page-register__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-register__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }

  /* Ensure content area images are not smaller than 200px (this rule is for desktop, mobile uses max-width:100%) */
  .page-register__content-wrapper .page-register__image {
    min-width: 200px;
    min-height: 200px;
  }
}

/* Desktop content area image size constraint check (not for mobile) */
@media (min-width: 769px) {
  .page-register__content-wrapper .page-register__image {
    min-width: 200px;
    min-height: 200px;
  }
}