/* style/ban-ca.css */
.page-ban-ca {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #1F2D3D);
  background-color: var(--background-color, #F4F7FB);
}

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

.page-ban-ca__section-spacing {
  padding: 60px 0;
}

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

.page-ban-ca__description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-main, #1F2D3D);
}

.page-ban-ca__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-ban-ca__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(47, 107, 255, 0.4);
}

.page-ban-ca__cta-button--primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

.page-ban-ca__cta-button--large {
  padding: 18px 35px;
  font-size: 1.2em;
}

.page-ban-ca__button-center {
  text-align: center;
  margin-top: 40px;
}

/* Hero Section */
.page-ban-ca__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: var(--background-color, #F4F7FB);
  position: relative;
  overflow: hidden;
}

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-ban-ca__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-ban-ca__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1 font size */
  color: var(--custom-color-1776249996415, #000000);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

/* Intro Section */
.page-ban-ca__intro-section {
  background-color: var(--card-bg, #FFFFFF);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin: 0 20px;
}

.page-ban-ca__intro-content {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 30px;
}

.page-ban-ca__intro-content p {
  flex: 1;
  font-size: 1.05em;
  color: var(--text-main, #1F2D3D);
  text-align: left;
}

.page-ban-ca__image-content {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}

/* Game Showcase */
.page-ban-ca__dark-section {
  background-color: var(--primary-color, #2F6BFF);
  color: #ffffff;
}

.page-ban-ca__dark-section .page-ban-ca__section-title,
.page-ban-ca__dark-section .page-ban-ca__description,
.page-ban-ca__dark-section .page-ban-ca__game-title a,
.page-ban-ca__dark-section .page-ban-ca__game-description,
.page-ban-ca__dark-section .page-ban-ca__faq-question,
.page-ban-ca__dark-section .page-ban-ca__faq-answer p {
  color: #ffffff;
}

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

.page-ban-ca__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-ban-ca__game-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-ban-ca__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  aspect-ratio: 1 / 1; /* Enforce square aspect ratio */
}

.page-ban-ca__game-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-ban-ca__game-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-ban-ca__game-title a:hover {
  color: var(--glow, #A5C4FF);
}

.page-ban-ca__game-description {
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-ban-ca__btn-secondary {
  display: inline-block;
  background: #ffffff;
  color: var(--primary-color, #2F6BFF);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid var(--primary-color, #2F6BFF);
  box-sizing: border-box;
}

.page-ban-ca__btn-secondary:hover {
  background: var(--primary-color, #2F6BFF);
  color: #ffffff;
}

/* Features Section */
.page-ban-ca__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-ban-ca__feature-card {
  background-color: var(--card-bg, #FFFFFF);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-ban-ca__feature-card:hover {
  transform: translateY(-5px);
}

.page-ban-ca__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__feature-title {
  font-size: 1.4em;
  color: var(--custom-color-1776249996415, #000000);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-ban-ca__feature-card p {
  font-size: 1em;
  color: var(--text-main, #1F2D3D);
}

/* How to Play Section */
.page-ban-ca__light-bg {
  background-color: var(--background-color, #F4F7FB);
}

.page-ban-ca__how-to-play-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-ban-ca__image-content--left {
  order: 0;
  flex: 1;
}

.page-ban-ca__step-list {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-ban-ca__step-item {
  background-color: var(--card-bg, #FFFFFF);
  border-left: 5px solid var(--primary-color, #2F6BFF);
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease;
}

.page-ban-ca__step-item:hover {
  transform: translateX(5px);
}

.page-ban-ca__step-title {
  font-size: 1.3em;
  color: var(--custom-color-1776249996415, #000000);
  margin-bottom: 10px;
  font-weight: bold;
}

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

/* Why Choose Sky88 Section */
.page-ban-ca__why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

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

.page-ban-ca__reason-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(47, 107, 255, 0.15);
}

.page-ban-ca__reason-title {
  font-size: 1.4em;
  color: var(--custom-color-1776249996415, #000000);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-ban-ca__reason-card p {
  font-size: 1em;
  color: var(--text-main, #1F2D3D);
}

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

.page-ban-ca__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-ban-ca__faq-item[open] {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  list-style: none;
  user-select: none;
}

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

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

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  margin-left: 20px;
  line-height: 1;
  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 25px 20px 25px;
  font-size: 1em;
  color: #ffffff;
}

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

/* Final CTA Section */
.page-ban-ca__cta-container {
  text-align: center;
}

/* Global Image Styles */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-ban-ca__description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-ban-ca__hero-image-wrapper {
    border-radius: 10px;
  }

  .page-ban-ca__intro-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-ban-ca__image-content {
    max-width: 100%;
    border-radius: 10px;
  }

  .page-ban-ca__how-to-play-content {
    flex-direction: column;
  }

  .page-ban-ca__image-content--left {
    order: -1;
  }

  .page-ban-ca__game-grid,
  .page-ban-ca__features-grid,
  .page-ban-ca__why-choose-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }

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

  .page-ban-ca__feature-icon {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 768px) {
  .page-ban-ca__container {
    padding: 0 15px;
  }

  .page-ban-ca__section-spacing {
    padding: 40px 0;
  }

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

  .page-ban-ca__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  /* Hero Section */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 30px;
  }

  .page-ban-ca__hero-image-wrapper {
    margin-bottom: 20px;
    border-radius: 8px;
  }

  .page-ban-ca__hero-image {
    object-fit: contain; /* Ensure image is fully visible, not cropped */
    aspect-ratio: unset;
    max-height: none;
  }

  .page-ban-ca__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-ban-ca__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-ban-ca__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }

  .page-ban-ca__button-center {
    margin-top: 30px;
  }

  /* Game Showcase */
  .page-ban-ca__game-grid {
    grid-template-columns: 1fr 1fr; /* Two columns on mobile */
    gap: 15px;
  }

  .page-ban-ca__game-image {
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
    max-width: 100% !important;
  }

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

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

  .page-ban-ca__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Features Section */
  .page-ban-ca__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ban-ca__feature-icon {
    width: 60px;
    height: 60px;
  }

  /* How to Play Section */
  .page-ban-ca__how-to-play-content {
    gap: 20px;
  }

  .page-ban-ca__step-item {
    padding: 15px 20px;
  }

  .page-ban-ca__step-title {
    font-size: 1.1em;
  }

  /* Why Choose Sky88 Section */
  .page-ban-ca__why-choose-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  /* 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__hero-section,
  .page-ban-ca__intro-section,
  .page-ban-ca__game-showcase,
  .page-ban-ca__features-section,
  .page-ban-ca__how-to-play-section,
  .page-ban-ca__why-choose-sky88,
  .page-ban-ca__faq-section,
  .page-ban-ca__cta-section,
  .page-ban-ca__game-card,
  .page-ban-ca__feature-card,
  .page-ban-ca__reason-card,
  .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;
  }

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