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

.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;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
}

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

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

.page-ban-ca__section-description--white {
  color: #f0f0f0;
}

.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: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-ban-ca__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2a;
}

/* HERO Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, shared.css handles body padding */
  padding-bottom: 60px;
  background-color: #f5f5f5;
}

.page-ban-ca__hero-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  text-align: left;
}

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

.page-ban-ca__hero-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 900;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
  text-align: left;
}

.page-ban-ca__hero-description {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 30px;
  text-align: left;
}

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

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

.page-ban-ca__hero-main-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

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

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

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

.page-ban-ca__feature-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-ban-ca__icon-box-media {
  width: 200px;
  height: 200px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 6px #e0e0e0;
}

.page-ban-ca__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; /* Ensure image is circular inside */
  display: block;
}

.page-ban-ca__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
}

.page-ban-ca__feature-text {
  font-size: 1em;
  color: #555555;
}

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

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

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

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

.page-ban-ca__game-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-ban-ca__game-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 15px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-ban-ca__game-trial-frame {
  border: none;
  width: 100%;
  height: 300px; /* Fixed height for iframe */
  margin-bottom: 15px;
}

.page-ban-ca__game-btn {
  margin: 0 15px;
  max-width: calc(100% - 30px);
}

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

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

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

.page-ban-ca__ordered-list {
  list-style-type: decimal;
  padding-left: 25px;
}

.page-ban-ca__ordered-list li {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-ban-ca__list-strong {
  color: #FFFF00; /* Yellow for emphasis */
}

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

.page-ban-ca__guide-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 0 auto;
}

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

.page-ban-ca__tips-content {
  display: flex;
  flex-wrap: wrap-reverse; /* Image on left, text on right for desktop */
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

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

.page-ban-ca__tips-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

.page-ban-ca__tips-list {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-ban-ca__unordered-list {
  list-style-type: disc;
  padding-left: 25px;
}

.page-ban-ca__unordered-list li {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #333333;
}

/* Promo Section */
.page-ban-ca__promo-section {
  padding: 60px 0;
  background-color: #017439;
  color: #ffffff;
  text-align: center;
}

.page-ban-ca__promo-content {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-ban-ca__promo-img {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__promo-btn {
  font-size: 1.1em;
  padding: 15px 30px;
}

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

.page-ban-ca__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

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

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* Hide default details marker */
}

.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: 15px;
  color: #017439;
  line-height: 1;
}

.page-ban-ca__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1.05em;
  color: #555555;
  background-color: #ffffff;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-question {
  border-bottom: none;
}

/* CTA Section */
.page-ban-ca__cta-section {
  padding: 60px 0;
  background-color: #017439;
  color: #ffffff;
  text-align: center;
}

.page-ban-ca__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-ban-ca__cta-button {
  font-size: 1.4em;
  padding: 18px 40px;
  border-radius: 10px;
}

/* Copyright Info */
.page-ban-ca__copyright-info {
  padding: 20px 16px;
  text-align: center;
  font-size: 0.9em;
  color: #777777;
  border-top: 1px solid #e0e0e0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__hero-container,
  .page-ban-ca__guide-content,
  .page-ban-ca__tips-content {
    flex-direction: column;
    text-align: center;
  }

  .page-ban-ca__hero-content,
  .page-ban-ca__guide-steps,
  .page-ban-ca__tips-list {
    order: 2;
  }

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

  .page-ban-ca__hero-title,
  .page-ban-ca__hero-description {
    text-align: center;
  }

  .page-ban-ca__hero-cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-ban-ca__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

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

  .page-ban-ca__hero-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important; /* Adjust font size for mobile */
  }

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

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

  .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;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 1em;
  }

  /* General Section Styling */
  .page-ban-ca__container {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  /* Features Section (Module 1 equivalent) */
  .page-ban-ca__features-section {
    padding: 30px 0;
  }

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

  .page-ban-ca__icon-box-media {
    width: 150px;
    height: 150px;
    box-shadow: 0 0 0 4px #e0e0e0;
  }

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

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

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

  .page-ban-ca__game-thumbnail {
    height: 180px;
  }

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

  .page-ban-ca__game-trial-frame {
    height: 250px;
  }

  /* Guide Section */
  .page-ban-ca__guide-section {
    padding: 30px 0;
  }

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

  .page-ban-ca__ordered-list li {
    font-size: 1em;
    margin-bottom: 10px;
  }

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

  .page-ban-ca__tips-content {
    gap: 20px;
  }

  .page-ban-ca__unordered-list li {
    font-size: 1em;
    margin-bottom: 10px;
  }

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

  .page-ban-ca__promo-img {
    max-width: 100%;
  }

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

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

  .page-ban-ca__faq-answer {
    padding: 12px 20px 15px;
    font-size: 0.95em;
  }

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

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

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

  /* Exception for circular images to maintain aspect ratio */
  .page-ban-ca__icon-box-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* Ensure all containers with images are constrained */
  .page-ban-ca__hero-image,
  .page-ban-ca__guide-image,
  .page-ban-ca__tips-image,
  .page-ban-ca__promo-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__hero-main-img,
  .page-ban-ca__guide-img,
  .page-ban-ca__tips-img,
  .page-ban-ca__promo-img {
    margin-left: auto;
    margin-right: auto;
  }

  .page-ban-ca__copyright-info {
    padding: 15px 15px;
  }
}