/* style/ban-ca.css */
:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --gradient-button: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --body-bg: #F4F7FB;
  --text-main: #1F2D3D;
  --text-black: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
}

.page-ban-ca {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for light background */
  background-color: var(--body-bg);
}

.page-ban-ca__hero-section {
  padding-top: 10px; /* Adjusted for shared body padding */
  padding-bottom: 60px;
  background-color: var(--body-bg);
}

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

.page-ban-ca__hero-image-wrapper {
  flex: 1 1 50%;
  text-align: center;
  order: 2;
}

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

.page-ban-ca__hero-content {
  flex: 1 1 40%;
  order: 1;
  color: var(--text-main);
  text-align: left;
}

.page-ban-ca__hero-title {
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-ban-ca__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-main);
}

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

.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-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
}

.page-ban-ca__btn-primary {
  background: var(--gradient-button);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-ban-ca__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
}

.page-ban-ca__btn-secondary {
  background: var(--card-bg);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-ban-ca__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.2);
}

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

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

.page-ban-ca__text-block {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-ban-ca__intro-section {
  padding: 60px 0;
  background-color: var(--body-bg);
}

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

.page-ban-ca__intro-feature-item {
  text-align: center;
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-ban-ca__intro-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 var(--border-color);
  box-shadow: 0 0 0 8px var(--glow-color);
}

.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;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-ban-ca__feature-description {
  font-size: 1rem;
  color: var(--text-main);
}

.page-ban-ca__why-choose-us {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-ban-ca__why-choose-us .page-ban-ca__section-title {
  color: #ffffff;
}

.page-ban-ca__why-choose-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.page-ban-ca__why-choose-content {
  flex: 1 1 45%;
}

.page-ban-ca__why-choose-list {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}

.page-ban-ca__why-choose-list li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  font-size: 1.05rem;
  line-height: 1.6;
}

.page-ban-ca__why-choose-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #FFD700; /* Gold checkmark */
  font-weight: bold;
  font-size: 1.2em;
  top: -2px;
}

.page-ban-ca__why-choose-image-wrapper {
  flex: 1 1 45%;
  text-align: center;
}

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

.page-ban-ca__btn-inline {
  margin-right: 15px;
}

.page-ban-ca__game-features-section {
  padding: 60px 0;
  background-color: var(--body-bg);
}

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

.page-ban-ca__game-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-ban-ca__game-card:hover {
  transform: translateY(-5px);
}

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

.page-ban-ca__game-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 20px 15px 10px;
}

.page-ban-ca__game-card-description {
  font-size: 0.95rem;
  color: var(--text-main);
  padding: 0 15px 20px;
}

.page-ban-ca__game-card .page-ban-ca__btn-primary {
  margin: 0 15px 25px;
  width: calc(100% - 30px);
}

.page-ban-ca__tips-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: #ffffff;
}

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

.page-ban-ca__tips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.page-ban-ca__tips-content {
  flex: 1 1 45%;
}

.page-ban-ca__tips-list {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}

.page-ban-ca__tips-list li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  font-size: 1.05rem;
  line-height: 1.6;
}

.page-ban-ca__tips-list li::before {
  content: '💡';
  position: absolute;
  left: 0;
  font-size: 1.2em;
  top: -2px;
}

.page-ban-ca__tips-image-wrapper {
  flex: 1 1 45%;
  text-align: center;
}

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

.page-ban-ca__promo-section {
  padding: 60px 0;
  background-color: var(--body-bg);
}

.page-ban-ca__promo-card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  margin-top: 40px;
}

.page-ban-ca__promo-image {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
  flex: 1 1 50%;
}

.page-ban-ca__promo-content {
  flex: 1 1 40%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-ban-ca__promo-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-ban-ca__promo-description {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 25px;
}

.page-ban-ca__view-all-promos {
  text-align: center;
  margin-top: 40px;
}

.page-ban-ca__faq-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: #ffffff;
}

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

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

.page-ban-ca__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-ban-ca__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  position: relative;
}

.page-ban-ca__faq-item summary::-webkit-details-marker,
.page-ban-ca__faq-item summary::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;
}

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

.page-ban-ca__faq-answer {
  padding: 15px 25px 25px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 1rem;
  line-height: 1.7;
  color: #f0f0f0;
}

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

.page-ban-ca__faq-answer a {
  color: #FFD700; /* Gold link */
  text-decoration: underline;
}

