.page-top-nha-cai {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Main text color for dark body background */
  background-color: var(--background-color, #B71C1C); /* Fallback to Deep Red if shared var not set */
}

.page-top-nha-cai__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relying on body padding-top from shared */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFF5E1;
  overflow: hidden;
  padding-bottom: 40px;
}

.page-top-nha-cai__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
}

.page-top-nha-cai__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-top-nha-cai__hero-content-wrapper {
  max-width: 900px;
  padding: 20px;
  z-index: 1;
  background: rgba(19, 19, 19, 0.7); /* Semi-transparent dark background for text */
  border-radius: 10px;
  margin-top: -80px; /* Pull content up slightly over the image for visual flow */
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-top-nha-cai__hero-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #FFD86A; /* Gold color for title */
  margin-bottom: 15px;
}

.page-top-nha-cai__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #FFF5E1;
}

.page-top-nha-cai__section {
  padding: 60px 0;
  background-color: #B71C1C;
}

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

.page-top-nha-cai__section-title {
  text-align: center;
  color: #FFD86A;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-top-nha-cai__card {
  background-color: #D32F2F; /* Card Background */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #FFF5E1;
}

.page-top-nha-cai__card-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-top-nha-cai__card-title {
  color: #FFD86A;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-top-nha-cai__card-text {
  font-size: 0.95em;
  line-height: 1.5;
  flex-grow: 1;
}

.page-top-nha-cai__how-to-register .page-top-nha-cai__section-title {
  margin-bottom: 60px;
}

.page-top-nha-cai__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  counter-reset: step-counter;
}

.page-top-nha-cai__step-item {
  background-color: #D32F2F;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FFF5E1;
}

.page-top-nha-cai__step-number {
  counter-increment: step-counter;
  width: 50px;
  height: 50px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for contrast */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-top-nha-cai__step-title {
  color: #FFD86A;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-top-nha-cai__step-description {
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 20px;
}

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

.page-top-nha-cai__cta-wrapper {
  text-align: center;
  margin-top: 60px;
}

.page-top-nha-cai__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for button text */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-top-nha-cai__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-top-nha-cai__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-top-nha-cai__list-item {
  background-color: #D32F2F;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #FFF5E1;
}

.page-top-nha-cai__list-title {
  color: #FFD86A;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-top-nha-cai__list-description {
  font-size: 0.95em;
  line-height: 1.5;
}

.page-top-nha-cai__faq-section {
  padding: 60px 0;
  background-color: #B71C1C;
}

.page-top-nha-cai__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-top-nha-cai__faq-item {
  background-color: #D32F2F;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #FFF5E1;
}

.page-top-nha-cai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  color: #FFD86A;
  list-style: none;
  position: relative;
}

.page-top-nha-cai__faq-question::-webkit-details-marker {
  display: none;
}

.page-top-nha-cai__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFF5E1;
}

.page-top-nha-cai__faq-item[open] .page-top-nha-cai__faq-toggle {
  transform: rotate(45deg);
}

.page-top-nha-cai__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 0.95em;
  line-height: 1.5;
  color: #FFF5E1;
}

.page-top-nha-cai__call-to-action {
  text-align: center;
  padding: 80px 0;
  background-color: #7A0E0E; /* Deep Red background */
  color: #FFF5E1;
}

.page-top-nha-cai__call-to-action .page-top-nha-cai__description {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
  line-height: 1.6;
}

/* General image responsiveness for all content images */
.page-top-nha-cai img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* General button responsiveness */
.page-top-nha-cai__btn-primary {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-top-nha-cai__cta-wrapper,
.page-top-nha-cai__button-group,
.page-top-nha-cai__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .page-top-nha-cai__hero-title {
    font-size: 2.5em;
  }
  .page-top-nha-cai__hero-description {
    font-size: 1em;
  }
  .page-top-nha-cai__grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-top-nha-cai__steps {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

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

  /* HERO 主图区域 */
  .page-top-nha-cai__hero-section {
    padding-top: 10px !important;
    padding-bottom: 20px;
  }
  .page-top-nha-cai__hero-image-wrapper {
    max-height: 300px;
  }
  .page-top-nha-cai__hero-content-wrapper {
    margin-top: -50px;
    padding: 15px;
  }
  .page-top-nha-cai__hero-title {
    font-size: clamp(1.8em, 5vw, 2.2em);
    margin-bottom: 10px;
  }
  .page-top-nha-cai__hero-description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  /* 长文金框区 (Not explicitly used as a distinct module here, but general content follows) */
  .page-top-nha-cai__section {
    padding: 40px 0;
  }
  .page-top-nha-cai__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  /* 游戏轮播 (Not used on this page, but would be handled here if present) */
  /* .page-top-nha-cai__slider-track { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; } */
  /* .page-top-nha-cai__game-slide { flex: 0 0 80%; width: 80%; scroll-snap-align: start; } */

  /* 合作品牌六宫格 (Not used on this page, but would be handled here if present) */
  /* .page-top-nha-cai__banners-top-wrapper { grid-template-columns: repeat(3, 1fr) !important; gap: 8px; } */
  /* .page-top-nha-cai__banner-item img {  } */

  /* 博客卡片区 (Not used on this page, but would be handled here if present) */
  /* .page-top-nha-cai__blog-masonry { grid-template-columns: 1fr !important; } */
  /* .page-top-nha-cai__blog-slide { flex: 0 0 100% !important; max-width: 100% !important; } */

  /* 通用图片与容器 */
  .page-top-nha-cai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-top-nha-cai__container,
  .page-top-nha-cai__card,
  .page-top-nha-cai__step-item,
  .page-top-nha-cai__list-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-top-nha-cai__btn-primary,
  .page-top-nha-cai a[class*="button"],
  .page-top-nha-cai 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: 12px 20px;
    font-size: 1em;
  }

  .page-top-nha-cai__cta-wrapper,
  .page-top-nha-cai__button-group,
  .page-top-nha-cai__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; /* Ensure buttons stack vertically */
  }

  .page-top-nha-cai__grid {
    grid-template-columns: 1fr;
  }
  .page-top-nha-cai__steps {
    grid-template-columns: 1fr;
  }
  .page-top-nha-cai__card {
    padding: 20px;
  }
  .page-top-nha-cai__step-item {
    padding: 20px;
  }
  .page-top-nha-cai__faq-question {
    padding: 15px;
  }
  .page-top-nha-cai__faq-answer {
    padding: 0 15px 15px 15px;
  }
  .page-top-nha-cai__call-to-action {
    padding: 60px 0;
  }
}