:root {
  --color-primary: #FF8C1A;
  --color-secondary: #FFA53A;
  --color-background: #0D0E12;
  --color-card-bg: #17191F;
  --color-text-main: #FFF3E6;
  --color-border: #A84F0C;
  --color-glow: #FFB04D;
  --color-deep-orange: #D96800;
  --header-offset: 122px; /* Default for pages, will be overridden by shared.css if present */
}

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

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

.page-ban-ca__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
  margin-bottom: 40px;
  background-color: var(--color-background);
  overflow: hidden;
}

.page-ban-ca__hero-image {
  width: 100%;
  height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

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

.page-ban-ca__hero-content {
  text-align: center;
  padding: 20px 0 40px;
  max-width: 900px;
  margin: 0 auto;
}

.page-ban-ca__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  color: var(--color-glow);
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 176, 77, 0.5);
  line-height: 1.2;
}

.page-ban-ca__description {
  font-size: 1.1em;
  color: var(--color-text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-ban-ca__cta-buttons--center {
  margin-top: 30px;
  margin-bottom: 30px;
}

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

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, var(--color-secondary) 0%, var(--color-deep-orange) 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

.page-ban-ca__btn-primary:hover {
  background: linear-gradient(180deg, var(--color-deep-orange) 0%, var(--color-secondary) 100%);
  box-shadow: 0 6px 20px rgba(255, 165, 58, 0.6);
  transform: translateY(-2px);
}

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

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

.page-ban-ca__btn-tertiary {
  background: var(--color-primary);
  color: var(--color-text-main);
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 5px;
}

.page-ban-ca__btn-tertiary:hover {
  background: var(--color-secondary);
}

.page-ban-ca__section {
  padding: 60px 0;
  margin-bottom: 30px;
  background-color: var(--color-background);
}

.page-ban-ca__dark-section {
  background-color: var(--color-card-bg);
  color: var(--color-text-main);
}

.page-ban-ca__light-bg {
  background-color: #f9f9f9;
  color: #333333;
}

.page-ban-ca__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 140, 26, 0.3);
}

.page-ban-ca__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--color-text-main);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__introduction-section .page-ban-ca__text-block,
.page-ban-ca__tips-section .page-ban-ca__text-block,
.page-ban-ca__conclusion-section .page-ban-ca__text-block {
  text-align: center;
}

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

.page-ban-ca__product-card,
.page-ban-ca__promo-card {
  background-color: var(--color-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--color-border);
}

.page-ban-ca__product-card img,
.page-ban-ca__promo-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-ban-ca__product-title,
.page-ban-ca__promo-title {
  font-size: 1.5em;
  color: var(--color-secondary);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-ban-ca__product-description,
.page-ban-ca__promo-description {
  font-size: 0.95em;
  color: var(--color-text-main);
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-ban-ca__feature-list,
.page-ban-ca__step-list,
.page-ban-ca__tips-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
}

.page-ban-ca__feature-item,
.page-ban-ca__step-item,
.page-ban-ca__tips-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-ban-ca__feature-title,
.page-ban-ca__step-title,
.page-ban-ca__tips-title {
  font-size: 1.4em;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.page-ban-ca__feature-description,
.page-ban-ca__step-description,
.page-ban-ca__tips-description {
  font-size: 1em;
  color: var(--color-text-main);
}

.page-ban-ca__step-list {
  counter-reset: step-counter;
}

.page-ban-ca__step-item {
  position: relative;
  padding-left: 50px;
  text-align: left;
}

.page-ban-ca__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 20px;
  background-color: var(--color-primary);
  color: #fff;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-ban-ca__faq-section {
  background-color: var(--color-background);
}

details.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--color-card-bg);
  color: var(--color-text-main);
}
details.page-ban-ca__faq-item summary.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-ban-ca__faq-item summary.page-ban-ca__faq-question::-webkit-details-marker {
  display: none;
}
details.page-ban-ca__faq-item summary.page-ban-ca__faq-question:hover {
  background: rgba(var(--color-primary), 0.1);
}
.page-ban-ca__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--color-text-main);
}
.page-ban-ca__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-ban-ca__faq-item .page-ban-ca__faq-answer {
  padding: 0 20px 20px;
  background: var(--color-card-bg);
  border-radius: 0 0 5px 5px;
  color: var(--color-text-main);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__container {
    padding: 0 15px;
  }

  .page-ban-ca__hero-image {
    height: 500px;
  }

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

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

  .page-ban-ca__section-title {
    font-size: clamp(1.6em, 4vw, 2.5em);
  }

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

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-ban-ca__products-grid,
  .page-ban-ca__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .page-ban-ca__product-card img,
  .page-ban-ca__promo-card img {
    height: 220px;
  }

  .page-ban-ca__feature-item,
  .page-ban-ca__step-item,
  .page-ban-ca__tips-item {
    padding: 20px;
  }

  .page-ban-ca__feature-title,
  .page-ban-ca__step-title,
  .page-ban-ca__tips-title {
    font-size: 1.3em;
  }

  .page-ban-ca__faq-qtext {
    font-size: 1em;
  }
}

