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

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

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

.page-ban-ca__hero-carousel-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding */
  margin-bottom: 40px;
  background-color: #F5F7FA;
}

.page-ban-ca__hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.page-ban-ca__hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

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

.page-ban-ca__hero-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-ban-ca__hero-slider-prev,
.page-ban-ca__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 2em;
  z-index: 10;
  border-radius: 5px;
}

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

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

.page-ban-ca__hero-content {
  padding: 40px 20px;
  text-align: center;
  background-color: #F5F7FA;
}

.page-ban-ca__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em); /* Using clamp for responsive H1 */
  font-weight: 900;
  color: #E53935;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  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 {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-ban-ca__btn-secondary:hover {
  background-color: #E53935;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Guide Box Section */
.page-ban-ca__guide-box {
  background-color: #F5F7FA;
  padding: 40px 20px;
  margin-bottom: 40px;
}

.page-ban-ca__guide-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
}

.page-ban-ca__guide-card {
  text-align: center;
  padding-top: 0;
}

.page-ban-ca__guide-card--pos-1,
.page-ban-ca__guide-card--pos-5 {
  padding-top: 50px;
}

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

.page-ban-ca__guide-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 250 / 350;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Home Content Box Section */
.page-ban-ca__content-section {
  padding: 20px;
  background-color: #F5F7FA;
}

.page-ban-ca__home-content-box {
  max-width: 91%;
  margin: 0 auto;
  padding: 10px 16px;
  border: 5px solid #E53935;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(229, 57, 53, 0.5);
  height: 700px; /* Fixed height for desktop */
  background-color: #FFFFFF;
  color: #333333;
}

.page-ban-ca__home-content-inner {
  height: 100%;
  overflow-y: auto; /* Scrollable content on desktop */
  padding-right: 10px; /* Space for scrollbar */
}

.page-ban-ca__home-content-inner h2 {
  color: #E53935;
  font-size: 2em;
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: left;
}

.page-ban-ca__home-content-inner h3 {
  color: #E53935;
  font-size: 1.5em;
  margin-top: 25px;
  margin-bottom: 10px;
  text-align: left;
}

.page-ban-ca__home-content-inner p,
.page-ban-ca__home-content-inner li {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #333333;
}

.page-ban-ca__home-content-inner ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-ban-ca__guide-steps {
  margin-top: 30px;
}

.page-ban-ca__guide-step {
  margin-bottom: 40px;
  border-bottom: 1px solid #E0E0E0;
  padding-bottom: 20px;
}

.page-ban-ca__guide-step:last-child {
  border-bottom: none;
}

.page-ban-ca__guide-step img {
  width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__image-block {
  margin: 40px 0;
  text-align: center;
}

.page-ban-ca__image-block img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.page-ban-ca__image-block figcaption {
  font-size: 0.9em;
  color: #666666;
  margin-top: 10px;
}

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

.page-ban-ca__promo-cta img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Blog Section */
.page-ban-ca__blog-section {
  background-color: #F5F7FA;
  padding: 40px 20px;
  margin-bottom: 40px;
}

.page-ban-ca__blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto 30px auto;
}

.page-ban-ca__blog-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}

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

.page-ban-ca__blog-card a {
  text-decoration: none;
  color: #333333;
  display: block;
}

.page-ban-ca__blog-card img {
  width: 100%;
  height: 200px; /* Fixed height for blog card images */
  object-fit: cover;
  display: block;
}

.page-ban-ca__blog-card-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #E53935;
  padding: 15px;
  line-height: 1.4;
}

.page-ban-ca__blog-card-meta {
  font-size: 0.9em;
  color: #666666;
  padding: 0 15px 15px;
}

.page-ban-ca__view-all-button {
  text-align: center;
  margin-top: 30px;
}

/* FAQ Section */
.page-ban-ca__faq-section {
  background-color: #F5F7FA;
  padding: 40px 20px;
  margin-bottom: 40px;
}

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

