/* style/ban-ca.css */
:root {
  --page-ban-ca-primary-color: #017439;
  --page-ban-ca-secondary-color: #FFFFFF;
  --page-ban-ca-text-color: #333333;
  --page-ban-ca-dark-text-color: #FFFFFF;
  --page-ban-ca-button-register: #C30808;
  --page-ban-ca-button-login: #C30808;
  --page-ban-ca-button-font: #FFFF00;
}

.page-ban-ca {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-ban-ca-text-color);
  background-color: var(--page-ban-ca-secondary-color); /* Default body background is white */
}

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

.page-ban-ca__section-title {
  font-size: 2.5em;
  color: var(--page-ban-ca-primary-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-ban-ca__sub-title {
  font-size: 1.8em;
  color: var(--page-ban-ca-primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

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

.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background: linear-gradient(135deg, #e0ffe0, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.page-ban-ca__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  color: var(--page-ban-ca-text-color);
}

.page-ban-ca__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* H1 with clamp for responsiveness */
  color: var(--page-ban-ca-primary-color);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.page-ban-ca__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.8;
}

.page-ban-ca__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

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

.page-ban-ca__btn-primary {
  background-color: var(--page-ban-ca-button-register);
  color: var(--page-ban-ca-button-font);
  border: 2px solid var(--page-ban-ca-button-register);
}

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

.page-ban-ca__btn-secondary {
  background-color: transparent;
  color: var(--page-ban-ca-primary-color);
  border: 2px solid var(--page-ban-ca-primary-color);
}

.page-ban-ca__btn-secondary:hover {
  background-color: var(--page-ban-ca-primary-color);
  color: var(--page-ban-ca-secondary-color);
}

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

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

.page-ban-ca__intro-section {
  padding: 60px 0;
  background-color: var(--page-ban-ca-secondary-color);
}

.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-item {
  text-align: center;
  padding: 25px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-ban-ca__feature-item:hover {
  transform: translateY(-5px);
}

.page-ban-ca__icon-box-media {
  width: 240px;
  height: 240px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--page-ban-ca-primary-color);
  box-shadow: 0 0 0 8px rgba(1, 116, 57, 0.2);
}

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

.page-ban-ca__feature-title {
  font-size: 1.5em;
  color: var(--page-ban-ca-primary-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-ban-ca__feature-description {
  font-size: 1em;
  color: #555;
}

.page-ban-ca__guide-section {
  padding: 60px 0;
  background-color: var(--page-ban-ca-primary-color);
  color: var(--page-ban-ca-dark-text-color);
}

.page-ban-ca__guide-section .page-ban-ca__section-title {
  color: var(--page-ban-ca-dark-text-color);
}

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

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

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

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

.page-ban-ca__guide-list {
  list-style: none;
  padding: 0;
  counter-reset: guide-step;
}

.page-ban-ca__guide-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 10px;
  position: relative;
  padding-left: 60px;
}

.page-ban-ca__guide-item::before {
  counter-increment: guide-step;
  content: "Bước " counter(guide-step);
  position: absolute;
  left: 15px;
  top: 15px;
  background-color: var(--page-ban-ca-button-register);
  color: var(--page-ban-ca-button-font);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85em;
}

.page-ban-ca__guide-step-title {
  color: var(--page-ban-ca-dark-text-color);
  font-size: 1.3em;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 700;
}

.page-ban-ca__guide-item p {
  color: var(--page-ban-ca-dark-text-color);
  font-size: 1em;
}

.page-ban-ca__game-types-section {
  padding: 60px 0;
  background-color: var(--page-ban-ca-secondary-color);
}

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

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

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

.page-ban-ca__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-ban-ca__game-strategy-card .page-ban-ca__card-title {
  font-size: 1.4em;
  color: var(--page-ban-ca-primary-color);
  padding: 15px 20px 5px;
  margin: 0;
  font-weight: 700;
}

.page-ban-ca__game-strategy-card .page-ban-ca__card-description {
  font-size: 1em;
  color: #555;
  padding: 0 20px 20px;
}

.page-ban-ca__strategy-list {
  list-style: disc;
  padding-left: 25px;
  margin-top: 20px;
  font-size: 1.1em;
}

.page-ban-ca__strategy-list li {
  margin-bottom: 10px;
}

.page-ban-ca__promo-section {
  padding: 60px 0;
  background-color: var(--page-ban-ca-primary-color);
  color: var(--page-ban-ca-dark-text-color);
}

.page-ban-ca__promo-section .page-ban-ca__section-title {
  color: var(--page-ban-ca-dark-text-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: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
  color: var(--page-ban-ca-dark-text-color);
}

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

.page-ban-ca__promo-card .page-ban-ca__card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-ban-ca__promo-card .page-ban-ca__card-title {
  font-size: 1.4em;
  color: var(--page-ban-ca-dark-text-color);
  padding: 15px 20px 5px;
  margin: 0;
  font-weight: 700;
}

.page-ban-ca__promo-card .page-ban-ca__card-description {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
  padding: 0 20px 20px;
}

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

.page-ban-ca__note {
  font-size: 0.9em;
  text-align: center;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.page-ban-ca__why-choose-section {
  padding: 60px 0;
  background-color: var(--page-ban-ca-secondary-color);
}

.page-ban-ca__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-ban-ca__benefits-list li {
  background-color: #f0fdf4;
  padding: 20px;
  border-left: 5px solid var(--page-ban-ca-primary-color);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.1em;
  font-weight: 600;
  color: #333;
}

.page-ban-ca__benefits-list li strong {
  color: var(--page-ban-ca-primary-color);
}

.page-ban-ca__image-wrapper {
  text-align: center;
  margin: 40px 0;
}

.page-ban-ca__content-image {
  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__faq-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

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

.page-ban-ca__faq-item {
  background-color: var(--page-ban-ca-secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px 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: var(--page-ban-ca-primary-color);
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
}

.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;
  line-height: 1;
  margin-left: 15px;
  color: #555;
  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 25px 20px;
  font-size: 1.05em;
  color: #555;
  line-height: 1.7;
}

.page-ban-ca__cta-final-section {
  padding: 60px 0;
  background-color: var(--page-ban-ca-primary-color);
  color: var(--page-ban-ca-dark-text-color);
  text-align: center;
}

.page-ban-ca__cta-final-section .page-ban-ca__section-title {
  color: var(--page-ban-ca-dark-text-color);
  margin-bottom: 20px;
}

.page-ban-ca__cta-final-section .page-ban-ca__text-block {
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-ban-ca__cta-final-section .page-ban-ca__btn-primary {
  background-color: var(--page-ban-ca-button-register);
  border-color: var(--page-ban-ca-button-register);
  color: var(--page-ban-ca-button-font);
}

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

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

.page-ban-ca__section,
.page-ban-ca__card,
.page-ban-ca__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* --- Mobile Responsiveness (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-ban-ca {
    font-size: 15px;
  }

  .page-ban-ca__content-area {
    padding: 20px 15px;
  }

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

  .page-ban-ca__sub-title {
    font-size: 1.5em;
    margin-top: 30px;
  }

  /* HERO Section */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles --header-offset */
    padding-bottom: 30px;
  }

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

  .page-ban-ca__hero-content,
  .page-ban-ca__hero-image {
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-ban-ca__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
    text-align: center;
  }

  .page-ban-ca__hero-description {
    font-size: 1em;
    text-align: center;
    margin-bottom: 20px;
  }

  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Module 1: Intro Section (3 columns) */
  .page-ban-ca__intro-section {
    padding: 30px 0;
  }

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

  .page-ban-ca__feature-item {
    padding: 20px;
  }

  .page-ban-ca__icon-box-media {
    width: 200px;
    height: 200px;
    margin-bottom: 15px;
    border-width: 3px;
    box-shadow: 0 0 0 6px rgba(1, 116, 57, 0.15);
  }

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

  .page-ban-ca__guide-layout {
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
  }

  .page-ban-ca__guide-content,
  .page-ban-ca__guide-image {
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-ban-ca__guide-item {
    padding: 15px 15px 15px 50px;
    margin-bottom: 10px;
  }

  .page-ban-ca__guide-item::before {
    width: 30px;
    height: 30px;
    font-size: 0.8em;
    left: 10px;
    top: 10px;
  }

  .page-ban-ca__guide-step-title {
    font-size: 1.1em;
    margin-bottom: 5px;
  }

  .page-ban-ca__guide-item p {
    font-size: 0.95em;
  }

  /* Game Types Section */
  .page-ban-ca__game-types-section {
    padding: 30px 0;
  }

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

  .page-ban-ca__card-image {
    height: 180px; /* Adjust height for mobile cards */
  }

  .page-ban-ca__game-strategy-card .page-ban-ca__card-title {
    font-size: 1.2em;
    padding: 10px 15px 5px;
  }

  .page-ban-ca__game-strategy-card .page-ban-ca__card-description {
    font-size: 0.95em;
    padding: 0 15px 15px;
  }

  .page-ban-ca__strategy-list {
    padding-left: 20px;
    font-size: 1em;
  }

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

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

  .page-ban-ca__promo-card .page-ban-ca__card-image {
    height: 160px;
  }

  .page-ban-ca__promo-card .page-ban-ca__card-title {
    font-size: 1.2em;
    padding: 10px 15px 5px;
  }

  .page-ban-ca__promo-card .page-ban-ca__card-description {
    font-size: 0.95em;
    padding: 0 15px 15px;
  }

  .page-ban-ca__cta-center {
    margin-top: 30px;
  }

  /* Why Choose Section */
  .page-ban-ca__why-choose-section {
    padding: 30px 0;
  }

  .page-ban-ca__benefits-list {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
  }

  .page-ban-ca__benefits-list li {
    padding: 15px;
    font-size: 1em;
  }

  .page-ban-ca__image-wrapper {
    margin: 30px 0;
  }

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

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

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

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

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

  .page-ban-ca__cta-final-section .page-ban-ca__text-block {
    font-size: 1em;
  }

  /* General Image Responsiveness */
  .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;
  }
}

/* --- Mobile Responsiveness (max-width: 1024px) - for larger tablets/laptops --- */
@media (max-width: 1024px) {
  .page-ban-ca__hero-container,
  .page-ban-ca__content-area {
    padding: 30px 20px;
  }

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

  .page-ban-ca__main-title {
    font-size: clamp(2.5em, 5vw, 3em);
  }

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

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

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

  .page-ban-ca__guide-layout {
    flex-direction: column;
  }

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

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