:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-register-bg: #C30808;
  --button-login-bg: #C30808;
  --button-text-color: #FFFF00;
}

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

.page-ban-ca__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-ban-ca__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

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

.page-ban-ca__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  color: inherit;
}

.page-ban-ca__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

/* Buttons */
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal;
  word-wrap: break-word;
}

.page-ban-ca__btn-primary {
  background-color: var(--button-register-bg); /* #C30808 */
  color: var(--button-text-color); /* #FFFF00 */
  border: 2px solid var(--button-register-bg);
}

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

.page-ban-ca__btn-secondary {
  background-color: transparent;
  color: var(--button-register-bg); /* #C30808 */
  border: 2px solid var(--button-register-bg);
}

.page-ban-ca__btn-secondary:hover {
  background-color: var(--button-register-bg);
  color: var(--button-text-color);
}

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

/* HERO Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, main offset from body */
  padding-bottom: 60px;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-ban-ca__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-ban-ca__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  text-align: left;
}

.page-ban-ca__hero-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--button-text-color); /* #FFFF00 */
}

.page-ban-ca__hero-description {
  font-size: 1.15em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: var(--text-light);
}

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

.page-ban-ca__hero-image {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

.page-ban-ca__hero-side-image {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Intro Section (Why Choose tt 88) */
.page-ban-ca__intro-section {
  padding: 60px 0;
  background-color: var(--secondary-color);
}

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

.page-ban-ca__icon-box {
  text-align: center;
  padding: 25px;
  border-radius: 12px;
  background-color: #f9f9f9;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-ban-ca__icon-box:hover {
  transform: translateY(-5px);
}

.page-ban-ca__icon-box-media {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-color);
  box-sizing: border-box;
}

.page-ban-ca__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.page-ban-ca__icon-box-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-ban-ca__icon-box-text {
  font-size: 1em;
  color: var(--text-dark);
}

/* Guide Section (How to Play) */
.page-ban-ca__guide-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-ban-ca__guide-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-ban-ca__guide-content {
  flex: 1 1 55%;
  min-width: 300px;
}

.page-ban-ca__guide-content .page-ban-ca__section-title,
.page-ban-ca__guide-content .page-ban-ca__section-description {
  text-align: left;
}

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

.page-ban-ca__guide-steps li {
  margin-bottom: 25px;
  padding-left: 40px;
  position: relative;
}

.page-ban-ca__guide-steps li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--button-register-bg); /* #C30808 */
  color: var(--button-text-color); /* #FFFF00 */
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1em;
}

.page-ban-ca__guide-steps {
  counter-reset: step-counter;
}

.page-ban-ca__step-title {
  font-size: 1.3em;
  font-weight: bold;
  color: var(--button-text-color); /* #FFFF00 */
  margin-bottom: 8px;
}

.page-ban-ca__step-text {
  color: var(--text-light);
}

.page-ban-ca__guide-image {
  flex: 1 1 35%;
  min-width: 300px;
  text-align: center;
}

.page-ban-ca__guide-img {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__guide-cta {
  margin-top: 30px;
  text-align: left;
}

/* Popular Games Section */
.page-ban-ca__popular-games-section {
  padding: 60px 0;
  background-color: var(--secondary-color);
}

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

.page-ban-ca__game-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease;
}

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

.page-ban-ca__game-card-img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-ban-ca__game-card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
  padding: 0 15px;
}

.page-ban-ca__game-card-text {
  font-size: 0.95em;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding: 0 15px;
}

/* Tips Section */
.page-ban-ca__tips-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-ban-ca__tips-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-ban-ca__tips-image {
  flex: 1 1 35%;
  min-width: 300px;
  text-align: center;
  order: 2; /* Image on right for desktop */
}

.page-ban-ca__tips-content {
  flex: 1 1 55%;
  min-width: 300px;
  order: 1; /* Content on left for desktop */
}

.page-ban-ca__tips-content .page-ban-ca__section-title,
.page-ban-ca__tips-content .page-ban-ca__section-description {
  text-align: left;
}

.page-ban-ca__tips-img {
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-ban-ca__tips-list li {
  margin-bottom: 20px;
  padding-left: 25px;
  position: relative;
}

.page-ban-ca__tips-list li::before {
  content: '✔️';
  position: absolute;
  left: 0;
  color: var(--button-text-color); /* #FFFF00 */
  font-size: 1.2em;
  top: 0;
}

.page-ban-ca__tip-title {
  font-size: 1.25em;
  font-weight: bold;
  color: var(--button-text-color); /* #FFFF00 */
  margin-bottom: 5px;
}

.page-ban-ca__tip-text {
  color: var(--text-light);
}

/* Promotions Section */
.page-ban-ca__promo-section {
  padding: 60px 0;
  background-color: var(--secondary-color);
}

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

.page-ban-ca__promo-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease;
}

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

