/* style/ban-ca.css */
:root {
  --page-ban-ca-primary-color: #2F6BFF;
  --page-ban-ca-secondary-color: #6FA3FF;
  --page-ban-ca-text-main: #1F2D3D;
  --page-ban-ca-text-dark: #000000;
  --page-ban-ca-bg-light: #F4F7FB;
  --page-ban-ca-card-bg: #FFFFFF;
  --page-ban-ca-border-color: #D6E2FF;
  --page-ban-ca-glow-color: #A5C4FF;
  --page-ban-ca-btn-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

.page-ban-ca {
  font-family: 'Arial', sans-serif;
  color: var(--page-ban-ca-text-main);
  background-color: var(--page-ban-ca-bg-light);
}

.page-ban-ca__hero-section {
  background-color: var(--page-ban-ca-bg-light);
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

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

.page-ban-ca__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  color: var(--page-ban-ca-text-main);
}

.page-ban-ca__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--page-ban-ca-text-dark);
}

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

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

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  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;
  flex-shrink: 0;
}

.page-ban-ca__btn-primary {
  background: var(--page-ban-ca-btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-ban-ca__btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-ban-ca__btn-secondary {
  background: var(--page-ban-ca-card-bg);
  color: var(--page-ban-ca-primary-color);
  border: 2px solid var(--page-ban-ca-primary-color);
}

.page-ban-ca__btn-secondary:hover {
  background: var(--page-ban-ca-primary-color);
  color: #ffffff;
}

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

.page-ban-ca__side-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.page-ban-ca__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--page-ban-ca-text-dark);
  text-align: center;
  margin-bottom: 20px;
}

.page-ban-ca__section-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--page-ban-ca-text-main);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
}

.page-ban-ca__intro-section {
  background-color: var(--page-ban-ca-bg-light);
  padding: 60px 0;
}

.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(--page-ban-ca-card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-ban-ca__feature-item:hover {
  transform: translateY(-5px);
}

.page-ban-ca__icon-box-media {
  width: 180px;
  height: 180px;
  aspect-ratio: 1/1;
  margin: 0 auto 25px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 8px rgba(47, 107, 255, 0.1);
}

.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.375rem;
  font-weight: 600;
  color: var(--page-ban-ca-text-dark);
  margin-bottom: 15px;
}

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

.page-ban-ca__guide-section {
  background: var(--page-ban-ca-primary-color);
  color: #ffffff;
  padding: 60px 0;
}

.page-ban-ca__guide-section .page-ban-ca__section-title,
.page-ban-ca__guide-section .page-ban-ca__section-description {
  color: #ffffff;
}

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

.page-ban-ca__guide-item {
  text-align: center;
  position: relative;
  padding-top: 60px;
}

.page-ban-ca__step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background-color: var(--page-ban-ca-secondary-color);
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-ban-ca__step-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
}

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

.page-ban-ca__tips-section {
  background-color: var(--page-ban-ca-bg-light);
  padding: 60px 0;
}

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

.page-ban-ca__tip-card {
  background-color: var(--page-ban-ca-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.page-ban-ca__card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-ban-ca__tip-card .page-ban-ca__card-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--page-ban-ca-text-dark);
  padding: 20px 20px 10px;
}

.page-ban-ca__tip-card .page-ban-ca__card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--page-ban-ca-text-main);
  padding: 0 20px 20px;
}

.page-ban-ca__promo-section {
  background: var(--page-ban-ca-primary-color);
  color: #ffffff;
  padding: 60px 0;
}

.page-ban-ca__promo-section .page-ban-ca__section-title,
.page-ban-ca__promo-section .page-ban-ca__section-description {
  color: #ffffff;
}

.page-ban-ca__promo-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.page-ban-ca__promo-card {
  background-color: var(--page-ban-ca-card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  max-width: 400px;
  width: 100%;
  color: var(--page-ban-ca-text-main);
}

.page-ban-ca__promo-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--page-ban-ca-text-dark);
  margin-bottom: 15px;
}

