/* style/ban-ca.css */
.page-ban-ca {
  color: #333333; /* Default text color for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Brand gradient background */
  color: #ffffff;
}

.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__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

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

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

.page-ban-ca__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.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: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%; /* Ensure buttons adapt to width */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

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

.page-ban-ca__btn-secondary:hover {
  background: #f0f0f0;
  color: #E53935;
  transform: translateY(-2px);
}

.page-ban-ca__content-area {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

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

.page-ban-ca__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #333333;
}

.page-ban-ca__intro-section {
  padding: 60px 0;
  background-color: #F5F7FA; /* Card BG */
}

.page-ban-ca__game-features {
  display: flex;
  justify-content: space-around;
  gap: 30px;
  flex-wrap: wrap;
}

.page-ban-ca__feature-item {
  flex: 1 1 30%;
  min-width: 280px;
  text-align: center;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.page-ban-ca__icon-box-media {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #FF5A4F;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.page-ban-ca__feature-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #E53935;
}

.page-ban-ca__feature-text {
  font-size: 1rem;
  color: #333333;
}

.page-ban-ca__game-tabs-section {
  padding: 60px 0;
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%); /* Brand gradient background */
  color: #ffffff;
}

.page-ban-ca__game-tabs-section .page-ban-ca__section-title,
.page-ban-ca__game-tabs-section .page-ban-ca__section-description {
  color: #ffffff;
}

.page-ban-ca__tab-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  flex-wrap: wrap;
  gap: 10px;
}

.page-ban-ca__tab-button {
  background: none;
  border: none;
  padding: 15px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.page-ban-ca__tab-button:hover,
.page-ban-ca__tab-button.is-active {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.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%;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.page-ban-ca__game-panel.is-active {
  display: flex;
  opacity: 1;
  position: static; /* Make active panel static to occupy space */
}

.page-ban-ca__game-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex: 1 1 45%;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  color: #333333;
  text-align: center;
}

.page-ban-ca__game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-ban-ca__game-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-ban-ca__game-text {
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-ban-ca__game-card .page-ban-ca__btn-primary {
  margin-top: auto;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__why-us-section {
  padding: 60px 0;
  background-color: #F5F7FA;
}

.page-ban-ca__advantages {
  display: flex;
  justify-content: space-around;
  gap: 30px;
  flex-wrap: wrap;
}

.page-ban-ca__advantage-item {
  flex: 1 1 30%;
  min-width: 280px;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-ban-ca__advantage-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-ban-ca__advantage-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #E53935;
}

.page-ban-ca__advantage-text {
  font-size: 1rem;
  color: #333333;
}

.page-ban-ca__promo-section {
  padding: 60px 0;
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%); /* Brand gradient background */
  color: #ffffff;
}

.page-ban-ca__promo-section .page-ban-ca__section-title,
.page-ban-ca__promo-section .page-ban-ca__section-description {
  color: #ffffff;
}

.page-ban-ca__promo-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.page-ban-ca__promo-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex: 1 1 45%;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  color: #333333;
  text-align: center;
}

.page-ban-ca__promo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-ban-ca__promo-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-ban-ca__promo-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #E53935;
}

.page-ban-ca__promo-text {
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-ban-ca__promo-card .page-ban-ca__btn-primary {
  margin-top: auto;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__faq-section {
  padding: 60px 0;
  background-color: #F5F7FA;
}

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

.page-ban-ca__faq-item {
  background: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #fcfcfc;
  border-bottom: 1px solid #E0E0E0;
  list-style: none; /* For details/summary */
}

.page-ban-ca__faq-item[open] > .page-ban-ca__faq-question {
  border-bottom: 1px solid #E0E0E0;
  color: #E53935;
}

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

.page-ban-ca__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #E53935;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
  transform: rotate(45deg);
}

.page-ban-ca__faq-answer {
  padding: 15px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  background-color: #ffffff;
}

.page-ban-ca__blog-section {
  padding: 60px 0;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Brand gradient background */
  color: #ffffff;
}

.page-ban-ca__blog-section .page-ban-ca__section-title,
.page-ban-ca__blog-section .page-ban-ca__section-description {
  color: #ffffff;
}

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

.page-ban-ca__blog-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex: 1 1 30%;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease;
}

.page-ban-ca__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-ban-ca__blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-ban-ca__blog-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-ban-ca__blog-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #E53935;
}

.page-ban-ca__blog-date {
  font-size: 0.85rem;
  color: #666666;
  margin-bottom: 15px;
}

.page-ban-ca__blog-excerpt {
  font-size: 0.95rem;
  color: #555555;
  flex-grow: 1;
}

.page-ban-ca__view-all {
  text-align: center;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }

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

  .page-ban-ca__main-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }

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

  .page-ban-ca__feature-item,
  .page-ban-ca__advantage-item,
  .page-ban-ca__game-card,
  .page-ban-ca__promo-card,
  .page-ban-ca__blog-card {
    flex: 1 1 45%;
  }

  .page-ban-ca__tab-button {
    padding: 12px 20px;
    font-size: 1rem;
  }
}

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

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

  .page-ban-ca__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-ban-ca__description {
    font-size: 1rem;
  }

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

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

  /* Module 1 (Intro Section) - Three columns with round images */
  .page-ban-ca__intro-section {
    padding: 40px 0;
  }

  .page-ban-ca__content-area {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

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

  .page-ban-ca__game-features {
    flex-direction: column;
    gap: 25px;
  }

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

  .page-ban-ca__icon-box-media {
    width: 150px;
    height: 150px;
    border-width: 3px;
  }

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

  /* Seven Tab Game Section */
  .page-ban-ca__game-tabs-section {
    padding: 40px 0;
  }

  .page-ban-ca__tab-nav {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    border-bottom: none;
  }

  .page-ban-ca__tab-button {
    width: 100%;
    max-width: 250px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  }

  .page-ban-ca__tab-button.is-active {
    border-bottom-color: #ffffff;
  }

  .page-ban-ca__game-panel {
    flex-direction: column;
    gap: 25px;
    position: static; /* Ensure it flows correctly */
  }

  .page-ban-ca__game-card {
    flex: 1 1 100%;
    min-width: unset;
  }

  /* Why Choose Us Section */
  .page-ban-ca__why-us-section {
    padding: 40px 0;
  }

  .page-ban-ca__advantages {
    flex-direction: column;
    gap: 25px;
  }

  .page-ban-ca__advantage-item {
    flex: 1 1 100%;
    min-width: unset;
    padding: 25px;
  }

  /* Promotion Section */
  .page-ban-ca__promo-section {
    padding: 40px 0;
  }

  .page-ban-ca__promo-cards {
    flex-direction: column;
    gap: 25px;
  }

  .page-ban-ca__promo-card {
    flex: 1 1 100%;
    min-width: unset;
  }

  /* FAQ Section */
  .page-ban-ca__faq-section {
    padding: 40px 0;
  }

  .page-ban-ca__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

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

  /* Blog Section */
  .page-ban-ca__blog-section {
    padding: 40px 0;
  }

  .page-ban-ca__blog-cards {
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
  }

  .page-ban-ca__blog-card {
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-ban-ca__blog-title {
    font-size: 1.1rem;
  }

  .page-ban-ca__blog-date,
  .page-ban-ca__blog-excerpt {
    font-size: 0.9rem;
  }

  /* Universal Image Adaption for content area */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Exception for round images in feature section */
  .page-ban-ca__icon-box-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !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 {
    flex-direction: column;
  }
}