/* style/ban-ca.css */
.page-ban-ca {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #FFF6D6); /* Default text color from custom palette */
  background: var(--bg, #0A0A0A); /* Default background color from custom palette */
}

.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, relies on body padding-top from shared.css */
  padding-bottom: 60px;
  background: var(--bg, #0A0A0A);
  color: var(--text-main, #FFF6D6);
}

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

.page-ban-ca__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  text-align: left;
}

.page-ban-ca__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--glow, #FFD36B);
  line-height: 1.2;
}

.page-ban-ca__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-main, #FFF6D6);
}

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

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for bright button */
  border: 2px solid transparent;
}

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

.page-ban-ca__btn-secondary {
  background: transparent;
  color: var(--text-main, #FFF6D6);
  border: 2px solid var(--border, #3A2A12);
}

.page-ban-ca__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--glow, #FFD36B);
}

.page-ban-ca__hero-image {
  flex: 1 1 40%;
  min-width: 280px;
  text-align: center;
}

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

.page-ban-ca__content-area {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
}

.page-ban-ca__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--glow, #FFD36B);
}

.page-ban-ca__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-main, #FFF6D6);
}

.page-ban-ca__features-section {
  padding: 60px 0;
  background: var(--bg, #0A0A0A);
}

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

.page-ban-ca__feature-item {
  background: var(--card-bg, #111111);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border, #3A2A12);
}

.page-ban-ca__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__icon-box-media {
  width: 160px;
  height: 160px;
  margin: 0 auto 25px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--glow, #FFD36B);
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.5);
}

.page-ban-ca__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%; /* Ensure image itself is round */
}

.page-ban-ca__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--glow, #FFD36B);
}

