/* style/ban-ca.css */

:root {
  --f66-main-color: #FF8C1A;
  --f66-aux-color: #FFA53A;
  --f66-card-bg: #17191F;
  --f66-bg: #0D0E12;
  --f66-text-main: #FFF3E6;
  --f66-border: #A84F0C;
  --f66-glow: #FFB04D;
  --f66-deep-orange: #D96800;
}

.page-ban-ca {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--f66-text-main); /* Light text on dark body background */
  background-color: var(--f66-bg); /* Ensure body background is respected */
}

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

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

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

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

.page-ban-ca__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--f66-glow);
}

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

.page-ban-ca__hero-cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.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 0 30px rgba(255, 176, 77, 0.3);
}

/* Buttons */
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  text-align: center;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, var(--f66-aux-color) 0%, var(--f66-deep-orange) 100%);
  color: var(--f66-text-main);
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

.page-ban-ca__btn-primary:hover {
  background: linear-gradient(180deg, var(--f66-deep-orange) 0%, var(--f66-aux-color) 100%);
  box-shadow: 0 8px 20px rgba(255, 140, 26, 0.6);
}

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

.page-ban-ca__btn-secondary:hover {
  background-color: var(--f66-aux-color);
  color: var(--f66-bg);
}

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

.page-ban-ca__btn-large {
  padding: 16px 40px;
  font-size: 1.15rem;
}

.page-ban-ca__center-cta {
  text-align: center;
  margin-top: 40px;
}

/* General Section Styles */
.page-ban-ca__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--f66-glow);
}

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

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

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

.page-ban-ca__feature-item {
  background-color: var(--f66-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--f66-border);
}

.page-ban-ca__icon-box-media {
  width: 200px;
  height: 200px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--f66-aux-color);
  display: flex;
  align-items: center;
  justify-content: 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;
  margin-bottom: 15px;
  color: var(--f66-glow);
}

.page-ban-ca__feature-text {
  font-size: 1rem;
  color: var(--f66-text-main);
}

/* Guide Section */
.page-ban-ca__guide-section {
  background-color: var(--f66-bg);
  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__guide-step-item {
  background-color: var(--f66-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--f66-border);
}

.page-ban-ca__step-icon {
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(255, 140, 26, 0.2);
}

.page-ban-ca__step-icon img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-ban-ca__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--f66-aux-color);
}

.page-ban-ca__step-text {
  font-size: 1rem;
  color: var(--f66-text-main);
}

/* Strategy Section */
.page-ban-ca__strategy-section {
  background-color: var(--f66-bg);
  padding: 60px 0;
}

.page-ban-ca__strategy-list {
  max-width: 800px;
  margin: 40px auto 0;
  list-style: none;
  padding: 0;
  color: var(--f66-text-main);
}

.page-ban-ca__strategy-list li {
  background-color: var(--f66-card-bg);
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  border-left: 5px solid var(--f66-main-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  font-size: 1.1rem;
  line-height: 1.5;
}

.page-ban-ca__strategy-list li strong {
  color: var(--f66-glow);
}

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

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

.page-ban-ca__promo-card {
  background-color: var(--f66-card-bg);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--f66-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-ban-ca__promo-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-ban-ca__promo-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--f66-aux-color);
}

.page-ban-ca__promo-card-text {
  font-size: 1rem;
  color: var(--f66-text-main);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-ban-ca__faq-section {
  background-color: var(--f66-bg);
  padding: 60px 0;
}

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

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

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--f66-glow);
  cursor: pointer;
  list-style: none;
  position: relative;
}

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

.page-ban-ca__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Prevent text from intercepting click */
}

.page-ban-ca__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  pointer-events: none; /* Prevent icon from intercepting click */
}

.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: 1rem;
  color: var(--f66-text-main);
}

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

/* Final CTA Section */
.page-ban-ca__cta-final-section {
  background-color: var(--f66-bg);
  padding: 60px 0 80px;
}

/* General Image Responsiveness (non-icon-box-media) */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-ban-ca {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-ban-ca__container {
    padding: 30px 15px; /* Adjust padding for mobile */
  }

  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
  }

  .page-ban-ca__hero-container {
    flex-direction: column; /* Stack hero content vertically */
    padding: 30px 15px;
    gap: 30px;
  }

  .page-ban-ca__hero-content,
  .page-ban-ca__hero-image {
    flex: 1 1 100%; /* Full width for content and image */
    min-width: unset;
  }

  .page-ban-ca__hero-title {
    font-size: 2rem;
    text-align: center;
  }

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

  .page-ban-ca__hero-cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  /* Buttons mobile adaptation */
  .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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-ban-ca__hero-cta-buttons .page-ban-ca__btn-primary,
  .page-ban-ca__hero-cta-buttons .page-ban-ca__btn-secondary {
      margin: 0 auto; /* Center buttons if in a flex column */
  }

  .page-ban-ca__center-cta .page-ban-ca__btn-primary,
  .page-ban-ca__center-cta .page-ban-ca__btn-secondary {
      max-width: 90% !important;
      width: 90% !important;
      margin: 0 auto; /* Center single buttons */
  }

  .page-ban-ca__section-title {
    font-size: 1.8rem;
  }

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

  /* Module 1 circular images */
  .page-ban-ca__icon-box-media {
    width: 160px; /* Maintain square aspect ratio */
    height: 160px;
    border-width: 2px;
  }

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

  /* Guide Steps */
  .page-ban-ca__guide-steps {
    grid-template-columns: 1fr; /* Single column for guide steps */
    gap: 20px;
  }

  .page-ban-ca__step-title {
    font-size: 1.2rem;
  }

  /* Strategy List */
  .page-ban-ca__strategy-list li {
    font-size: 1rem;
    padding: 15px 20px;
  }

  /* Promo Grid */
  .page-ban-ca__promo-grid {
    grid-template-columns: 1fr; /* Single column for promo cards */
    gap: 20px;
  }

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

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

  /* All images general mobile adaptation */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__section,
  .page-ban-ca__card,
  .page-ban-ca__container,
  .page-ban-ca__promo-card,
  .page-ban-ca__faq-item,
  .page-ban-ca__feature-item,
  .page-ban-ca__guide-step-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}