.page-ban-ca__promo-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-ban-ca__promo-card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
  padding: 0 15px;
}

.page-ban-ca__promo-card-text {
  font-size: 0.95em;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding: 0 15px;
}

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

/* FAQ Section */
.page-ban-ca__faq-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-ban-ca__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--button-text-color); /* #FFFF00 */
  user-select: none;
  list-style: none;
  position: relative;
}

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

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

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

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: var(--button-text-color);
}

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

.page-ban-ca__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-light);
}

/* Final CTA Section */
.page-ban-ca__cta-final-section {
  padding: 60px 0;
  background-color: var(--secondary-color);
}

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

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

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

  .page-ban-ca__icon-box-media {
    width: 180px;
    height: 180px;
  }

  .page-ban-ca__guide-layout,
  .page-ban-ca__tips-layout {
    flex-direction: column;
    gap: 30px;
  }

  .page-ban-ca__guide-content,
  .page-ban-ca__guide-image,
  .page-ban-ca__tips-content,
  .page-ban-ca__tips-image {
    flex: 1 1 100%;
    text-align: center;
  }

  .page-ban-ca__guide-content .page-ban-ca__section-title,
  .page-ban-ca__guide-content .page-ban-ca__section-description,
  .page-ban-ca__tips-content .page-ban-ca__section-title,
  .page-ban-ca__tips-content .page-ban-ca__section-description {
    text-align: center;
  }

  .page-ban-ca__guide-cta {
    text-align: center;
  }

  .page-ban-ca__tips-image {
    order: 1;
  }

  .page-ban-ca__tips-content {
    order: 2;
  }

  .page-ban-ca__tips-list li::before {
    left: 50%;
    transform: translateX(-50%);
    top: -10px;
  }

  .page-ban-ca__tips-list li {
    padding-left: 0;
    padding-top: 30px;
  }

  .page-ban-ca__tip-title {
    text-align: center;
  }

  .page-ban-ca__tip-text {
    text-align: center;
  }

}

@media (max-width: 768px) {
  .page-ban-ca {
    font-size: 16px;
    line-height: 1.6;
  }

  /* General Image Responsive */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-ban-ca__container,
  .page-ban-ca__section,
  .page-ban-ca__card,
  .page-ban-ca__icon-box,
  .page-ban-ca__game-card,
  .page-ban-ca__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons Responsive */
  .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-cta-buttons,
  .page-ban-ca__final-cta-buttons {
    flex-direction: column !important;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-ban-ca__hero-content {
    text-align: center;
    flex: 1 1 100%;
  }

  .page-ban-ca__hero-title {
    font-size: 2.2em;
    color: var(--button-text-color);
  }

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

  .page-ban-ca__hero-image {
    flex: 1 1 100%;
  }

  /* Intro Section (Why Choose tt 88) */
  .page-ban-ca__intro-section {
    padding: 40px 0;
  }

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

  .page-ban-ca__icon-box-media {
    width: 160px;
    height: 160px;
    border-width: 3px;
  }

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

  /* Guide Section (How to Play) */
  .page-ban-ca__guide-section {
    padding: 40px 0;
  }

  .page-ban-ca__guide-layout {
    flex-direction: column-reverse; /* Image above content for mobile */
    gap: 20px;
  }

  .page-ban-ca__guide-content .page-ban-ca__section-title,
  .page-ban-ca__guide-content .page-ban-ca__section-description {
    text-align: center;
  }

  .page-ban-ca__guide-steps li {
    padding-left: 35px;
    margin-bottom: 20px;
  }

  .page-ban-ca__guide-steps li::before {
    width: 28px;
    height: 28px;
    font-size: 1em;
  }

  .page-ban-ca__guide-cta {
    text-align: center;
  }

  /* Popular Games Section */
  .page-ban-ca__popular-games-section {
    padding: 40px 0;
  }

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

  .page-ban-ca__game-card-img {
    
  }

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

  .page-ban-ca__tips-layout {
    flex-direction: column;
    gap: 20px;
  }

  .page-ban-ca__tips-image {
    order: 1;
  }

  .page-ban-ca__tips-content {
    order: 2;
  }

  .page-ban-ca__tips-content .page-ban-ca__section-title,
  .page-ban-ca__tips-content .page-ban-ca__section-description {
    text-align: center;
  }

  .page-ban-ca__tips-list li {
    text-align: center;
    padding-left: 0;
    padding-top: 25px;
  }

  .page-ban-ca__tips-list li::before {
    left: 50%;
    transform: translateX(-50%);
    top: 0;
  }

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

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

  .page-ban-ca__promo-card-img {
    
  }

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

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

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

  /* Final CTA Section */
  .page-ban-ca__cta-final-section {
    padding: 40px 0;
  }

  .page-ban-ca__final-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}