/* style/ban-ca.css */

:root {
  --primary-color: #C61F1F;
  --secondary-color: #E53030;
  --card-bg: #2A1212;
  --background-color: #140C0C;
  --text-main-color: #FFF1E8;
  --border-color: #6A1E1E;
  --gold-color: #F3C54D;
  --deep-red-color: #7E0D0D;
  --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
}

.page-ban-ca {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color); /* Default text color for the page */
  background-color: var(--background-color); /* Page background from custom colors */
}

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

.page-ban-ca__highlight {
  color: var(--gold-color);
  font-weight: bold;
}

/* HERO Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background-color: var(--deep-red-color);
}

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

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

.page-ban-ca__hero-title {
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold-color);
  max-width: 600px;
}

.page-ban-ca__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 600px;
}

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

.page-ban-ca__main-visual {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

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

.page-ban-ca__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
}

.page-ban-ca__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-ban-ca__btn-secondary {
  background: var(--card-bg);
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--card-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-ban-ca__btn-small {
  padding: 8px 18px;
  font-size: 0.9em;
  border-radius: 20px;
}

/* General Section Styling */
.page-ban-ca__section-title {
  font-size: 2.2em;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.3;
}

.page-ban-ca p {
  line-height: 1.7;
  margin-bottom: 15px;
  color: var(--text-main-color);
}

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

/* Advantages Section */
.page-ban-ca__advantages-section {
  background-color: var(--card-bg);
  padding: 60px 0;
}

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

.page-ban-ca__advantage-item {
  text-align: center;
  background-color: var(--background-color);
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-ban-ca__icon-box-media {
  width: 200px;
  height: 200px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--gold-color);
  box-shadow: 0 0 15px rgba(243, 197, 77, 0.5);
}

.page-ban-ca__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; /* Ensure image itself is round inside container */
  display: block;
}

.page-ban-ca__advantage-title {
  font-size: 1.5em;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

/* Featured Games Section */
.page-ban-ca__featured-games-section {
  padding: 60px 0;
}

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

.page-ban-ca__game-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  text-align: center;
  display: flex;
  flex-direction: column;
}

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

.page-ban-ca__game-card h3 {
  font-size: 1.3em;
  color: var(--gold-color);
  margin: 15px 10px 10px;
  font-weight: bold;
}

.page-ban-ca__game-card p {
  font-size: 0.95em;
  color: var(--text-main-color);
  padding: 0 15px;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-ban-ca__game-card .page-ban-ca__cta-button {
  margin: 0 15px 20px;
}

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

.page-ban-ca__guide-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 25px;
  color: var(--text-main-color);
}

.page-ban-ca__guide-list li {
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 1.1em;
}

.page-ban-ca__guide-list li strong {
  color: var(--gold-color);
}

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

.page-ban-ca__tips-list {
  list-style-type: disc;
  padding-left: 25px;
  margin-bottom: 25px;
  color: var(--text-main-color);
}

.page-ban-ca__tips-list li {
  margin-bottom: 10px;
  line-height: 1.6;
  font-size: 1.05em;
}

.page-ban-ca__tips-list li strong {
  color: var(--gold-color);
}

/* Promo Section */
.page-ban-ca__promo-section {
  background-color: var(--card-bg);
  padding: 60px 0;
}

.page-ban-ca__promo-list {
  list-style-type: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-ban-ca__promo-list li {
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  font-size: 1.1em;
  color: var(--text-main-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__promo-list li::before {
  content: '⭐';
  margin-right: 10px;
  font-size: 1.2em;
}

.page-ban-ca__promo-list li strong {
  color: var(--gold-color);
}

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

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

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

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

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.15em;
  color: var(--gold-color);
  list-style: none; /* For details/summary */
  -webkit-tap-highlight-color: transparent;
}

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

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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.6;
  color: var(--text-main-color);
}

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

.page-ban-ca__faq-answer a {
  color: var(--gold-color);
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__hero-title {
    font-size: 2.8em;
  }

  .page-ban-ca__section-title {
    font-size: 2em;
  }

  .page-ban-ca__advantage-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-ban-ca__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

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

  .page-ban-ca__hero-container {
    flex-direction: column;
    padding: 30px 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__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
    max-width: 100%;
  }

  .page-ban-ca__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
    max-width: 100%;
  }

  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-ban-ca__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 10px 15px;
    font-size: 0.95em;
  }

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

  .page-ban-ca__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-ban-ca p,
  .page-ban-ca li {
    font-size: 15px;
    line-height: 1.5;
  }

  /* Images */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Module 1 Three-column (`page-ban-ca__advantages-section`) */
  .page-ban-ca__advantage-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ban-ca__icon-box-media {
    width: 150px;
    height: 150px;
    border-width: 3px;
  }

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

  /* Game Tabs (`page-ban-ca__featured-games-section`) */
  .page-ban-ca__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  /* Long-form sections (Guide, Tips, Promo, FAQ) */
  .page-ban-ca__guide-list,
  .page-ban-ca__tips-list,
  .page-ban-ca__promo-list {
    padding-left: 20px;
  }

  .page-ban-ca__promo-list li {
    padding: 12px 15px;
    font-size: 1em;
  }

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

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