/* style/ban-ca.css */

/* Base styles for the page-ban-ca scope */
.page-ban-ca {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #F5F7FA; /* Page background */
}

/* Hero Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  padding-bottom: 60px;
  background-color: #FFFFFF; /* Light background for hero */
}

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

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

.page-ban-ca__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* H1 font size with clamp */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #E53935; /* Brand main color for H1 */
}

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

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

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__btn-play,
.page-ban-ca__btn-promo {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* For responsive buttons */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-ban-ca__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

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

.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: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  display: block; /* Ensure no extra space below image */
}

/* General Section Styles */
.page-ban-ca__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 15px;
}

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

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

.page-ban-ca__section-description {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__section-description--light {
  color: #f0f0f0;
}

/* Intro Section (Module 1) */
.page-ban-ca__intro-section {
  background-color: #F5F7FA; /* Light background */
  color: #333333;
}

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

.page-ban-ca__feature-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px 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: 180px; /* Still square */
  height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  background-color: #FF5A4F; /* Auxiliary color */
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

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

/* Games Section */
.page-ban-ca__games-section {
  background: linear-gradient(135deg, #E53935 0%, #FF5A4F 100%); /* Dark gradient background */
  color: #ffffff;
}

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

.page-ban-ca__game-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

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

.page-ban-ca__game-card-content {
  padding: 20px;
  color: #333333;
}

.page-ban-ca__game-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
}

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

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

.page-ban-ca__game-card-text {
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: #555555;
}

.page-ban-ca__btn-play {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
  width: 100%;
}

.page-ban-ca__btn-play:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Guide Section */
.page-ban-ca__guide-section {
  background-color: #F5F7FA; /* Light background */
  color: #333333;
}

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

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

.page-ban-ca__guide-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #E53935;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.page-ban-ca__guide-text {
  font-size: 1rem;
  color: #555555;
}

/* Promotion Section */
.page-ban-ca__promo-section {
  background: linear-gradient(135deg, #FF5A4F 0%, #E53935 100%); /* Dark gradient background */
  color: #ffffff;
}

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

.page-ban-ca__promo-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.page-ban-ca__promo-card:hover {
  transform: translateY(-8px);
}

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

.page-ban-ca__promo-content {
  padding: 20px;
  color: #333333;
}

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

.page-ban-ca__promo-text {
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: #555555;
}

.page-ban-ca__btn-promo {
  background-color: #E53935;
  color: #ffffff;
  border: none;
  width: 100%;
}

.page-ban-ca__btn-promo:hover {
  background-color: #FF5A4F;
}

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

/* FAQ Section */
.page-ban-ca__faq-section {
  background-color: #F5F7FA; /* Light background */
  color: #333333;
}

.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.15rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details/summary */
}

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

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

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

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
  transform: rotate(45deg); /* Change + to X */
}

.page-ban-ca__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #555555;
}

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

/* Contact CTA Section */
.page-ban-ca__contact-cta {
  background: #E53935; /* Main brand color */
  color: #ffffff;
}

.page-ban-ca__contact-cta-inner {
  text-align: center;
  padding: 80px 15px;
}

/* 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%;
    min-width: unset;
  }
  .page-ban-ca__cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Small top padding, assuming body has header offset */
    padding-bottom: 40px !important;
  }
  .page-ban-ca__hero-container {
    padding: 30px 15px !important;
  }
  .page-ban-ca__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
  }
  .page-ban-ca__hero-description {
    font-size: 1rem !important;
  }
  .page-ban-ca__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
  }
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary,
  .page-ban-ca__btn-play,
  .page-ban-ca__btn-promo,
  .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;
    padding-right: 15px;
  }

  /* General Content Area */
  .page-ban-ca__content-area {
    padding: 40px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Section Titles & Descriptions */
  .page-ban-ca__section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
  }
  .page-ban-ca__section-description {
    font-size: 0.95rem !important;
  }

  /* Module 1: Intro Section (features grid) */
  .page-ban-ca__features-grid {
    grid-template-columns: 1fr !important; /* Single column */
  }
  .page-ban-ca__feature-item {
    padding: 25px !important;
  }
  .page-ban-ca__icon-box-media {
    width: 150px !important; /* Still square, smaller */
    height: 150px !important;
    margin-bottom: 15px !important;
  }
  .page-ban-ca__feature-title {
    font-size: 1.3rem !important;
  }
  .page-ban-ca__feature-text {
    font-size: 0.9rem !important;
  }

  /* Games Section (game cards) */
  .page-ban-ca__game-cards-grid {
    grid-template-columns: 1fr !important; /* Single column */
  }
  .page-ban-ca__game-card-image {
    height: 180px !important; /* Adjust height for mobile */
  }
  .page-ban-ca__game-card-title {
    font-size: 1.3rem !important;
  }
  .page-ban-ca__game-card-text {
    font-size: 0.9rem !important;
  }

  /* Guide Section (steps) */
  .page-ban-ca__guide-steps {
    grid-template-columns: 1fr !important; /* Single column */
  }
  .page-ban-ca__guide-item {
    padding: 20px !important;
  }
  .page-ban-ca__guide-icon {
    width: 45px !important;
    height: 45px !important;
    font-size: 1.6rem !important;
  }
  .page-ban-ca__guide-title {
    font-size: 1.3rem !important;
  }
  .page-ban-ca__guide-text {
    font-size: 0.9rem !important;
  }

  /* Promotion Section (promo cards) */
  .page-ban-ca__promo-grid {
    grid-template-columns: 1fr !important; /* Single column */
  }
  .page-ban-ca__promo-image {
    height: 180px !important;
  }
  .page-ban-ca__promo-title {
    font-size: 1.3rem !important;
  }
  .page-ban-ca__promo-text {
    font-size: 0.9rem !important;
  }

  /* FAQ Section */
  .page-ban-ca__faq-question {
    padding: 15px 20px !important;
    font-size: 1rem !important;
  }
  .page-ban-ca__faq-answer {
    padding: 10px 20px 15px !important;
    font-size: 0.95rem !important;
  }
  .page-ban-ca__faq-toggle {
    font-size: 1.3rem !important;
  }

  /* Contact CTA Section */
  .page-ban-ca__contact-cta-inner {
    padding: 60px 15px !important;
  }

  /* Universal image responsiveness for content area */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  /* Exception for circular images in Module 1 */
  .page-ban-ca__icon-box-media img {
    height: 100% !important; /* Maintain circular aspect ratio */
    object-fit: cover !important;
  }
}