/* Biến màu sắc */
:root {
  --page-ban-ca-primary-color: #FF8C1A;
  --page-ban-ca-secondary-color: #FFA53A;
  --page-ban-ca-button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  --page-ban-ca-card-bg: #17191F;
  --page-ban-ca-background: #0D0E12;
  --page-ban-ca-text-main: #FFF3E6;
  --page-ban-ca-border-color: #A84F0C;
  --page-ban-ca-glow-color: #FFB04D;
  --page-ban-ca-deep-orange: #D96800;
}

.page-ban-ca {
  font-family: 'Arial', sans-serif;
  color: var(--page-ban-ca-text-main); /* Text Main for dark body background */
  background-color: var(--page-ban-ca-background);
  line-height: 1.6;
}

.page-ban-ca a {
  color: var(--page-ban-ca-secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-ban-ca a:hover {
  color: var(--page-ban-ca-glow-color);
  text-decoration: underline;
}

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

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

.page-ban-ca__section--dark {
  background-color: var(--page-ban-ca-background);
  color: var(--page-ban-ca-text-main);
}

.page-ban-ca__section--light {
  background-color: #1a1e23; /* Slightly lighter dark background for contrast */
  color: var(--page-ban-ca-text-main);
}

.page-ban-ca__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--page-ban-ca-primary-color);
  text-shadow: 0 0 8px rgba(255, 140, 26, 0.5);
}

.page-ban-ca__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: rgba(255, 243, 230, 0.8);
}

.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;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-ban-ca__btn-primary {
  background: var(--page-ban-ca-button-gradient);
  color: var(--page-ban-ca-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-ban-ca__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
  opacity: 0.9;
}

.page-ban-ca__btn-secondary {
  background-color: transparent;
  color: var(--page-ban-ca-primary-color);
  border: 2px solid var(--page-ban-ca-primary-color);
  box-shadow: 0 0 10px rgba(255, 140, 26, 0.3);
}

.page-ban-ca__btn-secondary:hover {
  background-color: var(--page-ban-ca-primary-color);
  color: var(--page-ban-ca-text-main);
  box-shadow: 0 0 15px rgba(255, 140, 26, 0.5);
}

/* Hero Section */
.page-ban-ca__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, not var(--header-offset) */
  padding-bottom: 80px;
  text-align: center;
  overflow: hidden;
}

.page-ban-ca__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: var(--page-ban-ca-background);
}

.page-ban-ca__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  display: block;
}

.page-ban-ca__hero-content {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 40px;
}

.page-ban-ca__main-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  color: var(--page-ban-ca-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(255, 140, 26, 0.7);
}

.page-ban-ca__intro-text {
  font-size: 20px;
  max-width: 900px;
  margin: 0 auto 40px;
  color: rgba(255, 243, 230, 0.9);
}

.page-ban-ca__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Content Grid */
.page-ban-ca__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-ban-ca__content-grid:nth-child(even) {
  flex-direction: row-reverse;
}

.page-ban-ca__text-block,
.page-ban-ca__image-block {
  flex: 1;
}

.page-ban-ca__text-block p {
  margin-bottom: 15px;
  font-size: 17px;
  color: rgba(255, 243, 230, 0.85);
}

.page-ban-ca__feature-list,
.page-ban-ca__strategy-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-ban-ca__feature-list li,
.page-ban-ca__strategy-list li {
  background: rgba(255, 140, 26, 0.1);
  border-left: 4px solid var(--page-ban-ca-primary-color);
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 4px;
  color: var(--page-ban-ca-text-main);
  font-size: 16px;
}

.page-ban-ca__feature-list li strong,
.page-ban-ca__strategy-list li strong {
  color: var(--page-ban-ca-secondary-color);
}

.page-ban-ca__image-block img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--page-ban-ca-border-color);
}

/* Game Grid */
.page-ban-ca__product-showcase {
  padding-bottom: 80px;
}

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

.page-ban-ca__card {
  background-color: var(--page-ban-ca-card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--page-ban-ca-border-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  color: var(--page-ban-ca-text-main);
  height: 100%; /* Ensure cards are same height */
  box-sizing: border-box;
}

.page-ban-ca__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  object-fit: cover;
  border: 1px solid var(--page-ban-ca-border-color);
}

.page-ban-ca__card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--page-ban-ca-primary-color);
  margin-bottom: 10px;
  flex-grow: 1;
}

.page-ban-ca__card-description {
  font-size: 16px;
  color: rgba(255, 243, 230, 0.7);
  margin-bottom: 20px;
}

.page-ban-ca__game-trial-frame {
  width: 100%;
  height: 300px;
  border: 1px solid var(--page-ban-ca-border-color);
  border-radius: 8px;
  margin-top: 15px;
  background-color: #000;
}

.page-ban-ca__card-button {
  margin-top: auto; /* Push button to bottom */
  display: block;
  width: calc(100% - 20px); /* Adjust for padding if needed */
  margin-left: auto;
  margin-right: auto;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 6px;
}

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

.page-ban-ca__step-card {
  text-align: left;
  padding: 30px;
}

.page-ban-ca__step-title {
  font-size: 22px;
  color: var(--page-ban-ca-secondary-color);
  margin-bottom: 15px;
}

.page-ban-ca__step-card p {
  font-size: 16px;
  color: rgba(255, 243, 230, 0.8);
  margin-bottom: 20px;
}

