/* style/ban-ca.css */

:root {
  --page-ban-ca-primary-color: #2F6BFF;
  --page-ban-ca-secondary-color: #6FA3FF;
  --page-ban-ca-button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --page-ban-ca-card-bg: #FFFFFF;
  --page-ban-ca-background-color: #F4F7FB;
  --page-ban-ca-text-main: #1F2D3D;
  --page-ban-ca-text-black: #000000;
  --page-ban-ca-border-color: #D6E2FF;
  --page-ban-ca-glow-color: #A5C4FF;
}

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

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

.page-ban-ca__section-title {
  font-size: 2.5em;
  color: var(--page-ban-ca-primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

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

.page-ban-ca__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--page-ban-ca-text-main);
  text-align: justify;
}

/* Hero Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--page-ban-ca-background-color);
}

.page-ban-ca__hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-ban-ca__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  padding-right: 20px;
  box-sizing: border-box;
}

.page-ban-ca__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  color: var(--page-ban-ca-primary-color);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
}

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

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

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

.page-ban-ca__btn-primary {
  background: var(--page-ban-ca-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__btn-secondary {
  background: #ffffff;
  color: var(--page-ban-ca-primary-color);
  border: 2px solid var(--page-ban-ca-primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__btn-secondary:hover {
  background: var(--page-ban-ca-primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

.page-ban-ca__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  display: block; /* Ensure no extra space below img */
}

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

/* Features Section */
.page-ban-ca__features-section {
  background-color: var(--page-ban-ca-primary-color);
  padding: 60px 0;
  color: #ffffff;
}

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

.page-ban-ca__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.page-ban-ca__icon-box-media {
  width: 180px; /* Smaller for features */
  height: 180px;
  margin: 0 auto 25px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--page-ban-ca-secondary-color);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.2);
}

.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.5em;
  margin-bottom: 15px;
  color: #ffffff;
  font-weight: 700;
}

.page-ban-ca__feature-description {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  text-align: justify;
}

/* Guide Section */
.page-ban-ca__guide-section {
  background-color: var(--page-ban-ca-card-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-item {
  background-color: var(--page-ban-ca-background-color);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--page-ban-ca-border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__guide-title {
  font-size: 1.3em;
  color: var(--page-ban-ca-primary-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-ban-ca__guide-description {
  font-size: 1em;
  color: var(--page-ban-ca-text-main);
  line-height: 1.7;
}

.page-ban-ca__guide-description a {
  color: var(--page-ban-ca-primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-ban-ca__guide-description a:hover {
  text-decoration: underline;
}

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

.page-ban-ca__guide-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure no extra space below img */
  margin: 0 auto;
}

/* Tips Section */
.page-ban-ca__tips-section {
  background-color: var(--page-ban-ca-primary-color);
  padding: 60px 0;
  color: #ffffff;
}

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

.page-ban-ca__tip-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__tip-title {
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: 700;
}

.page-ban-ca__tip-description {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  text-align: justify;
}

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

.page-ban-ca__tips-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure no extra space below img */
  margin: 0 auto;
}

/* Why Choose Section */
.page-ban-ca__why-choose-section {
  background-color: var(--page-ban-ca-card-bg);
  padding: 60px 0;
}

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

.page-ban-ca__why-choose-item {
  background-color: var(--page-ban-ca-background-color);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--page-ban-ca-border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__why-choose-title {
  font-size: 1.3em;
  color: var(--page-ban-ca-primary-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-ban-ca__why-choose-description {
  font-size: 1em;
  color: var(--page-ban-ca-text-main);
  line-height: 1.7;
  text-align: justify;
}

/* FAQ Section */
.page-ban-ca__faq-section {
  background-color: var(--page-ban-ca-primary-color);
  padding: 60px 0;
  color: #ffffff;
}

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

.page-ban-ca__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-ban-ca__faq-item[open] {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  list-style: none; /* Hide default marker */
  position: relative;
  user-select: none;
}

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

.page-ban-ca__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
}

.page-ban-ca__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  text-align: justify;
}

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

/* CTA Section */
.page-ban-ca__cta-section {
  background-color: var(--page-ban-ca-card-bg);
  padding: 80px 0;
  text-align: center;
}

.page-ban-ca__cta-container {
  max-width: 900px;
}

.page-ban-ca__cta-title {
  font-size: 2.5em;
  color: var(--page-ban-ca-primary-color);
  margin-bottom: 25px;
  font-weight: 700;
  line-height: 1.2;
}

.page-ban-ca__cta-description {
  font-size: 1.2em;
  color: var(--page-ban-ca-text-main);
  margin-bottom: 40px;
  line-height: 1.7;
}

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

/* General image styling for content areas */
.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 {
    padding-right: 0;
  }

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

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

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

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

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

  .page-ban-ca__container {
    padding: 30px 15px; /* Smaller padding for mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 40px;
  }

  .page-ban-ca__hero-container {
    padding: 15px; /* Adjust padding for mobile */
    gap: 20px;
  }

  .page-ban-ca__hero-content,
  .page-ban-ca__hero-image {
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-ban-ca__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    text-align: center;
  }

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

  .page-ban-ca__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    align-items: center;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 1em;
    padding: 12px 20px;
  }

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

  /* Intro Section */
  .page-ban-ca__intro-section,
  .page-ban-ca__guide-section,
  .page-ban-ca__why-choose-section,
  .page-ban-ca__cta-section {
    padding: 40px 0;
  }

  /* Features Section */
  .page-ban-ca__features-section,
  .page-ban-ca__tips-section,
  .page-ban-ca__faq-section {
    padding: 40px 0;
  }

  .page-ban-ca__feature-grid,
  .page-ban-ca__guide-steps,
  .page-ban-ca__tips-grid,
  .page-ban-ca__why-choose-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ban-ca__feature-item,
  .page-ban-ca__guide-item,
  .page-ban-ca__tip-item,
  .page-ban-ca__why-choose-item {
    padding: 20px;
  }

  .page-ban-ca__icon-box-media {
    width: 150px; /* Adjust size for mobile */
    height: 150px;
    margin-bottom: 20px;
    border-width: 3px;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.15);
  }

  .page-ban-ca__feature-title,
  .page-ban-ca__guide-title,
  .page-ban-ca__tip-title,
  .page-ban-ca__why-choose-title {
    font-size: 1.2em;
  }

  .page-ban-ca__feature-description,
  .page-ban-ca__guide-description,
  .page-ban-ca__tip-description,
  .page-ban-ca__why-choose-description {
    font-size: 0.95em;
  }

  .page-ban-ca__guide-image,
  .page-ban-ca__tips-image {
    margin-top: 30px;
  }

  /* FAQ Section */
  .page-ban-ca__faq-list {
    margin-top: 30px;
  }

  .page-ban-ca__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

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

  /* General image responsiveness */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* CTA Section */
  .page-ban-ca__cta-title {
    font-size: 2em;
  }

  .page-ban-ca__cta-description {
    font-size: 1em;
  }

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

@media (max-width: 480px) {
  .page-ban-ca__main-title {
    font-size: clamp(1.6em, 8vw, 2.2em);
  }

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

  .page-ban-ca__cta-title {
    font-size: 1.8em;
  }
}