/* style/ban-ca.css */

:root {
  --nwe88-main-color: #113B7A;
  --nwe88-accent-color: #1D5FD1;
  --nwe88-button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --nwe88-card-bg: #10233F;
  --nwe88-text-main: #F3F8FF;
  --nwe88-text-secondary: #AFC4E8;
  --nwe88-border-color: #244D84;
  --nwe88-glow-color: #4FA8FF;
  --nwe88-gold-color: #F2C14E;
  --nwe88-divider-color: #1B3357;
  --nwe88-deep-navy: #08162B;
}

.page-ban-ca {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--nwe88-text-main); /* Default text color for the page */
  background-color: var(--nwe88-deep-navy); /* Based on body background being dark */
}

/* Hero Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, relies on body padding-top for header offset */
  padding-bottom: 60px;
  background-color: var(--nwe88-deep-navy);
  color: var(--nwe88-text-main);
}

.page-ban-ca__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 40px 20px;
  gap: 40px;
}

.page-ban-ca__hero-content {
  flex: 1 1 500px;
  text-align: left;
}

.page-ban-ca__main-title {
  font-size: 3.2em;
  font-weight: 700;
  line-height: 1.2;
  color: var(--nwe88-gold-color);
  margin-bottom: 20px;
  max-width: 600px;
}

.page-ban-ca__hero-description {
  font-size: 1.1em;
  color: var(--nwe88-text-secondary);
  margin-bottom: 30px;
  max-width: 600px;
}

.page-ban-ca__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__btn-play,
.page-ban-ca__btn-promo,
.page-ban-ca__btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  max-width: 100%;
}

.page-ban-ca__btn-primary {
  background: var(--nwe88-button-gradient);
  color: var(--nwe88-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-ban-ca__btn-secondary {
  background: transparent;
  color: var(--nwe88-gold-color);
  border: 2px solid var(--nwe88-gold-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__btn-secondary:hover {
  background: var(--nwe88-gold-color);
  color: var(--nwe88-deep-navy);
  transform: translateY(-2px);
}

.page-ban-ca__hero-image {
  flex: 1 1 500px;
  text-align: center;
}

.page-ban-ca__hero-side-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-ban-ca__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-ban-ca__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--nwe88-gold-color);
  text-align: center;
  margin-bottom: 20px;
}

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

/* Intro Section (Module 1) */
.page-ban-ca__intro-section {
  background-color: var(--nwe88-card-bg);
  color: var(--nwe88-text-main);
}

.page-ban-ca__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-ban-ca__feature-item {
  background-color: var(--nwe88-deep-navy);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--nwe88-border-color);
  transition: transform 0.3s ease;
}

.page-ban-ca__feature-item:hover {
  transform: translateY(-10px);
}

.page-ban-ca__icon-box-media {
  width: 200px;
  height: 200px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--nwe88-gold-color);
  box-shadow: 0 0 15px var(--nwe88-glow-color);
}

.page-ban-ca__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-ban-ca__feature-title {
  font-size: 1.6em;
  font-weight: 600;
  color: var(--nwe88-gold-color);
  margin-bottom: 15px;
}

.page-ban-ca__feature-text {
  color: var(--nwe88-text-secondary);
  font-size: 0.95em;
}

/* Game Tabs Section */
.page-ban-ca__game-tabs-section {
  background-color: var(--nwe88-deep-navy);
  color: var(--nwe88-text-main);
}

.page-ban-ca__tab-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--nwe88-divider-color);
  flex-wrap: wrap;
  gap: 10px;
}

.page-ban-ca__tab-button {
  background: transparent;
  border: none;
  padding: 15px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--nwe88-text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  outline: none;
}

.page-ban-ca__tab-button:hover,
.page-ban-ca__tab-button.is-active {
  color: var(--nwe88-gold-color);
}

.page-ban-ca__tab-button.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background: var(--nwe88-gold-color);
}

.page-ban-ca__game-panel {
  display: none;
}

.page-ban-ca__game-panel.is-active {
  display: block;
}

