/* style/ban-ca.css */
.page-ban-ca {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6;
  background-color: #0A0A0A;
}

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

/* Hero Section */
.page-ban-ca__hero-section {
  padding-top: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #0A0A0A;
}

.page-ban-ca__hero-carousel-section {
  width: 100%;
  position: relative;
  margin-bottom: 40px;
}

.page-ban-ca__hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 211, 107, 0.3);
}

.page-ban-ca__hero-slide {
  display: none;
  width: 100%;
}

.page-ban-ca__hero-slide.is-active {
  display: block;
}

.page-ban-ca__hero-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px;
  min-width: 200px;
}

.page-ban-ca__hero-slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
  box-sizing: border-box;
}

.page-ban-ca__hero-slider-prev,
.page-ban-ca__hero-slider-next {
  background-color: rgba(242, 193, 78, 0.7);
  border: none;
  color: #0A0A0A;
  font-size: 24px;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%;
  line-height: 1;
  transition: background-color 0.3s ease;
}

.page-ban-ca__hero-slider-prev:hover,
.page-ban-ca__hero-slider-next:hover {
  background-color: #F2C14E;
}

.page-ban-ca__hero-slider-prev::before {
  content: '‹';
}

.page-ban-ca__hero-slider-next::before {
  content: '›';
}

.page-ban-ca__hero-content-wrapper {
  width: 100%;
  max-width: 900px;
  text-align: center;
  padding-bottom: 60px;
}

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

.page-ban-ca__main-title {
  font-size: 3.2em;
  color: #FFD36B;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-ban-ca__hero-description {
  font-size: 1.2em;
  color: #FFF6D6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #0A0A0A;
  border: 2px solid transparent;
}

.page-ban-ca__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-ban-ca__btn-secondary {
  background: #111111;
  color: #F2C14E;
  border: 2px solid #F2C14E;
}

.page-ban-ca__btn-secondary:hover {
  transform: translateY(-3px);
  background: #F2C14E;
  color: #0A0A0A;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

/* General Section Styling */
.page-ban-ca__section-title {
  font-size: 2.5em;
  color: #FFD36B;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

.page-ban-ca__section-description {
  font-size: 1.1em;
  color: #FFF6D6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-ban-ca__sub-title {
  font-size: 1.8em;
  color: #F2C14E;
  margin-top: 40px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-ban-ca__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  color: #FFF6D6;
}

.page-ban-ca__list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-ban-ca__list li::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: #F2C14E;
}

.page-ban-ca__content-image {
  margin: 30px auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.2);
}