.page-ban-ca__promo-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.page-ban-ca__faq-section {
  background-color: var(--page-ban-ca-bg-light);
  padding: 60px 0;
}

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

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

.page-ban-ca__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--page-ban-ca-text-dark);
  position: relative;
}

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

.page-ban-ca__faq-question {
  width: 100%;
}

.page-ban-ca__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-ban-ca-primary-color);
  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: 1rem;
  line-height: 1.6;
  color: var(--page-ban-ca-text-main);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding-top: 10px;
}

/* General image responsive styles */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .page-ban-ca__hero-content {
    flex: 1 1 100%;
    text-align: center;
  }

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

  .page-ban-ca__hero-image {
    margin-bottom: 30px;
  }

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

  .page-ban-ca__section-title {
    font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  }

  .page-ban-ca__icon-box-media {
    width: 150px;
    height: 150px;
  }

  .page-ban-ca__promo-cards {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .page-ban-ca {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO Section */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Small top padding, relying on body for header offset */
    padding-bottom: 40px;
  }
  .page-ban-ca__hero-container {
    padding: 20px 15px;
    gap: 20px;
  }
  .page-ban-ca__main-title {
    font-size: 2rem !important;
    margin-bottom: 15px;
  }
  .page-ban-ca__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-ban-ca__hero-image {
    margin-bottom: 20px;
  }

  /* General Container & Sections */
  .page-ban-ca__container {
    padding: 30px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-ban-ca__section-title {
    font-size: 1.75rem !important;
    margin-bottom: 15px;
  }
  .page-ban-ca__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  /* Module 1: Intro Section (Features Grid) */
  .page-ban-ca__intro-section {
    padding: 40px 0;
  }
  .page-ban-ca__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-ban-ca__icon-box-media {
    width: 160px !important;
    height: 160px !important;
    margin-bottom: 20px;
  }
  .page-ban-ca__feature-title {
    font-size: 1.2rem;
  }
  .page-ban-ca__feature-text {
    font-size: 0.95rem;
  }

  /* Guide Section */
  .page-ban-ca__guide-section {
    padding: 40px 0;
  }
  .page-ban-ca__guide-steps {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-ban-ca__guide-item {
    padding-top: 50px;
  }
  .page-ban-ca__step-number {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  .page-ban-ca__step-title {
    font-size: 1.1rem;
  }
  .page-ban-ca__step-text {
    font-size: 0.95rem;
  }
  .page-ban-ca__cta-center {
    margin-top: 30px;
  }

  /* Tips Section (Card Grid) */
  .page-ban-ca__tips-section {
    padding: 40px 0;
  }
  .page-ban-ca__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-ban-ca__card-image {
    height: 180px;
  }
  .page-ban-ca__tip-card .page-ban-ca__card-title {
    font-size: 1.2rem;
    padding: 15px 15px 8px;
  }
  .page-ban-ca__tip-card .page-ban-ca__card-text {
    font-size: 0.95rem;
    padding: 0 15px 15px;
  }

  /* Promo Section */
  .page-ban-ca__promo-section {
    padding: 40px 0;
  }
  .page-ban-ca__promo-cards {
    gap: 20px;
  }
  .page-ban-ca__promo-card {
    padding: 25px;
  }
  .page-ban-ca__promo-title {
    font-size: 1.3rem;
  }
  .page-ban-ca__promo-text {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  /* FAQ Section */
  .page-ban-ca__faq-section {
    padding: 40px 0;
  }
  .page-ban-ca__faq-list {
    margin-top: 30px;
  }
  .page-ban-ca__faq-item summary {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-ban-ca__faq-toggle {
    font-size: 1.3rem;
  }
  .page-ban-ca__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }

  /* Universal Image Styles for Mobile */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  /* Exception for circular images to maintain aspect ratio */
  .page-ban-ca__icon-box-media img {
    height: 100% !important;
    object-fit: cover !important;
  }
}