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

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

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

.page-ban-ca__section-title--white {
  color: #FFFFFF;
}

.page-ban-ca__description-text,
.page-ban-ca__text-block {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.page-ban-ca__text-block--center {
  text-align: center;
}

.page-ban-ca__text-block--white {
  color: #FFFFFF;
}

.page-ban-ca__link-inline {
  color: #017439;
  text-decoration: underline;
  font-weight: 600;
}

.page-ban-ca__link-inline--yellow {
  color: #FFFF00;
}

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

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

.page-ban-ca__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
  transform: translateY(-2px);
}

.page-ban-ca__btn-secondary {
  background-color: #FFFFFF;
  color: #017439;
  border-color: #017439;
}

.page-ban-ca__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #005a2c;
  transform: translateY(-2px);
}

/* Hero Section */
.page-ban-ca__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

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

.page-ban-ca__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-ban-ca__main-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-ban-ca__hero-section .page-ban-ca__description-text {
  font-size: 20px;
  margin-bottom: 30px;
  color: #333333;
}

.page-ban-ca__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Why Choose Section */
.page-ban-ca__why-choose-section {
  background-color: #017439; /* Primary brand color */
  padding: 60px 0;
  color: #FFFFFF;
}

.page-ban-ca__why-choose-section .page-ban-ca__container {
  padding-top: 0;
  padding-bottom: 0;
}

.page-ban-ca__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-ban-ca__why-choose-section .page-ban-ca__image-wrapper {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-ban-ca__feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-ban-ca__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-ban-ca__feature-item h3 {
  font-size: 22px;
  font-weight: 700;
  color: #FFFF00; /* Yellow for highlight */
  margin-top: 0;
  margin-bottom: 10px;
}

.page-ban-ca__feature-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 0;
}

/* Games List Section */
.page-ban-ca__games-list-section {
  padding: 60px 0;
}

.page-ban-ca__games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-ban-ca__game-card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-ban-ca__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

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

.page-ban-ca__game-card p.page-ban-ca__game-description {
  font-size: 15px;
  line-height: 1.6;
  color: #555555;
  padding: 0 15px;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-ban-ca__game-card .page-ban-ca__btn-primary {
  margin: 0 20px 20px;
}

/* How to Play Section */
.page-ban-ca__how-to-play-section {
  padding: 60px 0;
}

.page-ban-ca__guide-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
  margin-top: 30px;
}

.page-ban-ca__guide-subtitle {
  font-size: 24px;
  font-weight: 700;
  color: #017439;
  margin-top: 0;
  margin-bottom: 20px;
}

.page-ban-ca__ordered-list,
.page-ban-ca__unordered-list {
  list-style-position: inside;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-ban-ca__ordered-list li,
.page-ban-ca__unordered-list li {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.page-ban-ca__ordered-list li strong {
  color: #017439;
}

.page-ban-ca__guide-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-ban-ca__promotions-section .page-ban-ca__container {
  padding-top: 0;
  padding-bottom: 0;
}

.page-ban-ca__promo-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 30px;
}

.page-ban-ca__promo-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__promo-details .page-ban-ca__unordered-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.page-ban-ca__promo-details .page-ban-ca__unordered-list li {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 15px;
  position: relative;
  padding-left: 25px;
}

.page-ban-ca__promo-details .page-ban-ca__unordered-list li::before {
  content: '★';
  color: #FFFF00;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 18px;
}

.page-ban-ca__promo-details .page-ban-ca__unordered-list li strong {
  color: #FFFF00;
}

/* CTA Section (bottom) */
.page-ban-ca__cta-section {
  padding: 60px 0;
  text-align: center;
}

.page-ban-ca__cta-section .page-ban-ca__description-text {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* FAQ Section */
.page-ban-ca__faq-section {
  padding: 60px 0;
}

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

details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-ban-ca__faq-item summary.page-ban-ca__faq-question:hover {
  background: #f5f5f5;
}

.page-ban-ca__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #017439;
}

.page-ban-ca__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}

details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
  padding: 0 25px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

details.page-ban-ca__faq-item .page-ban-ca__faq-answer p {
  font-size: 16px;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-ban-ca__content-grid,
  .page-ban-ca__guide-content,
  .page-ban-ca__promo-content {
    grid-template-columns: 1fr;
  }
  .page-ban-ca__why-choose-section .page-ban-ca__image-wrapper {
    order: 2; /* Image below text on smaller screens */
  }
  .page-ban-ca__feature-list {
    margin-top: 30px;
  }
  .page-ban-ca__promo-details {
    margin-top: 30px;
  }
  .page-ban-ca__guide-image {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }
}

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

  .page-ban-ca__section-title {
    font-size: 28px;
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .page-ban-ca__description-text,
  .page-ban-ca__text-block,
  .page-ban-ca__feature-item p,
  .page-ban-ca__ordered-list li,
  .page-ban-ca__unordered-list li,
  details.page-ban-ca__faq-item .page-ban-ca__faq-answer p {
    font-size: 15px;
    line-height: 1.6;
    padding: 0 5px;
    text-align: left;
  }

  .page-ban-ca__hero-section {
    padding-top: 10px;
    padding-bottom: 40px;
  }

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

  .page-ban-ca__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-ban-ca__main-title {
    font-size: 32px;
    margin-bottom: 15px;
    padding: 0 10px;
  }

  .page-ban-ca__hero-section .page-ban-ca__description-text {
    font-size: 16px;
    margin-bottom: 25px;
    padding: 0 10px;
  }

  .page-ban-ca__cta-buttons {
    flex-direction: column !important;
    gap: 15px;
    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__why-choose-section,
  .page-ban-ca__games-list-section,
  .page-ban-ca__how-to-play-section,
  .page-ban-ca__promotions-section,
  .page-ban-ca__cta-section,
  .page-ban-ca__faq-section {
    padding: 40px 0;
  }

  .page-ban-ca__feature-item h3,
  .page-ban-ca__guide-subtitle,
  .page-ban-ca__game-card h3.page-ban-ca__game-title {
    font-size: 20px;
    padding: 0 10px;
  }

  .page-ban-ca__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
    overflow-x: hidden;
  }

  .page-ban-ca__game-image {
    height: 180px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-ban-ca__game-card p.page-ban-ca__game-description {
    padding: 0 10px;
  }

  .page-ban-ca__game-card .page-ban-ca__btn-primary {
    margin: 0 15px 15px;
  }

  .page-ban-ca__guide-content {
    margin-top: 20px;
  }

  .page-ban-ca__guide-image,
  .page-ban-ca__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
    padding: 15px 20px;
  }

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

  .page-ban-ca__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
  }

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

  .page-ban-ca__promo-details .page-ban-ca__unordered-list li {
    padding-left: 20px;
  }

  .page-ban-ca__promo-details .page-ban-ca__unordered-list li::before {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .page-ban-ca__section-title {
    font-size: 24px;
  }
  .page-ban-ca__main-title {
    font-size: 28px;
  }
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    font-size: 16px;
    padding: 12px 20px;
  }
  .page-ban-ca__hero-section .page-ban-ca__description-text {
    font-size: 15px;
  }
  .page-ban-ca__feature-item h3,
  .page-ban-ca__guide-subtitle,
  .page-ban-ca__game-card h3.page-ban-ca__game-title {
    font-size: 18px;
  }
  .page-ban-ca__faq-qtext {
    font-size: 15px;
  }
  .page-ban-ca__faq-toggle {
    font-size: 20px;
  }
}