/* style/ban-ca.css */

:root {
  --page-ban-ca-primary-color: #FF8C1A;
  --page-ban-ca-secondary-color: #FFA53A;
  --page-ban-ca-card-bg: #17191F;
  --page-ban-ca-bg: #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);
  background-color: var(--page-ban-ca-bg);
}

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

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

.page-ban-ca__section-title {
  font-size: 3em;
  font-weight: 700;
  color: var(--page-ban-ca-primary-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-ban-ca__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
  color: var(--page-ban-ca-text-main);
}

/* Buttons */
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__btn-play,
.page-ban-ca__btn-view-details {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1em;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, var(--page-ban-ca-secondary-color) 0%, var(--page-ban-ca-deep-orange) 100%);
  color: var(--page-ban-ca-text-main);
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-ban-ca__btn-primary:hover {
  background: linear-gradient(180deg, var(--page-ban-ca-deep-orange) 0%, var(--page-ban-ca-secondary-color) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

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

.page-ban-ca__btn-secondary:hover {
  background-color: var(--page-ban-ca-secondary-color);
  color: var(--page-ban-ca-bg);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(255, 165, 58, 0.5);
}

.page-ban-ca__btn-play {
  background: linear-gradient(180deg, var(--page-ban-ca-secondary-color) 0%, var(--page-ban-ca-deep-orange) 100%);
  color: var(--page-ban-ca-text-main);
  box-shadow: 0 4px 10px rgba(255, 140, 26, 0.3);
  padding: 10px 25px;
  font-size: 1em;
}

.page-ban-ca__btn-play:hover {
  background: linear-gradient(180deg, var(--page-ban-ca-deep-orange) 0%, var(--page-ban-ca-secondary-color) 100%);
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(255, 140, 26, 0.5);
}

.page-ban-ca__btn-view-details {
  background-color: transparent;
  color: var(--page-ban-ca-secondary-color);
  border: 1px solid var(--page-ban-ca-secondary-color);
  padding: 8px 20px;
  font-size: 0.95em;
}

.page-ban-ca__btn-view-details:hover {
  background-color: var(--page-ban-ca-secondary-color);
  color: var(--page-ban-ca-bg);
}

/* HERO Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, relies on body padding-top for header offset */
  padding-bottom: 60px;
  background-color: var(--page-ban-ca-bg);
}

.page-ban-ca__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  text-align: center;
}

.page-ban-ca__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-ban-ca__hero-content-wrapper {
  text-align: center;
  max-width: 900px;
}

.page-ban-ca__main-title {
  font-size: 3.8em;
  font-weight: 800;
  color: var(--page-ban-ca-primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-ban-ca__hero-description {
  font-size: 1.2em;
  line-height: 1.8;
  color: var(--page-ban-ca-text-main);
  margin-bottom: 30px;
}

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

/* Intro Section */
.page-ban-ca__intro-section {
  background-color: var(--page-ban-ca-card-bg);
}

.page-ban-ca__icon-boxes {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-ban-ca__icon-box {
  flex: 1 1 300px;
  max-width: 350px;
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  background-color: var(--page-ban-ca-bg);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-ban-ca-border-color);
}

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

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

.page-ban-ca__icon-box-title {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--page-ban-ca-primary-color);
  margin-bottom: 10px;
}

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

/* Game Types Section */
.page-ban-ca__game-types-section {
  background-color: var(--page-ban-ca-bg);
}

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

.page-ban-ca__game-card {
  background-color: var(--page-ban-ca-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-ban-ca-border-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-ban-ca__game-card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-ban-ca__game-card-title {
  font-size: 1.6em;
  font-weight: 700;
  color: var(--page-ban-ca-secondary-color);
  margin: 20px 15px 10px;
}

.page-ban-ca__game-card-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--page-ban-ca-text-main);
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-ban-ca__btn-play {
  margin: 0 15px 20px;
  width: calc(100% - 30px);
}

/* Guide Section */
.page-ban-ca__guide-section {
  background-color: var(--page-ban-ca-card-bg);
}

.page-ban-ca__guide-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-ban-ca__guide-steps {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.page-ban-ca__guide-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background-color: var(--page-ban-ca-bg);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--page-ban-ca-border-color);
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__step-number {
  font-size: 2.2em;
  font-weight: 800;
  color: var(--page-ban-ca-primary-color);
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.page-ban-ca__step-title {
  font-size: 1.6em;
  font-weight: 700;
  color: var(--page-ban-ca-secondary-color);
  margin-bottom: 5px;
}

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

.page-ban-ca__guide-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-ban-ca__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
}

/* Promo Section */
.page-ban-ca__promo-section {
  background-color: var(--page-ban-ca-bg);
}

.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(--page-ban-ca-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-ban-ca-border-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-ban-ca__promo-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-ban-ca__promo-card-title {
  font-size: 1.6em;
  font-weight: 700;
  color: var(--page-ban-ca-secondary-color);
  margin: 20px 15px 10px;
}

.page-ban-ca__promo-card-description {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--page-ban-ca-text-main);
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-ban-ca__btn-view-details {
  margin: 0 15px 20px;
  width: calc(100% - 30px);
}

/* Benefits Section */
.page-ban-ca__benefits-section {
  background-color: var(--page-ban-ca-card-bg);
}

.page-ban-ca__benefit-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.page-ban-ca__benefit-item {
  background-color: var(--page-ban-ca-bg);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--page-ban-ca-border-color);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__benefit-heading {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--page-ban-ca-primary-color);
  margin-bottom: 10px;
}

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

/* FAQ Section */
.page-ban-ca__faq-section {
  background-color: var(--page-ban-ca-bg);
}

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

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

.page-ban-ca__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.25em;
  font-weight: 600;
  color: var(--page-ban-ca-secondary-color);
  background-color: var(--page-ban-ca-card-bg);
  transition: background-color 0.3s ease;
}

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

.page-ban-ca__faq-item summary:hover {
  background-color: rgba(255, 140, 26, 0.1);
}

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

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 20px;
  color: var(--page-ban-ca-primary-color);
}

.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.7;
  color: var(--page-ban-ca-text-main);
}

