/* Base styles for the page-ban-ca */
.page-ban-ca {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-ban-ca-text-main);
  background-color: var(--page-ban-ca-bg);
}

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

.page-ban-ca__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--page-ban-ca-text-main);
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
}

.page-ban-ca__section-description {
  font-size: 18px;
  color: var(--page-ban-ca-text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-ban-ca__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

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

.page-ban-ca__small-button {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 6px;
}

.page-ban-ca__card {
  background-color: var(--page-ban-ca-card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--page-ban-ca-text-main);
  border: 1px solid var(--page-ban-ca-border-color);
}

.page-ban-ca__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-top: 15px;
  margin-bottom: 10px;
  color: var(--page-ban-ca-gold-color);
}

.page-ban-ca__card p {
  font-size: 16px;
  color: var(--page-ban-ca-text-secondary);
  flex-grow: 1;
}

.page-ban-ca__inline-link {
  color: var(--page-ban-ca-gold-color);
  text-decoration: none;
  font-weight: 600;
}

.page-ban-ca__inline-link:hover {
  text-decoration: underline;
}

/* Variable Definitions */
:root {
  --page-ban-ca-main-color: #11A84E;
  --page-ban-ca-secondary-color: #22C768;
  --page-ban-ca-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-ban-ca-card-bg: #11271B;
  --page-ban-ca-bg: #08160F;
  --page-ban-ca-text-main: #F2FFF6;
  --page-ban-ca-text-secondary: #A7D9B8;
  --page-ban-ca-border-color: #2E7A4E;
  --page-ban-ca-glow-color: #57E38D;
  --page-ban-ca-gold-color: #F2C14E;
  --page-ban-ca-divider-color: #1E3A2A;
  --page-ban-ca-deep-green-color: #0A4B2C;
}

/* Hero Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding to avoid double margin with body */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  min-height: 600px;
  padding-bottom: 50px;
}

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

.page-ban-ca__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.page-ban-ca__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-ban-ca__main-title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  color: var(--page-ban-ca-gold-color);
  margin-bottom: 20px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.page-ban-ca__hero-description {
  font-size: clamp(16px, 2vw, 22px);
  color: var(--page-ban-ca-text-main);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* About Section */
.page-ban-ca__about-section {
  padding: 80px 0;
  background-color: var(--page-ban-ca-deep-green-color);
}

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

.page-ban-ca__content-wrapper p {
  flex: 1;
  min-width: 300px;
  font-size: 17px;
  color: var(--page-ban-ca-text-secondary);
  text-align: justify;
}

.page-ban-ca__content-image {
  flex: 1;
  min-width: 400px;
  max-width: 50%;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
  height: auto;
  display: block;
}

/* Why Choose Section */
.page-ban-ca__why-choose-section {
  padding: 80px 0;
  background-color: var(--page-ban-ca-bg);
}

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

.page-ban-ca__feature-card {
  background-color: var(--page-ban-ca-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  text-align: left;
  border: 1px solid var(--page-ban-ca-border-color);
}

.page-ban-ca__feature-card h3 {
  color: var(--page-ban-ca-gold-color);
  font-size: 22px;
  margin-bottom: 15px;
}

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

/* Game List Section */
.page-ban-ca__game-list-section {
  padding: 80px 0;
  background-color: var(--page-ban-ca-deep-green-color);
}

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

.page-ban-ca__game-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  text-align: center;
}

.page-ban-ca__game-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.page-ban-ca__game-card:hover .page-ban-ca__game-thumbnail {
  transform: scale(1.05);
}

.page-ban-ca__game-card .page-ban-ca__card-title {
  font-size: 24px;
  color: var(--page-ban-ca-gold-color);
  margin-top: 10px;
  margin-bottom: 5px;
}

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

.page-ban-ca__card-button {
  margin-top: auto;
}

/* How To Play Section */
.page-ban-ca__how-to-play-section {
  padding: 80px 0;
  background-color: var(--page-ban-ca-bg);
}

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

.page-ban-ca__step-item {
  background-color: var(--page-ban-ca-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  text-align: center;
  border: 1px solid var(--page-ban-ca-border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-ban-ca__step-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--page-ban-ca-gold-color);
  margin-bottom: 15px;
  line-height: 1;
}

.page-ban-ca__step-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--page-ban-ca-text-main);
  margin-bottom: 15px;
}

