/* style/ban-ca.css */

:root {
  --page-ban-ca-primary-color: #C91F17;
  --page-ban-ca-secondary-color: #E53935;
  --page-ban-ca-text-main: #FFF5E1;
  --page-ban-ca-card-bg: #D32F2F;
  --page-ban-ca-background: #B71C1C;
  --page-ban-ca-border: #F2B544;
  --page-ban-ca-glow: #FFCC66;
  --page-ban-ca-gold: #F4D34D;
  --page-ban-ca-deep-red: #7A0E0E;
  --page-ban-ca-btn-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
}

/* Base styles for the page content wrapper */
.page-ban-ca {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--site-bg, #f8f8f8); /* Inherit from shared or default light */
}

/* Ensure proper text contrast based on body background */
.page-ban-ca {
  color: #333333; /* Default for light background */
}

.page-ban-ca__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  text-align: center;
}

.page-ban-ca__hero-image-wrap {
  width: 100%;
  height: auto;
  max-height: 675px; /* Limit height for desktop */
  overflow: hidden;
}

.page-ban-ca__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability if needed */
}

.page-ban-ca__hero-content {
  max-width: 900px;
  margin-top: 20px;
  padding: 0 20px;
}

.page-ban-ca__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--page-ban-ca-primary-color);
  margin-bottom: 20px;
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size */
}

.page-ban-ca__description-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555555;
}

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

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  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-btn-gradient);
  color: var(--page-ban-ca-text-main);
  border: 2px solid var(--page-ban-ca-gold);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-ban-ca__btn-secondary {
  background: var(--page-ban-ca-deep-red);
  color: var(--page-ban-ca-text-main);
  border: 2px solid var(--page-ban-ca-border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__btn-secondary:hover {
  background: var(--page-ban-ca-primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

.page-ban-ca__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-ban-ca__section-title {
  font-size: 2.5em;
  color: var(--page-ban-ca-primary-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-ban-ca__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
  color: #444444;
}

.page-ban-ca__figure {
  margin: 30px auto;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
}

.page-ban-ca__image,
.page-ban-ca__game-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__figcaption {
  font-style: italic;
  font-size: 0.95em;
  color: #777777;
  margin-top: 10px;
}

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

.page-ban-ca__feature-item {
  background: var(--page-ban-ca-card-bg);
  color: var(--page-ban-ca-text-main);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  text-align: left;
}

.page-ban-ca__feature-title {
  font-size: 1.5em;
  color: var(--page-ban-ca-gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-ban-ca__feature-description {
  font-size: 1em;
  line-height: 1.7;
  color: var(--page-ban-ca-text-main);
}

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

.page-ban-ca__game-card {
  background: var(--page-ban-ca-card-bg);
  color: var(--page-ban-ca-text-main);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  display: flex;
  flex-direction: column;
}

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

.page-ban-ca__game-description {
  font-size: 1em;
  line-height: 1.7;
  color: var(--page-ban-ca-text-main);
  flex-grow: 1;
  margin-bottom: 20px;
}

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

.page-ban-ca__strategy-list,
.page-ban-ca__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-ban-ca__strategy-item,
.page-ban-ca__promo-item {
  background: var(--page-ban-ca-background);
  color: var(--page-ban-ca-text-main);
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  border-left: 5px solid var(--page-ban-ca-gold);
}

.page-ban-ca__strategy-title {
  font-size: 1.4em;
  color: var(--page-ban-ca-gold);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-ban-ca__strategy-description {
  font-size: 1em;
  line-height: 1.7;
  color: var(--page-ban-ca-text-main);
}

.page-ban-ca__promo-item {
  font-size: 1.1em;
  line-height: 1.7;
  color: var(--page-ban-ca-text-main);
}

.page-ban-ca__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-ban-ca__step-item {
  background: var(--page-ban-ca-card-bg);
  color: var(--page-ban-ca-text-main);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-ban-ca__step-title {
  font-size: 1.5em;
  color: var(--page-ban-ca-gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-ban-ca__step-description {
  font-size: 1em;
  line-height: 1.7;
  color: var(--page-ban-ca-text-main);
}

.page-ban-ca__step-description a {
  color: var(--page-ban-ca-gold);
  text-decoration: underline;
}

.page-ban-ca__step-description a:hover {
  color: var(--page-ban-ca-glow);
}

.page-ban-ca__cta-buttons--bottom {
  margin-top: 40px;
  margin-bottom: 20px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-ban-ca__main-title {
    font-size: clamp(1.8em, 4.5vw, 2.8em);
  }
  .page-ban-ca__section-title {
    font-size: 2em;
  }
  .page-ban-ca__feature-list,
  .page-ban-ca__game-list,
  .page-ban-ca__step-by-step {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-ban-ca__hero-content {
    padding: 0 15px;
  }
  .page-ban-ca__article-wrap {
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  /* 1. Top section title + CTA */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles --header-offset */
    padding-bottom: 30px;
  }
  .page-ban-ca__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em) !important;
    margin-bottom: 15px;
  }
  .page-ban-ca__description-text {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-ban-ca__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
  }

  /* 4. Buttons and button containers */
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary,
  .page-ban-ca a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  .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;
  }
  .page-ban-ca__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  /* 2. Single column long text container */
  .page-ban-ca__section {
    padding: 30px 0;
  }
  .page-ban-ca__article-wrap {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-ban-ca__section-title {
    font-size: 1.8em !important;
    margin-bottom: 25px;
  }
  .page-ban-ca__paragraph {
    font-size: 1em;
  }
  .page-ban-ca__feature-list,
  .page-ban-ca__game-list,
  .page-ban-ca__step-by-step {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .page-ban-ca__feature-item,
  .page-ban-ca__game-card,
  .page-ban-ca__step-item {
    padding: 20px;
  }
  .page-ban-ca__feature-title,
  .page-ban-ca__game-title,
  .page-ban-ca__strategy-title,
  .page-ban-ca__step-title {
    font-size: 1.3em;
  }

  /* 3. General images and figure */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-ban-ca__figure {
    margin: 20px auto;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-ban-ca__figcaption {
    font-size: 0.9em;
  }

  /* 5. Registration tutorial & FAQ blocks (step-by-step in this case) */
  .page-ban-ca__step-item {
    padding: 20px;
  }
  .page-ban-ca__step-title {
    font-size: 1.3em;
  }
  .page-ban-ca__step-description {
    font-size: 0.95em;
  }
  .page-ban-ca__strategy-item,
  .page-ban-ca__promo-item {
    padding: 18px 20px;
  }
  .page-ban-ca__strategy-description,
  .page-ban-ca__promo-item {
    font-size: 0.95em;
  }
}