/* style/ban-ca.css */
.page-ban-ca {
  font-family: Arial, sans-serif;
  color: #333333;
  background-color: #F5F7FA;
  line-height: 1.6;
}

.page-ban-ca__main-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.page-ban-ca__section-title {
  font-size: 2.5em;
  color: #E53935;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-ban-ca__section-title--white {
  color: #ffffff;
}

.page-ban-ca__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-ban-ca__text-block--note {
  font-style: italic;
  color: #666666;
  text-align: center;
}

.page-ban-ca__text-block--white {
  color: #ffffff;
}

.page-ban-ca__image-container {
  text-align: center;
  margin: 30px 0;
}

.page-ban-ca__image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Hero Carousel Section */
.page-ban-ca__hero-carousel-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Small top padding as per instruction */
  margin-bottom: 30px;
}

.page-ban-ca__hero-slider {
  position: relative;
  width: 100%;
  height: 600px; /* Fixed height for desktop carousel */
}

.page-ban-ca__hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: flex-start; /* Align image to top */
  justify-content: center;
  flex-direction: column;
  padding: 0;
}

.page-ban-ca__hero-slide.is-active {
  opacity: 1;
}

.page-ban-ca__hero-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-ban-ca__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(100px); /* Move content down to avoid overlapping image */
}

.page-ban-ca__hero-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.1;
  color: #FF5A4F;
}

.page-ban-ca__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-ban-ca__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-ban-ca__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(229, 57, 53, 0.4);
}

.page-ban-ca__btn-secondary {
  background-color: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-ban-ca__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #FF5A4F;
  border-color: #FF5A4F;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(229, 57, 53, 0.2);
}

.page-ban-ca__hero-slider-prev,
.page-ban-ca__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(229, 57, 53, 0.7);
  color: #ffffff;
  border: none;
  padding: 15px 10px;
  cursor: pointer;
  font-size: 1.5em;
  z-index: 10;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.page-ban-ca__hero-slider-prev:hover,
.page-ban-ca__hero-slider-next:hover {
  background-color: #E53935;
}

.page-ban-ca__hero-slider-prev {
  left: 20px;
}

.page-ban-ca__hero-slider-next {
  right: 20px;
}

.page-ban-ca__hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.page-ban-ca__hero-dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-ban-ca__hero-dot.is-active {
  background-color: #FF5A4F;
}

/* Features Section */
.page-ban-ca__features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.page-ban-ca__feature-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ban-ca__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.page-ban-ca__feature-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-ban-ca__card-title {
  font-size: 1.5em;
  color: #E53935;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-ban-ca__card-description {
  font-size: 1em;
  color: #666666;
}

/* Guide Section (5 Vertical Team Cards) */
.page-ban-ca__guide-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-ban-ca__guide-card {
  flex: 0 0 calc(20% - 16px); /* 5 cards per row, accounting for gap */
  max-width: calc(20% - 16px);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__guide-card:hover {
  transform: translateY(-5px);
}

.page-ban-ca__guide-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 250 / 350; /* Fixed aspect ratio for vertical team cards */
  object-fit: cover;
}

.page-ban-ca__guide-card--pos-1,
.page-ban-ca__guide-card--pos-5 {
  padding-top: 50px; /* Staggered effect for desktop */
}

.page-ban-ca__guide-card--pos-2,
.page-ban-ca__guide-card--pos-4 {
  padding-top: 25px;
}

/* Strategy Section */
.page-ban-ca__strategy-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 30px;
  font-size: 1.1em;
  line-height: 1.8;
}

.page-ban-ca__strategy-list li {
  margin-bottom: 15px;
  color: #333333;
}

.page-ban-ca__strategy-list strong {
  color: #E53935;
}

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

.page-ban-ca__promo-list li {
  background-color: #F5F7FA;
  border-left: 5px solid #FF5A4F;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.1em;
  color: #333333;
}

.page-ban-ca__promo-list li strong {
  color: #E53935;
}

.page-ban-ca__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.page-ban-ca__cta-buttons--center {
  justify-content: center;
}