/* CTA Section Bottom */
.page-ban-ca__cta-section {
  background-color: var(--page-ban-ca-card-bg);
  text-align: center;
}

.page-ban-ca__cta-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-ban-ca__cta-content {
  max-width: 800px;
}

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

/* General Image styles for content */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__main-title {
    font-size: 3em;
  }

  .page-ban-ca__section-title {
    font-size: 2.5em;
  }

  .page-ban-ca__hero-description {
    font-size: 1.1em;
  }

  .page-ban-ca__icon-box-media {
    width: 180px;
    height: 180px;
  }

  .page-ban-ca__benefit-list {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }

  .page-ban-ca__guide-layout {
    flex-direction: column-reverse;
  }

  .page-ban-ca__guide-image-wrapper {
    order: -1;
  }

  .page-ban-ca__guide-steps {
    width: 100%;
  }

  .page-ban-ca__guide-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-ban-ca__step-number {
    margin-bottom: 10px;
  }

  .page-ban-ca__faq-item summary {
    font-size: 1.1em;
  }

  .page-ban-ca__faq-qtext {
    padding-right: 10px;
  }

  .page-ban-ca__faq-answer {
    padding: 0 20px 15px;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-ban-ca__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px !important;
  }

  .page-ban-ca__hero-container {
    padding: 0 10px !important;
    gap: 30px !important;
  }

  .page-ban-ca__main-title {
    font-size: 2.5em !important;
    margin-bottom: 15px !important;
  }

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

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

  /* Buttons - general mobile adaptation */
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary,
  .page-ban-ca__btn-play,
  .page-ban-ca__btn-view-details {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    font-size: 1em !important;
  }

  .page-ban-ca__hero-cta-buttons a,
  .page-ban-ca__cta-buttons-bottom a {
    width: 100% !important;
  }

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

  /* Section Titles & Text */
  .page-ban-ca__section-title {
    font-size: 2em !important;
    margin-bottom: 30px !important;
  }

  .page-ban-ca__text-block {
    font-size: 0.95em !important;
    margin-bottom: 25px !important;
    padding: 0 10px !important;
  }

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

  .page-ban-ca__container {
    padding: 0 10px !important;
  }

  /* Module 1 (Intro Section) - Three column icons */
  .page-ban-ca__icon-boxes {
    flex-direction: column !important;
    gap: 25px !important;
    margin-top: 30px !important;
  }

  .page-ban-ca__icon-box {
    max-width: 100% !important;
    padding: 25px 20px !important;
  }

  .page-ban-ca__icon-box-media {
    width: 160px !important;
    height: 160px !important;
    margin-bottom: 15px !important;
  }

  .page-ban-ca__icon-box-title {
    font-size: 1.5em !important;
  }

  /* Game Cards Section */
  .page-ban-ca__game-cards {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
    margin-top: 30px !important;
  }

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

  .page-ban-ca__game-card-title {
    font-size: 1.4em !important;
    margin: 15px 10px 8px !important;
  }

  .page-ban-ca__game-card-description {
    font-size: 0.9em !important;
    padding: 0 10px 15px !important;
  }

  .page-ban-ca__btn-play {
    margin: 0 10px 15px !important;
    width: calc(100% - 20px) !important;
  }

  /* Guide Section */
  .page-ban-ca__guide-layout {
    gap: 30px !important;
    margin-top: 30px !important;
  }

  .page-ban-ca__guide-step {
    padding: 20px !important;
    gap: 15px !important;
  }

  .page-ban-ca__step-number {
    font-size: 2em !important;
  }

  .page-ban-ca__step-title {
    font-size: 1.4em !important;
  }

  .page-ban-ca__step-description {
    font-size: 0.9em !important;
  }

  /* Promo Section */
  .page-ban-ca__promo-cards {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
    margin-top: 30px !important;
  }

  .page-ban-ca__promo-card-image {
    height: 160px !important;
  }

  .page-ban-ca__promo-card-title {
    font-size: 1.4em !important;
    margin: 15px 10px 8px !important;
  }

  .page-ban-ca__promo-card-description {
    font-size: 0.9em !important;
    padding: 0 10px 15px !important;
  }

  .page-ban-ca__btn-view-details {
    margin: 0 10px 15px !important;
    width: calc(100% - 20px) !important;
  }

  /* Benefits Section */
  .page-ban-ca__benefit-list {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
    margin-top: 30px !important;
  }

  .page-ban-ca__benefit-item {
    padding: 25px 20px !important;
  }

  .page-ban-ca__benefit-heading {
    font-size: 1.5em !important;
  }

  .page-ban-ca__benefit-description {
    font-size: 0.9em !important;
  }

  /* FAQ Section */
  .page-ban-ca__faq-list {
    margin-top: 30px !important;
  }

  .page-ban-ca__faq-item summary {
    font-size: 1em !important;
    padding: 15px 20px !important;
  }

  .page-ban-ca__faq-toggle {
    font-size: 1.2em !important;
  }

  .page-ban-ca__faq-answer {
    padding: 0 20px 15px !important;
    font-size: 0.9em !important;
  }

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

  /* All content containers for mobile */
  .page-ban-ca__section,
  .page-ban-ca__card,
  .page-ban-ca__container,
  .page-ban-ca__hero-section,
  .page-ban-ca__intro-section,
  .page-ban-ca__game-types-section,
  .page-ban-ca__guide-section,
  .page-ban-ca__promo-section,
  .page-ban-ca__benefits-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Specific override for icon-box-media img to maintain circular shape */
  .page-ban-ca__icon-box-media img {
    height: 100% !important;
    object-fit: cover !important;
  }
}