:root {
  --main-color: #F2C14E;
  --secondary-color: #FFD36B;
  --card-bg: #111111;
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --body-bg: #0A0A0A;
}

.page-ban-ca {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for dark body background */
  background-color: var(--body-bg);
}

.page-ban-ca__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-ban-ca__article-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--body-bg);
}

.page-ban-ca__hero-content {
  max-width: 900px;
  margin-bottom: 40px;
}

.page-ban-ca__hero-title {
  font-size: 2.8em;
  font-weight: bold;
  color: var(--secondary-color);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

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

.page-ban-ca__hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-ban-ca__hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 1200px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-top: 40px;
}

/* General Buttons */
.page-ban-ca__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  max-width: 100%;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #000000; /* Ensure dark text on bright button */
  border: none;
  box-shadow: 0 5px 15px rgba(255, 216, 106, 0.4);
}

.page-ban-ca__btn-primary:hover {
  background: linear-gradient(180deg, #FFE080 0%, #E6B02A 100%);
  transform: translateY(-3px);
}

.page-ban-ca__btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.3);
}

.page-ban-ca__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--body-bg);
  transform: translateY(-3px);
}

.page-ban-ca__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

/* Section Titles */
.page-ban-ca__section-title {
  font-size: 2.2em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
  font-weight: bold;
  line-height: 1.3;
}

.page-ban-ca__subsection-title {
  font-size: 1.6em;
  color: var(--main-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-ban-ca__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: var(--text-main);
  text-align: justify;
}

/* Content Images */
.page-ban-ca__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Lists */
.page-ban-ca__steps-list,
.page-ban-ca__advantages-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

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

.page-ban-ca__list-item:last-child {
  margin-bottom: 0;
}

.page-ban-ca__list-title {
  font-size: 1.4em;
  color: var(--main-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-ban-ca__list-item p {
  color: var(--text-main);
  font-size: 1em;
}

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

.page-ban-ca__game-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-ban-ca__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-ban-ca__card-title {
  font-size: 1.5em;
  color: var(--main-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-ban-ca__card-description {
  font-size: 0.95em;
  color: var(--text-main);
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

/* Game Trial */
.page-ban-ca__game-trial {
  margin-top: 60px;
  text-align: center;
}

.page-ban-ca__trial-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-ban-ca__game-trial-frame {
  border: 2px solid var(--main-color);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  margin-top: 30px;
}

/* 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: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
  text-align: left;
}

.page-ban-ca__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--main-color);
  cursor: pointer;
  list-style: none;
}

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

.page-ban-ca__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
  transform: rotate(45deg);
}

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

/* Final CTA Section */
.page-ban-ca__cta-section {
  padding-top: 60px;
  padding-bottom: 80px;
  text-align: center;
  background-color: var(--body-bg);
}

.page-ban-ca__final-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Media Queries for Responsiveness */

/* Tablet */
@media (max-width: 1024px) {
  .page-ban-ca__hero-title {
    font-size: 2.5em;
  }

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

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

  .page-ban-ca__subsection-title {
    font-size: 1.4em;
  }

  .page-ban-ca__list-title {
    font-size: 1.3em;
  }

  .page-ban-ca__game-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

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

/* Mobile */
@media (max-width: 768px) {
  /* 1. Top Section (Hero) */
  .page-ban-ca__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-ban-ca__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-ban-ca__hero-description {
    font-size: 0.95em;
    padding: 0 15px;
  }

  .page-ban-ca__hero-cta {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  /* 4. Buttons and Button Containers */
  .page-ban-ca__btn,
  .page-ban-ca__hero-cta a,
  .page-ban-ca__final-cta a,
  .page-ban-ca__game-card .page-ban-ca__btn-small {
    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__hero-cta,
  .page-ban-ca__final-cta,
  .page-ban-ca__game-card {
    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-ban-ca__final-cta {
    flex-direction: column;
  }

  /* 2. Single Column Long Text Container */
  .page-ban-ca__article-wrap,
  .page-ban-ca__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding-top: 40px;
  }

  .page-ban-ca__subsection-title {
    font-size: 1.3em;
  }

  .page-ban-ca__text-block {
    font-size: 0.95em;
  }

  /* 3. General Images and Figure */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-ban-ca__hero-image {
    margin-top: 30px;
  }

  .page-ban-ca__content-image {
    margin: 20px auto;
  }

  .page-ban-ca__game-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ban-ca__game-card {
    padding: 15px;
  }

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

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

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

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

  /* 5. Registration Tutorial and FAQ Block */
  /* The list items and FAQ items already adapt well due to flex/block and padding */
  .page-ban-ca__list-item {
    padding: 20px;
  }

  .page-ban-ca__list-title {
    font-size: 1.2em;
  }

  .page-ban-ca__list-item p {
    font-size: 0.9em;
  }

  .page-ban-ca__cta-section {
    padding-top: 40px;
    padding-bottom: 60px;
  }
}