/* style/ban-ca.css */

:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy: #08162B; /* Body background from shared.css */
}

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

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

.page-ban-ca__section-title {
  font-size: 2.8em;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

.page-ban-ca__text-block {
  font-size: 1.05em;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-ban-ca__text-block a {
  color: var(--gold-color);
  text-decoration: none;
  font-weight: bold;
}

.page-ban-ca__text-block a:hover {
  text-decoration: underline;
}

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

.page-ban-ca__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: 2px solid var(--glow-color);
  box-shadow: 0 0 15px rgba(79, 168, 255, 0.6);
}

.page-ban-ca__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(79, 168, 255, 0.8);
}

.page-ban-ca__btn-secondary {
  background: var(--card-bg);
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.4);
}

.page-ban-ca__btn-secondary:hover {
  transform: translateY(-3px);
  background: var(--gold-color);
  color: var(--deep-navy);
  box-shadow: 0 5px 20px rgba(242, 193, 78, 0.6);
}

.page-ban-ca__image-content {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 30px auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Hero Section */
.page-ban-ca__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  margin-bottom: 50px;
  overflow: hidden;
}

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  height: 675px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-ban-ca__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
}

.page-ban-ca__hero-content {
  text-align: center;
  padding: 40px 20px;
  background-color: rgba(8, 22, 43, 0.9);
  margin-top: -80px; /* Overlap slightly with image */
  position: relative;
  z-index: 1;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-ban-ca__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.7);
}

.page-ban-ca__hero-description {
  font-size: 1.2em;
  color: var(--text-secondary);
  max-width: 900px;
  margin: 0 auto 30px;
}

/* Intro Section */
.page-ban-ca__intro-section {
  background-color: var(--card-bg);
  padding: 60px 0;
  margin-bottom: 50px;
  border-radius: 15px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-ban-ca__content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* How To Play Section */
.page-ban-ca__how-to-play-section {
  padding: 60px 0;
  margin-bottom: 50px;
}

.page-ban-ca__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-ban-ca__list-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  font-size: 1.05em;
  color: var(--text-main);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__list-item strong {
  color: var(--gold-color);
}

/* Game Types Section */
.page-ban-ca__game-types-section {
  background-color: var(--card-bg);
  padding: 60px 0;
  margin-bottom: 50px;
  border-radius: 15px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

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

.page-ban-ca__game-card {
  background-color: var(--deep-navy);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ban-ca__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(var(--glow-color), 0.6);
}

.page-ban-ca__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__game-card-title {
  font-size: 1.8em;
  color: var(--gold-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-ban-ca__game-card-description {
  font-size: 0.95em;
  color: var(--text-secondary);
  margin-bottom: 25px;
  min-height: 40px; /* Ensure consistent height */
}

/* Strategy Section */
.page-ban-ca__strategy-section {
  padding: 60px 0;
  margin-bottom: 50px;
}

/* Promotion Section */
.page-ban-ca__promotion-section {
  background-color: var(--card-bg);
  padding: 60px 0;
  margin-bottom: 50px;
  border-radius: 15px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  text-align: center;
}

.page-ban-ca__promotion-section .page-ban-ca__btn-primary {
  margin-top: 30px;
  margin-bottom: 40px;
}

/* Why Choose Us Section */
.page-ban-ca__why-choose-us-section {
  padding: 60px 0;
  margin-bottom: 50px;
}

.page-ban-ca__list--columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Final CTA Section */
.page-ban-ca__cta-final-section {
  background-color: var(--card-bg);
  padding: 60px 0;
  text-align: center;
  border-top: 5px solid var(--glow-color);
  border-bottom: 5px solid var(--glow-color);
  box-shadow: 0 0 30px rgba(79, 168, 255, 0.5);
}

.page-ban-ca__cta-final-section .page-ban-ca__section-title {
  color: var(--glow-color);
  text-shadow: 0 0 15px rgba(79, 168, 255, 0.8);
}

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

.page-ban-ca__button-group .page-ban-ca__btn-primary,
.page-ban-ca__button-group .page-ban-ca__btn-secondary {
  flex-shrink: 0;
}

.page-ban-ca__image-content--large {
  max-width: 80%;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__section-title {
    font-size: 2.5em;
  }
  .page-ban-ca__hero-image-wrapper {
    height: 550px;
  }
  .page-ban-ca__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-ban-ca__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-ban-ca__list--columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-ban-ca__container {
    padding: 15px;
  }

  .page-ban-ca__hero-section {
    padding-top: 10px !important;
    margin-bottom: 30px;
  }

  .page-ban-ca__hero-image-wrapper {
    height: 300px;
  }

  .page-ban-ca__hero-content {
    margin-top: -40px;
    padding: 25px 15px;
  }

  .page-ban-ca__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

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

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary,
  .page-ban-ca a[class*="button"],
  .page-ban-ca a[class*="btn"] {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 5px 0; /* Add margin for stacking */
  }

  .page-ban-ca__button-group {
    flex-direction: column !important;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-ban-ca__intro-section,
  .page-ban-ca__how-to-play-section,
  .page-ban-ca__game-types-section,
  .page-ban-ca__strategy-section,
  .page-ban-ca__promotion-section,
  .page-ban-ca__why-choose-us-section,
  .page-ban-ca__cta-final-section {
    padding: 30px 0;
    margin-bottom: 30px;
  }

  .page-ban-ca__game-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-ban-ca__game-card-image {
    height: 180px;
  }

  .page-ban-ca__list--columns {
    grid-template-columns: 1fr;
  }

  .page-ban-ca__list-item {
    padding: 12px 15px;
    font-size: 0.95em;
  }

  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__image-content--large {
    max-width: 95%;
  }

  /* General content area containers for mobile */
  .page-ban-ca__section,
  .page-ban-ca__card,
  .page-ban-ca__container,
  .page-ban-ca__content-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
}