/* style/ban-ca.css */
.page-ban-ca {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

.page-ban-ca__dark-bg {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient for background */
  color: #ffffff; /* Light text for dark background */
}

.page-ban-ca__light-bg {
  background-color: #FFFFFF; /* Card BG */
  color: #1F2D3D; /* Text Main */
}

.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
}

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

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

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

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

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

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

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

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-ban-ca__btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.4);
}

.page-ban-ca__btn-secondary {
  background-color: #ffffff; /* Card BG */
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
}

.page-ban-ca__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #2F6BFF;
  border-color: #2F6BFF;
}

.page-ban-ca__content-area {
  max-width: 1170px;
  margin: 0 auto;
  padding: 60px 16px;
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-top: -30px; /* Overlap with hero for smooth transition */
  position: relative;
  z-index: 1;
}

.page-ban-ca__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #000000; /* Custom Color_1776249996415 */
  text-align: center;
}

.page-ban-ca__section-title--light {
  color: #ffffff;
}

.page-ban-ca p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #1F2D3D;
}

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

.page-ban-ca__feature-item {
  flex: 1 1 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
  background-color: #F4F7FB; /* Background */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.page-ban-ca__icon-box-media {
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #D6E2FF; /* Border */
  box-shadow: 0 0 0 8px #A5C4FF; /* Glow */
}

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

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

.page-ban-ca__game-list,
.page-ban-ca__tips-list,
.page-ban-ca__promo-list,
.page-ban-ca__why-choose-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-ban-ca__game-item,
.page-ban-ca__tips-item,
.page-ban-ca__promo-item,
.page-ban-ca__why-choose-item {
  background-color: #F4F7FB;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  border-left: 5px solid #2F6BFF;
}

.page-ban-ca__game-item-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 10px;
}

.page-ban-ca__game-trial-section {
  margin-top: 50px;
  padding: 30px;
  background-color: #F4F7FB;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

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

.page-ban-ca__game-trial-frame {
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  max-width: 100%;
  height: 600px; /* Fixed height for iframe */
  display: block;
  margin: 0 auto;
}

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

.page-ban-ca__guide-item {
  background-color: #F4F7FB;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-ban-ca__guide-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 15px;
}

.page-ban-ca__btn-text {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: 600;
  margin-top: auto; /* Push to bottom */
  padding-top: 10px;
  display: inline-block;
}

.page-ban-ca__btn-text:hover {
  text-decoration: underline;
}

.page-ban-ca__cta-center {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

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

.page-ban-ca__faq-item {
  background-color: #F4F7FB;
  border: 1px solid #D6E2FF;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #000000;
  cursor: pointer;
  list-style: none; /* Hide default marker for details */
  background-color: #EBF2FF;
  transition: background-color 0.3s ease;
}

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

.page-ban-ca__faq-question:hover {
  background-color: #D6E2FF;
}

.page-ban-ca__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2F6BFF;
  margin-left: 15px;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-question {
  background-color: #D6E2FF;
}

.page-ban-ca__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #1F2D3D;
}

.page-ban-ca__conclusion-section {
  padding: 60px 16px;
  text-align: center;
}

.page-ban-ca__conclusion-text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-ban-ca__hero-container {
    flex-direction: column-reverse; /* Image above content */
  }

  .page-ban-ca__hero-content {
    text-align: center;
  }

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

  .page-ban-ca__feature-item {
    flex: 1 1 calc(50% - 15px);
    max-width: calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  .page-ban-ca {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO Section */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 40px;
  }

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

  .page-ban-ca__main-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

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

  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary,
  .page-ban-ca a[class*="button"],
  .page-ban-ca a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__content-area {
    padding: 40px 15px;
    margin-top: -20px;
  }

  .page-ban-ca__section-title {
    font-size: 2rem;
    margin-bottom: 25px;
  }

  /* Module 1 (Feature Grid) - Three-column round images */
  .page-ban-ca__feature-grid {
    flex-direction: column;
    gap: 20px;
  }

  .page-ban-ca__feature-item {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 25px;
  }

  .page-ban-ca__icon-box-media {
    width: 120px; /* Maintain square for mobile */
    height: 120px; /* Maintain square for mobile */
    margin-bottom: 15px;
  }

  /* Game List & Tips/Promo/Why Choose Lists */
  .page-ban-ca__game-item,
  .page-ban-ca__tips-item,
  .page-ban-ca__promo-item,
  .page-ban-ca__why-choose-item {
    padding: 15px;
    margin-bottom: 10px;
  }

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

  /* Game Trial Section */
  .page-ban-ca__game-trial-section {
    padding: 20px;
  }

  .page-ban-ca__game-trial-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }

  .page-ban-ca__game-trial-frame {
    height: 400px; /* Adjust iframe height for mobile */
  }

  /* Guide Steps */
  .page-ban-ca__guide-steps {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-ban-ca__guide-item {
    padding: 20px;
  }

  .page-ban-ca__guide-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

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

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

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

  /* Conclusion Section */
  .page-ban-ca__conclusion-section {
    padding: 40px 15px;
  }

  .page-ban-ca__conclusion-text {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  /* General Image & Container Responsiveness */
  .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__feature-item,
  .page-ban-ca__game-item,
  .page-ban-ca__guide-item,
  .page-ban-ca__faq-item,
  .page-ban-ca__game-trial-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-ban-ca__content-area {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}