.page-ban-ca__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.page-ban-ca__game-card {
  background-color: var(--nwe88-card-bg);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--nwe88-border-color);
  transition: transform 0.3s ease;
}

.page-ban-ca__game-card:hover {
  transform: translateY(-10px);
}

.page-ban-ca__game-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-ban-ca__game-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--nwe88-gold-color);
  margin-bottom: 10px;
}

.page-ban-ca__game-text {
  color: var(--nwe88-text-secondary);
  font-size: 0.95em;
  margin-bottom: 20px;
}

.page-ban-ca__btn-play {
  background: var(--nwe88-button-gradient);
  color: var(--nwe88-text-main);
  border: none;
  padding: 10px 25px;
  font-size: 1em;
  border-radius: 6px;
}

.page-ban-ca__btn-play:hover {
  opacity: 0.9;
}

/* Guide Section */
.page-ban-ca__guide-section {
  background-color: var(--nwe88-card-bg);
  color: var(--nwe88-text-main);
}

.page-ban-ca__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-ban-ca__step-item {
  background-color: var(--nwe88-deep-navy);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--nwe88-border-color);
}

.page-ban-ca__step-icon {
  width: 100%;
  height: 180px;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
}

.page-ban-ca__step-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-ban-ca__step-title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--nwe88-gold-color);
  margin-bottom: 10px;
}

.page-ban-ca__step-text {
  color: var(--nwe88-text-secondary);
  font-size: 0.95em;
}

.page-ban-ca__cta-center {
  text-align: center;
  margin-top: 50px;
}

/* Promo Section */
.page-ban-ca__promo-section {
  background-color: var(--nwe88-deep-navy);
  color: var(--nwe88-text-main);
}

.page-ban-ca__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.page-ban-ca__promo-card {
  background-color: var(--nwe88-card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--nwe88-border-color);
  text-align: center;
}

.page-ban-ca__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-ban-ca__promo-title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--nwe88-gold-color);
  margin-bottom: 10px;
}

.page-ban-ca__promo-text {
  color: var(--nwe88-text-secondary);
  font-size: 0.95em;
  margin-bottom: 25px;
}

.page-ban-ca__btn-promo {
  background: var(--nwe88-button-gradient);
  color: var(--nwe88-text-main);
  border: none;
  padding: 12px 25px;
  font-size: 1em;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.3s ease;
  display: inline-block;
}

.page-ban-ca__btn-promo:hover {
  opacity: 0.9;
}

/* FAQ Section */
.page-ban-ca__faq-section {
  background-color: var(--nwe88-card-bg);
  color: var(--nwe88-text-main);
}

.page-ban-ca__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-ban-ca__faq-item {
  background-color: var(--nwe88-deep-navy);
  border: 1px solid var(--nwe88-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--nwe88-gold-color);
  cursor: pointer;
  background-color: var(--nwe88-card-bg);
  border-bottom: 1px solid var(--nwe88-divider-color);
  list-style: none; /* For details/summary */
}

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

.page-ban-ca__faq-question:hover {
  background-color: #1a3053; /* Slightly lighter hover */
}

.page-ban-ca__faq-qtext {
  flex-grow: 1;
}

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--nwe88-gold-color);
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-question {
  border-bottom: 1px solid var(--nwe88-divider-color);
}

.page-ban-ca__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--nwe88-text-secondary);
  background-color: var(--nwe88-deep-navy);
}

.page-ban-ca__faq-answer p {
  margin: 0;
}

