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

.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, relying on body padding-top for header offset */
  padding-bottom: 60px;
  background-color: #f8f8f8;
}

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

.page-ban-ca__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  color: #333333;
}

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

.page-ban-ca__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.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: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%; /* Ensure buttons adapt to container */
}

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

.page-ban-ca__btn-primary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

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

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

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

.page-ban-ca__side-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

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

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

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

.page-ban-ca__feature-item {
  flex: 1 1 30%;
  max-width: 350px;
  text-align: center;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  min-width: 250px;
}

.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 #017439;
}

.page-ban-ca__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; /* Ensure image inside is also circular */
  display: block;
}

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

.page-ban-ca__feature-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555555;
}

.page-ban-ca__game-tabs-section {
  padding: 60px 0;
  background-color: #f0f0f0;
}

.page-ban-ca__tab-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  border-bottom: 2px solid #e0e0e0;
  gap: 10px;
  flex-wrap: wrap;
}

.page-ban-ca__tab-button {
  background-color: transparent;
  border: none;
  padding: 15px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #555555;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px; /* Overlap border-bottom */
}

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

.page-ban-ca__game-panel {
  display: none;
}

.page-ban-ca__game-panel.is-active {
  display: block;
}

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

.page-ban-ca__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
}

.page-ban-ca__game-thumbnail {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-ban-ca__game-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-ban-ca__game-title a {
  color: #017439;
  text-decoration: none;
}

.page-ban-ca__game-title a:hover {
  text-decoration: underline;
}

.page-ban-ca__game-description {
  font-size: 0.9rem;
  color: #666666;
  line-height: 1.5;
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-ban-ca__game-button {
  display: inline-block;
  background-color: #017439;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 90%;
}

.page-ban-ca__game-button:hover {
  background-color: #005a2e;
}

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

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

.page-ban-ca__guide-item {
  background-color: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
}

.page-ban-ca__guide-image {
  width: 100%;
  height: 220px; /* Consistent height for guide images */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-ban-ca__guide-step-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-ban-ca__guide-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555555;
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-ban-ca__guide-button {
  display: inline-block;
  background-color: #017439;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 90%;
}

.page-ban-ca__guide-button:hover {
  background-color: #005a2e;
}

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

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

.page-ban-ca__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  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: 600;
  color: #017439;
  cursor: pointer;
  list-style: none; /* Hide default marker for details summary */
}

.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.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

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

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

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

.page-ban-ca__faq-link {
  color: #017439;
  text-decoration: underline;
}

.page-ban-ca__faq-link:hover {
  text-decoration: none;
}

.page-ban-ca__cta-bottom-section {
  padding: 60px 16px;
  text-align: center;
  background-color: #017439;
  color: #ffffff;
}

.page-ban-ca__cta-bottom-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-ban-ca__cta-bottom-description {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-ban-ca__btn-large {
  padding: 15px 30px;
  font-size: 1.15rem;
  background-color: #C30808; /* Custom color for Register/Login */
  border-color: #C30808;
  color: #FFFF00; /* Custom font color for Register/Login */
}

.page-ban-ca__btn-large:hover {
  background-color: #9a0606;
  border-color: #9a0606;
}

/* General image responsiveness */
.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;
    text-align: center;
  }

  .page-ban-ca__hero-content,
  .page-ban-ca__hero-image {
    flex: 1 1 100%;
    max-width: 600px;
    margin: 0 auto;
  }

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

  .page-ban-ca__feature-item {
    flex: 1 1 45%;
  }
}

@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 !important;
  }

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

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

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

  .page-ban-ca__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-ban-ca__side-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Section titles and descriptions */
  .page-ban-ca__content-area {
    padding: 20px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__section-title {
    font-size: clamp(1.5rem, 7vw, 2rem) !important;
    margin-bottom: 20px !important;
  }

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

  /* Module 1 three-column circular images */
  .page-ban-ca__features-grid {
    flex-direction: column !important;
    gap: 20px !important;
  }

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

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

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

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

  .page-ban-ca__feature-text {
    font-size: 0.9rem !important;
  }

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

  .page-ban-ca__tab-nav {
    flex-direction: column !important;
    gap: 5px !important;
    margin-bottom: 30px !important;
  }

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

  .page-ban-ca__game-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

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

  /* Tutorial/Promo/Trust/FAQ/Blog sections */
  .page-ban-ca__guide-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__cta-bottom-section {
    padding: 40px 0 !important;
  }

  .page-ban-ca__guide-steps {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

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

  .page-ban-ca__faq-list {
    max-width: 100% !important;
  }

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

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

  .page-ban-ca__cta-bottom-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
    margin-bottom: 15px !important;
  }

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

  .page-ban-ca__btn-large {
    padding: 12px 25px !important;
    font-size: 1rem !important;
  }

  /* General images and containers */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}