/* style/ban-ca.css */

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

.page-ban-ca {
  font-family: Arial, sans-serif;
  color: var(--page-ban-ca-text-main);
  background-color: var(--page-ban-ca-background-color);
}

/* Hero Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--page-ban-ca-background-color);
  position: relative;
  overflow: hidden;
}

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

.page-ban-ca__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  text-align: left;
}

.page-ban-ca__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--page-ban-ca-text-dark);
  margin-bottom: 20px;
}

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

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

.page-ban-ca__cta-buttons--center {
  justify-content: center;
  margin-top: 40px;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-ban-ca__btn-primary {
  background: var(--page-ban-ca-gradient-button);
  color: #ffffff;
  border: none;
}

.page-ban-ca__btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

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

.page-ban-ca__btn-secondary:hover {
  background: var(--page-ban-ca-primary-color);
  color: #ffffff;
}

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

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

/* General Content Area Styling */
.page-ban-ca__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

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

.page-ban-ca__section-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--page-ban-ca-text-main);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Intro Section (Features Grid) */
.page-ban-ca__intro-section {
  background-color: var(--page-ban-ca-card-bg);
  padding: 60px 0;
}

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

.page-ban-ca__feature-item {
  text-align: center;
  background-color: var(--page-ban-ca-background-color);
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ban-ca__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__icon-box-media {
  width: 240px;
  height: 240px;
  margin: 0 auto 25px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px var(--page-ban-ca-border-color);
}

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

.page-ban-ca__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--page-ban-ca-text-dark);
  margin-bottom: 15px;
}

.page-ban-ca__feature-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--page-ban-ca-text-main);
}

/* Game Showcase Section */
.page-ban-ca__game-showcase-section {
  padding: 60px 0;
}

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

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

.page-ban-ca__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.page-ban-ca__game-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--page-ban-ca-text-dark);
  margin: 20px 0 10px;
  padding: 0 15px;
}

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

.page-ban-ca__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

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

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

.page-ban-ca__step-item {
  background-color: var(--page-ban-ca-card-bg);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 30px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-ban-ca__step-icon {
  width: 100%;
  max-width: 250px;
  height: 150px;
  margin-bottom: 25px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-ban-ca__step-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-ban-ca__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--page-ban-ca-text-dark);
  margin-bottom: 15px;
}

.page-ban-ca__step-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--page-ban-ca-text-main);
}

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

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

.page-ban-ca__faq-item {
  background-color: var(--page-ban-ca-card-bg);
  border: 1px solid var(--page-ban-ca-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--page-ban-ca-text-dark);
  cursor: pointer;
  background-color: var(--page-ban-ca-card-bg);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-ban-ca__faq-item[open] .page-ban-ca__faq-question {
  background-color: var(--page-ban-ca-background-color);
}

.page-ban-ca__faq-question:hover {
  background-color: var(--page-ban-ca-background-color);
}

.page-ban-ca__faq-qtext {
  flex-grow: 1;
}

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

.page-ban-ca__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--page-ban-ca-text-main);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-answer {
  max-height: 500px; /* Sufficiently large to show content */
  padding-top: 10px;
}

/* 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__cta-buttons {
    justify-content: center;
  }

  .page-ban-ca__main-title {
    font-size: 2.5rem;
  }

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

  .page-ban-ca__icon-box-media {
    width: 200px;
    height: 200px;
  }

  .page-ban-ca__game-card {
    margin-bottom: 20px;
  }
}

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

  .page-ban-ca__hero-container {
    padding: 20px 15px !important;
    gap: 20px !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: 0.95rem !important;
    margin-bottom: 25px !important;
  }

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

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
  }

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

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

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

  /* Intro Section (Features Grid) */
  .page-ban-ca__features-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

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

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

  /* Game Showcase Section */
  .page-ban-ca__game-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

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

  .page-ban-ca__game-name {
    font-size: 1.2rem !important;
  }

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

  .page-ban-ca__step-icon {
    height: 120px !important;
    max-width: 200px !important;
    margin-bottom: 20px !important;
  }

  .page-ban-ca__step-title {
    font-size: 1.3rem !important;
  }

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

  .page-ban-ca__faq-toggle {
    font-size: 1.3rem !important;
  }

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

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

  .page-ban-ca__hero-side-image {
    height: auto !important;
  }

  /* Ensure all containers are responsive */
  .page-ban-ca__section,
  .page-ban-ca__card,
  .page-ban-ca__container,
  .page-ban-ca__feature-item,
  .page-ban-ca__game-card,
  .page-ban-ca__step-item,
  .page-ban-ca__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Padding already handled by .page-ban-ca__content-area */
  }
}

@media (max-width: 480px) {
  .page-ban-ca__main-title {
    font-size: clamp(1.6rem, 9vw, 2rem) !important;
  }

  .page-ban-ca__section-title {
    font-size: clamp(1.4rem, 8vw, 1.8rem) !important;
  }

  .page-ban-ca__cta-buttons {
    flex-direction: column;
  }
}