/* style/ban-ca.css */

:root {
  --primary-color: #C91F17;
  --secondary-color: #E53935;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --card-bg: #D32F2F;
  --body-bg: #B71C1C;
  --text-main-color: #FFF5E1;
  --border-color: #F2B544;
  --glow-color: #FFCC66;
  --gold-color: #F4D34D;
  --deep-red-color: #7A0E0E;
  --dark-text-color: #333333; /* For light backgrounds */
  --light-text-color: #ffffff; /* For dark backgrounds */
}

.page-ban-ca {
  color: var(--text-main-color); /* Default text color for dark body background */
  background-color: var(--body-bg);
}

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

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

/* General Section Styling */
.page-ban-ca__section-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 24px;
  color: inherit; /* Inherit from section background */
}

.page-ban-ca__section-description {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: inherit;
}

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

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

.page-ban-ca__card {
  background-color: var(--card-bg);
  color: var(--text-main-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Buttons */
.page-ban-ca__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-ban-ca__cta-button,
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca a[class*="button"],
.page-ban-ca a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1em;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
}

.page-ban-ca__btn-primary {
  background: var(--button-gradient);
  color: var(--dark-text-color); /* Dark text for light gradient button */
  border: 2px solid var(--gold-color);
  box-shadow: 0 0 15px var(--glow-color);
}

.page-ban-ca__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--glow-color);
  opacity: 0.9;
}

.page-ban-ca__btn-secondary {
  background-color: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  box-shadow: none;
}

.page-ban-ca__btn-secondary:hover {
  background-color: var(--gold-color);
  color: var(--dark-text-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

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

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

.page-ban-ca__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--gold-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-ban-ca__hero-main-img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Intro Section - Features Grid */
.page-ban-ca__intro-section .page-ban-ca__section-title,
.page-ban-ca__intro-section .page-ban-ca__section-description {
  color: var(--dark-text-color);
}

.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 {
  background-color: var(--card-bg);
  color: var(--text-main-color);
}

.page-ban-ca__icon-box-media {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--gold-color);
  box-shadow: 0 0 15px var(--glow-color);
}

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

.page-ban-ca__feature-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gold-color);
}

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

/* Why Sowin Section */
.page-ban-ca__why-sowin-section {
  padding: 60px 0;
}

.page-ban-ca__why-sowin-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-ban-ca__why-sowin-text,
.page-ban-ca__why-sowin-image {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-ban-ca__why-sowin-text p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 20px;
}

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

.page-ban-ca__benefit-list li {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
}

.page-ban-ca__benefit-list li::before {
  content: '✓';
  color: var(--gold-color);
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
}

/* Guide Section */
.page-ban-ca__guide-section .page-ban-ca__section-title,
.page-ban-ca__guide-section .page-ban-ca__section-description {
  color: var(--dark-text-color);
}

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

.page-ban-ca__guide-item {
  background-color: var(--card-bg);
  color: var(--text-main-color);
}

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

.page-ban-ca__guide-item p {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-main-color);
}

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

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

.page-ban-ca__game-cards-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(--card-bg);
  color: var(--text-main-color);
}

.page-ban-ca__game-thumbnail {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
}

.page-ban-ca__game-title {
  font-size: 1.6em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gold-color);
}

.page-ban-ca__game-description {
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 20px;
}

.page-ban-ca__game-trial-frame {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 8px;
  margin-bottom: 20px;
  background-color: rgba(0, 0, 0, 0.3);
}

.page-ban-ca__game-button {
  width: auto; /* Override max-width for specific buttons */
  padding: 12px 25px;
  font-size: 1em;
}

/* Tips Section */
.page-ban-ca__tips-section .page-ban-ca__section-title,
.page-ban-ca__tips-section .page-ban-ca__section-description {
  color: var(--dark-text-color);
}

