/* style/ban-ca.css */
.page-ban-ca {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default dark text for light body background */
  background-color: #ffffff;
}

.page-ban-ca__dark-section {
  background-color: #017439;
  color: #ffffff;
}

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

.page-ban-ca__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
  color: inherit;
}

.page-ban-ca__hero-carousel-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 40px;
}

.page-ban-ca__hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.page-ban-ca__hero-slide {
  display: none;
  position: relative;
  width: 100%;
}

.page-ban-ca__hero-slide.is-active {
  display: block;
}

.page-ban-ca__hero-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-ban-ca__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1000px;
  text-align: center;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 20px;
  border-radius: 10px;
  box-sizing: border-box;
}

.page-ban-ca__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.1;
  color: #FFFF00; /* Register and Login Font color */
}

.page-ban-ca__hero-description {
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 30px;
  line-height: 1.5;
}

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

.page-ban-ca__hero-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 15px 10px;
  cursor: pointer;
  font-size: 24px;
  z-index: 10;
  border-radius: 5px;
}

.page-ban-ca__hero-slider-prev {
  left: 10px;
}

.page-ban-ca__hero-slider-next {
  right: 10px;
}

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

.page-ban-ca__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-ban-ca__btn-primary:hover {
  background-color: #9e0606;
  border-color: #9e0606;
}

.page-ban-ca__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #FFFF00;
}

.page-ban-ca__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808;
}

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

.page-ban-ca__btn-large {
  padding: 16px 32px;
  font-size: 20px;
}

.page-ban-ca__why-choose-section {
  padding: 60px 20px;
  margin-bottom: 40px;
}

.page-ban-ca__guide-box {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px 24px;
  background: #f5e6d3; /* A light background for the guide cards container */
  border-radius: 4px;
}

.page-ban-ca__guide-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.page-ban-ca__guide-card {
  flex: 0 0 19%; /* Approx 5 cards per row, accounting for gap */
  max-width: 19%;
  box-sizing: border-box;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-ban-ca__guide-card img {
  aspect-ratio: 250 / 350;
  object-fit: contain;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  min-height: 200px; /* Ensure minimum size */
}

.page-ban-ca__guide-card--pos-1,
.page-ban-ca__guide-card--pos-5 {
  padding-top: 50px;
}

.page-ban-ca__guide-card--pos-2,
.page-ban-ca__guide-card--pos-4 {
  padding-top: 25px;
}

.page-ban-ca__popular-games-section {
  padding: 60px 20px;
  margin-bottom: 40px;
  background-color: #f9f9f9;
}

.page-ban-ca__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-ban-ca__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-ban-ca__game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  min-height: 200px; /* Ensure minimum size */
}

.page-ban-ca__game-title {
  font-size: 24px;
  font-weight: 700;
  margin: 20px 15px 10px;
  color: #017439;
}

.page-ban-ca__game-excerpt {
  font-size: 16px;
  line-height: 1.5;
  color: #555555;
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-ban-ca__how-to-play-section {
  padding: 60px 20px;
  margin-bottom: 40px;
}

.page-ban-ca__how-to-play-content {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.page-ban-ca__steps-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-ban-ca__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  border-left: 5px solid #FFFF00;
}

.page-ban-ca__step-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFFF00;
}

.page-ban-ca__step-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #ffffff;
}

.page-ban-ca__how-to-play-image {
  flex: 1;
  text-align: center;
}

.page-ban-ca__how-to-play-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-height: 200px; /* Ensure minimum size */
}

.page-ban-ca__how-to-play-image figcaption {
  color: #ffffff;
  font-size: 14px;
  margin-top: 10px;
}

.page-ban-ca__promotions-section {
  padding: 60px 20px;
  margin-bottom: 40px;
  background-color: #f9f9f9;
}

.page-ban-ca__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.page-ban-ca__promotion-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
}

.page-ban-ca__promotion-title {
  font-size: 24px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
}

.page-ban-ca__promotion-text {
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
}

.page-ban-ca__tips-section {
  padding: 60px 20px;
  margin-bottom: 40px;
}

.page-ban-ca__home-content-box {
  max-width: 91%;
  margin: 0 auto;
  padding: 10px 16px;
  border: 5px solid #FFFF00;
  border-radius: 15px;
  box-shadow: 0 0 20px #FFFF00;
  height: 700px;
  background-color: rgba(0, 0, 0, 0.2); /* Slightly transparent background for contrast */
}

