/* style/bnc.css */

/* Custom Colors */
:root {
  --color-primary: #11A84E; /* Main Color */
  --color-secondary: #22C768; /* Auxiliary Color */
  --color-button-gradient-start: #2AD16F;
  --color-button-gradient-end: #13994A;
  --color-card-bg: #11271B;
  --color-background: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-deep-green: #0A4B2C;
}

/* General Page Styles */
.page-bnc {
  background-color: var(--color-background);
  color: var(--color-text-main); /* Dark background, so light text */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-bnc__hero-video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: block;
  z-index: 1; /* Ensure video is behind content but clickable */
}

.page-bnc__hero-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-bnc__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
}

.page-bnc__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  padding: 30px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.page-bnc__main-title {
  font-size: clamp(2em, 5vw, 3.5em);
  color: var(--color-gold);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 0 10px var(--color-primary);
}

.page-bnc__intro-text {
  font-size: 1.2em;
  color: var(--color-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-bnc__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-bnc__btn-primary,
.page-bnc__btn-secondary,
.page-bnc__btn-play,
.page-bnc__btn-view-details {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
  word-wrap: break-word; /* Allow text to wrap if it's too long */
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-bnc__btn-primary {
  background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
  color: #ffffff;
  border: 2px solid var(--color-button-gradient-start);
}

.page-bnc__btn-primary:hover {
  background: linear-gradient(180deg, var(--color-button-gradient-end) 0%, var(--color-button-gradient-start) 100%);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(var(--color-primary), 0.4);
}

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

.page-bnc__btn-secondary:hover {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(var(--color-primary), 0.4);
}

.page-bnc__btn-play {
  background: var(--color-gold);
  color: var(--color-background);
  border: 2px solid var(--color-gold);
  padding: 10px 20px;
  border-radius: 25px;
}

.page-bnc__btn-play:hover {
  background: var(--color-gold);
  filter: brightness(1.1);
}

.page-bnc__btn-view-details {
  background: var(--color-deep-green);
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9em;
}

.page-bnc__btn-view-details:hover {
  background: var(--color-primary);
}

/* Sections */
.page-bnc__section-title {
  font-size: 2.5em;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 0 5px rgba(var(--color-gold), 0.5);
}

.page-bnc__section-description {
  font-size: 1.1em;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-bnc__dark-bg {
  background-color: var(--color-card-bg); /* Dark background for sections */
  padding: 60px 20px;
}

.page-bnc__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

/* Features Section */
.page-bnc__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

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

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

.page-bnc__feature-icon {
  width: 200px; /* Min size requirement 200x200 */
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 10px;
  border: 1px solid var(--color-divider);
}

.page-bnc__feature-title {
  font-size: 1.5em;
  color: var(--color-primary);
  margin-bottom: 10px;
  font-weight: 600;
}

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

/* Popular Games Section */
.page-bnc__popular-games-section {
  padding: 60px 20px;
}
.page-bnc__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-bnc__game-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--color-text-main);
}

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

.page-bnc__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 1px solid var(--color-divider);
}

.page-bnc__game-title {
  font-size: 1.6em;
  color: var(--color-gold);
  padding: 15px 20px 5px;
  font-weight: 600;
}

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

.page-bnc__game-card .page-bnc__btn-play {
  margin: 0 20px 20px;
  text-align: center;
}

/* How to Play Section */
.page-bnc__how-to-play-section {
  padding: 60px 20px;
}

.page-bnc__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-bnc__step-card {
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: var(--color-text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-bnc__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--color-gold);
  background: var(--color-deep-green);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 2px solid var(--color-gold);
}

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

.page-bnc__step-description {
  font-size: 0.95em;
  color: var(--color-text-secondary);
}

/* Tips Section */
.page-bnc__tips-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

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

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

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

/* Promotions Section */
.page-bnc__promotions-section {
  padding: 60px 20px;
}

.page-bnc__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-bnc__promotion-card {
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--color-text-main);
}

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

.page-bnc__promotion-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 1px solid var(--color-divider);
}

.page-bnc__promotion-title {
  font-size: 1.4em;
  color: var(--color-primary);
  padding: 15px 20px 5px;
  font-weight: 600;
}

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

.page-bnc__promotion-card .page-bnc__btn-view-details {
  margin: 0 20px 20px;
  text-align: center;
}

/* FAQ Section */
.page-bnc__faq-section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

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

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

.page-bnc__faq-item summary {
  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-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-primary);
  background-color: var(--color-deep-green);
  border-bottom: 1px solid var(--color-divider);
}

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

.page-bnc__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  margin-left: 10px;
}

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

/* Final CTA Section */
.page-bnc__final-cta-section {
  padding: 60px 20px;
  text-align: center;
}

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

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

@media (max-width: 768px) {
  /* Ensure all images are responsive */
  .page-bnc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all videos are responsive */
  .page-bnc video,
  .page-bnc__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video container responsive */
  .page-bnc__hero-video-wrapper,
  .page-bnc__hero-video-link {
    max-width: 100% !important;
    width: 100% !important;
    height: 300px !important; /* Adjust height for mobile video */
    position: relative !important;
    overflow: hidden !important;
  }
  .page-bnc__hero-video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
  }

  /* Section containers responsive */
  .page-bnc__hero-section,
  .page-bnc__features-section,
  .page-bnc__popular-games-section,
  .page-bnc__how-to-play-section,
  .page-bnc__tips-section,
  .page-bnc__promotions-section,
  .page-bnc__faq-section,
  .page-bnc__final-cta-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Buttons responsive */
  .page-bnc__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }

  .page-bnc__btn-primary,
  .page-bnc__btn-secondary,
  .page-bnc__btn-play,
  .page-bnc__btn-view-details {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }

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

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

  .page-bnc__intro-text {
    font-size: 1em;
  }

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

  .page-bnc__section-description {
    font-size: 0.95em;
  }

  .page-bnc__feature-icon {
    width: 150px;
    height: 150px;
  }

  .page-bnc__game-image {
    height: 180px;
  }
  
  .page-bnc__promotion-image {
    height: 150px;
  }

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

  .page-bnc__faq-answer {
    font-size: 0.9em;
    padding: 15px;
  }

  .page-bnc__hero-section {
    padding-top: 10px !important; /* Ensure small top padding on mobile */
  }
}

/* Ensure content area images are at least 200px */
.page-bnc img:not(.page-bnc__feature-icon) {
  min-width: 200px;
  min-height: 200px;
}

.page-bnc__feature-icon {
  width: 200px;
  height: 200px;
}

/* Color Contrast Fixes based on dark background */
.page-bnc {
  color: var(--color-text-main); /* #F2FFF6 */
}

.page-bnc__card,
.page-bnc__feature-card,
.page-bnc__game-card,
.page-bnc__step-card,
.page-bnc__tip-item,
.page-bnc__promotion-card,
.page-bnc__faq-item {
  background-color: var(--color-card-bg); /* #11271B */
  color: var(--color-text-main); /* #F2FFF6 */
}

.page-bnc__faq-answer {
  background-color: var(--color-background); /* #08160F */
  color: var(--color-text-secondary); /* #A7D9B8 */
}

/* Specific text elements for contrast */
.page-bnc__section-description,
.page-bnc__feature-description,
.page-bnc__game-description,
.page-bnc__step-description,
.page-bnc__tip-description,
.page-bnc__promotion-description {
  color: var(--color-text-secondary); /* #A7D9B8 */
}

/* Links for contrast */
.page-bnc a {
  color: var(--color-gold); /* #F2C14E for links in text */
}
.page-bnc a:hover {
  color: var(--color-primary); /* #11A84E on hover */
}