/* style/ban-ca.css */
.page-ban-ca {
  font-family: 'Arial', sans-serif;
  color: #FFF5E1; /* Text Main */
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-ban-ca__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #FFF5E1;
  line-height: 1.2;
}

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

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
  color: #333333; /* Dark text for contrast on light gradient */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
}

.page-ban-ca__btn-secondary {
  background: #7A0E0E; /* Deep Red */
  color: #FFF5E1; /* Text Main */
  border: 2px solid #F2B544; /* Border color */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__btn-secondary:hover {
  background: #C91F17; /* Main color */
  transform: translateY(-2px);
}

/* Hero Carousel Section */
.page-ban-ca__hero-carousel-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 40px;
}

.page-ban-ca__hero-slider {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.page-ban-ca__hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.page-ban-ca__hero-slide.is-active {
  opacity: 1;
}

.page-ban-ca__hero-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-ban-ca__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  max-width: 80%;
}

.page-ban-ca__main-title {
  font-size: 3.2em;
  font-weight: 900;
  color: #FFF5E1;
  margin-bottom: 15px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-ban-ca__hero-slider-prev,
.page-ban-ca__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #FFF5E1;
  border: none;
  padding: 15px 10px;
  cursor: pointer;
  z-index: 10;
  font-size: 1.5em;
  line-height: 1;
  border-radius: 5px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.page-ban-ca__hero-slider-prev:hover,
.page-ban-ca__hero-slider-next:hover {
  opacity: 1;
}

.page-ban-ca__hero-slider-prev {
  left: 10px;
}

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

.page-ban-ca__hero-slider-next {
  right: 10px;
}

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

/* Intro Section */
.page-ban-ca__intro-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Background color */
  margin-bottom: 40px;
}

.page-ban-ca__intro-section .page-ban-ca__section-title {
  color: #FFF5E1;
}

.page-ban-ca__intro-section .page-ban-ca__section-description {
  color: #f0f0f0;
}

.page-ban-ca__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-ban-ca__text-content {
  flex: 1;
  min-width: 300px;
}

.page-ban-ca__text-content p {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #FFF5E1;
}

.page-ban-ca__text-content strong {
  color: #FFD86A;
}

.page-ban-ca__image-content {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-ban-ca__image-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Guide Box Section (5 Team Cards) */
.page-ban-ca__guide-box {
  padding: 60px 0;
  background-color: #D32F2F; /* Card BG */
  margin-bottom: 40px;
}

.page-ban-ca__guide-box .page-ban-ca__section-title,
.page-ban-ca__guide-box .page-ban-ca__section-description {
  color: #FFF5E1;
}

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

.page-ban-ca__guide-card {
  flex: 0 0 calc(20% - 16px); /* 5 cards per row, accounting for gap */
  max-width: calc(20% - 16px);
  background-color: #7A0E0E; /* Deep Red */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: #FFF5E1;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Align image to bottom for vertical cards */
  min-height: 350px; /* Ensure card height for vertical image */
}

.page-ban-ca__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-ban-ca__guide-card img {
  width: 100%;
  height: 100%; /* Fill card height */
  object-fit: cover;
  aspect-ratio: 250 / 350; /* Fixed aspect ratio for vertical team cards */
  display: block;
}

/* Adjust padding for vertical alignment as per design */
.page-ban-ca__guide-card--pos-1,
.page-ban-ca__guide-card--pos-5 {
  padding-top: 50px; /* Example offset */
}

.page-ban-ca__guide-card--pos-2,
.page-ban-ca__guide-card--pos-4 {
  padding-top: 25px; /* Example offset */
}

/* Game Types Section */
.page-ban-ca__game-types-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Background color */
  margin-bottom: 40px;
}

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

