/* style/bnc.css */

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

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

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

.page-bnc__section-title {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  color: var(--page-bnc-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.3;
}

.page-bnc__text-block {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--page-bnc-text-secondary);
  text-align: center;
}

.page-bnc__text-block a {
  color: var(--page-bnc-gold);
  text-decoration: none;
  font-weight: bold;
}

.page-bnc__text-block a:hover {
  text-decoration: underline;
}

.page-bnc__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
}

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

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

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

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

.page-bnc__center-button {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

/* Hero Section */
.page-bnc__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small padding, body takes --header-offset */
  padding-bottom: 60px;
  background-color: var(--page-bnc-deep-green);
}

.page-bnc__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.page-bnc__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.8); /* Slightly dim the image for text contrast */
}

.page-bnc__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up over the image a bit for visual flow */
  background: linear-gradient(180deg, rgba(8, 22, 15, 0.8) 0%, var(--page-bnc-background) 100%);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-bnc__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--page-bnc-gold);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.page-bnc__hero-description {
  font-size: 1.1rem;
  color: var(--page-bnc-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* General Section Styling */
.page-bnc__intro-section,
.page-bnc__why-pub88-section,
.page-bnc__popular-games-section,
.page-bnc__how-to-play-section,
.page-bnc__tips-section,
.page-bnc__promotions-section,
.page-bnc__responsible-gaming-section,
.page-bnc__faq-section,
.page-bnc__final-cta-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--page-bnc-divider);
}

.page-bnc__dark-section {
  background-color: var(--page-bnc-card-bg);
}

.page-bnc__dark-section .page-bnc__section-title {
  color: var(--page-bnc-gold);
}

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

.page-bnc__dark-section .page-bnc__text-block a {
  color: var(--page-bnc-gold);
}

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

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

.page-bnc__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-bnc__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--page-bnc-border);
}

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

.page-bnc__card-description {
  font-size: 0.95rem;
  color: var(--page-bnc-text-secondary);
  line-height: 1.7;
}

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

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

.page-bnc__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-bnc__game-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--page-bnc-border);
}

.page-bnc__game-title {
  font-size: 1.5rem;
  color: var(--page-bnc-gold);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-bnc__game-description {
  font-size: 0.95rem;
  color: var(--page-bnc-text-secondary);
  line-height: 1.6;
  margin-bottom: 25px;
}

/* How to Play Section */
.page-bnc__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-bnc__step-item {
  background-color: var(--page-bnc-card-bg);
  border: 1px solid var(--page-bnc-border);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

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

.page-bnc__step-item p {
  font-size: 1rem;
  color: var(--page-bnc-text-secondary);
  line-height: 1.7;
}

.page-bnc__step-item p a {
  color: var(--page-bnc-gold);
  text-decoration: none;
  font-weight: bold;
}

.page-bnc__step-item p a:hover {
  text-decoration: underline;
}

/* Tips Section */
.page-bnc__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-bnc__tip-item p {
  font-size: 1rem;
  color: var(--page-bnc-text-secondary);
  line-height: 1.7;
}

.page-bnc__image-section {
  text-align: center;
  margin-top: 50px;
}

.page-bnc__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--page-bnc-border);
}

/* Responsible Gaming Section */
.page-bnc__responsible-gaming-section .page-bnc__text-block a {
  color: var(--page-bnc-gold);
  text-decoration: underline;
}

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

.page-bnc__faq-item {
  background-color: var(--page-bnc-card-bg);
  border: 1px solid var(--page-bnc-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-bnc__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--page-bnc-gold);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-bnc__faq-item summary:hover {
  background-color: rgba(var(--page-bnc-primary-color), 0.2);
}

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

.page-bnc__faq-toggle {
  font-size: 1.5rem;
  margin-left: 15px;
  color: var(--page-bnc-gold);
}

.page-bnc__faq-item[open] .page-bnc__faq-toggle {
  content: '−';
}

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

.page-bnc__faq-answer p {
  margin-top: 10px;
  margin-bottom: 0;
}

.page-bnc__faq-answer a {
  color: var(--page-bnc-gold);
  text-decoration: none;
  font-weight: bold;
}

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

/* Final CTA Section */
.page-bnc__final-cta-section {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 80px;
  background-color: var(--page-bnc-deep-green);
}

.page-bnc__final-cta-section .page-bnc__section-title {
  color: var(--page-bnc-gold);
}

.page-bnc__final-cta-section .page-bnc__text-block {
  color: var(--page-bnc-text-main);
  margin-bottom: 40px;
}

.page-bnc__final-cta-section .page-bnc__hero-buttons {
  margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-bnc__hero-content {
    margin-top: -80px;
    padding: 30px 20px;
  }
  .page-bnc__hero-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
  }
  .page-bnc__hero-description {
    font-size: 1rem;
  }
  .page-bnc__section-title {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  }
  .page-bnc__card-title, .page-bnc__game-title, .page-bnc__step-title, .page-bnc__tip-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .page-bnc__hero-section {
    padding-bottom: 40px;
  }
  .page-bnc__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
    border-radius: 10px;
  }
  .page-bnc__hero-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }
  .page-bnc__hero-description {
    font-size: 0.95rem;
  }
  .page-bnc__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-bnc__cta-button {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-bnc__intro-section,
  .page-bnc__why-pub88-section,
  .page-bnc__popular-games-section,
  .page-bnc__how-to-play-section,
  .page-bnc__tips-section,
  .page-bnc__promotions-section,
  .page-bnc__responsible-gaming-section,
  .page-bnc__faq-section,
  .page-bnc__final-cta-section {
    padding: 50px 0;
  }
  .page-bnc__container {
    padding: 0 15px;
  }
  .page-bnc__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 30px;
  }
  .page-bnc__text-block {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  .page-bnc__benefit-grid, .page-bnc__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-bnc__card, .page-bnc__game-card, .page-bnc__step-item, .page-bnc__tip-item, .page-bnc__faq-item {
    padding: 20px;
    border-radius: 10px;
  }
  .page-bnc__card-image, .page-bnc__game-image {
    height: 180px;
    border-radius: 8px;
  }
  .page-bnc__card-title, .page-bnc__game-title, .page-bnc__step-title, .page-bnc__tip-title {
    font-size: 1.1rem;
  }
  .page-bnc__card-description, .page-bnc__game-description, .page-bnc__step-item p, .page-bnc__tip-item p {
    font-size: 0.85rem;
  }
  .page-bnc__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-bnc__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.9rem;
  }

  /* Mobile image responsiveness */
  .page-bnc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile container responsiveness */
  .page-bnc__hero-section,
  .page-bnc__intro-section,
  .page-bnc__why-pub88-section,
  .page-bnc__popular-games-section,
  .page-bnc__how-to-play-section,
  .page-bnc__tips-section,
  .page-bnc__promotions-section,
  .page-bnc__responsible-gaming-section,
  .page-bnc__faq-section,
  .page-bnc__final-cta-section,
  .page-bnc__container,
  .page-bnc__benefit-grid,
  .page-bnc__game-grid,
  .page-bnc__hero-buttons,
  .page-bnc__center-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific padding for sections if needed, ensure it doesn't double up */
  .page-bnc__hero-section { /* already has padding-top: 10px; */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-bnc__hero-image-wrapper { /* covers full width */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}