.page-ban-ca__tips-content {
  display: flex;
  flex-wrap: wrap-reverse; /* Image above text on mobile */
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-ban-ca__tips-text,
.page-ban-ca__tips-image {
  flex: 1 1 45%;
  min-width: 300px;
}

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

.page-ban-ca__tips-list li {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 15px;
  position: relative;
  padding-left: 35px;
  text-align: left;
  color: var(--dark-text-color);
}

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

.page-ban-ca__tips-list li::before {
  content: '💡';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2em;
}

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

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

.page-ban-ca__promo-card {
  background-color: var(--card-bg);
  color: var(--text-main-color);
}

.page-ban-ca__promo-thumbnail {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
}

.page-ban-ca__promo-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gold-color);
}

.page-ban-ca__promo-text {
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 20px;
}

.page-ban-ca__promo-footer {
  text-align: center;
  margin-top: 50px;
}

/* FAQ Section */
.page-ban-ca__faq-section .page-ban-ca__section-title,
.page-ban-ca__faq-section .page-ban-ca__section-description {
  color: var(--dark-text-color);
}

.page-ban-ca__faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-ban-ca__faq-item {
  background-color: var(--card-bg);
  color: var(--text-main-color);
  text-align: left;
  padding: 0;
  border: 1px solid var(--border-color);
}

.page-ban-ca__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--gold-color);
  position: relative;
}

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

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

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  font-weight: 900;
  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 24px 18px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-main-color);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__hero-container {
    flex-direction: column-reverse;
  }
  .page-ban-ca__hero-content,
  .page-ban-ca__hero-image {
    flex: 1 1 100%;
    text-align: center;
  }
  .page-ban-ca__hero-content {
    order: 2;
  }
  .page-ban-ca__hero-image {
    order: 1;
  }
  .page-ban-ca__why-sowin-content {
    flex-direction: column;
  }
  .page-ban-ca__why-sowin-text,
  .page-ban-ca__why-sowin-image {
    flex: 1 1 100%;
  }
  .page-ban-ca__tips-content {
    flex-direction: column-reverse;
  }
  .page-ban-ca__tips-text,
  .page-ban-ca__tips-image {
    flex: 1 1 100%;
  }
  .page-ban-ca__tips-list li {
    text-align: center;
    padding-left: 0;
  }
  .page-ban-ca__tips-list li::before {
    position: static;
    margin-right: 10px;
  }
}

@media (max-width: 768px) {
  .page-ban-ca__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-ban-ca__hero-container,
  .page-ban-ca__container {
    padding: 20px 15px;
  }
  .page-ban-ca__main-title {
    font-size: 2.2em;
  }
  .page-ban-ca__hero-description {
    font-size: 1em;
  }
  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-ban-ca__cta-button,
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary,
  .page-ban-ca a[class*="button"],
  .page-ban-ca a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  /* Module 1: Three-column circular images */
  .page-ban-ca__features-grid {
    grid-template-columns: 1fr;
  }
  .page-ban-ca__icon-box-media {
    width: 150px;
    height: 150px;
    border-width: 3px;
  }

  /* Guide Section */
  .page-ban-ca__guide-steps {
    grid-template-columns: 1fr;
  }

  /* Game List Section */
  .page-ban-ca__game-cards-grid {
    grid-template-columns: 1fr;
  }

  /* Promo Section */
  .page-ban-ca__promo-grid {
    grid-template-columns: 1fr;
  }

  /* FAQ Section */
  .page-ban-ca__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-ban-ca__faq-answer {
    padding: 0 20px 15px;
  }

  /* General content area images */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-ban-ca__section,
  .page-ban-ca__card,
  .page-ban-ca__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-ban-ca__section-title {
    font-size: 1.8em;
  }
  .page-ban-ca__section-description {
    font-size: 0.95em;
  }
  .page-ban-ca__why-sowin-text p,
  .page-ban-ca__benefit-list li,
  .page-ban-ca__tips-list li {
    font-size: 1em;
  }
  .page-ban-ca__game-title {
    font-size: 1.4em;
  }
  .page-ban-ca__promo-title {
    font-size: 1.2em;
  }
}