/* style/ban-ca.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-bg: #C30808;
  --login-button-bg: #C30808;
  --register-login-font-color: #FFFF00;
  --text-dark: #333333;
  --text-light: #ffffff;
  --border-light: #e0e0e0;
}

.page-ban-ca {
  color: var(--text-dark);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  background: var(--secondary-color);
}

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

.page-ban-ca__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  color: var(--text-dark);
}

.page-ban-ca__hero-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--primary-color);
  letter-spacing: -0.02em;
}

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

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

.page-ban-ca__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-ban-ca__btn-register {
  background: var(--register-button-bg);
  color: var(--register-login-font-color);
  border: 2px solid var(--register-button-bg);
}

.page-ban-ca__btn-register:hover {
  background: darken(var(--register-button-bg), 10%);
  border-color: darken(var(--register-button-bg), 10%);
}

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

.page-ban-ca__btn-play-now:hover {
  background: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

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

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

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

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

.page-ban-ca__section-description {
  font-size: 1.05em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-dark);
}

/* Intro Section */
.page-ban-ca__intro-section {
  background: var(--secondary-color);
  padding: 60px 0;
}

.page-ban-ca__intro-text {
  text-align: center;
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 50px;
  color: var(--text-dark);
}

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

.page-ban-ca__intro-item {
  background: #f9f9f9;
  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-item:hover {
  transform: translateY(-5px);
}

.page-ban-ca__icon-box-media {
  width: 240px;
  height: 240px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-ban-ca__icon-box-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-ban-ca__icon-box-description {
  font-size: 1em;
  color: var(--text-dark);
}

/* Features Section */
.page-ban-ca__features-section {
  background: var(--primary-color);
  padding: 60px 0;
  color: var(--text-light);
}

.page-ban-ca__features-section .page-ban-ca__section-title,
.page-ban-ca__features-section .page-ban-ca__section-description {
  color: var(--text-light);
}

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

.page-ban-ca__feature-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-ban-ca__feature-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-ban-ca__feature-title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--register-login-font-color);
  margin: 20px 15px 10px;
}

.page-ban-ca__feature-description {
  font-size: 1em;
  color: var(--text-light);
  padding: 0 15px 20px;
}

/* Guide Section */
.page-ban-ca__guide-section {
  background: var(--secondary-color);
  padding: 60px 0;
}

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

.page-ban-ca__guide-step-item {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  position: relative;
  padding-top: 60px;
}

.page-ban-ca__guide-step-number {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: var(--secondary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__guide-step-title {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-ban-ca__guide-step-description {
  font-size: 0.95em;
  color: var(--text-dark);
}

.page-ban-ca__guide-image-wrapper {
  margin-top: 50px;
  text-align: center;
}

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

/* Promo Section */
.page-ban-ca__promo-section {
  background: var(--primary-color);
  padding: 60px 0;
  color: var(--text-light);
  text-align: center;
}

.page-ban-ca__promo-section .page-ban-ca__section-title {
  color: var(--text-light);
}

.page-ban-ca__promo-content {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--text-light);
}

.page-ban-ca__promo-cta {
  margin-top: 30px;
}

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

.page-ban-ca__btn-primary:hover {
  background: darken(var(--secondary-color), 10%);
  border-color: darken(var(--secondary-color), 10%);
}

/* FAQ Section */
.page-ban-ca__faq-section {
  background: var(--secondary-color);
  padding: 60px 0;
}

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

.page-ban-ca__faq-item {
  background: #f9f9f9;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  list-style: none; /* Remove default marker */
}

.page-ban-ca__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--primary-color);
  margin-left: 15px;
}

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

.page-ban-ca__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--text-dark);
  line-height: 1.6;
}

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

.page-ban-ca__faq-image-wrapper {
  margin-top: 50px;
  text-align: center;
}

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

/* CTA Section */
.page-ban-ca__cta-section {
  background: var(--primary-color);
  padding: 60px 0;
  text-align: center;
  color: var(--text-light);
}

.page-ban-ca__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-ban-ca__cta-text {
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-ban-ca__cta-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--text-light);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__hero-container {
    padding: 30px 16px;
  }
  .page-ban-ca__hero-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }
  .page-ban-ca__section-title {
    font-size: clamp(1.8em, 3.8vw, 2.3em);
  }
  .page-ban-ca__intro-item, .page-ban-ca__feature-item, .page-ban-ca__guide-step-item {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-ban-ca {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-ban-ca__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }
  .page-ban-ca__hero-container {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px;
  }
  .page-ban-ca__hero-content {
    order: 2;
    flex: 1 1 100%;
  }
  .page-ban-ca__hero-image {
    order: 1;
    flex: 1 1 100%;
    margin-bottom: 20px;
  }
  .page-ban-ca__hero-title {
    font-size: clamp(2em, 8vw, 2.8em);
    margin-bottom: 15px;
  }
  .page-ban-ca__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-ban-ca__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-ban-ca__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
  }

  /* General content area padding for mobile */
  .page-ban-ca__content-area {
    padding: 30px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__section-title {
    font-size: clamp(1.6em, 6vw, 2em);
    margin-bottom: 25px;
  }
  .page-ban-ca__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  /* Intro Section */
  .page-ban-ca__intro-section {
    padding: 40px 0;
  }
  .page-ban-ca__intro-text {
    margin-bottom: 30px;
  }
  .page-ban-ca__intro-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-ban-ca__icon-box-media {
    width: 200px !important;
    height: 200px !important;
    margin-bottom: 15px;
  }

  /* Features Section */
  .page-ban-ca__features-section {
    padding: 40px 0;
  }
  .page-ban-ca__features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
  }
  .page-ban-ca__feature-title {
    font-size: 1.3em;
  }

  /* Guide Section */
  .page-ban-ca__guide-section {
    padding: 40px 0;
  }
  .page-ban-ca__guide-steps {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
  }
  .page-ban-ca__guide-step-item {
    padding-top: 50px;
  }
  .page-ban-ca__guide-step-number {
    width: 35px;
    height: 35px;
    font-size: 1.1em;
  }
  .page-ban-ca__guide-image-wrapper {
    margin-top: 30px;
  }
  .page-ban-ca__guide-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Promo Section */
  .page-ban-ca__promo-section {
    padding: 40px 0;
  }
  .page-ban-ca__promo-content {
    font-size: 1em;
    margin-bottom: 25px;
  }

  /* FAQ Section */
  .page-ban-ca__faq-section {
    padding: 40px 0;
  }
  .page-ban-ca__faq-list {
    margin-top: 30px;
  }
  .page-ban-ca__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-ban-ca__faq-toggle {
    font-size: 1.3em;
  }
  .page-ban-ca__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }
  .page-ban-ca__faq-image-wrapper {
    margin-top: 30px;
  }
  .page-ban-ca__faq-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* CTA Section */
  .page-ban-ca__cta-section {
    padding: 40px 0;
  }
  .page-ban-ca__cta-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* Universal image and container responsiveness for mobile */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-ban-ca__section,
  .page-ban-ca__card,
  .page-ban-ca__container,
  .page-ban-ca__hero-cta-buttons,
  .page-ban-ca__promo-cta,
  .page-ban-ca__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important; /* Ensure buttons wrap */
  }
}