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

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

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

/* Hero Section */
.page-bnc__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
}

.page-bnc__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-bnc__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  min-height: 200px;
}

.page-bnc__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly for design, but text is below image */
  background: rgba(17, 39, 27, 0.8);
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-bnc__main-title {
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

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

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

.page-bnc__btn-primary,
.page-bnc__btn-secondary {
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-bnc__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-bnc__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

.page-bnc__btn-secondary {
  background: transparent;
  color: var(--glow-color);
  border: 2px solid var(--glow-color);
}

.page-bnc__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* General Section Styles */
.page-bnc__intro-section,
.page-bnc__promo-section,
.page-bnc__mobile-section,
.page-bnc__faq-section {
  padding: 80px 0;
  color: #333333; /* Light background, dark text */
  background-color: #ffffff;
}

.page-bnc__games-section,
.page-bnc__why-choose-section,
.page-bnc__video-section {
  padding: 80px 0;
  color: var(--text-main); /* Dark background, light text */
  background-color: var(--background-dark);
}

.page-bnc__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-bnc__dark-section .page-bnc__section-title {
  color: var(--text-main);
}

.page-bnc__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: #333333;
}

.page-bnc__dark-section .page-bnc__text-block {
  color: var(--text-secondary);
}

.page-bnc__text-main {
  color: var(--text-main);
}

.page-bnc__text-secondary {
  color: var(--text-secondary);
}

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

.page-bnc__game-card {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-bnc__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  min-height: 200px;
}

.page-bnc__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin: 0 20px 10px;
}

.page-bnc__card-link {
  color: var(--text-main);
  text-decoration: none;
}

.page-bnc__card-link:hover {
  color: var(--glow-color);
  text-decoration: underline;
}

.page-bnc__card-description {
  font-size: 0.95em;
  color: var(--text-secondary);
  margin: 0 20px 20px;
  flex-grow: 1;
}

.page-bnc__card-btn {
  display: inline-block;
  margin: 0 20px;
  width: calc(100% - 40px);
}

.page-bnc__view-all-games-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Promo Section */
.page-bnc__promo-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-bnc__promo-text-block,
.page-bnc__promo-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-bnc__promo-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-height: 200px;
}

.page-bnc__promo-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-bnc__promo-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%2311A84E"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #333333;
  font-size: 1.05em;
}

/* Why Choose Section */
.page-bnc__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-bnc__feature-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
}

/* Mobile Section */
.page-bnc__mobile-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap-reverse;
}

.page-bnc__mobile-text-block,
.page-bnc__mobile-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-bnc__mobile-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-height: 200px;
}

.page-bnc__mobile-features {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-bnc__mobile-features li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%2311A84E"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #333333;
  font-size: 1.05em;
}

/* Video Section */
.page-bnc__video-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-bnc__video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-bnc__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-bnc__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: pointer;
}

/* FAQ Section */
.page-bnc__faq-list {
  margin-top: 40px;
}

.page-bnc__faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-bnc__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-weight: 600;
  font-size: 1.1em;
  cursor: pointer;
  background-color: #f5f5f5;
  color: var(--primary-color);
  border-bottom: 1px solid var(--border-color);
}

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

.page-bnc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-bnc__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-bnc__faq-answer {
  padding: 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #333333;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-bnc__main-title {
    font-size: 2.2em;
  }
  .page-bnc__section-title {
    font-size: 2em;
  }
  .page-bnc__hero-content {
    margin-top: -80px;
  }
}

@media (max-width: 768px) {
  .page-bnc__hero-section,
  .page-bnc__intro-section,
  .page-bnc__games-section,
  .page-bnc__promo-section,
  .page-bnc__why-choose-section,
  .page-bnc__mobile-section,
  .page-bnc__video-section,
  .page-bnc__faq-section {
    padding: 40px 0;
  }

  .page-bnc__hero-content {
    padding: 20px;
    margin-top: -60px;
  }
  
  .page-bnc__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
    margin-bottom: 15px;
  }

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

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

  .page-bnc__btn-primary,
  .page-bnc__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
    margin-left: 0;
    margin-right: 0;
  }

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

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

  .page-bnc__promo-content,
  .page-bnc__mobile-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .page-bnc__promo-text-block,
  .page-bnc__promo-image-wrapper,
  .page-bnc__mobile-text-block,
  .page-bnc__mobile-image-wrapper {
    min-width: unset;
    width: 100%;
  }

  .page-bnc__text-block,
  .page-bnc__promo-list li,
  .page-bnc__mobile-features li,
  .page-bnc__faq-answer {
    font-size: 1em;
  }

  /* Mobile image responsiveness */
  .page-bnc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-bnc__section,
  .page-bnc__card,
  .page-bnc__container,
  .page-bnc__hero-section,
  .page-bnc__intro-section,
  .page-bnc__games-section,
  .page-bnc__promo-section,
  .page-bnc__why-choose-section,
  .page-bnc__mobile-section,
  .page-bnc__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Mobile video responsiveness */
  .page-bnc video,
  .page-bnc__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-bnc__video-section {
    padding-top: 10px !important; /* body đã承担 --header-offset */
  }

  .page-bnc__video-container,
  .page-bnc__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-bnc__video-container {
      padding-bottom: 56.25% !important; /* Maintain aspect ratio */
  }
  .page-bnc__video-overlay-link {
      cursor: pointer;
  }

  .page-bnc__faq-item summary {
    font-size: 1em;
    padding: 15px;
  }
  .page-bnc__faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-bnc__hero-content {
    margin-top: -40px;
  }
  .page-bnc__main-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }
  .page-bnc__section-title {
    font-size: 1.5em;
  }
}