/* 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-color: #08162B;
}

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

.page-ban-ca__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Rely on body padding for header offset, use small top padding here */
  padding-bottom: 50px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.page-ban-ca__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the background image for better text contrast */
}

.page-ban-ca__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over the image, but not *on* it */
  padding: 0 20px;
  color: var(--text-main);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-ban-ca__main-title {
  font-size: 3.2em;
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold-color);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.page-ban-ca__description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

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

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

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

.page-ban-ca__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

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

.page-ban-ca__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-ban-ca__section {
  padding: 60px 0;
  position: relative;
  z-index: 1;
}

.page-ban-ca__dark-section {
  background-color: var(--card-bg);
  color: var(--text-main);
}

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

.page-ban-ca__section-title {
  font-size: 2.8em;
  font-weight: 700;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 25px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__section-intro {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-secondary);
}

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

.page-ban-ca__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
  text-align: center;
}

.page-ban-ca__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.page-ban-ca__card-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-ban-ca__card-text {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-secondary);
}

.page-ban-ca__game-image,
.page-ban-ca__promo-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-ban-ca__game-card .page-ban-ca__btn-primary {
  margin-top: 20px;
}

.page-ban-ca__game-trial {
  margin-top: 60px;
  background-color: var(--deep-navy-color);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-ban-ca__trial-title {
  font-size: 2em;
  color: var(--gold-color);
  margin-bottom: 15px;
}

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

.page-ban-ca__game-trial-frame {
  border: none;
  border-radius: 8px;
  width: 100%;
  min-height: 500px;
  background-color: #000;
}

.page-ban-ca__view-all-promos,
.page-ban-ca__more-tips,
.page-ban-ca__final-cta {
  text-align: center;
  margin-top: 40px;
}

.page-ban-ca__mobile-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.page-ban-ca__mobile-text {
  max-width: 500px;
  text-align: left;
}

.page-ban-ca__sub-title {
  font-size: 2em;
  color: var(--gold-color);
  margin-bottom: 20px;
}

.page-ban-ca__text-block {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.page-ban-ca__mobile-image-wrapper {
  flex-shrink: 0;
  width: 300px;
  height: auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

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

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

.page-ban-ca__faq-item {
  background-color: var(--deep-navy-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--gold-color);
  cursor: pointer;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-ban-ca__faq-question::-webkit-details-marker {
  display: none;
}

.page-ban-ca__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
  transform: rotate(45deg);
}

.page-ban-ca__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-secondary);
  background-color: var(--deep-navy-color);
}

.page-ban-ca__faq-answer a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-ban-ca__faq-answer a:hover {
  color: var(--gold-color);
}

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

.page-ban-ca a[class*="btn"],
.page-ban-ca a[class*="button"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-ban-ca__cta-buttons,
.page-ban-ca__button-group,
.page-ban-ca__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media Queries for responsiveness */

@media (max-width: 1024px) {
  .page-ban-ca__main-title {
    font-size: 2.8em;
  }
  .page-ban-ca__hero-content {
    margin-top: -100px;
  }
  .page-ban-ca__section-title {
    font-size: 2.2em;
  }
  .page-ban-ca__sub-title {
    font-size: 1.8em;
  }
  .page-ban-ca__mobile-content {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 30px;
  }
  .page-ban-ca__hero-content {
    margin-top: -80px; /* Adjust for smaller screens */
    padding: 0 15px;
  }
  .page-ban-ca__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-ban-ca__description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto; /* Center buttons if in flex column */
  }

  .page-ban-ca__section {
    padding: 40px 0;
  }
  .page-ban-ca__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-ban-ca__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-ban-ca__features-grid,
  .page-ban-ca__steps-grid,
  .page-ban-ca__game-grid,
  .page-ban-ca__promo-grid,
  .page-ban-ca__tips-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-ban-ca__card {
    padding: 25px;
  }
  .page-ban-ca__card-title {
    font-size: 1.2em;
  }

  .page-ban-ca__game-trial {
    margin-top: 40px;
    padding: 25px;
  }
  .page-ban-ca__trial-title {
    font-size: 1.6em;
  }
  .page-ban-ca__trial-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-ban-ca__game-trial-frame {
    min-height: 350px;
  }

  .page-ban-ca__mobile-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-ban-ca__mobile-text {
    text-align: center;
    max-width: 100%;
  }
  .page-ban-ca__sub-title {
    font-size: 1.6em;
  }
  .page-ban-ca__text-block {
    font-size: 1em;
  }
  .page-ban-ca__mobile-image-wrapper {
    width: 250px;
  }

  .page-ban-ca__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-ban-ca__faq-answer {
    padding: 15px 20px;
  }

  /* Mandatory image responsive styles for mobile */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-ban-ca__section,
  .page-ban-ca__card,
  .page-ban-ca__container,
  .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;
  }
  /* Specific overrides for home_content if it were present and fixed height */
  .page-ban-ca__home-content-box { /* This section is not in ban-ca.html, but included for completeness as per rules */
    height: auto !important; /* Override fixed height */
    overflow: visible !important; /* Allow content to flow */
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-ban-ca__home-content-inner { /* This section is not in ban-ca.html, but included for completeness as per rules */
    height: auto !important;
    overflow: visible !important;
  }
}