/* style/ban-ca.css */

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

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

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

.page-ban-ca__section-title {
  font-size: 2.5rem;
  color: var(--text-black);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

/* HERO SECTION */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Only small top padding, relying on body for header offset */
  padding-bottom: 60px;
  background-color: var(--secondary-color);
  color: #ffffff;
}

.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 45%;
  min-width: 300px;
}

.page-ban-ca__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-ban-ca__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-ban-ca__hero-image {
  flex: 1 1 45%;
  text-align: center;
}

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

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

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-ban-ca__btn-primary {
  background: var(--gradient-button);
  color: #ffffff;
  border: none;
}

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

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

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

/* INTRO SECTION */
.page-ban-ca__intro-section {
  padding: 60px 0;
}

.page-ban-ca__intro-section p {
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: justify;
}

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

/* FEATURES SECTION */
.page-ban-ca__features-section {
  padding: 60px 0;
  background-color: var(--card-bg);
}

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

.page-ban-ca__feature-item {
  text-align: center;
  padding: 25px;
  border-radius: 12px;
  background-color: var(--background-page);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

.page-ban-ca__icon-box-media {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 4px solid var(--primary-color);
}

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

.page-ban-ca__feature-title {
  font-size: 1.5rem;
  color: var(--text-black);
  margin-bottom: 15px;
  font-weight: 600;
}

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

/* GUIDE SECTION */
.page-ban-ca__guide-section {
  padding: 60px 0;
}

.page-ban-ca__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-ban-ca__guide-list li {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__guide-list h3 {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-ban-ca__guide-list p {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.7;
  text-align: justify;
}

/* TIPS SECTION */
.page-ban-ca__tips-section {
  padding: 60px 0;
  background-color: var(--background-page);
}

.page-ban-ca__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-ban-ca__tips-list li {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__tips-list h3 {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-ban-ca__tips-list p {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.7;
  text-align: justify;
}

/* PROMOTIONS SECTION */
.page-ban-ca__promotions-section {
  padding: 60px 0;
}

.page-ban-ca__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-ban-ca__promo-list li {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__promo-list h3 {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-ban-ca__promo-list p {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.7;
  text-align: justify;
}

/* FAQ SECTION */
.page-ban-ca__faq-section {
  padding: 60px 0;
  background-color: var(--background-page);
}

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

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

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-black);
  cursor: pointer;
  list-style: none; /* Hide default details marker */
}

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

.page-ban-ca__faq-question .page-ban-ca__faq-toggle {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-ban-ca__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.7;
  text-align: justify;
}

/* FINAL CTA SECTION */
.page-ban-ca__cta-final-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--secondary-color);
  color: #ffffff;
}

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

.page-ban-ca__cta-final-section p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

/* General image styling for content sections */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-ban-ca__container {
    padding: 20px 15px;
  }

  .page-ban-ca__section-title {
    font-size: 2rem;
    margin-bottom: 25px;
  }

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

  .page-ban-ca__hero-container {
    flex-direction: column;
    padding: 20px 15px;
    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(2rem, 8vw, 2.5rem);
    text-align: center;
  }

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

  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .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;
  }

  /* INTRO SECTION */
  .page-ban-ca__intro-section,
  .page-ban-ca__features-section,
  .page-ban-ca__guide-section,
  .page-ban-ca__tips-section,
  .page-ban-ca__promotions-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__cta-final-section {
    padding: 30px 0;
  }

  .page-ban-ca__intro-section p,
  .page-ban-ca__guide-list p,
  .page-ban-ca__tips-list p,
  .page-ban-ca__promo-list p,
  .page-ban-ca__faq-answer p {
    font-size: 0.95rem;
  }

  /* FEATURES SECTION */
  .page-ban-ca__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ban-ca__icon-box-media {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
  }

  .page-ban-ca__feature-title {
    font-size: 1.3rem;
  }

  /* GUIDE & TIPS LISTS */
  .page-ban-ca__guide-list li,
  .page-ban-ca__tips-list li,
  .page-ban-ca__promo-list li {
    padding: 20px;
  }

  .page-ban-ca__guide-list h3,
  .page-ban-ca__tips-list h3,
  .page-ban-ca__promo-list h3 {
    font-size: 1.4rem;
  }

  /* FAQ SECTION */
  .page-ban-ca__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-ban-ca__faq-question .page-ban-ca__faq-toggle {
    font-size: 1.5rem;
  }

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

  /* Universal image responsive */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Exception for circular images to maintain aspect ratio, but still responsive */
  .page-ban-ca__icon-box-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !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;
  }

  /* Button containers on mobile */
  .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: 0;
    padding-right: 0;
    flex-direction: column !important;
    gap: 10px;
  }
}