.page-ban-ca__bottom-cta-area {
  text-align: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px dashed rgba(255, 140, 26, 0.3);
}

.page-ban-ca__bottom-cta-area p {
  font-size: 18px;
  margin-bottom: 30px;
  color: rgba(255, 243, 230, 0.9);
}

/* FAQ Section */
details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--page-ban-ca-border-color);
  overflow: hidden;
  background: var(--page-ban-ca-card-bg);
  color: var(--page-ban-ca-text-main);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
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;
  font-weight: 600;
  font-size: 18px;
  color: var(--page-ban-ca-primary-color);
}
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, 140, 26, 0.1);
}
.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-primary-color);
}
.page-ban-ca__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--page-ban-ca-secondary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
  padding: 0 20px 20px;
  background: rgba(255, 140, 26, 0.05);
  border-radius: 0 0 8px 8px;
  font-size: 16px;
  color: rgba(255, 243, 230, 0.85);
}
details.page-ban-ca__faq-item .page-ban-ca__faq-answer p {
  margin-bottom: 10px;
}

/* Final CTA Section */
.page-ban-ca__section--cta {
  padding: 80px 0;
  background-image: linear-gradient(rgba(13, 14, 18, 0.8), rgba(13, 14, 18, 0.8)), url('[GALLERY:bg:1920x1080:banca,cta,ocean,fish,action]'); /* Background image for CTA */
  background-size: cover;
  background-position: center;
  text-align: center;
}

.page-ban-ca__section--cta .page-ban-ca__section-title {
  color: var(--page-ban-ca-text-main);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-ban-ca__section--cta .page-ban-ca__section-description {
  color: rgba(255, 243, 230, 0.95);
  margin-bottom: 50px;
}

.page-ban-ca__btn-large {
  padding: 18px 40px;
  font-size: 20px;
  min-width: 250px;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__hero-content {
    padding-top: 60px;
  }
  .page-ban-ca__main-title {
    font-size: clamp(32px, 4.5vw, 50px);
  }
  .page-ban-ca__intro-text {
    font-size: 18px;
  }
  .page-ban-ca__section-title {
    font-size: clamp(24px, 3.5vw, 36px);
  }
  .page-ban-ca__section-description {
    font-size: 16px;
  }
  .page-ban-ca__content-grid {
    flex-direction: column;
  }
  .page-ban-ca__content-grid:nth-child(even) {
    flex-direction: column;
  }
  .page-ban-ca__feature-list li, .page-ban-ca__strategy-list li {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
  }
  .page-ban-ca__hero-image-wrapper {
    position: relative;
    height: 250px;
    width: 100%;
  }
  .page-ban-ca__hero-image {
    object-fit: contain !important; /* Changed from cover to contain */
    aspect-ratio: unset !important;
    height: 100% !important;
    width: 100% !important;
    opacity: 0.5;
  }
  .page-ban-ca__hero-content {
    padding-top: 30px;
    padding-bottom: 20px;
  }
  .page-ban-ca__main-title {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 15px;
  }
  .page-ban-ca__intro-text {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 通用图片与容器 */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .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;
  }

  /* 按钮与按钮容器 */
  .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__cta-buttons,
  .page-ban-ca__button-group,
  .page-ban-ca__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure vertical stacking for buttons */
  }
  .page-ban-ca__card-button {
    width: 100% !important;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-ban-ca__section-title {
    font-size: clamp(22px, 7vw, 32px);
    margin-bottom: 15px;
    text-align: center;
  }
  .page-ban-ca__section-description {
    font-size: 15px;
    margin-bottom: 30px;
    text-align: center;
  }
  .page-ban-ca__content-grid {
    gap: 30px;
    margin-top: 20px;
  }
  .page-ban-ca__text-block p {
    font-size: 15px;
  }
  .page-ban-ca__feature-list li,
  .page-ban-ca__strategy-list li {
    font-size: 14px;
    padding: 8px 12px;
  }
  .page-ban-ca__article-body {
    max-width: 100% !important;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-ban-ca__article-figure {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Sản phẩm/Game Grid - 2 cột x 3 hàng */
  .page-ban-ca__game-grid,
  .page-ban-ca__promo-grid,
  .page-ban-ca__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }
  .page-ban-ca__game-card, .page-ban-ca__promo-card, .page-ban-ca__step-card {
    padding: 20px;
  }
  .page-ban-ca__card-title {
    font-size: 20px;
  }
  .page-ban-ca__card-description {
    font-size: 14px;
  }
  .page-ban-ca__game-trial-frame {
    height: 250px;
  }
  .page-ban-ca__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-ban-ca__step-title {
    font-size: 20px;
  }
  .page-ban-ca__step-card p {
    font-size: 14px;
  }
  .page-ban-ca__bottom-cta-area {
    margin-top: 40px;
    padding-top: 30px;
  }
  .page-ban-ca__bottom-cta-area p {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* FAQ */
  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: 24px;
    width: 24px;
    height: 24px;
  }
  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;
  }

  /* CTA Section */
  .page-ban-ca__section--cta {
    padding: 60px 0;
  }
  .page-ban-ca__section--cta .page-ban-ca__section-title {
    font-size: clamp(24px, 7vw, 36px);
  }
  .page-ban-ca__section--cta .page-ban-ca__section-description {
    font-size: 16px;
    margin-bottom: 40px;
  }
  .page-ban-ca__btn-large {
    padding: 15px 30px;
    font-size: 18px;
  }
}