.page-ban-ca__game-types-wrapper img {
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__game-list {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 300px;
}

.page-ban-ca__game-list li {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
  color: #FFF5E1;
}

.page-ban-ca__game-list li::before {
  content: '★';
  position: absolute;
  left: 0;
  color: #F4D34D; /* Gold */
  font-weight: bold;
}

/* Strategy & FAQ Sections (using home-content-box) */
.page-ban-ca__strategy-section,
.page-ban-ca__faq-section {
  padding: 60px 0;
  margin-bottom: 40px;
  background-color: #B71C1C; /* Background color */
}

.page-ban-ca__strategy-section .page-ban-ca__section-title,
.page-ban-ca__faq-section .page-ban-ca__section-title {
  color: #FFF5E1;
}

.page-ban-ca__strategy-section .page-ban-ca__section-description,
.page-ban-ca__faq-section .page-ban-ca__section-description {
  color: #f0f0f0;
}

.page-ban-ca__home-content-box {
  max-width: 91%;
  margin: 0 auto;
  padding: 10px 16px;
  border: 5px solid #F2B544; /* Border color */
  border-radius: 15px;
  box-shadow: 0 0 20px #FFCC66; /* Glow */
  height: 700px; /* Fixed height for desktop */
  background-color: #ffffff; /* Light background for readability */
  color: #333333; /* Dark text for contrast */
}

.page-ban-ca__home-content-inner {
  height: 100%;
  overflow-y: auto; /* Scroll for desktop */
  padding-right: 15px; /* Space for scrollbar */
}

.page-ban-ca__home-content-inner h3 {
  font-size: 1.6em;
  color: #C91F17; /* Main color */
  margin-top: 25px;
  margin-bottom: 10px;
}

.page-ban-ca__home-content-inner p {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #333333;
}

/* Promotions Section */
.page-ban-ca__promotions-section {
  padding: 60px 0;
  background-color: #D32F2F; /* Card BG */
  margin-bottom: 40px;
}

.page-ban-ca__promotions-section .page-ban-ca__section-title,
.page-ban-ca__promotions-section .page-ban-ca__section-description {
  color: #FFF5E1;
}

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

.page-ban-ca__promo-wrapper img {
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__promo-list {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 300px;
}

.page-ban-ca__promo-list li {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
  color: #FFF5E1;
}

.page-ban-ca__promo-list li::before {
  content: '🎁';
  position: absolute;
  left: 0;
  color: #F4D34D; /* Gold */
  font-weight: bold;
}

/* News Section (Blog Grid) */
.page-ban-ca__news-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Background color */
  margin-bottom: 40px;
}

.page-ban-ca__news-section .page-ban-ca__section-title,
.page-ban-ca__news-section .page-ban-ca__section-description {
  color: #FFF5E1;
}

.page-ban-ca__blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns for desktop */
  gap: 30px;
  margin-bottom: 40px;
}

.page-ban-ca__blog-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-ban-ca__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-ban-ca__blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-ban-ca__card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-ban-ca__card-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-ban-ca__card-title a {
  color: #FFF5E1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-ban-ca__card-title a:hover {
  color: #FFD86A;
}

.page-ban-ca__card-meta {
  font-size: 0.9em;
  color: #FFD86A; /* Gold */
  margin-bottom: 15px;
}

.page-ban-ca__card-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-ban-ca__card-link {
  display: inline-block;
  color: #FFD86A;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-ban-ca__card-link:hover {
  color: #FFF5E1;
}

.page-ban-ca__view-all {
  text-align: center;
}

/* CTA Section */
.page-ban-ca__cta-section {
  padding: 60px 0;
  background-color: #D32F2F; /* Card BG */
  text-align: center;
}

