/* style/bnc.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không lặp lại tại đây */

:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --bg-color-main: #08160F;
  --bg-color-card: #11271B;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-bnc {
  background-color: var(--bg-color-main);
  color: var(--text-main-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-size: 1rem;
}

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

.page-bnc__section-title,
.page-bnc__main-title {
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-bnc__main-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.page-bnc__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

.page-bnc__text-block {
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-secondary-color);
  font-size: 1.1rem;
}

.page-bnc__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px;
  overflow: hidden;
}

.page-bnc__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  margin-bottom: 30px;
  overflow: hidden;
}

.page-bnc__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-bnc__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  margin-top: -100px; /* Pull content up over image slightly */
}

.page-bnc__hero-description {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: var(--text-main-color);
}

.page-bnc__cta-button {
  display: inline-block;
  background: var(--button-gradient);
  color: var(--text-main-color);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-bnc__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-bnc__cta-button--secondary {
  background: var(--deep-green-color);
  border: 2px solid var(--primary-color);
}

.page-bnc__cta-button--secondary:hover {
  background: var(--primary-color);
}

.page-bnc__cta-button--outline {
  background: transparent;
  border: 2px solid var(--gold-color);
  color: var(--gold-color);
}

.page-bnc__cta-button--outline:hover {
  background: var(--gold-color);
  color: var(--bg-color-main);
}

.page-bnc__intro-section,
.page-bnc__features-section,
.page-bnc__game-showcase,
.page-bnc__how-to-play-section,
.page-bnc__strategy-section,
.page-bnc__promotions-section,
.page-bnc__faq-section,
.page-bnc__cta-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--divider-color);
}

.page-bnc__intro-section p,
.page-bnc__strategy-section p,
.page-bnc__promotions-section p,
.page-bnc__cta-section p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-bnc__feature-card,
.page-bnc__game-card,
.page-bnc__promo-card {
  background-color: var(--bg-color-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-bnc__feature-card:hover,
.page-bnc__game-card:hover,
.page-bnc__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-bnc__feature-icon,
.page-bnc__game-image,
.page-bnc__promo-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-bnc__feature-title,
.page-bnc__game-title,
.page-bnc__promo-title {
  color: var(--gold-color);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.page-bnc__feature-description,
.page-bnc__game-description,
.page-bnc__promo-description {
  color: var(--text-secondary-color);
  font-size: 1rem;
}

.page-bnc__game-button,
.page-bnc__promo-button {
  display: inline-block;
  background: var(--primary-color);
  color: var(--text-main-color);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  margin-top: 15px;
  transition: background-color 0.3s ease;
}

.page-bnc__game-button:hover,
.page-bnc__promo-button:hover {
  background-color: var(--secondary-color);
}

.page-bnc__how-to-play-section .page-bnc__container {
  text-align: left;
}

.page-bnc__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-bnc__step-item {
  background-color: var(--bg-color-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 25px;
  position: relative;
  padding-left: 70px;
}

.page-bnc__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 20px;
  top: 20px;
  background-color: var(--gold-color);
  color: var(--bg-color-main);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.page-bnc__step-title {
  color: var(--gold-color);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.page-bnc__step-description {
  color: var(--text-secondary-color);
  font-size: 1rem;
  text-align: left;
}

.page-bnc__step-description a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-bnc__strategy-section .page-bnc__container {
  text-align: center;
}

.page-bnc__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-bnc__tip-item {
  background-color: var(--bg-color-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  text-align: left;
}

.page-bnc__tip-title {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.page-bnc__tip-description {
  color: var(--text-secondary-color);
  font-size: 1rem;
}

.page-bnc__strategy-img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  margin-top: 40px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

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

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

.page-bnc__faq-item {
  background-color: var(--bg-color-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-bnc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--gold-color);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-bnc__faq-item[open] > .page-bnc__faq-question {
  background-color: var(--deep-green-color);
}

.page-bnc__faq-question:hover {
  background-color: var(--deep-green-color);
}

.page-bnc__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Prevent text selection from interfering with click */
}

.page-bnc__faq-toggle {
  font-size: 1.5rem;
  margin-left: 15px;
  color: var(--secondary-color);
  pointer-events: none; /* Prevent toggle from interfering with click */
}

.page-bnc__faq-answer {
  padding: 0 25px 20px;
  color: var(--text-secondary-color);
  font-size: 1rem;
  line-height: 1.6;
}

.page-bnc__faq-answer p {
  margin-bottom: 0;
  text-align: left;
}

.page-bnc__faq-answer a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-bnc__cta-section .page-bnc__section-title,
.page-bnc__cta-section .page-bnc__text-block {
  margin-bottom: 25px;
}

.page-bnc__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-bnc__hero-content {
    margin-top: -80px;
  }
}

@media (max-width: 768px) {
  .page-bnc__container {
    padding: 0 15px !important;
  }

  .page-bnc__hero-section {
    padding: 10px 0 40px;
  }

  .page-bnc__hero-content {
    margin-top: -60px;
    padding: 15px;
  }

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

  .page-bnc__section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .page-bnc__hero-description {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }

  .page-bnc__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-bnc__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-bnc__intro-section,
  .page-bnc__features-section,
  .page-bnc__game-showcase,
  .page-bnc__how-to-play-section,
  .page-bnc__strategy-section,
  .page-bnc__promotions-section,
  .page-bnc__faq-section,
  .page-bnc__cta-section {
    padding: 40px 0;
  }

  .page-bnc__features-grid,
  .page-bnc__game-grid,
  .page-bnc__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-bnc__feature-card,
  .page-bnc__game-card,
  .page-bnc__promo-card {
    padding: 20px;
  }

  .page-bnc__feature-icon,
  .page-bnc__game-image,
  .page-bnc__promo-image,
  .page-bnc__strategy-img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-bnc__step-item {
    padding: 20px;
    padding-left: 60px;
  }

  .page-bnc__step-item::before {
    left: 15px;
    top: 15px;
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .page-bnc__tips-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

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

  .page-bnc__faq-answer {
    padding: 0 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-bnc__hero-content {
    margin-top: -40px;
  }
}

/* Ensure all images in content area are at least 200px wide for desktop */
.page-bnc img:not(.page-bnc__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

/* Video responsiveness (if any video was present, using common video styles) */
.page-bnc video,
.page-bnc__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-bnc__video-section,
.page-bnc__video-container,
.page-bnc__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-bnc video,
  .page-bnc__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-bnc__video-section,
  .page-bnc__video-container,
  .page-bnc__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-bnc__video-section {
    padding-top: 10px !important;
  }
  .page-bnc__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}