/* style/ban-ca.css */

:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --text-main: #1F2D3D;
  --bg-light: #F4F7FB;
  --card-bg: #FFFFFF;
  --border-color: #D6E2FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --dark-text: #333333;
}

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

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

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

.page-ban-ca__section-description {
  font-size: 1.1em;
  color: var(--dark-text);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-ban-ca__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px 0;
}

.page-ban-ca__hero-content {
  flex: 1 1 500px;
  max-width: 600px;
  text-align: left;
}

.page-ban-ca__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-ban-ca__hero-description {
  font-size: 1.2em;
  color: var(--dark-text);
  margin-bottom: 30px;
}

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

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

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

.page-ban-ca__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

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

.page-ban-ca__hero-image {
  flex: 1 1 500px;
  text-align: center;
}

.page-ban-ca__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(47, 107, 255, 0.2);
}

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

.page-ban-ca__icon-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.page-ban-ca__icon-box {
  flex: 1 1 300px;
  max-width: 350px;
  text-align: center;
  padding: 30px;
  background-color: var(--bg-light);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-ban-ca__icon-box:hover {
  transform: translateY(-5px);
}

.page-ban-ca__icon-box-media {
  width: 160px;
  height: 160px;
  margin: 0 auto 25px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-ban-ca__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.page-ban-ca__icon-box-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-ban-ca__icon-box-text {
  font-size: 1em;
  color: var(--dark-text);
}

/* Guide Section */
.page-ban-ca__guide-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.page-ban-ca__guide-steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.page-ban-ca__guide-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  max-width: 700px;
  width: 100%;
}

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

.page-ban-ca__guide-step-text {
  color: var(--dark-text);
}

.page-ban-ca__guide-image {
  max-width: 800px;
  width: 100%;
  margin-top: 40px;
  text-align: center;
}

.page-ban-ca__guide-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Promo Section */
.page-ban-ca__promo-section {
  padding: 80px 0;
  background-color: var(--card-bg);
}

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

.page-ban-ca__promo-card {
  flex: 1 1 400px;
  max-width: 500px;
  background-color: var(--bg-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding-bottom: 30px;
}

.page-ban-ca__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-ban-ca__promo-card-title {
  font-size: 1.6em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-ban-ca__promo-card-text {
  font-size: 1em;
  color: var(--dark-text);
  margin-bottom: 25px;
  padding: 0 20px;
}

.page-ban-ca__btn-outline {
  display: inline-block;
  padding: 10px 25px;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

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

/* Tips Section */
.page-ban-ca__tips-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.page-ban-ca__tips-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.page-ban-ca__tips-text {
  flex: 1 1 500px;
  max-width: 700px;
}

.page-ban-ca__tips-subtitle {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 25px;
  margin-bottom: 10px;
}

.page-ban-ca__tips-text p {
  color: var(--dark-text);
  margin-bottom: 15px;
}

.page-ban-ca__tips-image {
  flex: 1 1 400px;
  max-width: 500px;
  text-align: center;
}

.page-ban-ca__tips-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-ban-ca__faq-section {
  padding: 80px 0;
  background-color: var(--card-bg);
}

.page-ban-ca__faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-ban-ca__faq-item {
  background-color: var(--bg-light);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

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

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

.page-ban-ca__faq-qtext {
  flex-grow: 1;
}

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
  content: '−';
}

.page-ban-ca__faq-answer {
  padding: 0 25px 20px;
  color: var(--dark-text);
  font-size: 1em;
  line-height: 1.6;
}

/* Final CTA Section */
.page-ban-ca__cta-final-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  text-align: center;
  color: #ffffff;
}

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

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

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

.page-ban-ca__cta-final-section .page-ban-ca__btn-primary {
  background: #ffffff;
  color: var(--primary-color);
  box-shadow: none;
}

.page-ban-ca__cta-final-section .page-ban-ca__btn-primary:hover {
  background: var(--bg-light);
}

.page-ban-ca__cta-final-section .page-ban-ca__btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

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

/* General image styling */
.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;
    text-align: center;
  }
  .page-ban-ca__hero-content {
    text-align: center;
  }
  .page-ban-ca__cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-ban-ca {
    font-size: 15px;
  }
  .page-ban-ca__section-title {
    font-size: 2em;
  }
  .page-ban-ca__section-description {
    font-size: 1em;
  }

  /* HERO Section */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
  }
  .page-ban-ca__hero-container {
    padding: 20px 0;
    gap: 20px;
  }
  .page-ban-ca__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-ban-ca__hero-description {
    font-size: 1em;
  }
  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Intro Section */
  .page-ban-ca__intro-section {
    padding: 60px 0;
  }
  .page-ban-ca__icon-box {
    max-width: 100%;
    flex-basis: 100%;
    padding: 25px;
  }
  .page-ban-ca__icon-box-media {
    width: 120px !important;
    height: 120px !important;
    margin-bottom: 20px;
  }
  .page-ban-ca__icon-box-title {
    font-size: 1.3em;
  }

  /* Guide Section */
  .page-ban-ca__guide-section {
    padding: 60px 0;
  }
  .page-ban-ca__guide-item {
    padding: 25px;
  }
  .page-ban-ca__guide-step-title {
    font-size: 1.2em;
  }
  .page-ban-ca__guide-image {
    margin-top: 30px;
  }

  /* Promo Section */
  .page-ban-ca__promo-section {
    padding: 60px 0;
  }
  .page-ban-ca__promo-card {
    max-width: 100%;
    flex-basis: 100%;
  }
  .page-ban-ca__promo-image {
    height: 200px;
  }
  .page-ban-ca__promo-card-title {
    font-size: 1.4em;
  }

  /* Tips Section */
  .page-ban-ca__tips-section {
    padding: 60px 0;
  }
  .page-ban-ca__tips-content {
    flex-direction: column-reverse;
    gap: 30px;
  }
  .page-ban-ca__tips-text {
    max-width: 100%;
  }
  .page-ban-ca__tips-subtitle {
    font-size: 1.2em;
  }
  .page-ban-ca__tips-image {
    max-width: 100%;
  }

  /* FAQ Section */
  .page-ban-ca__faq-section {
    padding: 60px 0;
  }
  .page-ban-ca__faq-item summary {
    padding: 18px 20px;
    font-size: 1em;
  }
  .page-ban-ca__faq-answer {
    padding: 0 20px 18px;
  }

  /* Final CTA Section */
  .page-ban-ca__cta-final-section {
    padding: 60px 0;
  }

  /* Universal image and container rules for mobile */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-ban-ca__container,
  .page-ban-ca__section,
  .page-ban-ca__icon-box,
  .page-ban-ca__promo-card,
  .page-ban-ca__guide-item,
  .page-ban-ca__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-ban-ca__hero-content,
  .page-ban-ca__hero-image,
  .page-ban-ca__tips-text,
  .page-ban-ca__tips-image {
    padding: 0 15px;
  }
}