/* style/bnc.css */

/* Base styles for the page */
.page-bnc {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main for dark background */
  background-color: #08160F; /* Background color */
}

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

.page-bnc__section {
  padding: 60px 0;
  text-align: center;
}

.page-bnc__dark-section {
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6;
}

.page-bnc__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #F2C14E; /* Gold */
  font-weight: bold;
  letter-spacing: 1px;
}

.page-bnc__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #F2FFF6; /* Text Main */
}

/* Hero Section */
.page-bnc__hero-section {
  position: relative;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70vh;
  overflow: hidden;
}

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

.page-bnc__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image slightly for text readability */
}

.page-bnc__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-bnc__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.page-bnc__description {
  font-size: 1.2em;
  color: #F2FFF6; /* Text Main */
  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 {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-bnc__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-bnc__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px #57E38D;
}

.page-bnc__btn-secondary {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2E7A4E; /* Border */
}

.page-bnc__btn-secondary:hover {
  background-color: #2E7A4E; /* Border */
  color: #F2C14E; /* Gold */
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.5);
}

/* Intro Section */
.page-bnc__intro-section {
  background-color: #08160F;
}

/* Features Section */
.page-bnc__features-section {
  background-color: #0A4B2C;
}

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

.page-bnc__feature-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E;
  color: #F2FFF6;
}

.page-bnc__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.page-bnc__feature-icon {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-bnc__card-title {
  font-size: 1.5em;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-bnc__card-text {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

/* Game Types Section */
.page-bnc__game-types-section {
  background-color: #08160F;
}

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

.page-bnc__game-item {
  background-color: #11271B;
  border-radius: 8px;
  padding: 25px;
  text-align: left;
  border: 1px solid #2E7A4E;
}

.page-bnc__list-title {
  font-size: 1.3em;
  color: #22C768; /* Auxiliary color */
  margin-bottom: 10px;
}

.page-bnc__list-text {
  color: #A7D9B8; /* Text Secondary */
}

/* How to Play Section */
.page-bnc__how-to-play-section {
  background-color: #0A4B2C;
}

.page-bnc__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-bnc__step-item {
  background-color: #11271B;
  border-radius: 8px;
  padding: 30px;
  text-align: left;
  border: 1px solid #2E7A4E;
  position: relative;
  counter-increment: step-counter;
}

.page-bnc__step-item::before {
  content: "Bước " counter(step-counter);
  position: absolute;
  top: -15px;
  left: 20px;
  background-color: #F2C14E;
  color: #08160F;
  padding: 5px 15px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.9em;
}

/* Tips Section */
.page-bnc__tips-section {
  background-color: #08160F;
}

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

.page-bnc__tip-item {
  background-color: #11271B;
  border-radius: 8px;
  padding: 25px;
  text-align: left;
  border: 1px solid #2E7A4E;
}

/* Security Section */
.page-bnc__security-section {
  background-color: #0A4B2C;
}

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

.page-bnc__security-item {
  background-color: #11271B;
  border-radius: 8px;
  padding: 25px;
  text-align: left;
  border: 1px solid #2E7A4E;
}

/* Promotions Section */
.page-bnc__promotions-section {
  background-color: #08160F;
}

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

.page-bnc__promo-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E;
  color: #F2FFF6;
}

.page-bnc__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.page-bnc__promo-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-bnc__cta-buttons--center {
  margin-top: 40px;
}

/* FAQ Section */
.page-bnc__faq-section {
  background-color: #0A4B2C;
}

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

.page-bnc__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6;
}

.page-bnc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  color: #F2C14E; /* Gold */
  background-color: #1E3A2A; /* Divider */
  list-style: none;
}

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

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

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

.page-bnc__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  text-align: left;
}

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

/* Final CTA Section */
.page-bnc__cta-section .page-bnc__container {
  background-color: #0A4B2C;
  padding: 60px 20px;
  border-radius: 10px;
  border: 2px solid #2E7A4E;
}

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

  .page-bnc__text-block, .page-bnc__description {
    font-size: 1em;
  }

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

@media (max-width: 768px) {
  .page-bnc__hero-section {
    min-height: 60vh;
  }

  .page-bnc__hero-content {
    padding: 20px;
  }

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

  .page-bnc__description {
    font-size: 0.95em;
  }

  .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: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-bnc__section {
    padding: 40px 0;
  }

  .page-bnc__section-title {
    font-size: 1.8em;
  }

  .page-bnc__text-block, .page-bnc__description, .page-bnc__card-text, .page-bnc__list-text, .page-bnc__faq-answer p {
    font-size: 0.9em;
  }

  .page-bnc__feature-grid, .page-bnc__promo-grid, .page-bnc__game-list, .page-bnc__tip-list, .page-bnc__security-list {
    grid-template-columns: 1fr;
  }

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

  .page-bnc__card-title, .page-bnc__list-title {
    font-size: 1.3em;
  }

  .page-bnc__step-item {
    padding: 25px;
  }
  
  .page-bnc__step-item::before {
    top: -12px;
    left: 15px;
    font-size: 0.8em;
  }

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

  .page-bnc__faq-answer {
    padding: 10px 20px 15px;
  }
  
  /* Images responsiveness */
  .page-bnc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Image containers responsiveness */
  .page-bnc__section,
  .page-bnc__card,
  .page-bnc__container,
  .page-bnc__feature-card,
  .page-bnc__promo-card,
  .page-bnc__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure content does not overflow */
  }

  /* Specific padding for content containers on mobile */
  .page-bnc__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Video section top padding on mobile */
  .page-bnc__video-section {
    padding-top: 10px !important; 
  }
}

@media (max-width: 480px) {
  .page-bnc__hero-content {
    padding: 15px;
  }
  .page-bnc__main-title {
    font-size: clamp(1.5em, 8vw, 2.2em);
  }
  .page-bnc__description {
    font-size: 0.85em;
  }
  .page-bnc__section-title {
    font-size: 1.5em;
  }
  .page-bnc__btn-primary,
  .page-bnc__btn-secondary {
    padding: 10px 15px;
    font-size: 0.9em;
  }
  .page-bnc__faq-question {
    font-size: 1em;
  }
}