/* style/bnc.css */

/* Custom Colors from palette */
:root {
  --page-bnc-background: #08160F;
  --page-bnc-card-bg: #11271B;
  --page-bnc-text-main: #F2FFF6;
  --page-bnc-text-secondary: #A7D9B8;
  --page-bnc-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-bnc-border: #2E7A4E;
  --page-bnc-glow: #57E38D;
  --page-bnc-gold: #F2C14E;
  --page-bnc-divider: #1E3A2A;
  --page-bnc-deep-green: #0A4B2C;
}

.page-bnc {
  background-color: var(--page-bnc-background);
  color: var(--page-bnc-text-main); /* Default text color for the page */
  font-family: 'Arial', sans-serif; /* Example font */
  line-height: 1.6;
}

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

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

.page-bnc__dark-section {
  background-color: var(--page-bnc-deep-green); /* Using a slightly different dark green for contrast */
}

.page-bnc__section-title {
  font-size: clamp(2em, 4vw, 2.8em); /* H2 size, clamped */
  color: var(--page-bnc-gold);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-bnc__section-description,
.page-bnc__paragraph {
  font-size: 1.1em;
  color: var(--page-bnc-text-secondary);
  max-width: 800px;
  margin: 0 auto 30px;
}

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

.page-bnc__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit hero image height */
  overflow: hidden;
}

.page-bnc__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
  min-width: 200px;
  min-height: 200px;
}

.page-bnc__hero-content {
  position: relative; /* Relative to hero section, not absolutely over image */
  z-index: 10;
  max-width: 900px;
  margin-top: 40px; /* Spacing between image and content */
  padding: 0 20px;
}

.page-bnc__hero-title {
  font-size: clamp(2.5em, 5.5vw, 3.8em); /* H1 size, clamped */
  color: var(--page-bnc-text-main);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-bnc__hero-description {
  font-size: clamp(1.1em, 2vw, 1.4em);
  color: var(--page-bnc-text-secondary);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-bnc__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Ensure buttons wrap on small screens */
}

/* Buttons */
.page-bnc__btn-primary,
.page-bnc__btn-secondary,
.page-bnc__btn-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* For mobile responsiveness */
  white-space: normal;
  word-wrap: break-word;
}

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

.page-bnc__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.page-bnc__btn-secondary {
  background: transparent;
  color: var(--page-bnc-glow);
  border: 2px solid var(--page-bnc-glow);
  box-shadow: 0 2px 10px rgba(87, 227, 141, 0.2);
}

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

.page-bnc__btn-text-link {
  color: var(--page-bnc-gold);
  background: none;
  border: none;
  padding: 5px 0;
  font-size: 1em;
  text-decoration: underline;
}

.page-bnc__btn-text-link:hover {
  color: var(--page-bnc-glow);
}

.page-bnc__btn-primary--small,
.page-bnc__btn-secondary--small {
  padding: 10px 20px;
  font-size: 0.95em;
}

/* Image content */
.page-bnc__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

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

.page-bnc__card {
  background-color: var(--page-bnc-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--page-bnc-border);
  color: var(--page-bnc-text-main); /* Ensure text is visible on card background */
  min-width: 200px;
  min-height: 200px;
}

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

.page-bnc__card-text {
  font-size: 1em;
  color: var(--page-bnc-text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

.page-bnc__card--promo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

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

/* Steps List */
.page-bnc__steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-bnc__step-item {
  background-color: var(--page-bnc-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border: 1px solid var(--page-bnc-border);
  min-width: 200px;
  min-height: 200px;
}

.page-bnc__step-title {
  font-size: 1.4em;
  color: var(--page-bnc-gold);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-bnc__step-text {
  font-size: 1em;
  color: var(--page-bnc-text-secondary);
  line-height: 1.6;
}

/* 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-item {
  background-color: var(--page-bnc-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  text-align: left;
  border: 1px solid var(--page-bnc-border);
  min-width: 200px;
  min-height: 200px;
}

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

.page-bnc__feature-text {
  font-size: 1em;
  color: var(--page-bnc-text-secondary);
  line-height: 1.6;
}

/* List styles */
.page-bnc__list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  max-width: 800px;
  text-align: left;
}

.page-bnc__list-item {
  background-color: var(--page-bnc-card-bg);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  border-left: 5px solid var(--page-bnc-gold);
  font-size: 1.1em;
  color: var(--page-bnc-text-main);
  min-width: 200px;
  min-height: 200px;
}

.page-bnc__list-item strong {
  color: var(--page-bnc-glow);
}


/* FAQ Section */
.page-bnc__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

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

.page-bnc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--page-bnc-gold);
  cursor: pointer;
  border-bottom: 1px solid var(--page-bnc-divider);
  transition: all 0.3s ease;
  list-style: none; /* Remove default marker for details summary */
}

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

.page-bnc__faq-item[open] .page-bnc__faq-question {
  border-bottom-color: transparent;
}

.page-bnc__faq-qtext {
  flex-grow: 1;
}

.page-bnc__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-bnc-glow);
}

.page-bnc__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--page-bnc-text-secondary);
  line-height: 1.6;
}

.page-bnc__faq-answer p {
  margin-top: 15px;
}

.page-bnc__faq-answer .page-bnc__btn-text-link {
  margin-top: 10px;
  display: inline-block;
}

/* Center CTA Buttons */
.page-bnc__cta-buttons--center {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-bnc__hero-image {
    max-height: 500px;
  }
  .page-bnc__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
  }
  .page-bnc__hero-title {
    font-size: clamp(2.2em, 5vw, 3.2em);
  }
}

@media (max-width: 768px) {
  .page-bnc__section {
    padding: 40px 0;
  }
  .page-bnc__hero-section {
    padding-bottom: 40px;
  }
  .page-bnc__hero-image {
    max-height: 350px;
  }
  .page-bnc__hero-content {
    margin-top: 20px;
  }
  .page-bnc__hero-title {
    font-size: clamp(2em, 6vw, 2.8em);
  }
  .page-bnc__hero-description {
    font-size: clamp(1em, 2.5vw, 1.2em);
    margin-bottom: 20px;
  }
  .page-bnc__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-bnc__btn-primary,
  .page-bnc__btn-secondary,
  .page-bnc a[class*="button"],
  .page-bnc a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-bnc__cta-buttons,
  .page-bnc__button-group,
  .page-bnc__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-bnc__cta-buttons {
    flex-direction: column;
  }

  /* Images responsive */
  .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__image-content,
  .page-bnc__promo-grid,
  .page-bnc__grid-cards,
  .page-bnc__steps-list,
  .page-bnc__features-grid,
  .page-bnc__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent overflow for containers */
  }
  .page-bnc__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-left: 0 !important; /* Resetting padding for hero */
    padding-right: 0 !important;
  }
  .page-bnc__hero-content {
    padding-left: 15px !important; /* Ensure content is padded */
    padding-right: 15px !important;
  }

  /* FAQ */
  .page-bnc__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-bnc__faq-answer {
    padding: 0 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-bnc__section-title {
    font-size: 1.8em;
  }
  .page-bnc__hero-title {
    font-size: 2em;
  }
  .page-bnc__hero-description {
    font-size: 1em;
  }
  .page-bnc__btn-primary,
  .page-bnc__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
  }
}

/* Ensure content area images are not too small */
.page-bnc__content-area img,
.page-bnc__intro-section img,
.page-bnc__game-types-section img,
.page-bnc__promotions-section img,
.page-bnc__features-section img {
  min-width: 200px;
  min-height: 200px;
}