/* style/ban-ca.css */

/* Base Styles */
.page-ban-ca {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Text Main */
  background-color: #F5F7FA; /* Background */
}

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

.page-ban-ca__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-ban-ca__highlight {
  color: #E53935;
  font-weight: bold;
}

/* Top Section */
.page-ban-ca__top-section {
  padding-top: 10px; /* Small top padding, shared.css handles body padding-top */
  padding-bottom: 40px;
  text-align: center;
  background-color: #F5F7FA; /* Background */
  color: #333333;
}

.page-ban-ca__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  color: #E53935;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-ban-ca__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

.page-ban-ca__top-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.page-ban-ca__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3);
}

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

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

.page-ban-ca__btn-secondary:hover {
  background: #f0f0f0;
  color: #FF5A4F;
  border-color: #FF5A4F;
  transform: translateY(-2px);
}

.page-ban-ca__btn-large {
  padding: 15px 30px;
  font-size: 1.15em;
}

/* Banner Section */
.page-ban-ca__banner-section {
  margin-bottom: 40px;
  overflow: hidden;
  width: 100%;
}

.page-ban-ca__banner-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Content Section */
.page-ban-ca__content-section {
  padding: 40px 0;
  background-color: #F5F7FA; /* Background */
  color: #333333;
}

.page-ban-ca__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 30px;
  text-align: center;
  padding-top: 20px;
}

.page-ban-ca__sub-title {
  font-size: 1.6em;
  font-weight: 600;
  color: #E53935;
  margin-top: 35px;
  margin-bottom: 20px;
}

.page-ban-ca__content-section p {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
  color: #333333;
}

/* Images within content */
.page-ban-ca__figure {
  margin: 30px 0;
  text-align: center;
}

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

.page-ban-ca__figcaption {
  font-size: 0.9em;
  color: #555555;
  margin-top: 10px;
}

/* CTA Box within content */
.page-ban-ca__cta-box {
  text-align: center;
  margin: 40px 0;
}

.page-ban-ca__cta-final {
  text-align: center;
  margin: 50px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

/* FAQ Section */
.page-ban-ca__faq-list {
  margin-top: 30px;
  border-top: 1px solid #E0E0E0; /* Border */
}

.page-ban-ca__faq-item {
  border-bottom: 1px solid #E0E0E0; /* Border */
  padding: 15px 0;
  color: #333333;
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  color: #E53935;
  list-style: none; /* For details/summary */
}

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

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #E53935;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
  transform: rotate(45deg);
}

.page-ban-ca__faq-answer {
  padding-top: 10px;
  font-size: 1em;
  line-height: 1.6;
  color: #333333;
}

/* Promo Box */
.page-ban-ca__promo-box {
  background: #E53935; /* Main color */
  padding: 50px 0;
  text-align: center;
  color: #ffffff;
  margin-top: 50px;
}

.page-ban-ca__promo-content {
  max-width: 900px;
}

.page-ban-ca__promo-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-ban-ca__promo-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #ffffff;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Styles */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-ban-ca__container,
  .page-ban-ca__article-wrap {
    padding: 0 15px;
  }

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

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

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

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

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

  .page-ban-ca__container,
  .page-ban-ca__article-wrap,
  .page-ban-ca__promo-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 1. Top section title + dual CTA */
  .page-ban-ca__top-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 30px;
  }

  .page-ban-ca__main-title {
    font-size: 2em; /* Smaller on mobile */
    margin-bottom: 10px;
  }

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

  .page-ban-ca__top-cta {
    flex-direction: column;
    gap: 10px;
  }

  /* 4. Buttons and button containers */
  .page-ban-ca__btn,
  .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__cta-final {
    flex-direction: column;
    gap: 15px;
  }

  /* 2. Single column long text container & 3. General images and figure */
  .page-ban-ca__content-section {
    padding: 30px 0;
  }

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

  .page-ban-ca__sub-title {
    font-size: 1.3em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-ban-ca p {
    font-size: 0.95em;
  }

  .page-ban-ca__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Ensure min size on mobile */
    min-height: 200px !important; /* Ensure min size on mobile */
  }

  .page-ban-ca__figure {
    margin: 20px 0;
  }

  /* 5. Registration tutorial and FAQ blocks */
  .page-ban-ca__faq-item {
    padding: 12px 0;
  }

  .page-ban-ca__faq-question {
    font-size: 1.05em;
  }

  .page-ban-ca__faq-toggle {
    font-size: 1.3em;
  }

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

  /* Promo Box mobile */
  .page-ban-ca__promo-box {
    padding: 40px 0;
    margin-top: 40px;
  }

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

  .page-ban-ca__promo-text {
    font-size: 1em;
  }
}