/* style/ban-ca.css */

.page-ban-ca {
  color: #FFF6D6; /* Main text color for dark body background */
  background-color: #0A0A0A; /* Page background matches body */
}

.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: #0A0A0A;
}

.page-ban-ca__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 40px 20px;
  gap: 40px;
}

.page-ban-ca__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  order: 2; /* Content below image on desktop, above on mobile */
}

.page-ban-ca__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
  order: 1;
}

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

.page-ban-ca__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2C14E;
}

.page-ban-ca__description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #FFF6D6;
}

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

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

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for light button */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-ban-ca__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-ban-ca__btn-secondary {
  background-color: transparent;
  color: #F2C14E;
  border: 2px solid #F2C14E;
}

.page-ban-ca__btn-secondary:hover {
  background-color: #F2C14E;
  color: #0A0A0A;
}

.page-ban-ca__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #0A0A0A;
}

.page-ban-ca__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #F2C14E;
}

.page-ban-ca__section-description {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #FFF6D6;
}

.page-ban-ca__intro-section,
.page-ban-ca__game-overview-section,
.page-ban-ca__how-to-play-section,
.page-ban-ca__promo-section,
.page-ban-ca__faq-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

.page-ban-ca__feature-item,
.page-ban-ca__promo-card,
.page-ban-ca__step-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ban-ca__feature-item:hover,
.page-ban-ca__promo-card:hover,
.page-ban-ca__step-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(242, 193, 78, 0.2);
}

.page-ban-ca__icon-box-media {
  width: 200px;
  height: 200px;
  margin: 0 auto 25px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #F2C14E;
  box-shadow: 0 0 0 8px rgba(242, 193, 78, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.page-ban-ca__feature-title,
.page-ban-ca__promo-title,
.page-ban-ca__step-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F2C14E;
}

.page-ban-ca__feature-text,
.page-ban-ca__promo-text,
.page-ban-ca__step-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #FFF6D6;
  margin-bottom: 15px;
}

.page-ban-ca__game-tabs {
  margin-top: 40px;
}

.page-ban-ca__tab-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
  border-bottom: 2px solid #3A2A12;
  padding-bottom: 15px;
}

.page-ban-ca__tab-button {
  background-color: transparent;
  border: 1px solid #3A2A12;
  color: #FFF6D6;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.page-ban-ca__tab-button:hover,
.page-ban-ca__tab-button.is-active {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border-color: transparent;
}

.page-ban-ca__tab-content {
  position: relative;
  min-height: 400px; /* Ensure content area has height */
}

.page-ban-ca__game-panel {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.page-ban-ca__game-panel.is-active {
  display: block;
  opacity: 1;
  position: static; /* Active panel takes up space */
}

.page-ban-ca__game-card {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__game-image {
  flex: 1 1 400px;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-ban-ca__game-info {
  flex: 1 1 400px;
  min-width: 280px;
}

.page-ban-ca__game-title {
  font-size: 2rem;
  font-weight: 700;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-ban-ca__game-description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #FFF6D6;
  margin-bottom: 25px;
}

.page-ban-ca__btn-play {
  display: inline-block;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.3);
}

.page-ban-ca__btn-play:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-ban-ca__step-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #FFD36B;
  box-shadow: 0 0 0 6px rgba(255, 211, 107, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-ban-ca__step-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; /* Ensure roundness */
}

.page-ban-ca__btn-text-link {
  color: #F2C14E;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-ban-ca__btn-text-link:hover {
  color: #FFD36B;
  text-decoration: underline;
}

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

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

.page-ban-ca__faq-item {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-ban-ca__faq-item[open] {
  box-shadow: 0 5px 20px rgba(242, 193, 78, 0.2);
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: #F2C14E;
  list-style: none; /* Hide default marker */
}

.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.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #FFD36B;
  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: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #FFF6D6;
}

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

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

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-ban-ca__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-ban-ca__hero-content {
    order: 1;
  }

  .page-ban-ca__hero-image {
    order: 2;
    margin-top: 30px;
  }

  .page-ban-ca__cta-buttons {
    justify-content: center;
  }

  .page-ban-ca__game-card {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Adhere to specific padding-top for non-shared header offset */
    padding-bottom: 40px;
  }

  .page-ban-ca__hero-container {
    padding: 20px 15px;
    gap: 30px;
  }

  .page-ban-ca__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-ban-ca__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

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

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General Content Sections */
  .page-ban-ca__content-area {
    padding: 30px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-ban-ca__section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    margin-bottom: 15px;
  }

  .page-ban-ca__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  /* Module 1: Features Grid */
  .page-ban-ca__features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-ban-ca__icon-box-media {
    width: 150px;
    height: 150px;
    border: 3px solid #F2C14E;
    box-shadow: 0 0 0 6px rgba(242, 193, 78, 0.2);
  }

  .page-ban-ca__feature-title {
    font-size: 1.3rem;
  }

  .page-ban-ca__feature-text {
    font-size: 0.95rem;
  }

  /* Game Tabs */
  .page-ban-ca__tab-nav {
    flex-direction: column;
    gap: 10px;
    border-bottom: none;
    padding-bottom: 0;
  }

  .page-ban-ca__tab-button {
    width: 100%;
    font-size: 0.95rem;
    padding: 10px 15px;
  }

  .page-ban-ca__game-card {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .page-ban-ca__game-image {
    width: 100%;
    height: auto;
  }

  .page-ban-ca__game-title {
    font-size: 1.6rem;
  }

  .page-ban-ca__game-description {
    font-size: 0.95rem;
  }

  .page-ban-ca__btn-play {
    width: 100%;
    font-size: 0.95rem;
    padding: 10px 15px;
  }

  /* How-To-Play Section */
  .page-ban-ca__steps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-ban-ca__step-icon {
    width: 100px;
    height: 100px;
    border: 2px solid #FFD36B;
    box-shadow: 0 0 0 4px rgba(255, 211, 107, 0.2);
  }

  .page-ban-ca__step-title {
    font-size: 1.3rem;
  }

  .page-ban-ca__step-text {
    font-size: 0.95rem;
  }

  /* Promo Section */
  .page-ban-ca__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-ban-ca__promo-image {
    width: 100%;
    height: auto;
  }

  .page-ban-ca__promo-title {
    font-size: 1.3rem;
  }

  .page-ban-ca__promo-text {
    font-size: 0.95rem;
  }

  .page-ban-ca__centered-cta .page-ban-ca__btn-primary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* FAQ Section */
  .page-ban-ca__faq-question {
    padding: 15px 20px;
    font-size: 1.05rem;
  }

  .page-ban-ca__faq-toggle {
    font-size: 1.5rem;
  }

  .page-ban-ca__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }

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

  .page-ban-ca__icon-box-media img {
    height: 100% !important; /* Override for round images */
    object-fit: cover !important;
  }
}