/* style/ban-ca.css */
.page-ban-ca {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF); /* Assuming light background from shared.css */
}

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

.page-ban-ca__article-wrap {
  max-width: 900px; /* Slightly narrower for long-form content */
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section - Image above content, not overlapping */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: #f8f9fa; /* Light background for the section */
  text-align: center;
}

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

.page-ban-ca__hero-content {
  padding: 0 20px;
  max-width: 800px;
  margin: 0 auto;
}

.page-ban-ca__main-title {
  font-size: clamp(28px, 4vw, 42px); /* Responsive font size for H1 */
  color: #26A9E0; /* Brand color for main title */
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.page-ban-ca__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #555555;
}

.page-ban-ca__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-ban-ca__btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-ban-ca__btn--primary {
  background-color: #26A9E0; /* Main brand color */
  color: #FFFFFF;
}

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

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

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

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

.page-ban-ca__section {
  padding: 50px 0;
  background-color: #FFFFFF;
}

.page-ban-ca__section:nth-child(even) {
  background-color: #f8f9fa; /* Alternate section background for readability */
}

.page-ban-ca__section-title {
  font-size: 32px;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-ban-ca__section p {
  margin-bottom: 15px;
  color: #333333;
}

.page-ban-ca__section p a {
  color: #26A9E0;
  text-decoration: none;
}

.page-ban-ca__section p a:hover {
  text-decoration: underline;
}

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

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

.page-ban-ca__figcaption {
  font-style: italic;
  font-size: 14px;
  color: #666666;
  margin-top: 10px;
}

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

.page-ban-ca__feature-item {
  background-color: #FFFFFF;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border-left: 5px solid #26A9E0;
}

.page-ban-ca__feature-title {
  font-size: 20px;
  color: #26A9E0;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-ban-ca__feature-item p {
  font-size: 15px;
  color: #555555;
}

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

.page-ban-ca__game-item {
  background-color: #FFFFFF;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-ban-ca__game-name {
  font-size: 22px;
  color: #26A9E0;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-ban-ca__game-item p {
  font-size: 15px;
  color: #555555;
  margin-bottom: 20px;
}

.page-ban-ca__game-trial-frame {
  border: none;
  border-radius: 8px;
  width: 100%;
  min-height: 300px;
}

/* How-to-play Steps */
.page-ban-ca__step-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  counter-reset: step-counter;
}

.page-ban-ca__step-item {
  background-color: #FFFFFF;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-ban-ca__step-item::before {
  counter-increment: step-counter;
  content: "Bước " counter(step-counter);
  font-size: 24px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-ban-ca__step-title {
  font-size: 20px;
  color: #333333;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-ban-ca__step-item p {
  font-size: 15px;
  color: #555555;
  margin-bottom: 15px;
}

/* Tips Section */
.page-ban-ca__tip-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-ban-ca__tip-item {
  background-color: #FFFFFF;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border-left: 5px solid #EA7C07; /* Login color for tips */
}

.page-ban-ca__tip-title {
  font-size: 20px;
  color: #EA7C07; /* Login color for tip titles */
  margin-top: 0;
  margin-bottom: 10px;
}

.page-ban-ca__tip-item p {
  font-size: 15px;
  color: #555555;
}

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

.page-ban-ca__promo-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-ban-ca__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for promo images */
  object-fit: cover;
  display: block;
}

.page-ban-ca__promo-card .page-ban-ca__promo-title {
  font-size: 20px;
  color: #26A9E0;
  margin: 20px 15px 10px 15px;
  flex-grow: 1; /* Push button to bottom */
}

.page-ban-ca__promo-card p {
  font-size: 15px;
  color: #555555;
  margin: 0 15px 20px 15px;
  flex-grow: 1;
}

.page-ban-ca__promo-card .page-ban-ca__btn {
  margin: 0 15px 20px 15px;
}

/* FAQ Section */
.page-ban-ca__faq-list {
  margin-top: 30px;
}

.page-ban-ca__faq-item {
  background-color: #FFFFFF;
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.page-ban-ca__faq-question {
  font-size: 18px;
  color: #26A9E0;
  margin: 0;
  font-weight: 700;
  cursor: pointer; /* Indicate it's clickable, even if no JS */
}

.page-ban-ca__faq-answer {
  font-size: 15px;
  color: #555555;
  margin-top: 10px;
  /* Since no JS for accordion, just display content */
}

/* Conclusion Section */
.page-ban-ca__conclusion-section {
  background-color: #26A9E0; /* Brand color background */
  color: #FFFFFF; /* White text for contrast */
  text-align: center;
  padding: 60px 0;
}

.page-ban-ca__conclusion-section .page-ban-ca__section-title {
  color: #FFFFFF; /* White title for contrast */
  margin-bottom: 25px;
}

.page-ban-ca__conclusion-section p {
  color: #f0f0f0; /* Slightly off-white for paragraphs */
  font-size: 17px;
  margin-bottom: 20px;
}

.page-ban-ca__conclusion-section p a {
  color: #f0f0f0;
  text-decoration: underline;
}

.page-ban-ca__conclusion-section .page-ban-ca__btn--secondary {
  background-color: #f0f0f0;
  color: #26A9E0;
  border-color: #f0f0f0;
}

.page-ban-ca__conclusion-section .page-ban-ca__btn--secondary:hover {
  background-color: #FFFFFF;
  color: #26A9E0;
  border-color: #FFFFFF;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__main-title {
    font-size: clamp(26px, 3.5vw, 38px);
  }

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

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

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

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

  .page-ban-ca__hero-content {
    padding: 0 15px;
  }

  .page-ban-ca__main-title {
    font-size: 28px !important; /* Fixed size for mobile H1 */
    margin-bottom: 10px;
  }

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

  .page-ban-ca__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-ban-ca__btn {
    width: 100% !important; /* Full width for buttons */
    max-width: 100% !important;
    padding: 12px 15px !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Single-column long text container */
  .page-ban-ca__article-wrap {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__section {
    padding: 30px 0;
  }

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

  /* Generic images and figure */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__figure {
    margin: 20px 0;
  }

  .page-ban-ca__figcaption {
    font-size: 12px;
  }

  /* Feature List */
  .page-ban-ca__feature-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

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

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

  /* Game List */
  .page-ban-ca__game-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .page-ban-ca__game-trial-frame {
    min-height: 250px; /* Adjust iframe height for mobile */
  }

  /* How-to-play Steps */
  .page-ban-ca__step-item {
    padding: 20px;
    margin-bottom: 15px;
  }

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

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

  /* Tips Section */
  .page-ban-ca__tip-item {
    padding: 20px;
    margin-bottom: 15px;
  }

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

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

  .page-ban-ca__promo-card {
    padding-bottom: 20px; /* Add padding at bottom for btn */
  }

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

  .page-ban-ca__promo-card .page-ban-ca__promo-title {
    font-size: 18px;
    margin: 15px 15px 10px 15px;
  }

  .page-ban-ca__promo-card p {
    margin: 0 15px 15px 15px;
  }

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

  /* FAQ Section */
  .page-ban-ca__faq-item {
    padding: 15px 20px;
    margin-bottom: 10px;
  }

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

  .page-ban-ca__faq-answer {
    font-size: 14px;
  }

  /* Conclusion Section */
  .page-ban-ca__conclusion-section {
    padding: 40px 15px;
  }

  .page-ban-ca__conclusion-section .page-ban-ca__section-title {
    font-size: 24px;
  }

  .page-ban-ca__conclusion-section p {
    font-size: 15px;
  }
}