/* style/ban-ca.css */

/* Root variables for colors */
:root {
  --primary-color: #C91F17;
  --secondary-color: #E53935;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --card-bg: #D32F2F;
  --bg-color: #B71C1C;
  --text-main-color: #FFF5E1;
  --border-color: #F2B544;
  --glow-color: #FFCC66;
  --gold-color: #F4D34D;
  --deep-red-color: #7A0E0E;

  /* Default text colors for contrast */
  --dark-text: #333333;
  --light-text: #ffffff;
  --default-bg-light: #ffffff;
  --default-bg-dark: #1a1a1a;
}

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

/* Color contrast classes */
.page-ban-ca__light-bg {
  background-color: var(--default-bg-light);
  color: var(--dark-text);
}

.page-ban-ca__dark-bg {
  background-color: var(--bg-color);
  color: var(--light-text);
}

/* Hero Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, header offset handled by body */
  padding-bottom: 60px;
  background-color: var(--primary-color);
  color: var(--light-text);
}

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

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

.page-ban-ca__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-main-color);
}

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

.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: 14px 28px;
  border-radius: 8px;
  font-size: 1.05em;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-ban-ca__btn-primary {
  background: var(--button-gradient);
  color: var(--deep-red-color);
  border: 2px solid var(--gold-color);
}

.page-ban-ca__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px var(--glow-color);
}

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

.page-ban-ca__btn-secondary:hover {
  background-color: var(--text-main-color);
  color: var(--primary-color);
}

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

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

/* Intro Section */
.page-ban-ca__intro-section {
  padding: 80px 0;
  text-align: center;
}

.page-ban-ca__intro-container,
.page-ban-ca__gameplay-container,
.page-ban-ca__advantages-container,
.page-ban-ca__faq-container,
.page-ban-ca__cta-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-ban-ca__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-ban-ca__section-description {
  font-size: 1.1em;
  margin-bottom: 50px;
  line-height: 1.8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-ban-ca__feature-item {
  flex: 1 1 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
  background-color: var(--card-bg);
  color: var(--text-main-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  min-width: 280px;
}

.page-ban-ca__feature-media {
  width: 100%;
  height: 200px;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
}

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

.page-ban-ca__feature-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-main-color);
}

.page-ban-ca__feature-text {
  font-size: 1em;
  line-height: 1.7;
}

/* Gameplay Section */
.page-ban-ca__gameplay-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-ban-ca__step-item {
  background-color: var(--card-bg);
  color: var(--text-main-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-ban-ca__step-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
}

.page-ban-ca__step-title {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--gold-color);
}

.page-ban-ca__step-description {
  font-size: 1em;
  line-height: 1.7;
}

/* Advantages Section */
.page-ban-ca__advantages-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-ban-ca__advantage-card {
  flex: 1 1 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
  background-color: var(--card-bg);
  color: var(--text-main-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  min-width: 280px;
}

.page-ban-ca__advantage-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
}

.page-ban-ca__advantage-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-main-color);
}

.page-ban-ca__advantage-text {
  font-size: 1em;
  line-height: 1.7;
}

/* FAQ Section */
.page-ban-ca__faq-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-ban-ca__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-main-color);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.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.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
  transform: rotate(45deg);
}

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

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

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

.page-ban-ca__cta-section .page-ban-ca__section-description {
  color: var(--light-text);
  margin-bottom: 40px;
}

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

.page-ban-ca__hero-section,
.page-ban-ca__intro-section,
.page-ban-ca__gameplay-section,
.page-ban-ca__advantages-section,
.page-ban-ca__faq-section,
.page-ban-ca__cta-section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-ban-ca {
    font-size: 15px;
  }

  /* Hero Section */
  .page-ban-ca__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-ban-ca__hero-container {
    flex-direction: column;
    padding: 20px 15px;
    gap: 20px;
  }

  .page-ban-ca__hero-content,
  .page-ban-ca__hero-image {
    flex: 1 1 100%;
    min-width: unset;
    text-align: center;
  }

  .page-ban-ca__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-ban-ca__description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .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;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Section Titles & Descriptions */
  .page-ban-ca__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-ban-ca__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  /* Intro Section */
  .page-ban-ca__intro-section {
    padding: 50px 0;
  }

  .page-ban-ca__intro-container {
    padding: 0 15px;
  }

  .page-ban-ca__feature-list {
    flex-direction: column;
    gap: 20px;
  }

  .page-ban-ca__feature-item,
  .page-ban-ca__advantage-card {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: unset;
    padding: 25px;
  }

  .page-ban-ca__feature-media {
    height: 180px;
  }

  .page-ban-ca__feature-title {
    font-size: 1.4em;
  }

  /* Gameplay Section */
  .page-ban-ca__gameplay-section {
    padding: 50px 0;
  }

  .page-ban-ca__gameplay-container {
    padding: 0 15px;
  }

  .page-ban-ca__gameplay-steps {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
  }

  .page-ban-ca__step-image {
    height: 180px;
  }

  .page-ban-ca__step-title {
    font-size: 1.5em;
  }

  /* Advantages Section */
  .page-ban-ca__advantages-section {
    padding: 50px 0;
  }

  .page-ban-ca__advantages-container {
    padding: 0 15px;
  }

  .page-ban-ca__advantage-icon {
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
  }

  .page-ban-ca__advantage-title {
    font-size: 1.4em;
  }

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

  .page-ban-ca__faq-container {
    padding: 0 15px;
  }

  .page-ban-ca__faq-list {
    margin-top: 30px;
  }

  .page-ban-ca__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-ban-ca__faq-answer {
    padding: 0 20px 15px;
  }

  /* Final CTA Section */
  .page-ban-ca__cta-section {
    padding: 50px 0;
  }

  .page-ban-ca__cta-container {
    padding: 0 15px;
  }

  .page-ban-ca__cta-section .page-ban-ca__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-ban-ca__hero-section,
  .page-ban-ca__intro-section,
  .page-ban-ca__gameplay-section,
  .page-ban-ca__advantages-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__cta-section,
  .page-ban-ca__intro-container,
  .page-ban-ca__gameplay-container,
  .page-ban-ca__advantages-container,
  .page-ban-ca__faq-container,
  .page-ban-ca__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}