/* style/ban-ca.css */
.page-ban-ca {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF1E8;
  background-color: #140C0C;
}

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

.page-ban-ca__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: #F3C54D;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-ban-ca__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #140C0C;
  box-shadow: 0 5px 15px rgba(255, 176, 74, 0.4);
}

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

.page-ban-ca__btn-secondary {
  background-color: transparent;
  color: #FFB04A;
  border: 2px solid #FFB04A;
}

.page-ban-ca__btn-secondary:hover {
  background-color: #FFB04A;
  color: #140C0C;
  transform: translateY(-2px);
}

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

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

/* Hero Section */
.page-ban-ca__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #140C0C;
}

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
}

.page-ban-ca__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

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

.page-ban-ca__hero-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  color: #FFB04A;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.page-ban-ca__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #FFF1E8;
}

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

/* Intro Section */
.page-ban-ca__intro-section {
  padding: 60px 0;
  background-color: #2A1212;
}

/* Features Section */
.page-ban-ca__features-section {
  padding: 60px 0;
  background-color: #140C0C; /* Deep Red for contrast */
}

.page-ban-ca__dark-bg {
  background-color: #140C0C;
  color: #FFF1E8;
}

.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: #2A1212;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #6A1E1E;
}

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

.page-ban-ca__feature-title {
  font-size: 24px;
  color: #F3C54D;
  margin-bottom: 15px;
}

.page-ban-ca__feature-description {
  font-size: 16px;
  color: #FFF1E8;
}

/* Guide Section */
.page-ban-ca__guide-section {
  padding: 60px 0;
  background-color: #2A1212;
}

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

.page-ban-ca__step-card {
  background-color: #140C0C;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #6A1E1E;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-ban-ca__step-title {
  font-size: 22px;
  color: #FFB04A;
  margin-bottom: 15px;
}

.page-ban-ca__step-card p {
  font-size: 16px;
  color: #FFF1E8;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Tips Section */
.page-ban-ca__tips-section {
  padding: 60px 0;
  background-color: #140C0C;
}

.page-ban-ca__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-ban-ca__tips-list li {
  background-color: #2A1212;
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  border-left: 5px solid #FFB04A;
  font-size: 17px;
  color: #FFF1E8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__tips-list li strong {
  color: #F3C54D;
}

/* Game Halls Section */
.page-ban-ca__game-halls-section {
  padding: 60px 0;
  background-color: #2A1212;
}

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

.page-ban-ca__game-card {
  background-color: #140C0C;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #6A1E1E;
  display: flex;
  flex-direction: column;
}

.page-ban-ca__game-thumbnail {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-ban-ca__game-title {
  font-size: 22px;
  color: #F3C54D;
  padding: 15px 20px 5px;
}

.page-ban-ca__game-description {
  font-size: 16px;
  color: #FFF1E8;
  padding: 0 20px 15px;
  flex-grow: 1;
}

.page-ban-ca__game-card .page-ban-ca__btn-primary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

.page-ban-ca__game-trial {
  margin-top: 60px;
  background-color: #140C0C;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #6A1E1E;
}

.page-ban-ca__game-trial-title {
  font-size: 28px;
  color: #FFB04A;
  text-align: center;
  margin-bottom: 25px;
}

.page-ban-ca__game-trial-frame {
  border: none;
  width: 100%;
  height: 600px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* Promotions Section */
.page-ban-ca__promotions-section {
  padding: 60px 0;
  background-color: #140C0C;
}

.page-ban-ca__promotion-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-ban-ca__promotion-list li {
  background-color: #2A1212;
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  border-left: 5px solid #E53030;
  font-size: 17px;
  color: #FFF1E8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__promotion-list li strong {
  color: #F3C54D;
}

/* Why King33 Section */
.page-ban-ca__why-king33-section {
  padding: 60px 0;
  background-color: #2A1212;
}

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

.page-ban-ca__advantage-card {
  background-color: #140C0C;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #6A1E1E;
}

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

.page-ban-ca__advantage-title {
  font-size: 24px;
  color: #FFB04A;
  margin-bottom: 15px;
}

.page-ban-ca__advantage-card p {
  font-size: 16px;
  color: #FFF1E8;
}

/* FAQ Section */
.page-ban-ca__faq-section {
  padding: 60px 0;
  background-color: #140C0C;
}

.page-ban-ca__faq-list {
  margin-top: 30px;
}

.page-ban-ca__faq-item {
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  color: #FFF1E8;
  cursor: pointer;
  background-color: #2A1212;
  border-bottom: 1px solid #6A1E1E;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-question {
  border-bottom: 1px solid transparent;
}

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

.page-ban-ca__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #FFB04A;
}

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

.page-ban-ca__faq-answer {
  padding: 0 20px 20px;
  font-size: 16px;
  color: #FFF1E8;
}

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

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

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

/* Conclusion Section */
.page-ban-ca__conclusion-section {
  padding: 60px 0;
  background-color: #2A1212;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__hero-title {
    font-size: clamp(32px, 4.5vw, 55px);
  }

  .page-ban-ca__hero-description {
    font-size: 18px;
  }

  .page-ban-ca__section-title {
    font-size: clamp(26px, 3.2vw, 38px);
  }

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

@media (max-width: 768px) {
  .page-ban-ca__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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

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

  .page-ban-ca__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

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

  /* Buttons - General */
  .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;
    font-size: 16px;
  }

  .page-ban-ca__hero-cta-buttons,
  .page-ban-ca__cta-wrapper,
  .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;
  }

  /* Section Titles */
  .page-ban-ca__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-ban-ca__text-block {
    font-size: 16px;
  }

  /* Images - General */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

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

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

  .page-ban-ca__feature-title {
    font-size: 20px;
  }

  /* Guide Section */
  .page-ban-ca__guide-steps {
    grid-template-columns: 1fr;
  }

  .page-ban-ca__step-title {
    font-size: 20px;
  }

  /* Tips Section */
  .page-ban-ca__tips-list li {
    font-size: 16px;
    padding: 15px;
  }

  /* Game Halls Section */
  .page-ban-ca__game-grid {
    grid-template-columns: 1fr;
  }

  .page-ban-ca__game-thumbnail {
    height: 180px; /* Adjust height for mobile */
  }

  .page-ban-ca__game-title {
    font-size: 20px;
  }

  .page-ban-ca__game-description {
    font-size: 15px;
  }

  .page-ban-ca__game-trial-title {
    font-size: 24px;
  }

  .page-ban-ca__game-trial-frame {
    height: 400px; /* Adjust iframe height for mobile */
  }

  /* Promotions Section */
  .page-ban-ca__promotion-list li {
    font-size: 16px;
    padding: 15px;
  }

  /* Why King33 Section */
  .page-ban-ca__advantages-grid {
    grid-template-columns: 1fr;
  }

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

  .page-ban-ca__advantage-title {
    font-size: 20px;
  }

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

  .page-ban-ca__faq-qtext {
    font-size: 16px;
  }

  .page-ban-ca__faq-toggle {
    font-size: 20px;
  }

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

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