/* style/bnc.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-dark: #0a0a0a; /* Body background from shared.css */
  --background-light: #ffffff;
  --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
}

.page-bnc {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--background-dark); /* Ensure consistency if main has its own bg */
}

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

/* Hero Section */
.page-bnc__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 600px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: var(--primary-color);
}

.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;
  color: var(--text-light);
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
}

.page-bnc__main-title {
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  /* No fixed font-size, rely on clamp if needed, otherwise responsive media queries */
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

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

/* Sections General */
.page-bnc__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-bnc__section-text {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: justify;
}

.page-bnc__image-content {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Light Background Sections */
.page-bnc__light-bg {
  background-color: var(--background-light);
  color: var(--text-dark);
  padding: 60px 0;
}

.page-bnc__light-bg .page-bnc__section-title,
.page-bnc__light-bg .page-bnc__section-text,
.page-bnc__light-bg .page-bnc__feature-title,
.page-bnc__light-bg .page-bnc__feature-description,
.page-bnc__light-bg .page-bnc__step-title,
.page-bnc__light-bg .page-bnc__step-description,
.page-bnc__light-bg .page-bnc__game-title,
.page-bnc__light-bg .page-bnc__game-description,
.page-bnc__light-bg .page-bnc__promotion-title,
.page-bnc__light-bg .page-bnc__promotion-description,
.page-bnc__light-bg .page-bnc__advantage-item,
.page-bnc__light-bg .page-bnc__faq-qtext,
.page-bnc__light-bg .page-bnc__faq-answer {
  color: var(--text-dark);
}

.page-bnc__light-bg .page-bnc__faq-item summary {
  background-color: #f0f0f0;
}

/* Dark Background Sections */
.page-bnc__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 60px 0;
}

.page-bnc__dark-bg .page-bnc__section-title,
.page-bnc__dark-bg .page-bnc__section-text,
.page-bnc__dark-bg .page-bnc__feature-title,
.page-bnc__dark-bg .page-bnc__feature-description,
.page-bnc__dark-bg .page-bnc__step-title,
.page-bnc__dark-bg .page-bnc__step-description,
.page-bnc__dark-bg .page-bnc__game-title,
.page-bnc__dark-bg .page-bnc__game-description,
.page-bnc__dark-bg .page-bnc__promotion-title,
.page-bnc__dark-bg .page-bnc__promotion-description,
.page-bnc__dark-bg .page-bnc__advantage-item,
.page-bnc__dark-bg .page-bnc__faq-qtext,
.page-bnc__dark-bg .page-bnc__faq-answer {
  color: var(--text-light);
}

.page-bnc__dark-bg .page-bnc__faq-item summary {
  background-color: var(--card-bg-dark-mode);
}

/* Buttons */
.page-bnc__btn-primary,
.page-bnc__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-bnc__btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
  margin: 10px;
}

.page-bnc__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
}

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

.page-bnc__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.page-bnc__hero-content .page-bnc__btn-primary {
  background-color: var(--login-color);
  border-color: var(--login-color);
  color: var(--secondary-color);
}

.page-bnc__hero-content .page-bnc__btn-primary:hover {
  background-color: darken(var(--login-color), 10%);
  border-color: darken(var(--login-color), 10%);
}

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

.page-bnc__feature-card {
  background-color: var(--card-bg-dark-mode);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-bnc__feature-card:hover {
  transform: translateY(-5px);
}

.page-bnc__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-bnc__feature-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-bnc__feature-description {
  font-size: 1rem;
  line-height: 1.5;
}

/* How to Play Steps */
.page-bnc__steps-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-bnc__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.page-bnc__step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  margin-right: 20px;
  flex-shrink: 0;
}

.page-bnc__step-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.page-bnc__step-description {
  font-size: 1rem;
}

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

.page-bnc__game-card {
  background-color: var(--card-bg-dark-mode);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-bnc__game-card:hover {
  transform: translateY(-5px);
}

.page-bnc__game-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-bnc__game-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-bnc__game-link {
  color: var(--primary-color);
  text-decoration: none;
}

.page-bnc__game-link:hover {
  text-decoration: underline;
}

.page-bnc__game-description {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

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

.page-bnc__promotion-card {
  background-color: var(--background-light);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-bnc__promotion-card:hover {
  transform: translateY(-5px);
}

.page-bnc__promotion-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-bnc__promotion-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.page-bnc__promotion-description {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
  color: var(--text-dark);
}

/* Why Choose Section */
.page-bnc__advantages-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  font-size: 1.1rem;
  text-align: left;
}

.page-bnc__advantage-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
}

.page-bnc__advantage-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

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

.page-bnc__faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-bnc__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  background-color: #f8f8f8;
  color: var(--text-dark);
  list-style: none; /* Hide default marker */
}

.page-bnc__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-bnc__faq-qtext {
  flex-grow: 1;
  color: var(--text-dark);
}

.page-bnc__faq-toggle {
  font-size: 1.8rem;
  font-weight: normal;
  line-height: 1;
  color: var(--primary-color);
  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: 15px 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  border-top: 1px solid #eee;
}

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

.page-bnc__faq-answer a:hover {
  text-decoration: underline;
}

/* Final CTA */
.page-bnc__cta-final {
  text-align: center;
  padding: 80px 0;
}

.page-bnc__cta-final .page-bnc__btn-primary,
.page-bnc__cta-final .page-bnc__btn-secondary {
  margin: 10px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-bnc__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-bnc__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-bnc__hero-section {
    min-height: 450px;
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

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

  .page-bnc__hero-description {
    font-size: 1rem;
  }

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

  .page-bnc__section-text,
  .page-bnc__advantage-item,
  .page-bnc__feature-description,
  .page-bnc__step-description,
  .page-bnc__game-description,
  .page-bnc__promotion-description,
  .page-bnc__faq-answer {
    font-size: 0.95rem;
  }

  .page-bnc__btn-primary,
  .page-bnc__btn-secondary {
    padding: 12px 20px;
    font-size: 0.95rem;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 8px 0;
  }

  .page-bnc__hero-content .page-bnc__btn-primary {
    width: auto !important; /* Allow hero CTA to size naturally if not full width */
    max-width: 80% !important;
  }

  .page-bnc__cta-final .page-bnc__btn-primary,
  .page-bnc__cta-final .page-bnc__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-bnc__cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

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

  .page-bnc__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-bnc__step-item::before {
    margin-right: 0;
    margin-bottom: 15px;
  }

  /* Images and containers for mobile */
  .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__features-section,
  .page-bnc__how-to-play-section,
  .page-bnc__popular-games-section,
  .page-bnc__promotions-section,
  .page-bnc__why-choose-section,
  .page-bnc__faq-section,
  .page-bnc__cta-final,
  .page-bnc__hero-section .page-bnc__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-bnc__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1rem;
  }

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