.page-ban-ca__faq-answer a:hover {
  color: #FFEA00;
}

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

/* Mobile responsive styles */
@media (max-width: 1024px) {
  .page-ban-ca__hero-container {
    gap: 30px;
    padding: 20px;
  }
  .page-ban-ca__hero-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }
  .page-ban-ca__hero-description {
    font-size: 1rem;
  }
  .page-ban-ca__intro-features {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-ban-ca__why-choose-grid,
  .page-ban-ca__tips-grid {
    flex-direction: column;
  }
  .page-ban-ca__why-choose-content,
  .page-ban-ca__why-choose-image-wrapper,
  .page-ban-ca__tips-content,
  .page-ban-ca__tips-image-wrapper {
    flex: 1 1 100%;
  }
  .page-ban-ca__promo-card {
    flex-direction: column;
  }
  .page-ban-ca__promo-image {
    max-height: 250px;
  }
  .page-ban-ca__promo-content {
    padding: 25px;
  }
  .page-ban-ca__promo-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  /* HERO section */
  .page-ban-ca__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-ban-ca__hero-container {
    flex-direction: column;
    padding: 15px;
    gap: 20px;
  }
  .page-ban-ca__hero-image-wrapper {
    order: 1; /* Image first on mobile */
    flex: 1 1 100%;
  }
  .page-ban-ca__hero-content {
    order: 2;
    flex: 1 1 100%;
    text-align: center;
  }
  .page-ban-ca__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem) !important;
    margin-bottom: 10px;
  }
  .page-ban-ca__hero-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  /* General content area and sections */
  .page-ban-ca__content-area {
    padding: 25px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-ban-ca__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
    margin-bottom: 30px;
  }
  .page-ban-ca__text-block {
    font-size: 0.95rem;
  }

  /* Module 1: Intro features with circular images */
  .page-ban-ca__intro-section {
    padding: 40px 0;
  }
  .page-ban-ca__intro-features {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-ban-ca__icon-box-media {
    width: 160px;
    height: 160px;
    margin: 0 auto 15px;
  }
  .page-ban-ca__feature-title {
    font-size: 1.3rem;
  }

  /* Why Choose Us section */
  .page-ban-ca__why-choose-us {
    padding: 50px 0;
  }
  .page-ban-ca__why-choose-list li {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }
  .page-ban-ca__btn-inline {
    margin-right: 10px;
    margin-bottom: 10px; /* For stacking */
  }

  /* Game Features section */
  .page-ban-ca__game-features-section {
    padding: 40px 0;
  }
  .page-ban-ca__game-cards {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-ban-ca__game-card-image {
    height: 180px;
  }
  .page-ban-ca__game-card-title {
    font-size: 1.4rem;
  }
  .page-ban-ca__game-card .page-ban-ca__btn-primary {
    width: calc(100% - 30px);
  }

  /* Tips section */
  .page-ban-ca__tips-section {
    padding: 50px 0;
  }
  .page-ban-ca__tips-list li {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  /* Promo section */
  .page-ban-ca__promo-section {
    padding: 40px 0;
  }
  .page-ban-ca__promo-card {
    flex-direction: column;
  }
  .page-ban-ca__promo-image {
    max-height: 200px;
  }
  .page-ban-ca__promo-content {
    padding: 20px;
  }
  .page-ban-ca__promo-title {
    font-size: 1.3rem;
  }
  .page-ban-ca__view-all-promos {
    margin-top: 30px;
  }

  /* FAQ section */
  .page-ban-ca__faq-section {
    padding: 50px 0;
  }
  .page-ban-ca__faq-list {
    margin-top: 30px;
  }
  .page-ban-ca__faq-item summary {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-ban-ca__faq-toggle {
    font-size: 1.5rem;
  }
  .page-ban-ca__faq-answer {
    padding: 10px 20px 20px;
    font-size: 0.9rem;
  }

  /* Universal image responsive styles for content area */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-ban-ca__hero-image,
  .page-ban-ca__why-choose-image,
  .page-ban-ca__game-card-image,
  .page-ban-ca__tips-image,
  .page-ban-ca__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* Ensure all content containers are responsive */
.page-ban-ca__section,
.page-ban-ca__card,
.page-ban-ca__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .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;
    padding-right: 15px;
  }
  .page-ban-ca__intro-feature-item,
  .page-ban-ca__game-card,
  .page-ban-ca__promo-card {
    padding-left: 0;
    padding-right: 0;
  }
}