.page-ban-ca__cta-section .page-ban-ca__section-title,
.page-ban-ca__cta-section .page-ban-ca__section-description {
  color: #FFF5E1;
}

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

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

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__hero-carousel-section {
    margin-bottom: 30px;
  }

  .page-ban-ca__main-title {
    font-size: 2.5em;
  }

  .page-ban-ca__hero-description {
    font-size: 1.1em;
  }

  .page-ban-ca__guide-card {
    flex: 0 0 calc(33.333% - 14px); /* 3 cards per row */
    max-width: calc(33.333% - 14px);
  }

  .page-ban-ca__guide-card--pos-1,
  .page-ban-ca__guide-card--pos-5,
  .page-ban-ca__guide-card--pos-2,
  .page-ban-ca__guide-card--pos-4 {
    padding-top: 0; /* Reset padding for smaller screens */
  }

  .page-ban-ca__game-types-wrapper img,
  .page-ban-ca__promo-wrapper img {
    max-width: 100%;
  }

  .page-ban-ca__blog-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for tablet */
    gap: 20px;
  }

  .page-ban-ca__home-content-box {
    max-width: 95%;
  }

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

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

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

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

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

  .page-ban-ca__hero-carousel-section {
    padding-top: 10px !important; /* Retain small top padding */
    margin-bottom: 20px;
  }

  .page-ban-ca__hero-slider {
    padding-bottom: 75%; /* 4:3 Aspect Ratio for mobile hero */
  }

  .page-ban-ca__hero-content {
    max-width: 95%;
    padding: 15px;
  }

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

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

  .page-ban-ca__hero-slider-prev,
  .page-ban-ca__hero-slider-next {
    font-size: 1.2em;
    padding: 10px 8px;
  }

  .page-ban-ca__intro-section,
  .page-ban-ca__guide-box,
  .page-ban-ca__game-types-section,
  .page-ban-ca__strategy-section,
  .page-ban-ca__promotions-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__news-section,
  .page-ban-ca__cta-section {
    padding: 30px 0;
    margin-bottom: 20px;
  }

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

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

  .page-ban-ca__content-wrapper,
  .page-ban-ca__game-types-wrapper,
  .page-ban-ca__promo-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .page-ban-ca__text-content,
  .page-ban-ca__image-content,
  .page-ban-ca__game-types-wrapper img,
  .page-ban-ca__promo-wrapper img {
    min-width: unset;
    width: 100%;
  }

  .page-ban-ca__guide-grid {
    display: grid; /* Use grid for mobile layout */
    grid-template-columns: repeat(6, 1fr); /* 6 columns to allow flexible span */
    gap: 15px;
  }

  .page-ban-ca__guide-card {
    padding-top: 0 !important; /* Reset padding for mobile */
    flex: unset;
    max-width: unset;
    min-height: 250px; /* Adjust min-height for mobile */
  }

  .page-ban-ca__guide-card--pos-1,
  .page-ban-ca__guide-card--pos-2 {
    grid-column: span 3; /* Upper two cards span 3 columns each */
  }

  .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; /* Lower three cards span 2 columns each */
  }

  .page-ban-ca__guide-card img {
    height: 100%;
    object-fit: contain; /* Ensure image fits without cropping on smaller cards */
  }

  .page-ban-ca__home-content-box {
    max-width: 100% !important;
    height: auto !important; /* Auto height for mobile */
    padding: 15px !important;
    border-width: 3px !important;
  }

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

  .page-ban-ca__home-content-inner h3 {
    font-size: 1.4em;
    margin-top: 20px;
  }

  .page-ban-ca__home-content-inner p {
    font-size: 0.95em;
  }

  .page-ban-ca__blog-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }

  .page-ban-ca__blog-card img {
    
  }

  .page-ban-ca__card-title {
    font-size: 1.1em;
  }

  .page-ban-ca__card-meta,
  .page-ban-ca__card-text {
    font-size: 0.85em;
  }

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

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

  /* All containers with images */
  .page-ban-ca__intro-section .page-ban-ca__content-wrapper,
  .page-ban-ca__game-types-section .page-ban-ca__game-types-wrapper,
  .page-ban-ca__promotions-section .page-ban-ca__promo-wrapper,
  .page-ban-ca__news-section .page-ban-ca__blog-grid,
  .page-ban-ca__hero-carousel-section,
  .page-ban-ca__guide-box,
  .page-ban-ca__strategy-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button responsive styles for mobile */
  .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-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}