.page-ban-ca__faq-item {
  background-color: #ffffff;
  border: 1px solid #E0E0E0;
  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;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #333333;
  background-color: #F8F8F8;
  border-bottom: 1px solid #E0E0E0;
  list-style: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

.page-ban-ca__faq-question .page-ban-ca__faq-toggle {
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

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

.page-ban-ca__faq-answer {
  padding: 15px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #333333;
}

.page-ban-ca__faq-answer img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 15px auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__final-cta-section {
  background-color: #F5F7FA;
  padding: 60px 20px;
  text-align: center;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-ban-ca__guide-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  .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__blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  /* General mobile styles */
  .page-ban-ca {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-ban-ca__section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }
  .page-ban-ca__section-intro,
  .page-ban-ca__description {
    font-size: 1em;
    margin-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Hero Carousel Section */
  .page-ban-ca__hero-carousel-section {
    padding-top: 10px !important;
    margin-bottom: 30px;
  }
  .page-ban-ca__hero-slider-prev,
  .page-ban-ca__hero-slider-next {
    padding: 8px 12px;
    font-size: 1.5em;
  }
  .page-ban-ca__hero-content {
    padding: 20px 15px;
  }
  .page-ban-ca__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
  }
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-ban-ca__cta-buttons,
  .page-ban-ca__button-group,
  .page-ban-ca__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Guide Box Section */
  .page-ban-ca__guide-box {
    padding: 30px 15px;
    margin-bottom: 30px;
  }
  .page-ban-ca__guide-grid {
    grid-template-columns: repeat(6, 1fr); /* 6 columns for mobile layout */
    gap: 10px;
  }
  .page-ban-ca__guide-card {
    padding-top: 0 !important; /* Reset padding for mobile */
  }
  .page-ban-ca__guide-card--pos-1,
  .page-ban-ca__guide-card--pos-2 {
    grid-column: span 3; /* 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; /* Bottom three cards span 2 columns each */
  }
  .page-ban-ca__guide-card img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Home Content Box Section */
  .page-ban-ca__content-section {
    padding: 15px;
  }
  .page-ban-ca__home-content-box {
    max-width: 100%;
    height: auto; /* Auto height for mobile */
    overflow: visible; /* Visible overflow for mobile */
    padding: 10px;
    border-width: 3px;
    box-shadow: 0 0 10px rgba(229, 57, 53, 0.3);
  }
  .page-ban-ca__home-content-inner {
    height: auto; /* Auto height for mobile */
    overflow: visible; /* Visible overflow for mobile */
    padding-right: 0;
  }
  .page-ban-ca__home-content-inner h2 {
    font-size: 1.8em;
    margin-top: 20px;
    margin-bottom: 10px;
  }
  .page-ban-ca__home-content-inner h3 {
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 8px;
  }
  .page-ban-ca__home-content-inner p,
  .page-ban-ca__home-content-inner li {
    font-size: 0.95em;
    margin-bottom: 10px;
  }
  .page-ban-ca__guide-step img,
  .page-ban-ca__image-block img,
  .page-ban-ca__promo-cta img,
  .page-ban-ca__faq-answer img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Blog Section */
  .page-ban-ca__blog-section {
    padding: 30px 15px;
    margin-bottom: 30px;
  }
  .page-ban-ca__blog-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 15px;
    margin-bottom: 20px;
  }
  .page-ban-ca__blog-card img {
     /* Adjust height for mobile */
  }
  .page-ban-ca__blog-card-title {
    font-size: 1.1em;
    padding: 10px 15px;
  }
  .page-ban-ca__blog-card-meta {
    padding: 0 15px 10px;
  }

  /* FAQ Section */
  .page-ban-ca__faq-section {
    padding: 30px 15px;
    margin-bottom: 30px;
  }
  .page-ban-ca__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-ban-ca__faq-answer {
    padding: 10px 20px;
  }

  /* Final CTA Section */
  .page-ban-ca__final-cta-section {
    padding: 40px 15px;
  }

  /* General image and container responsive styles */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-ban-ca__section,
  .page-ban-ca__card,
  .page-ban-ca__container,
  .page-ban-ca__home-content-box,
  .page-ban-ca__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-ban-ca__home-content-box, .page-ban-ca__blog-card {
    padding-left: 0;
    padding-right: 0;
  }
}