/* Biến màu sắc */
:root {
  --nohu888-main-color: #FF8C1A;
  --nohu888-aux-color: #FFA53A;
  --nohu888-button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  --nohu888-card-bg: #17191F;
  --nohu888-bg: #0D0E12;
  --nohu888-text-main: #FFF3E6;
  --nohu888-border-color: #A84F0C;
  --nohu888-glow-color: #FFB04D;
  --nohu888-deep-orange: #D96800;
}

/* Cấu trúc chung */
.page-register {
  font-family: 'Arial', sans-serif;
  color: var(--nohu888-text-main); /* Mặc định cho nền tối */
  background-color: var(--nohu888-bg);
  line-height: 1.6;
}

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

.page-register__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--nohu888-main-color);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(255, 140, 26, 0.5);
}

.page-register__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--nohu888-text-main);
}

.page-register__btn-primary,
.page-register__btn-secondary,
.page-register__cta-button,
.page-register__step-button,
.page-register__game-button,
.page-register__method-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  font-size: 16px;
}

.page-register__btn-primary,
.page-register__cta-button {
  background: var(--nohu888-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-register__btn-primary:hover,
.page-register__cta-button:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #E87A1A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-register__btn-secondary,
.page-register__step-button,
.page-register__game-button,
.page-register__method-button {
  background: transparent;
  color: var(--nohu888-main-color);
  border: 2px solid var(--nohu888-main-color);
  box-shadow: inset 0 0 0 1px var(--nohu888-main-color);
}

.page-register__btn-secondary:hover,
.page-register__step-button:hover,
.page-register__game-button:hover,
.page-register__method-button:hover {
  background: var(--nohu888-main-color);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(255, 140, 26, 0.3);
}

.page-register__cta-container {
  text-align: center;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-register__card {
  background: var(--nohu888-card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--nohu888-text-main);
  border: 1px solid var(--nohu888-border-color);
}

.page-register__dark-card-bg {
  background: var(--nohu888-card-bg);
  color: var(--nohu888-text-main);
}

.page-register__light-bg {
  background-color: #f8f8f8; /* Nền sáng hơn cho phần nội dung chính */
  color: #333333; /* Chữ tối trên nền sáng */
}

.page-register__light-bg .page-register__section-title,
.page-register__light-bg .page-register__section-description,
.page-register__light-bg .page-register__card h3,
.page-register__light-bg .page-register__card p,
.page-register__light-bg .page-register__faq-question,
.page-register__light-bg .page-register__faq-answer p {
  color: #333333;
}

.page-register__light-bg .page-register__card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
}

.page-register__light-bg .page-register__btn-secondary {
  border-color: #333333;
  color: #333333;
}

.page-register__light-bg .page-register__btn-secondary:hover {
  background: #333333;
  color: #ffffff;
}

/* HERO Section */
.page-register__hero-section {
  position: relative;
  padding-top: 10px; /* Nhỏ hơn so với header-offset */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
  display: block;
}

.page-register__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 80px;
  padding-bottom: 40px;
}

.page-register__main-title {
  font-size: 52px;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Why Register Section */
.page-register__why-register-section {
  padding: 80px 0;
}

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

.page-register__feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-register__feature-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--nohu888-main-color);
}

.page-register__feature-text {
  font-size: 16px;
  color: var(--nohu888-text-main);
}

.page-register__light-bg .page-register__feature-title {
  color: #333333;
}

/* Registration Guide Section */
.page-register__registration-guide-section {
  padding: 80px 0;
  background-color: var(--nohu888-bg);
}

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

.page-register__step-card {
  position: relative;
  padding-top: 60px;
  min-height: 250px;
  justify-content: flex-start;
}

.page-register__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: var(--nohu888-main-color);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  border: 4px solid var(--nohu888-border-color);
  box-shadow: 0 0 15px rgba(255, 140, 26, 0.6);
}

.page-register__step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--nohu888-main-color);
}

.page-register__step-text {
  font-size: 16px;
  color: var(--nohu888-text-main);
  flex-grow: 1;
}

.page-register__step-button {
  margin-top: 20px;
}

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

.page-register__security-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-register__security-item {
  font-size: 18px;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: #333333;
}

.page-register__security-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--nohu888-main-color);
  font-weight: bold;
}

/* Promotions Section */
.page-register__promotions-section {
  padding: 80px 0;
  background-color: var(--nohu888-bg);
}

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

.page-register__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-register__promo-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--nohu888-main-color);
}

