/* style/ban-ca.css */

/* Variables */
:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --card-bg: #111111;
  --background-color: #0A0A0A;
  --text-main-color: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-ban-ca {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color);
  background-color: var(--background-color);
}

.page-ban-ca__content-container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-ban-ca__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-ban-ca__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-main-color);
}

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

/* --- Buttons --- */
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.page-ban-ca__btn-primary {
  background: var(--button-gradient);
  color: #111111; /* Dark text for light button */
  border: none;
  margin: 10px;
}

.page-ban-ca__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px var(--glow-color);
}

.page-ban-ca__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  margin: 10px;
}

.page-ban-ca__btn-secondary:hover {
  background: var(--primary-color);
  color: #111111;
  box-shadow: 0 0 15px var(--glow-color);
}

/* --- Hero Section --- */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: var(--background-color);
  position: relative;
  overflow: hidden;
}

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

.page-ban-ca__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  color: var(--text-main-color);
}

.page-ban-ca__hero-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Using clamp for H1 */
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-ban-ca__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-main-color);
}

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

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

.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);
  display: block;
}

/* --- Introduction Section & Why Choose Section --- */
.page-ban-ca__introduction-section,
.page-ban-ca__why-choose-section,
.page-ban-ca__games-showcase-section,
.page-ban-ca__how-to-play-section,
.page-ban-ca__tips-section,
.page-ban-ca__promotions-section,
.page-ban-ca__faq-section,
.page-ban-ca__conclusion-section {
  padding: 60px 0;
  background-color: var(--background-color);
}

.page-ban-ca__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 40px auto 20px auto;
  display: block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-ban-ca__feature-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-ban-ca__feature-description {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-main-color);
}

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

.page-ban-ca__game-card {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-ban-ca__game-card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-ban-ca__game-card-title {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-ban-ca__game-card-description {
  font-size: 0.95em;
  line-height: 1.5;
  color: var(--text-main-color);
  flex-grow: 1; /* Allows description to take available space */
  margin-bottom: 20px;
}

.page-ban-ca__game-card-button {
  width: calc(100% - 20px); /* Adjust for margin */
  margin: 10px auto;
}

/* How to Play & Tips Sections */
.page-ban-ca__guide-list,
.page-ban-ca__tips-list,
.page-ban-ca__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-ban-ca__guide-item,
.page-ban-ca__tips-item,
.page-ban-ca__promo-item {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__guide-step-title,
.page-ban-ca__tips-title,
.page-ban-ca__promo-title {
  font-size: 1.3em;
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-ban-ca__guide-step-description,
.page-ban-ca__tips-description,
.page-ban-ca__promo-description {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-main-color);
}

/* FAQ Section */
.page-ban-ca__faq-list {
  margin-top: 40px;
}

.page-ban-ca__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px 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.2em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  list-style: none; /* For details/summary */
}

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

.page-ban-ca__faq-question::marker {
  display: none; /* Hide default marker for other browsers */
}

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

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

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

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

/* Conclusion Section */
.page-ban-ca__conclusion-section {
  text-align: center;
  padding-bottom: 80px;
}

/* --- Global Image Styles for Content Area --- */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block; /* Ensure block-level for max-width/height auto to work */
  /* No filter property */
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-ban-ca__section-title {
    font-size: 2em;
  }
  .page-ban-ca__hero-title {
    font-size: clamp(2em, 4vw, 3em);
  }
  .page-ban-ca__hero-container {
    padding: 30px 16px;
    gap: 30px;
  }
  .page-ban-ca__content-container {
    padding: 30px 16px;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
  }
  .page-ban-ca__hero-container {
    flex-direction: column; /* Stack content and image vertically */
    padding: 20px 15px;
    gap: 20px;
  }
  .page-ban-ca__hero-content,
  .page-ban-ca__hero-image {
    flex: 1 1 100%;
    min-width: unset;
  }
  .page-ban-ca__hero-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust H1 size for mobile */
    text-align: center;
  }
  .page-ban-ca__hero-description {
    font-size: 1em;
    text-align: center;
  }
  .page-ban-ca__hero-cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    align-items: center;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    margin: 5px 0;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Section Titles */
  .page-ban-ca__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  /* Content Containers */
  .page-ban-ca__content-container {
    padding: 20px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Images */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-ban-ca__content-image {
    margin: 30px auto 15px auto;
  }

  /* Features Grid */
  .page-ban-ca__features-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }
  .page-ban-ca__feature-item {
    padding: 25px;
  }
  .page-ban-ca__feature-title {
    font-size: 1.3em;
  }

  /* Game Grid */
  .page-ban-ca__game-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }
  .page-ban-ca__game-card {
    padding: 15px;
  }
  .page-ban-ca__game-card-title {
    font-size: 1.2em;
  }
  .page-ban-ca__game-card-description {
    font-size: 0.9em;
  }
  .page-ban-ca__game-card-button {
    width: 100%;
    margin: 10px auto;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* How to Play & Tips & Promotions */
  .page-ban-ca__guide-item,
  .page-ban-ca__tips-item,
  .page-ban-ca__promo-item {
    padding: 20px;
  }
  .page-ban-ca__guide-step-title,
  .page-ban-ca__tips-title,
  .page-ban-ca__promo-title {
    font-size: 1.2em;
  }
  .page-ban-ca__guide-step-description,
  .page-ban-ca__tips-description,
  .page-ban-ca__promo-description {
    font-size: 0.95em;
  }

  /* FAQ Section */
  .page-ban-ca__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-ban-ca__faq-answer {
    padding: 0 20px 15px 20px;
  }
  .page-ban-ca__faq-toggle {
    font-size: 1.3em;
  }

  /* General text */
  .page-ban-ca__text-block {
    font-size: 1em;
    padding: 0 5px;
  }
}