.page-ban-ca__feature-text {
  font-size: 1rem;
  color: var(--text-main, #FFF6D6);
}

.page-ban-ca__game-tabs-section {
  padding: 60px 0;
  background: var(--bg, #0A0A0A);
}

.page-ban-ca__tab-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.page-ban-ca__tab-button {
  background: var(--card-bg, #111111);
  color: var(--text-main, #FFF6D6);
  padding: 12px 25px;
  border: 1px solid var(--border, #3A2A12);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.page-ban-ca__tab-button:hover {
  background: rgba(255, 211, 107, 0.1);
  color: var(--glow, #FFD36B);
}

.page-ban-ca__tab-button.is-active {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(255, 211, 107, 0.3);
}

.page-ban-ca__game-panel {
  display: none;
  background: var(--card-bg, #111111);
  border-radius: 12px;
  padding: 30px;
  border: 1px solid var(--border, #3A2A12);
  color: var(--text-main, #FFF6D6);
}

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

.page-ban-ca__game-panel-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--glow, #FFD36B);
  text-align: center;
}

.page-ban-ca__game-panel p {
  font-size: 1rem;
  margin-bottom: 25px;
  text-align: center;
}

.page-ban-ca__game-trial-frame {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 10px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__game-btn {
  display: block;
  max-width: 300px;
  margin: 0 auto;
}

.page-ban-ca__guide-section {
  padding: 60px 0;
  background: var(--bg, #0A0A0A);
}

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

.page-ban-ca__guide-step-item {
  background: var(--card-bg, #111111);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border, #3A2A12);
}

.page-ban-ca__guide-step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--glow, #FFD36B);
  margin-bottom: 15px;
  line-height: 1;
}

.page-ban-ca__guide-step-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--glow, #FFD36B);
}

.page-ban-ca__guide-step-item p {
  font-size: 1rem;
  color: var(--text-main, #FFF6D6);
}

.page-ban-ca__guide-image {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 40px;
}

.page-ban-ca__guide-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-ban-ca__promo-section {
  padding: 60px 0;
  background: var(--bg, #0A0A0A);
}

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

.page-ban-ca__promo-item {
  background: var(--card-bg, #111111);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border, #3A2A12);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-ban-ca__promo-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--glow, #FFD36B);
}

.page-ban-ca__promo-text {
  font-size: 1rem;
  color: var(--text-main, #FFF6D6);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-ban-ca__btn-link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--glow, #FFD36B);
  color: #111111;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.page-ban-ca__btn-link:hover {
  background: #F2C14E;
}

.page-ban-ca__faq-section {
  padding: 60px 0;
  background: var(--bg, #0A0A0A);
}

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

.page-ban-ca__faq-item {
  background: var(--card-bg, #111111);
  border: 1px solid var(--border, #3A2A12);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-ban-ca__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--glow, #FFD36B);
  cursor: pointer;
  list-style: none;
  position: relative;
}

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

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

.page-ban-ca__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
}

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

.page-ban-ca__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: var(--text-main, #FFF6D6);
}

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

.page-ban-ca__faq-answer a {
  color: var(--glow, #FFD36B);
  text-decoration: underline;
}

.page-ban-ca__cta-final-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(90deg, #F2C14E 0%, #FFD36B 100%);
  color: #111111; /* Dark text for light background */
}

.page-ban-ca__cta-final-section .page-ban-ca__section-title,
.page-ban-ca__cta-final-section .page-ban-ca__section-description {
  color: #111111;
}

.page-ban-ca__btn-large {
  padding: 16px 32px;
  font-size: 1.15rem;
  margin-top: 30px;
  background: #111111;
  color: var(--glow, #FFD36B);
  border: 2px solid var(--glow, #FFD36B);
}

.page-ban-ca__btn-large:hover {
  background: #333333;
  color: #ffffff;
  border-color: #ffffff;
}

/* General image responsiveness */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* General button responsiveness */
.page-ban-ca__cta-button,
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca a[class*="button"],
.page-ban-ca a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-ban-ca__cta-buttons,
.page-ban-ca__button-group,
.page-ban-ca__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .page-ban-ca {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO Section */
  .page-ban-ca__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-ban-ca__hero-container {
    flex-direction: column;
    padding: 20px 15px;
    gap: 30px;
  }

  .page-ban-ca__hero-content {
    text-align: center;
  }

  .page-ban-ca__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

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

  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Features Section (Module 1-like) */
  .page-ban-ca__features-section {
    padding: 40px 0;
  }

  .page-ban-ca__features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-ban-ca__icon-box-media {
    width: 120px; /* Maintain square for mobile */
    height: 120px;
    border-width: 2px;
  }

  .page-ban-ca__feature-title {
    font-size: 1.3rem;
  }

  /* Game Tabs Section */
  .page-ban-ca__game-tabs-section {
    padding: 40px 0;
  }

  .page-ban-ca__tab-nav {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
  }

  .page-ban-ca__tab-button {
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
  }

  .page-ban-ca__game-panel {
    padding: 20px;
  }

  .page-ban-ca__game-panel-title {
    font-size: 1.5rem;
  }

  .page-ban-ca__game-trial-frame {
    height: 350px;
  }

  .page-ban-ca__game-btn {
    max-width: 100%;
  }

  /* Guide Section */
  .page-ban-ca__guide-section {
    padding: 40px 0;
  }

  .page-ban-ca__guide-steps {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-ban-ca__guide-step-number {
    font-size: 2rem;
  }

  .page-ban-ca__guide-step-title {
    font-size: 1.2rem;
  }

  .page-ban-ca__guide-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Promotion Section */
  .page-ban-ca__promo-section {
    padding: 40px 0;
  }

  .page-ban-ca__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-ban-ca__promo-title {
    font-size: 1.3rem;
  }

  /* FAQ Section */
  .page-ban-ca__faq-section {
    padding: 40px 0;
  }

  .page-ban-ca__faq-item summary {
    padding: 15px;
    font-size: 1rem;
  }

  .page-ban-ca__faq-answer {
    padding: 0 15px 15px;
  }

  /* Final CTA Section */
  .page-ban-ca__cta-final-section {
    padding: 50px 0;
  }

  .page-ban-ca__btn-large {
    padding: 14px 28px;
    font-size: 1rem;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* General Image and Container Responsiveness */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-ban-ca__section,
  .page-ban-ca__card,
  .page-ban-ca__container,
  .page-ban-ca__content-area {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure buttons and their containers adapt */
  .page-ban-ca__cta-button,
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary,
  .page-ban-ca a[class*="button"],
  .page-ban-ca 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-ban-ca__cta-buttons,
  .page-ban-ca__button-group,
  .page-ban-ca__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;
    flex-direction: column; /* Ensure buttons stack vertically */
  }
}