.page-ban-ca__home-content-inner {
  height: 100%;
  overflow-y: auto;
  padding-right: 15px; /* For scrollbar */
  color: #ffffff;
}

.page-ban-ca__home-content-inner h3 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-ban-ca__home-content-inner p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.page-ban-ca__tips-image {
  text-align: center;
  margin: 30px 0;
}

.page-ban-ca__tips-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-height: 200px; /* Ensure minimum size */
}

.page-ban-ca__tips-image figcaption {
  color: #ffffff;
  font-size: 14px;
  margin-top: 10px;
}

.page-ban-ca__blog-section {
  padding: 60px 20px;
  margin-bottom: 40px;
  background-color: #f9f9f9;
}

.page-ban-ca__blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.page-ban-ca__blog-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-ban-ca__blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  min-height: 200px; /* Ensure minimum size */
}

.page-ban-ca__blog-title {
  font-size: 20px;
  font-weight: 700;
  margin: 15px;
  line-height: 1.4;
  flex-grow: 1;
}

.page-ban-ca__blog-title a {
  color: #017439;
  text-decoration: none;
}

.page-ban-ca__blog-title a:hover {
  text-decoration: underline;
}

.page-ban-ca__blog-date {
  font-size: 14px;
  color: #777777;
  margin: 0 15px 10px;
}

.page-ban-ca__blog-excerpt {
  font-size: 16px;
  color: #555555;
  margin: 0 15px 15px;
  line-height: 1.5;
}

.page-ban-ca__read-more {
  display: inline-block;
  margin: 0 15px 15px;
  color: #C30808;
  text-decoration: none;
  font-weight: 600;
}

.page-ban-ca__read-more:hover {
  text-decoration: underline;
}

.page-ban-ca__faq-section {
  padding: 60px 20px;
  margin-bottom: 40px;
}

.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: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

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

.page-ban-ca__faq-toggle {
  font-size: 24px;
  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 20px 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #ffffff;
}

.page-ban-ca__cta-final-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #017439;
  color: #ffffff;
}

.page-ban-ca__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

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

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

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

  .page-ban-ca__hero-carousel-section {
    padding-top: 10px !important;
    margin-bottom: 20px;
  }

  .page-ban-ca__hero-content {
    padding: 15px;
    width: 95%;
  }

  .page-ban-ca__main-title {
    font-size: 32px;
  }

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

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

  .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__hero-slider-nav {
    padding: 10px 8px;
    font-size: 20px;
  }

  .page-ban-ca__why-choose-section,
  .page-ban-ca__popular-games-section,
  .page-ban-ca__how-to-play-section,
  .page-ban-ca__promotions-section,
  .page-ban-ca__tips-section,
  .page-ban-ca__blog-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__cta-final-section {
    padding: 30px 15px;
    margin-bottom: 20px;
  }

  .page-ban-ca__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-ban-ca__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-ban-ca__guide-box {
    padding: 10px;
  }

  .page-ban-ca__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Base 6 columns for flexibility */
    gap: 10px;
  }

  .page-ban-ca__guide-card {
    padding-top: 0 !important; /* Reset specific desktop padding */
  }

  .page-ban-ca__guide-card--pos-1,
  .page-ban-ca__guide-card--pos-2 {
    grid-column: span 3; /* Two cards on top row */
    max-width: 100%;
  }

  .page-ban-ca__guide-card--pos-3,
  .page-ban-ca__guide-card--pos-4,
  .page-ban-ca__guide-card--pos-5 {
    grid-column: span 2; /* Three cards on bottom row */
    max-width: 100%;
  }

  .page-ban-ca__guide-card img {
    min- /* Adjust min-height for mobile if needed */
  }

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

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

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

  .page-ban-ca__how-to-play-image {
    order: -1; /* Image above text on mobile */
  }

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

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

  .page-ban-ca__home-content-box {
    max-width: 100%;
    height: auto !important;
    padding: 10px;
    border-width: 3px;
    box-shadow: 0 0 10px #FFFF00;
  }

  .page-ban-ca__home-content-inner {
    height: auto !important;
    overflow: visible !important;
    padding-right: 0;
  }

  .page-ban-ca__home-content-inner h3 {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
  }

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

  .page-ban-ca__blog-title {
    font-size: 18px;
  }

  .page-ban-ca__faq-question {
    font-size: 18px;
    padding: 15px;
  }

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

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

  /* Ensure all images are responsive */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}