/* style/bnc.css */
/* body đã padding-top: var(--header-offset); trang này không được viết lại biến đó */

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

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

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

.page-bnc__section-title {
  font-size: 2.5em;
  color: var(--bnc-gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-bnc__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
  text-align: center;
}

.page-bnc__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  position: relative;
}

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

.page-bnc__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

.page-bnc__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--bnc-gold-color);
  margin-bottom: 20px;
  font-size: clamp(2.2em, 4vw, 3.5em);
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-bnc__hero-description {
  font-size: 1.1em;
  color: var(--bnc-text-secondary);
  margin-bottom: 30px;
}

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

.page-bnc__btn-primary,
.page-bnc__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.page-bnc__btn-primary {
  background: var(--bnc-button-gradient);
  color: var(--bnc-text-main);
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-bnc__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
  opacity: 0.9;
}

.page-bnc__btn-secondary {
  background: transparent;
  color: var(--bnc-gold-color);
  border: 2px solid var(--bnc-gold-color);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.2);
}

.page-bnc__btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(242, 193, 78, 0.1);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.4);
}

.page-bnc__intro-section,
.page-bnc__why-choose-section,
.page-bnc__popular-games-section,
.page-bnc__how-to-play-section,
.page-bnc__tips-strategies-section,
.page-bnc__promotions-section,
.page-bnc__security-fairness-section,
.page-bnc__faq-section,
.page-bnc__cta-final-section {
  padding: 80px 0;
}

.page-bnc__dark-section {
  background-color: var(--bnc-card-bg-color);
}

.page-bnc p {
  font-size: 1.05em;
  color: var(--bnc-text-secondary);
  margin-bottom: 1.5em;
  text-align: justify;
}

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

.page-bnc__card {
  background-color: var(--bnc-card-bg-color);
  border: 1px solid var(--bnc-border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-bnc__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.page-bnc__card-title {
  font-size: 1.5em;
  color: var(--bnc-gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-bnc__game-image,
.page-bnc__promo-image,
.page-bnc__security-image {
  width: 100%;
  height: auto;
  max-width: 100%; /* Ensure images don't overflow */
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
  min-width: 200px; /* Minimum image size */
}

.page-bnc__game-card .page-bnc__btn-primary {
  margin-top: 20px;
  width: 100%;
  max-width: 200px;
}

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

.page-bnc__step-item {
  background-color: var(--bnc-card-bg-color);
  border: 1px solid var(--bnc-border-color);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-bnc__step-title {
  font-size: 1.3em;
  color: var(--bnc-primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-bnc__step-item p {
  font-size: 1em;
  color: var(--bnc-text-secondary);
  margin-bottom: 0;
}

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

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

.page-bnc__strategy-item {
  background-color: var(--bnc-card-bg-color);
  border: 1px solid var(--bnc-border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-bnc__strategy-title {
  font-size: 1.3em;
  color: var(--bnc-gold-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-bnc__strategy-item p {
  font-size: 1em;
  color: var(--bnc-text-secondary);
  margin-bottom: 0;
}

.page-bnc__promo-note {
  text-align: center;
  font-style: italic;
  margin-top: 40px;
  font-size: 0.95em;
  color: var(--bnc-text-secondary);
}

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

.page-bnc__security-item {
  background-color: var(--bnc-bg-color);
  border: 1px solid var(--bnc-deep-green-color);
  border-left: 5px solid var(--bnc-primary-color);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-bnc__security-title {
  font-size: 1.2em;
  color: var(--bnc-primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-bnc__security-item p {
  font-size: 0.95em;
  color: var(--bnc-text-secondary);
  margin-bottom: 0;
}

.page-bnc__security-image {
  margin-top: 40px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  min-height: 200px; /* Minimum image size */
  min-width: 200px; /* Minimum image size */
}

.page-bnc__faq-list {
  margin-top: 40px;
}

.page-bnc__faq-item {
  background-color: var(--bnc-card-bg-color);
  border: 1px solid var(--bnc-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-bnc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--bnc-gold-color);
  cursor: pointer;
  background-color: var(--bnc-deep-green-color);
  border-bottom: 1px solid var(--bnc-border-color);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-bnc__faq-question:hover {
  background-color: var(--bnc-primary-color);
}

.page-bnc__faq-item[open] .page-bnc__faq-question {
  background-color: var(--bnc-primary-color);
}

.page-bnc__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--bnc-text-main);
}

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

.page-bnc__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--bnc-text-secondary);
  border-top: 1px solid var(--bnc-divider-color);
  background-color: var(--bnc-card-bg-color);
}

/* Hide default marker for details/summary */
details > summary::-webkit-details-marker {
  display: none;
}
details > summary {
  list-style: none;
}

.page-bnc__cta-final-section {
  text-align: center;
  padding: 100px 0;
}

.page-bnc__cta-final-section .page-bnc__section-title {
  color: var(--bnc-gold-color);
}

.page-bnc__cta-final-section p {
  font-size: 1.2em;
  color: var(--bnc-text-main);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Responsive Design --- */

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

  .page-bnc__hero-content {
    max-width: 700px;
  }

  .page-bnc__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-bnc__feature-grid,
  .page-bnc__game-list,
  .page-bnc__promo-grid,
  .page-bnc__strategy-list,
  .page-bnc__security-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .page-bnc__card,
  .page-bnc__step-item,
  .page-bnc__strategy-item,
  .page-bnc__security-item {
    padding: 25px;
  }

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

  .page-bnc__btn-primary,
  .page-bnc__btn-secondary {
    width: 80%;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .page-bnc {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-bnc__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

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

  .page-bnc__hero-content {
    position: static;
    transform: none;
    padding: 20px 15px;
    background: none;
    border-radius: 0;
    max-width: 100%;
    width: 100%;
  }

  .page-bnc__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-bnc__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-bnc__cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-bnc__btn-primary,
  .page-bnc__btn-secondary {
    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-bnc__intro-section,
  .page-bnc__why-choose-section,
  .page-bnc__popular-games-section,
  .page-bnc__how-to-play-section,
  .page-bnc__tips-strategies-section,
  .page-bnc__promotions-section,
  .page-bnc__security-fairness-section,
  .page-bnc__faq-section,
  .page-bnc__cta-final-section {
    padding: 50px 0;
  }

  .page-bnc__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-bnc p {
    font-size: 0.95em;
  }

  .page-bnc__card,
  .page-bnc__step-item,
  .page-bnc__strategy-item,
  .page-bnc__security-item {
    padding: 20px;
  }

  .page-bnc__card-title,
  .page-bnc__step-title,
  .page-bnc__strategy-title,
  .page-bnc__security-title {
    font-size: 1.2em;
  }

  /* Mobile image, video, and container adaptations */
  .page-bnc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .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; /* body đã承担 --header-offset，此处禁止 var(--header-offset) */
  }

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

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

/* Color Contrast Fixes (as per instructions) */
.page-bnc .page-bnc__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}

.page-bnc .page-bnc__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}