.page-ban-ca__content-image img {
  width: 100%;
  height: auto;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-ban-ca__image-caption {
  text-align: center;
  font-style: italic;
  color: #F2C14E;
  margin-top: 10px;
  font-size: 0.9em;
}

/* Guide Section (5 vertical cards) */
.page-ban-ca__guide-section {
  padding: 80px 0;
  background-color: #0A0A0A;
}

.page-ban-ca__guide-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-ban-ca__guide-card {
  flex: 0 0 calc(20% - 16px);
  max-width: calc(20% - 16px);
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(255, 211, 107, 0.2);
}

.page-ban-ca__guide-card:hover {
  transform: translateY(-10px);
}

.page-ban-ca__guide-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 250 / 350;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-ban-ca__guide-card--pos-1, .page-ban-ca__guide-card--pos-5 {
  padding-top: 50px;
}
.page-ban-ca__guide-card--pos-2, .page-ban-ca__guide-card--pos-4 {
  padding-top: 25px;
}
.page-ban-ca__guide-card--pos-3 {
  padding-top: 0;
}

/* Content Area (mimicking home_content-box) */
.page-ban-ca__content-area {
  padding: 60px 0;
  background-color: #FFF6D6;
  color: #333333;
}

.page-ban-ca__content-area .page-ban-ca__section-title,
.page-ban-ca__content-area .page-ban-ca__sub-title {
  color: #0A0A0A;
  text-shadow: none;
}

.page-ban-ca__content-area p,
.page-ban-ca__content-area li {
  color: #333333;
}

.page-ban-ca__content-area a {
  color: #F2C14E;
  text-decoration: underline;
}

.page-ban-ca__content-area a:hover {
  color: #DDA11D;
}

.page-ban-ca__home-content-box {
  max-width: 91%;
  margin: 0 auto;
  padding: 10px 16px;
  border: 5px solid #3A2A12;
  border-radius: 15px;
  box-shadow: 0 0 20px #FFD36B;
  height: 700px;
  background-color: #111111;
  color: #FFF6D6;
}

.page-ban-ca__home-content-inner {
  height: 100%;
  overflow-y: auto;
  padding-right: 15px;
  box-sizing: border-box;
}

.page-ban-ca__home-content-inner::-webkit-scrollbar {
  width: 8px;
}

.page-ban-ca__home-content-inner::-webkit-scrollbar-track {
  background: #3A2A12;
  border-radius: 10px;
}

.page-ban-ca__home-content-inner::-webkit-scrollbar-thumb {
  background: #F2C14E;
  border-radius: 10px;
}

.page-ban-ca__home-content-inner::-webkit-scrollbar-thumb:hover {
  background: #FFD36B;
}

.page-ban-ca__app-download-cta {
  text-align: center;
  margin-top: 40px;
}

/* Blog Section */
.page-ban-ca__blog-section {
  padding: 80px 0;
  background-color: #0A0A0A;
}

.page-ban-ca__blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.page-ban-ca__blog-card {
  background-color: #111111;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(255, 211, 107, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ban-ca__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.3);
}

.page-ban-ca__blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-ban-ca__blog-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-ban-ca__blog-card-title {
  font-size: 1.2em;
  color: #F2C14E;
  margin: 15px;
  line-height: 1.4;
}

.page-ban-ca__blog-card-meta {
  font-size: 0.9em;
  color: #FFF6D6;
  margin: 0 15px 15px;
}

.page-ban-ca__view-all {
  text-align: center;
  margin-top: 40px;
}

/* Final CTA Section */
.page-ban-ca__cta-final {
  padding: 80px 0;
  background-color: #0A0A0A;
  text-align: center;
}

/* Dark background for sections where specified */
.page-ban-ca__dark-section {
  background-color: #0A0A0A;
  color: #FFF6D6;
}

.page-ban-ca__dark-section .page-ban-ca__section-title {
  color: #FFD36B;
}

.page-ban-ca__dark-bg {
  background-color: #0A0A0A;
  color: #FFF6D6;
}

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

.page-ban-ca__light-bg .page-ban-ca__section-title {
  color: #0A0A0A;
}

.page-ban-ca__light-bg .page-ban-ca__sub-title {
  color: #0A0A0A;
}

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

  .page-ban-ca__container {
    padding: 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__container > * {
      padding-left: 15px;
      padding-right: 15px;
      box-sizing: border-box;
  }

  /* Hero Section */
  .page-ban-ca__hero-section {
    padding-top: 10px !important;
  }

  .page-ban-ca__hero-carousel-section {
    margin-bottom: 30px;
  }

  .page-ban-ca__hero-slider-prev,
  .page-ban-ca__hero-slider-next {
    font-size: 20px;
    padding: 8px 12px;
  }

  .page-ban-ca__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-ban-ca__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

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

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* General Section Styling */
  .page-ban-ca__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

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

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

  /* Guide Section (5 vertical cards) */
  .page-ban-ca__guide-section {
    padding: 40px 0;
  }

  .page-ban-ca__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-top: 30px;
  }

  .page-ban-ca__guide-card {
    flex: unset;
    max-width: 100%;
    padding-top: 0 !important;
  }

  .page-ban-ca__guide-card--pos-1,
  .page-ban-ca__guide-card--pos-2 {
    grid-column: span 3;
  }

  .page-ban-ca__guide-card--pos-3,
  .page-ban-ca__guide-card--pos-4,
  .page-ban-ca__guide-card--pos-5 {
    grid-column: span 2;
  }

  /* Content Area (mimicking home_content-box) */
  .page-ban-ca__content-area {
    padding: 40px 0;
  }

  .page-ban-ca__home-content-box {
    height: auto !important;
    max-width: 100%;
    padding: 10px 10px;
    box-shadow: 0 0 10px #FFD36B;
    border-width: 3px;
  }

  .page-ban-ca__home-content-inner {
    height: auto !important;
    overflow: visible !important;
    padding-right: 0;
  }

  /* Blog Section */
  .page-ban-ca__blog-section {
    padding: 40px 0;
  }

  .page-ban-ca__blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
  }

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

  /* General image responsive styles (must apply to all images) */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  /* Ensure image containers also respect max-width */
  .page-ban-ca__hero-slider,
  .page-ban-ca__guide-card,
  .page-ban-ca__content-image,
  .page-ban-ca__blog-card,
  .page-ban-ca__home-content-box {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-ban-ca__hero-content-wrapper .page-ban-ca__hero-content {
      padding-left: 15px;
      padding-right: 15px;
  }
}