@media (max-width: 849px) {
  .page-ban-ca__hero-image img {
    object-fit: contain !important; /* Prevents cropping on smaller screens */
    aspect-ratio: unset !important;
  }
}

@media (max-width: 768px) {
  .page-ban-ca__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    margin-bottom: 20px;
  }

  .page-ban-ca__hero-image {
    height: 300px;
    margin-bottom: 15px;
  }

  .page-ban-ca__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .page-ban-ca__hero-content {
    padding: 10px 0 20px;
  }

  .page-ban-ca__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 10px;
  }

  .page-ban-ca__description {
    font-size: 0.95em;
    margin-bottom: 20px;
    padding: 0 15px;
  }

  .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary,
  .page-ban-ca__btn-tertiary,
  .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__section {
    padding: 30px 0;
    margin-bottom: 15px;
  }

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

  .page-ban-ca__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 25px;
  }

  .page-ban-ca__text-block {
    font-size: 1em;
    margin-bottom: 15px;
    padding: 0 5px;
  }

  .page-ban-ca__products-grid,
  .page-ban-ca__promo-grid {
    grid-template-columns: 1fr 1fr; /* 2 columns for mobile */
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    overflow-x: hidden;
  }

  .page-ban-ca__product-card img,
  .page-ban-ca__promo-card img,
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-ban-ca__product-card,
  .page-ban-ca__promo-card {
    padding-bottom: 15px;
  }

  .page-ban-ca__product-title,
  .page-ban-ca__promo-title {
    font-size: 1.2em;
  }

  .page-ban-ca__product-description,
  .page-ban-ca__promo-description {
    font-size: 0.9em;
  }

  .page-ban-ca__feature-list,
  .page-ban-ca__step-list,
  .page-ban-ca__tips-list {
    margin: 20px auto;
  }

  .page-ban-ca__feature-item,
  .page-ban-ca__step-item,
  .page-ban-ca__tips-item {
    padding: 15px;
    margin-bottom: 15px;
  }

  .page-ban-ca__feature-title,
  .page-ban-ca__step-title,
  .page-ban-ca__tips-title {
    font-size: 1.2em;
  }

  .page-ban-ca__step-item {
    padding-left: 45px;
  }

  .page-ban-ca__step-item::before {
    width: 30px;
    height: 30px;
    font-size: 1em;
    top: 15px;
  }

  details.page-ban-ca__faq-item summary.page-ban-ca__faq-question { padding: 15px; }
  .page-ban-ca__faq-qtext { font-size: 1em; }
  .page-ban-ca__faq-toggle { font-size: 20px; width: 24px; margin-left: 10px; }
  details.page-ban-ca__faq-item .page-ban-ca__faq-answer { padding: 0 15px 15px; }
}