.page-register__promo-text {
  font-size: 16px;
  color: var(--nohu888-text-main);
}

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

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

.page-register__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-register__game-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333333;
}

.page-register__game-text {
  font-size: 16px;
  color: #555555;
  flex-grow: 1;
}

.page-register__game-button {
  margin-top: 20px;
}

/* Mobile Section */
.page-register__mobile-section {
  padding: 80px 0;
  background-color: var(--nohu888-bg);
}

.page-register__mobile-flex {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-register__mobile-content {
  flex: 1;
  text-align: left;
}

.page-register__mobile-content .page-register__section-title {
  text-align: left;
}

.page-register__mobile-content .page-register__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-register__mobile-benefits {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-register__mobile-benefit-item {
  font-size: 18px;
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
  color: var(--nohu888-text-main);
}

.page-register__mobile-benefit-item::before {
  content: '★';
  position: absolute;
  left: 0;
  color: var(--nohu888-aux-color);
  font-weight: bold;
}

.page-register__mobile-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-register__mobile-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: block;
}

/* Support Section */
.page-register__support-section {
  padding: 80px 0;
}

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

.page-register__method-card {
  justify-content: flex-start;
}

.page-register__method-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333333;
}

.page-register__method-text {
  font-size: 16px;
  color: #555555;
  flex-grow: 1;
}

.page-register__method-button {
  margin-top: 20px;
}

/* Responsible Gaming Section */
.page-register__responsible-gaming-section {
  padding: 80px 0;
  background-color: var(--nohu888-bg);
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
}

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

details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid var(--nohu888-border-color);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

details.page-register__faq-item summary.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  background-color: #ffffff;
}

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

details.page-register__faq-item summary.page-register__faq-question:hover {
  background: #f5f5f5;
}

.page-register__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-register__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--nohu888-main-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px;
  text-align: center;
}

details.page-register__faq-item .page-register__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-radius: 0 0 12px 12px;
  color: #555555;
  font-size: 16px;
}

details.page-register__faq-item .page-register__faq-answer p {
  margin: 0;
  color: #555555;
}

/* Conclusion Section */
.page-register__conclusion-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--nohu888-bg);
}

/* ==================== Responsive Styles ==================== */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: 44px;
  }

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

  .page-register__section-title {
    font-size: 32px;
  }

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

  .page-register__features-grid,
  .page-register__steps-grid,
  .page-register__promos-grid,
  .page-register__games-grid,
  .page-register__contact-methods {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .page-register__mobile-flex {
    flex-direction: column;
    text-align: center;
  }

  .page-register__mobile-content .page-register__section-title,
  .page-register__mobile-content .page-register__section-description {
    text-align: center;
  }

  .page-register__mobile-benefits {
    text-align: left;
    margin: 20px auto;
    max-width: 400px;
  }
}

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

  .page-register__hero-section {
    padding-top: 10px !important; /* Top padding for hero, fixed to small value */
    padding-bottom: 40px;
  }

  .page-register__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Remove fixed aspect ratio for better fit */
    height: 100% !important;
  }

  .page-register__hero-content {
    padding-top: 60px;
    padding-bottom: 20px;
  }

  .page-register__main-title {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 15px;
  }

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

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

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

  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__cta-button,
  .page-register__step-button,
  .page-register__game-button,
  .page-register__method-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important; /* Adjust padding for full width */
    font-size: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-register__features-grid,
  .page-register__promos-grid,
  .page-register__games-grid,
  .page-register__contact-methods {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-register__step-card {
    padding-top: 50px;
    min-height: auto;
  }

  .page-register__step-number {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .page-register__feature-image,
  .page-register__promo-image,
  .page-register__game-image,
  .page-register__mobile-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-register__security-item,
  .page-register__mobile-benefit-item {
    font-size: 16px;
    padding-left: 25px;
  }

  .page-register__security-item::before,
  .page-register__mobile-benefit-item::before {
    font-size: 18px;
  }

  details.page-register__faq-item summary.page-register__faq-question {
    padding: 15px;
    font-size: 16px;
  }

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

  .page-register__faq-toggle {
    font-size: 24px;
    width: 28px;
  }

  details.page-register__faq-item .page-register__faq-answer {
    padding: 0 15px 15px;
    font-size: 15px;
  }

  .page-register__mobile-flex {
    flex-direction: column;
    gap: 30px;
  }

  .page-register__mobile-content .page-register__section-title,
  .page-register__mobile-content .page-register__section-description {
    text-align: center;
  }
}