.page-ban-ca {
  font-family: Arial, sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

.page-ban-ca__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  margin-bottom: 40px;
}

.page-ban-ca__hero-slider {
  position: relative;
  width: 100%;
  height: 500px; /* Desktop height */
}

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

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

.page-ban-ca__hero-slide 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: 24px;
  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 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
  color: #ffffff;
  z-index: 5;
}

.page-ban-ca__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  max-width: 800px;
}

.page-ban-ca__tagline {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  line-height: 1.5;
}

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

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

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button */
  color: #ffffff;
  border: none;
}

.page-ban-ca__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.4);
}

.page-ban-ca__btn-secondary {
  background: #ffffff;
  color: #2F6BFF; /* Primary color for text */
  border: 2px solid #2F6BFF;
}

.page-ban-ca__btn-secondary:hover {
  background: #f0f0f0;
  color: #1F4D9F;
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.2);
}

.page-ban-ca__btn-inline {
  margin-top: 20px;
}

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

.page-ban-ca__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-ban-ca__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #000000; /* Custom Color_1776249996415 */
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.page-ban-ca__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2F6BFF, #6FA3FF);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-ban-ca__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: #2F6BFF; /* Primary Color */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-ban-ca__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #1F2D3D; /* Text Main */
}

.page-ban-ca__intro-section,
.page-ban-ca__main-content-block,
.page-ban-ca__cta-section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-ban-ca__light-bg {
  background-color: #F4F7FB; /* Background */
  color: #1F2D3D; /* Text Main */
}

.page-ban-ca__dark-bg {
  background-color: #2F6BFF; /* Primary color */
  color: #ffffff;
}

.page-ban-ca__dark-bg .page-ban-ca__section-title,
.page-ban-ca__dark-bg .page-ban-ca__sub-title {
  color: #ffffff;
}

.page-ban-ca__dark-bg .page-ban-ca__section-title::after {
  background: #ffffff;
}

.page-ban-ca__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__guide-section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-ban-ca__guide-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.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, box-shadow 0.3s ease;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Align image to bottom for consistent height illusion */
}

.page-ban-ca__guide-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 250 / 350;
  object-fit: contain; /* Ensure image fits without cropping */
  display: block;
  transition: transform 0.3s ease;
}

.page-ban-ca__guide-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__guide-card:hover img {
  transform: scale(1.05);
}

/* Adjust vertical positioning for visual balance */
.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__main-content-block .page-ban-ca__content-inner {
  background: #ffffff; /* Card B G */
  border: 5px solid #D6E2FF; /* Border */
  border-radius: 15px;
  box-shadow: 0 0 20px #A5C4FF; /* Glow */
  padding: 30px;
  height: auto; /* For non-homepage, not fixed 700px scrollable */
  overflow-y: visible; /* For non-homepage, not scrollable */
}

.page-ban-ca__main-content-block ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.page-ban-ca__main-content-block li {
  margin-bottom: 8px;
  color: #1F2D3D; /* Text Main */
}

.page-ban-ca__faq-section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-ban-ca__faq-list {
  margin-top: 40px;
}

.page-ban-ca__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-ban-ca__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.15em;
  color: #ffffff;
  position: relative;
}

.page-ban-ca__faq-item summary::-webkit-details-marker,
.page-ban-ca__faq-item summary::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: #f0f0f0;
}

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

.page-ban-ca__cta-section {
  text-align: center;
}

.page-ban-ca__cta-container {
  background: #ffffff; /* Card B G */
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__hero-slider {
    height: 400px;
  }

  .page-ban-ca__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-ban-ca__tagline {
    font-size: 1.1em;
  }

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

  .page-ban-ca__sub-title {
    font-size: 1.5em;
  }

  .page-ban-ca__guide-card {
    flex: 0 0 calc(33.333% - 13.333px); /* 3 cards per row */
    max-width: calc(33.333% - 13.333px);
    padding-top: 0 !important; /* Reset vertical padding for smaller screens */
  }
}

@media (max-width: 768px) {
  .page-ban-ca {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Ensure small padding */
    margin-bottom: 20px;
  }

  .page-ban-ca__hero-slider {
    height: 300px !important;
  }

  .page-ban-ca__hero-content {
    padding: 15px;
  }

  .page-ban-ca__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
    margin-bottom: 10px;
  }

  .page-ban-ca__tagline {
    font-size: 1em !important;
    margin-bottom: 20px;
  }

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

  .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__container,
  .page-ban-ca__cta-container,
  .page-ban-ca__main-content-block .page-ban-ca__content-inner {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__intro-section,
  .page-ban-ca__guide-section,
  .page-ban-ca__main-content-block,
  .page-ban-ca__faq-section,
  .page-ban-ca__cta-section {
    padding: 30px 0 !important;
    margin-bottom: 10px;
  }

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

  .page-ban-ca__sub-title {
    font-size: 1.3em !important;
    margin-top: 20px;
  }

  .page-ban-ca__text-block {
    font-size: 1em !important;
  }

  .page-ban-ca__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto;
  }

  .page-ban-ca__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr) !important; /* 6 columns for finer control */
    gap: 10px;
    margin-top: 20px;
  }
  
  .page-ban-ca__guide-card {
    grid-column: span 3 !important; /* Two cards per row for 1st and 2nd */
    max-width: 100% !important;
    flex: auto !important;
    padding-top: 0 !important;
    background-color: rgba(255, 255, 255, 0.2) !important; /* Make cards more visible on dark bg */
  }
  /* Adjust specific card spans for 2-3 layout if needed for 5 cards */
  .page-ban-ca__guide-card--pos-1,
  .page-ban-ca__guide-card--pos-2 {
    grid-column: span 3 !important; /* 2 cards on first row */
  }
  .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; /* 3 cards on second row */
  }

  .page-ban-ca__guide-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-ban-ca__main-content-block .page-ban-ca__content-inner {
    height: auto !important;
    overflow-y: visible !important;
    padding: 20px !important;
  }

  .page-ban-ca__faq-item summary {
    padding: 15px 20px;
    font-size: 1em !important;
  }

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

  .page-ban-ca__faq-answer p {
    font-size: 0.95em !important;
  }

  .page-ban-ca__cta-container {
    padding: 30px !important;
  }

  /* General image responsiveness */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}