/* Contact Section */
.page-ban-ca__contact-section {
  background-color: var(--nwe88-deep-navy);
  color: var(--nwe88-text-main);
  padding-bottom: 60px;
}

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

  .page-ban-ca__section-title {
    font-size: 2.2em;
  }

  .page-ban-ca__game-image {
    height: 180px;
  }

  .page-ban-ca__promo-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Ensure minimal top padding */
  }
  .page-ban-ca__hero-container {
    flex-direction: column;
    text-align: center;
    padding: 30px 15px;
    gap: 30px;
  }
  .page-ban-ca__hero-content {
    text-align: center;
    flex: 1 1 auto;
    width: 100%;
  }
  .page-ban-ca__main-title {
    font-size: 2.2em;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .page-ban-ca__hero-description {
    font-size: 1em;
    max-width: 100%;
  }
  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-ban-ca__hero-image {
    flex: 1 1 auto;
    width: 100%;
  }
  .page-ban-ca__hero-side-image {
    max-width: 100%;
    height: auto;
  }

  /* General Content Area */
  .page-ban-ca__content-area {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__section-title {
    font-size: 1.8em;
  }
  .page-ban-ca__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  /* Intro Section (Module 1) */
  .page-ban-ca__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-ban-ca__feature-item {
    padding: 20px;
  }
  .page-ban-ca__icon-box-media {
    width: 150px; /* Still square */
    height: 150px; /* Still square */
    margin-bottom: 15px;
  }
  .page-ban-ca__feature-title {
    font-size: 1.4em;
  }

  /* Game Tabs Section */
  .page-ban-ca__tab-nav {
    flex-direction: column;
    gap: 5px;
    margin-bottom: 30px;
  }
  .page-ban-ca__tab-button {
    font-size: 1em;
    padding: 12px 15px;
  }
  .page-ban-ca__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-ban-ca__game-image {
    height: 160px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-ban-ca__game-title {
    font-size: 1.2em;
  }
  .page-ban-ca__btn-play {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px 15px;
  }

  /* Guide Section */
  .page-ban-ca__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-ban-ca__step-item {
    padding: 20px;
  }
  .page-ban-ca__step-icon {
    height: 150px;
  }
  .page-ban-ca__step-icon img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-ban-ca__step-title {
    font-size: 1.3em;
  }
  .page-ban-ca__cta-center .page-ban-ca__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
  }

  /* Promo Section */
  .page-ban-ca__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-ban-ca__promo-card {
    padding: 20px;
  }
  .page-ban-ca__promo-image {
    height: 180px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-ban-ca__promo-title {
    font-size: 1.3em;
  }
  .page-ban-ca__btn-promo {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px 20px;
  }

  /* FAQ Section */
  .page-ban-ca__faq-list {
    max-width: 100%;
  }
  .page-ban-ca__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-ban-ca__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }
  .page-ban-ca__faq-toggle {
    font-size: 1.2em;
  }

  /* Contact Section */
  .page-ban-ca__contact-section {
    padding-bottom: 40px;
  }
  .page-ban-ca__contact-section .page-ban-ca__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
  }

  /* Universal Image and Container Rules for Mobile */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important; /* Ensure padding/border is included in width */
  }

  .page-ban-ca__section, .page-ban-ca__card, .page-ban-ca__container, .page-ban-ca__game-card, .page-ban-ca__promo-card, .page-ban-ca__step-item, .page-ban-ca__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Ensure contrast for all text elements */
.page-ban-ca h1, .page-ban-ca h2, .page-ban-ca h3, .page-ban-ca h4, .page-ban-ca h5, .page-ban-ca h6 {
  color: var(--nwe88-gold-color);
}

.page-ban-ca p, .page-ban-ca li, .page-ban-ca__feature-text, .page-ban-ca__game-text, .page-ban-ca__step-text, .page-ban-ca__promo-text, .page-ban-ca__faq-answer {
  color: var(--nwe88-text-secondary);
}

.page-ban-ca__btn-primary, .page-ban-ca__btn-play, .page-ban-ca__btn-promo {
  color: var(--nwe88-text-main);
}

.page-ban-ca__btn-secondary {
  color: var(--nwe88-gold-color);
}

.page-ban-ca__tab-button {
  color: var(--nwe88-text-secondary);
}
.page-ban-ca__tab-button:hover, .page-ban-ca__tab-button.is-active {
  color: var(--nwe88-gold-color);
}

/* Contrast fix for specific elements if needed */
.page-ban-ca__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-ban-ca__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}