.page-ban-ca__step-item p {
  color: var(--page-ban-ca-text-secondary);
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Tips Section */
.page-ban-ca__tips-section {
  padding: 80px 0;
  background-color: var(--page-ban-ca-deep-green-color);
}

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

.page-ban-ca__tip-card {
  background-color: var(--page-ban-ca-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  text-align: left;
  border: 1px solid var(--page-ban-ca-border-color);
}

.page-ban-ca__tip-card h3 {
  color: var(--page-ban-ca-gold-color);
  font-size: 22px;
  margin-bottom: 15px;
}

.page-ban-ca__tip-card p {
  color: var(--page-ban-ca-text-secondary);
  font-size: 16px;
}

/* Promotions Section */
.page-ban-ca__promotions-section {
  padding: 80px 0;
  background-color: var(--page-ban-ca-bg);
}

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

.page-ban-ca__promo-card {
  background-color: var(--page-ban-ca-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  text-align: left;
  border: 1px solid var(--page-ban-ca-border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-ban-ca__promo-card h3 {
  color: var(--page-ban-ca-gold-color);
  font-size: 22px;
  margin-bottom: 15px;
}

.page-ban-ca__promo-card p {
  color: var(--page-ban-ca-text-secondary);
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* App Section */
.page-ban-ca__app-section {
  padding: 80px 0;
  background-color: var(--page-ban-ca-deep-green-color);
}

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

.page-ban-ca__app-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-ban-ca__app-text p {
  font-size: 17px;
  color: var(--page-ban-ca-text-secondary);
  margin-bottom: 30px;
}

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

.page-ban-ca__app-image {
  flex: 1;
  min-width: 400px;
  max-width: 50%;
}

.page-ban-ca__app-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Safety Section */
.page-ban-ca__safety-section {
  padding: 80px 0;
  background-color: var(--page-ban-ca-bg);
}

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

.page-ban-ca__safety-card {
  background-color: var(--page-ban-ca-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  text-align: left;
  border: 1px solid var(--page-ban-ca-border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-ban-ca__safety-card h3 {
  color: var(--page-ban-ca-gold-color);
  font-size: 22px;
  margin-bottom: 15px;
}

.page-ban-ca__safety-card p {
  color: var(--page-ban-ca-text-secondary);
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* SEO Article Section */
.page-ban-ca__seo-article-section {
  padding: 80px 0;
  background-color: var(--page-ban-ca-deep-green-color);
}

.page-ban-ca__article-body {
  max-width: 1000px; /* Constrain width for readability */
  margin: 0 auto;
  text-align: justify;
  color: var(--page-ban-ca-text-secondary);
}

.page-ban-ca__article-body h2,
.page-ban-ca__article-body h3 {
  color: var(--page-ban-ca-gold-color);
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: left;
}

.page-ban-ca__article-body h2 {
  font-size: 32px;
}

.page-ban-ca__article-body h3 {
  font-size: 26px;
}

.page-ban-ca__article-body p {
  margin-bottom: 15px;
  font-size: 17px;
}

.page-ban-ca__article-figure {
  margin: 40px 0;
  text-align: center;
}

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

.page-ban-ca__article-figure figcaption {
  color: var(--page-ban-ca-text-secondary);
  font-size: 14px;
  margin-top: 10px;
}

/* FAQ Section */
.page-ban-ca__faq-section {
  padding: 80px 0;
  background-color: var(--page-ban-ca-bg);
}

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

details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--page-ban-ca-border-color);
  overflow: hidden;
  background: var(--page-ban-ca-card-bg);
}

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;
}

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: rgba(255, 255, 255, 0.05);
}

.page-ban-ca__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--page-ban-ca-text-main);
}

.page-ban-ca__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--page-ban-ca-gold-color);
  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: rgba(0, 0, 0, 0.1);
  border-radius: 0 0 5px 5px;
}

details.page-ban-ca__faq-item .page-ban-ca__faq-answer p {
  color: var(--page-ban-ca-text-secondary);
  font-size: 16px;
}

/* CTA Section */
.page-ban-ca__cta-section {
  padding: 80px 0;
  background-color: var(--page-ban-ca-deep-green-color);
  text-align: center;
}

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

/* Global image settings for content area */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-ban-ca__container {
    padding: 0 15px;
  }

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

  .page-ban-ca__main-title {
    font-size: clamp(28px, 4.5vw, 50px);
  }

  .page-ban-ca__hero-description {
    font-size: clamp(15px, 1.8vw, 20px);
  }

  .page-ban-ca__content-wrapper,
  .page-ban-ca__app-content {
    flex-direction: column;
  }

  .page-ban-ca__content-image,
  .page-ban-ca__app-image {
    min-width: unset;
    max-width: 100%;
  }

  .page-ban-ca__article-body h2 {
    font-size: 28px;
  }

  .page-ban-ca__article-body h3 {
    font-size: 24px;
  }
}

@media (max-width: 849px) {
  .page-ban-ca__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    filter: brightness(0.4);
  }
  .page-ban-ca__hero-section {
    min-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-ban-ca__section-title {
    font-size: 28px;
    padding-top: 30px;
  }

  .page-ban-ca__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Hero Section Mobile */
  .page-ban-ca__hero-section {
    padding-top: 10px;
    min-height: 450px;
  }

  .page-ban-ca__main-title {
    font-size: clamp(24px, 8vw, 40px);
    margin-bottom: 15px;
  }

  .page-ban-ca__hero-description {
    font-size: clamp(14px, 3.5vw, 18px);
    margin-bottom: 30px;
  }

  .page-ban-ca__hero-buttons,
  .page-ban-ca__app-buttons,
  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .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: 12px 20px;
    font-size: 16px;
  }
  
  .page-ban-ca__hero-buttons .page-ban-ca__btn-primary,
  .page-ban-ca__hero-buttons .page-ban-ca__btn-secondary,
  .page-ban-ca__app-buttons .page-ban-ca__btn-primary,
  .page-ban-ca__app-buttons .page-ban-ca__btn-secondary,
  .page-ban-ca__cta-buttons .page-ban-ca__btn-primary,
  .page-ban-ca__cta-buttons .page-ban-ca__btn-secondary {
    width: 100% !important;
  }

  /* General Section Padding */
  .page-ban-ca__about-section,
  .page-ban-ca__why-choose-section,
  .page-ban-ca__game-list-section,
  .page-ban-ca__how-to-play-section,
  .page-ban-ca__tips-section,
  .page-ban-ca__promotions-section,
  .page-ban-ca__app-section,
  .page-ban-ca__safety-section,
  .page-ban-ca__seo-article-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__cta-section {
    padding: 40px 0;
  }

  .page-ban-ca__content-wrapper p,
  .page-ban-ca__app-text p {
    font-size: 16px;
  }

  .page-ban-ca__content-image,
  .page-ban-ca__app-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto 0 auto;
  }

  .page-ban-ca__features-grid,
  .page-ban-ca__game-grid,
  .page-ban-ca__steps-grid,
  .page-ban-ca__tips-grid,
  .page-ban-ca__promo-grid,
  .page-ban-ca__safety-points {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ban-ca__feature-card,
  .page-ban-ca__game-card,
  .page-ban-ca__step-item,
  .page-ban-ca__tip-card,
  .page-ban-ca__promo-card,
  .page-ban-ca__safety-card {
    padding: 20px;
  }

  .page-ban-ca__feature-card h3,
  .page-ban-ca__tip-card h3,
  .page-ban-ca__promo-card h3,
  .page-ban-ca__safety-card h3 {
    font-size: 20px;
  }

  .page-ban-ca__game-card .page-ban-ca__card-title {
    font-size: 20px;
  }

  .page-ban-ca__step-number {
    font-size: 40px;
  }

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

  /* SEO Article Mobile */
  .page-ban-ca__article-body {
    padding: 0 15px;
  }

  .page-ban-ca__article-body h2 {
    font-size: 26px;
  }

  .page-ban-ca__article-body h3 {
    font-size: 22px;
  }
  
  .page-ban-ca__article-body p {
    font-size: 16px;
  }

  .page-ban-ca__article-figure {
    margin: 30px 0;
  }

  .page-ban-ca__article-figure img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* FAQ Mobile */
  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;
  }

  details.page-ban-ca__faq-item .page-ban-ca__faq-answer p {
    font-size: 15px;
  }

  /* Ensure no overflow for containers with images/buttons */
  .page-ban-ca__container,
  .page-ban-ca__hero-section,
  .page-ban-ca__about-section,
  .page-ban-ca__why-choose-section,
  .page-ban-ca__game-list-section,
  .page-ban-ca__how-to-play-section,
  .page-ban-ca__tips-section,
  .page-ban-ca__promotions-section,
  .page-ban-ca__app-section,
  .page-ban-ca__safety-section,
  .page-ban-ca__seo-article-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-ban-ca__app-content,
  .page-ban-ca__content-wrapper {
    padding-left: 15px;
    padding-right: 15px;
  }
}