.page-ban-ca {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--deep-navy);
}

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

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

.page-ban-ca__dark-section {
  background-color: var(--deep-navy);
}

.page-ban-ca__dark-bg {
  background-color: var(--deep-navy);
}

.page-ban-ca__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-ban-ca__section-title--light {
  color: var(--text-main);
}

.page-ban-ca p {
  line-height: 1.7;
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.page-ban-ca h3 {
  color: var(--gold);
  font-size: 24px;
  margin-bottom: 15px;
  line-height: 1.4;
}

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

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: var(--text-main);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__btn-secondary {
  background: none;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.page-ban-ca__btn-secondary:hover {
  background-color: rgba(242, 193, 78, 0.1);
  transform: translateY(-2px);
}

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

/* Hero Section */
.page-ban-ca__hero-section {
  position: relative;
  text-align: center;
  color: var(--text-main);
  padding-top: 10px; /* Adjusted for body padding-top */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-ban-ca__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.page-ban-ca__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-ban-ca__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 15px 0;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.page-ban-ca__hero-title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-main);
}

.page-ban-ca__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

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

/* Intro Section */
.page-ban-ca__intro-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-ban-ca__intro-text {
  flex: 1;
  text-align: left;
}

.page-ban-ca__intro-image-wrapper {
  flex: 1;
  min-width: 200px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__intro-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Features Section */
.page-ban-ca__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-ban-ca__feature-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
}

.page-ban-ca__feature-title {
  color: var(--gold);
  font-size: 22px;
  margin-bottom: 10px;
}

.page-ban-ca__feature-description {
  color: var(--text-secondary);
  font-size: 16px;
}

.page-ban-ca__feature-image-wrapper {
  max-width: 800px;
  margin: 40px auto 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

/* Game Types Section */
.page-ban-ca__game-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-ban-ca__game-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

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

.page-ban-ca__game-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-ban-ca__game-card-title {
  color: var(--text-main);
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-ban-ca__game-card-description {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 20px;
}

/* Guide Section */
.page-ban-ca__guide-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-ban-ca__guide-steps {
  flex: 1;
}

.page-ban-ca__guide-item {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

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

.page-ban-ca__guide-step-title {
  color: var(--gold);
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-ban-ca__guide-image-wrapper {
  flex: 1;
  min-width: 200px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: calc(var(--header-offset, 0px) + 20px); /* Sticky effect, offset by header */
}

.page-ban-ca__guide-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Tips Section */
.page-ban-ca__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.page-ban-ca__tip-card {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
}

.page-ban-ca__tip-title {
  color: var(--gold);
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-ban-ca__tip-description {
  color: var(--text-secondary);
  font-size: 15px;
}

.page-ban-ca__tips-image-wrapper {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__tips-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Promo Section */
.page-ban-ca__promo-layout {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-ban-ca__promo-content {
  flex: 1;
  text-align: left;
}

.page-ban-ca__promo-description {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 30px;
}

.page-ban-ca__promo-image-wrapper {
  flex: 1;
  min-width: 200px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__promo-image {
  width: 100%;
  height: auto;
  display: block;
}

/* FAQ Section */
details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  overflow: hidden;
}
details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main);
  font-weight: 600;
}
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: #152A4A; /* Slightly lighter card background on hover */
}
.page-ban-ca__faq-qtext {
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-ban-ca__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
  padding: 0 20px 20px;
  background: #0d1e3a; /* Slightly darker than card-bg for answer content */
  border-radius: 0 0 8px 8px;
  color: var(--text-secondary);
}
.page-ban-ca__faq-answer p {
  margin-bottom: 0;
  color: var(--text-secondary);
}

/* Conclusion Section */
.page-ban-ca__conclusion-text {
  font-size: 18px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
  color: var(--text-secondary);
}

.page-ban-ca__conclusion-buttons {
  text-align: center;
}

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

/* Media Queries */
@media (max-width: 1024px) {
  .page-ban-ca__hero-title {
    font-size: clamp(30px, 4vw, 48px);
  }
  .page-ban-ca__hero-description {
    font-size: 18px;
  }
  .page-ban-ca__section-title {
    font-size: 30px;
  }
  .page-ban-ca__intro-content,
  .page-ban-ca__promo-layout,
  .page-ban-ca__guide-layout {
    flex-direction: column;
    gap: 30px;
  }
  .page-ban-ca__intro-text,
  .page-ban-ca__promo-content,
  .page-ban-ca__guide-steps {
    text-align: center;
  }
  .page-ban-ca__intro-image-wrapper,
  .page-ban-ca__promo-image-wrapper,
  .page-ban-ca__guide-image-wrapper {
    order: -1; /* Image appears above text on smaller screens */
  }
  .page-ban-ca__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    width: 100%;
  }
  .page-ban-ca__guide-image-wrapper {
    position: relative;
    top: auto;
  }
}

@media (max-width: 768px) {
  .page-ban-ca__section-spacing {
    padding: 40px 0;
  }
  .page-ban-ca__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-ban-ca h3 {
    font-size: 20px;
  }
  .page-ban-ca p {
    font-size: 15px;
  }
  
  /* Hero Section */
  .page-ban-ca__hero-section {
    padding-top: 10px; /* Consistent small top padding */
    padding-bottom: 40px;
  }
  .page-ban-ca__hero-title {
    font-size: clamp(28px, 8vw, 36px) !important;
    margin-bottom: 15px;
  }
  .page-ban-ca__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-ban-ca__hero-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Buttons - general mobile adaptation */
  .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;
    font-size: 16px;
  }
  .page-ban-ca__hero-buttons,
  .page-ban-ca__conclusion-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Intro Section */
  .page-ban-ca__intro-content {
    gap: 20px;
  }
  .page-ban-ca__intro-text {
    order: 1;
  }
  .page-ban-ca__intro-image-wrapper {
    order: -1;
  }

  /* Features Section */
  .page-ban-ca__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-ban-ca__feature-item {
    padding: 20px;
  }
  .page-ban-ca__feature-title {
    font-size: 20px;
  }
  .page-ban-ca__feature-description {
    font-size: 14px;
  }

  /* Game Types Section */
  .page-ban-ca__game-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-ban-ca__game-card-image {
    height: 180px;
  }
  .page-ban-ca__game-card-content {
    padding: 15px;
  }
  .page-ban-ca__game-card-title {
    font-size: 20px;
  }
  .page-ban-ca__game-card-description {
    font-size: 14px;
  }

  /* Guide Section */
  .page-ban-ca__guide-layout {
    flex-direction: column;
    gap: 20px;
  }
  .page-ban-ca__guide-item {
    padding: 20px;
  }
  .page-ban-ca__guide-step-title {
    font-size: 18px;
  }
  .page-ban-ca__guide-image-wrapper {
    order: -1;
  }

  /* Tips Section */
  .page-ban-ca__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-ban-ca__tip-card {
    padding: 20px;
  }
  .page-ban-ca__tip-title {
    font-size: 18px;
  }
  .page-ban-ca__tip-description {
    font-size: 14px;
  }

  /* Promo Section */
  .page-ban-ca__promo-layout {
    flex-direction: column;
    gap: 20px;
  }
  .page-ban-ca__promo-content {
    order: 1;
  }
  .page-ban-ca__promo-image-wrapper {
    order: -1;
  }
  .page-ban-ca__promo-description {
    font-size: 16px;
  }

  /* FAQ Section */
  details.page-ban-ca__faq-item summary.page-ban-ca__faq-question { padding: 15px; }
  .page-ban-ca__faq-qtext { font-size: 16px; }
  .page-ban-ca__faq-toggle { font-size: 20px; width: 24px; margin-left: 10px; }
  details.page-ban-ca__faq-item .page-ban-ca__faq-answer { padding: 0 15px 15px; }

  /* Conclusion Section */
  .page-ban-ca__conclusion-text {
    font-size: 16px;
  }

  /* All Images - mobile adaptation */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-ban-ca__hero-image-wrapper,
  .page-ban-ca__intro-image-wrapper,
  .page-ban-ca__feature-image-wrapper,
  .page-ban-ca__game-card-image,
  .page-ban-ca__guide-image-wrapper,
  .page-ban-ca__tips-image-wrapper,
  .page-ban-ca__promo-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
  }
  .page-ban-ca__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}