/* style/ban-ca.css */

:root {
  --color-primary: #FF8C1A;
  --color-secondary: #FFA53A;
  --color-background-dark: #0D0E12;
  --color-card-bg: #17191F;
  --color-text-main: #FFF3E6;
  --color-border: #A84F0C;
  --color-glow: #FFB04D;
  --color-deep-orange: #D96800;
  --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
}

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

.page-ban-ca__hero-section {
  padding-top: 10px; /* Minimal top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: var(--color-background-dark);
  color: var(--color-text-main);
}

.page-ban-ca__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 40px 16px;
  gap: 24px;
}

.page-ban-ca__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  text-align: left;
}

.page-ban-ca__hero-title {
  font-size: 2.8em;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--color-text-main);
  max-width: 600px;
}

.page-ban-ca__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 32px;
  color: var(--color-text-main);
  max-width: 600px;
}

.page-ban-ca__hero-image {
  flex: 1 1 45%;
  text-align: center;
}

.page-ban-ca__hero-side-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-ban-ca__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  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: #ffffff;
  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);
}

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

.page-ban-ca__btn-secondary:hover {
  background: rgba(255, 165, 58, 0.1);
  color: #ffffff;
}

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

.page-ban-ca__section-title--light {
  color: var(--color-text-main);
}

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

.page-ban-ca__section-description--light {
  color: var(--color-text-main);
}

.page-ban-ca__intro-section,
.page-ban-ca__game-overview-section,
.page-ban-ca__guide-section,
.page-ban-ca__promo-section,
.page-ban-ca__faq-section {
  padding: 60px 0;
  background-color: var(--color-background-dark);
  color: var(--color-text-main);
}

.page-ban-ca__intro-container,
.page-ban-ca__content-container,
.page-ban-ca__promo-container,
.page-ban-ca__faq-container,
.page-ban-ca__cta-container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
}

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

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

.page-ban-ca__feature-item:hover {
  transform: translateY(-5px);
}

.page-ban-ca__icon-box-media {
  width: 200px;
  height: 200px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-primary);
  box-shadow: 0 0 15px var(--color-glow);
}

.page-ban-ca__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

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

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

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

.page-ban-ca__text-block {
  flex: 1 1 55%;
  min-width: 300px;
}

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

.page-ban-ca__image-block {
  flex: 1 1 35%;
  text-align: center;
}

.page-ban-ca__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-ban-ca__benefits-section {
  background: var(--color-primary);
  padding: 60px 0;
  color: #ffffff;
}

.page-ban-ca__benefits-container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-ban-ca__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-ban-ca__benefit-item {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-ban-ca__benefit-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-ban-ca__benefit-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: #ffffff;
}

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

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

.page-ban-ca__guide-step-item:hover {
  transform: translateY(-5px);
}

.page-ban-ca__step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--button-gradient);
  color: #ffffff;
  font-size: 1.8em;
  font-weight: bold;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(255, 140, 26, 0.5);
}

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

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

.page-ban-ca__cta-center {
  text-align: center;
  margin-top: 50px;
}

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

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

.page-ban-ca__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.page-ban-ca__promo-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--color-text-main);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-ban-ca__faq-list {
  margin-top: 40px;
}

.page-ban-ca__faq-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.page-ban-ca__faq-qtext {
  flex-grow: 1;
}

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--color-secondary);
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
  content: '−';
}

.page-ban-ca__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--color-text-main);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding-top: 10px;
}

.page-ban-ca__faq-answer p {
  margin-bottom: 0;
}

.page-ban-ca__cta-section {
  background: var(--color-deep-orange);
  padding: 60px 0;
  text-align: center;
  color: #ffffff;
}

.page-ban-ca__cta-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-ban-ca__cta-buttons {
  justify-content: center;
  margin-top: 30px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__hero-title {
    font-size: 2.5em;
  }
  .page-ban-ca__section-title {
    font-size: 2em;
  }
  .page-ban-ca__hero-container {
    padding: 30px 16px;
  }
  .page-ban-ca__intro-section,
  .page-ban-ca__game-overview-section,
  .page-ban-ca__guide-section,
  .page-ban-ca__promo-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__benefits-section,
  .page-ban-ca__cta-section {
    padding: 50px 0;
  }
  .page-ban-ca__icon-box-media {
    width: 180px;
    height: 180px;
  }
  .page-ban-ca__feature-title {
    font-size: 1.3em;
  }
  .page-ban-ca__benefit-title {
    font-size: 1.3em;
  }
  .page-ban-ca__step-title {
    font-size: 1.3em;
  }
  .page-ban-ca__promo-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-ban-ca__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }
  .page-ban-ca__hero-container {
    flex-direction: column-reverse;
    padding: 20px 15px;
    gap: 30px;
  }
  .page-ban-ca__hero-content {
    text-align: center;
  }
  .page-ban-ca__hero-title {
    font-size: 2em !important;
    max-width: 100%;
  }
  .page-ban-ca__hero-description {
    font-size: 1em !important;
    max-width: 100%;
  }
  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 1em !important;
    padding: 12px 20px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-ban-ca__hero-image {
    width: 100%;
  }
  .page-ban-ca__hero-side-image {
    width: 100%;
    height: auto;
  }

  /* Section Titles & Descriptions */
  .page-ban-ca__section-title {
    font-size: 1.8em !important;
    padding: 0 15px;
  }
  .page-ban-ca__section-description {
    font-size: 0.95em !important;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  /* Intro Section (Module 1) */
  .page-ban-ca__intro-container {
    padding: 0 15px;
  }
  .page-ban-ca__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-ban-ca__icon-box-media {
    width: 150px !important;
    height: 150px !important;
    border-width: 3px;
  }
  .page-ban-ca__feature-title {
    font-size: 1.2em !important;
  }

  /* Game Overview Section */
  .page-ban-ca__content-container {
    padding: 0 15px;
  }
  .page-ban-ca__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .page-ban-ca__text-block {
    min-width: unset;
    width: 100%;
  }
  .page-ban-ca__text-block p {
    font-size: 1em !important;
  }
  .page-ban-ca__image-block {
    width: 100%;
  }
  .page-ban-ca__content-image {
    width: 100% !important;
    height: auto !important;
  }

  /* Benefits Section */
  .page-ban-ca__benefits-container {
    padding: 0 15px;
  }
  .page-ban-ca__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-ban-ca__benefit-title {
    font-size: 1.2em !important;
  }

  /* Guide Section */
  .page-ban-ca__guide-container {
    padding: 0 15px;
  }
  .page-ban-ca__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-ban-ca__step-title {
    font-size: 1.2em !important;
  }
  .page-ban-ca__cta-center {
    padding: 0 15px;
  }

  /* Promo Section */
  .page-ban-ca__promo-container {
    padding: 0 15px;
  }
  .page-ban-ca__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-ban-ca__promo-image {
    width: 100% !important;
    height: auto !important;
  }
  .page-ban-ca__promo-title {
    font-size: 1.2em !important;
  }

  /* FAQ Section */
  .page-ban-ca__faq-container {
    padding: 0 15px;
  }
  .page-ban-ca__faq-question {
    font-size: 1em !important;
    padding: 15px 20px;
  }
  .page-ban-ca__faq-toggle {
    font-size: 1.3em !important;
  }
  .page-ban-ca__faq-answer {
    font-size: 0.95em !important;
    padding: 0 20px 15px;
  }

  /* CTA Section */
  .page-ban-ca__cta-container {
    padding: 0 15px;
  }
  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  /* Universal image and container mobile styles */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-ban-ca__intro-section,
  .page-ban-ca__game-overview-section,
  .page-ban-ca__benefits-section,
  .page-ban-ca__guide-section,
  .page-ban-ca__promo-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__cta-section {
    padding: 40px 0 !important;
  }
  .page-ban-ca__intro-container,
  .page-ban-ca__content-container,
  .page-ban-ca__promo-container,
  .page-ban-ca__faq-container,
  .page-ban-ca__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-ban-ca__feature-item,
  .page-ban-ca__benefit-item,
  .page-ban-ca__guide-step-item,
  .page-ban-ca__promo-card {
    padding: 20px;
  }
}