/* Why Choose Section */
.page-ban-ca__why-choose-list {
  list-style-type: none;
  padding: 0;
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.page-ban-ca__why-choose-list li {
  background-color: #F5F7FA;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  font-size: 1.1em;
  position: relative;
  padding-left: 45px;
  color: #333333;
}

.page-ban-ca__why-choose-list li::before {
  content: '✔';
  position: absolute;
  left: 15px;
  color: #E53935;
  font-weight: bold;
  font-size: 1.2em;
}

/* FAQ Section */
.page-ban-ca__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-ban-ca__faq-question {
  font-size: 1.3em;
  color: #E53935;
  padding: 18px 25px;
  cursor: pointer;
  margin: 0;
  position: relative;
  font-weight: bold;
}

.page-ban-ca__faq-answer {
  font-size: 1.1em;
  color: #333333;
  padding: 0 25px 18px;
  line-height: 1.7;
}

/* Final CTA Section */
.page-ban-ca__cta-final-section {
  background-color: #E53935;
  color: #ffffff;
  text-align: center;
  padding: 60px 20px;
  border-radius: 8px;
}

.page-ban-ca__cta-final-section .page-ban-ca__section-title {
  color: #ffffff;
}

.page-ban-ca__cta-final-section .page-ban-ca__text-block {
  color: #ffffff;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__cta-final-section .page-ban-ca__btn-secondary {
  background-color: #FF5A4F;
  color: #ffffff;
  border-color: #FF5A4F;
}

.page-ban-ca__cta-final-section .page-ban-ca__btn-secondary:hover {
  background-color: #E53935;
  border-color: #E53935;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__hero-slider {
    height: 500px;
  }
  .page-ban-ca__hero-content {
    padding: 30px;
    transform: translateY(80px);
  }
  .page-ban-ca__hero-title {
    font-size: 2.8em;
  }
  .page-ban-ca__hero-description {
    font-size: 1.1em;
  }
  .page-ban-ca__features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-ban-ca__guide-card {
    flex: 0 0 calc(33.333% - 14px); /* 3 cards per row */
    max-width: calc(33.333% - 14px);
  }
  .page-ban-ca__guide-card--pos-1,
  .page-ban-ca__guide-card--pos-5 {
    padding-top: 0;
  }
  .page-ban-ca__guide-card--pos-2,
  .page-ban-ca__guide-card--pos-4 {
    padding-top: 0;
  }
  .page-ban-ca__why-choose-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* General mobile adaptations */
  .page-ban-ca__main-content-wrapper,
  .page-ban-ca__hero-carousel-section,
  .page-ban-ca__features-grid,
  .page-ban-ca__guide-grid,
  .page-ban-ca__why-choose-list,
  .page-ban-ca__promo-list,
  .page-ban-ca__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

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

  .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 !important;
    padding-right: 15px !important;
  }

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

  /* 1. Top Carousel */
  .page-ban-ca__hero-carousel-section {
    padding-top: 10px !important;
  }

  .page-ban-ca__hero-slider {
    height: 350px !important; /* Smaller height for mobile carousel */
  }

  .page-ban-ca__hero-content {
    padding: 20px !important;
    transform: translateY(0) !important; /* Remove transform for mobile */
    max-width: 90% !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
  }

  .page-ban-ca__hero-title {
    font-size: 1.8em !important;
    margin-bottom: 10px !important;
  }

  .page-ban-ca__hero-description {
    font-size: 0.9em !important;
    margin-bottom: 20px !important;
  }

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

  .page-ban-ca__hero-slider-prev,
  .page-ban-ca__hero-slider-next {
    padding: 10px 5px !important;
    font-size: 1.2em !important;
    left: 5px !important;
    right: 5px !important;
  }

  /* 2. Features Grid (adapted for general card grid) */
  .page-ban-ca__features-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* 3. Guide Section (5 Vertical Team Cards) - Upper two, lower three */
  .page-ban-ca__guide-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important; /* 6 columns for finer control */
    gap: 15px !important;
  }

  .page-ban-ca__guide-card {
    padding-top: 0 !important; /* Reset staggered effect */
    flex: auto !important;
    max-width: 100% !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
  }

  .page-ban-ca__guide-card--pos-1,
  .page-ban-ca__guide-card--pos-2 {
    grid-column: span 3 !important; /* Top two cards span 3 columns each */
  }

  .page-ban-ca__guide-card--pos-3,
  .page-ban-ca__guide-card--pos-4,
  .page-ban-ca__guide-card--pos-5 {
    grid-column: span 2 !important; /* Bottom three cards span 2 columns each */
  }

  /* 4. Main Content Wrapper (acting as home_content box) */
  .page-ban-ca__main-content-wrapper {
    height: auto !important;
    overflow: visible !important;
    padding: 20px 15px !important;
  }

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

  .page-ban-ca__text-block,
  .page-ban-ca__strategy-list li,
  .page-ban-ca__promo-list li,
  .page-ban-ca__why-choose-list li,
  .page-ban-ca__faq-question,
  .page-ban-ca__faq-answer {
    font-size: 1em !important;
  }

  /* 5. Why Choose List (similar to blog grid, but single column) */
  .page-ban-ca__why-choose-list {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .page-ban-ca__why-choose-list li {
    padding-left: 35px !important;
  }

  .page-ban-ca__why-choose-list li::before {
    left: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-ban-ca__hero-title {
    font-size: 1.5em !important;
  }
  .page-ban-ca__hero-description {
    font-size: 0.85em !important;
  }
  .page-ban-ca__hero-slider-prev,
  .page-ban-ca__hero-slider-next {
    font-size: 1em !important;
    padding: 8px 3px !important;
  }
  .page-ban-ca__guide-grid {
    grid-template-columns: 1fr !important; /* Single column for very small screens */
  }
  .page-ban-ca__guide-card--pos-1,
  .page-ban-ca__guide-card--pos-2,
  .page-ban-ca__guide-card--pos-3,
  .page-ban-ca__guide-card--pos-4,
  .page-ban-ca__guide-card--pos-5 {
    grid-column: span 1 !important;
  }
  .page-ban-ca__section-title {
    font-size: 1.5em !important;
  }
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    padding: 12px 20px !important;
    font-size: 1em !important;
  }
}