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

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

.page-ban-ca__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFCC66; /* Gold for titles */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-ban-ca__section-title--light {
  color: #FFF5E1; /* White text for titles on dark background */
}

.page-ban-ca__hero-section {
  display: flex;
  flex-direction: column; /* Start with column for mobile-first/top-down content flow */
  align-items: center;
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 50px;
  background-color: #7A0E0E; /* Deep Red for hero section */
}

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border: 2px solid #F2B544; /* Border Gold */
}

.page-ban-ca__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Desktop: cover to fill space */
}

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

.page-ban-ca__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Clamp for H1 font size */
  font-weight: 900;
  line-height: 1.2;
  color: #F4D34D; /* Gold for main title */
  margin-bottom: 20px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-ban-ca__hero-description {
  font-size: 1.15em;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__hero-cta-buttons,
.page-ban-ca__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping for multiple buttons */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%; /* Ensure container takes full width */
  box-sizing: border-box;
  overflow: hidden; /* Prevent overflow */
}

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

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary,
.page-ban-ca__btn-play {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow word breaking */
  box-sizing: border-box; /* Include padding and border in element's total width and height */
  max-width: 100%; /* Ensure button takes full width if needed */
}

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
  color: #7A0E0E; /* Deep Red for text on gold button */
  border: 2px solid #F4D34D; /* Gold border */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-ban-ca__btn-secondary {
  background-color: transparent;
  color: #FFD86A; /* Gold for text */
  border: 2px solid #FFD86A; /* Gold border */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__btn-secondary:hover {
  background-color: #FFD86A;
  color: #7A0E0E; /* Deep Red for text on gold button */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-ban-ca__introduction-section,
.page-ban-ca__gameplay-rules-section,
.page-ban-ca__featured-games-section,
.page-ban-ca__strategies-section,
.page-ban-ca__promotions-section,
.page-ban-ca__registration-guide-section,
.page-ban-ca__faq-section,
.page-ban-ca__conclusion-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Background color */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-ban-ca__gameplay-rules-section {
  background-color: #7A0E0E; /* Deep Red */
}

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

.page-ban-ca__rule-item,
.page-ban-ca__strategy-card {
  background-color: #D32F2F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid #F2B544; /* Border Gold */
}

.page-ban-ca__rule-title,
.page-ban-ca__strategy-title {
  font-size: 1.5em;
  color: #FFCC66; /* Glow */
  margin-bottom: 15px;
}

.page-ban-ca__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  overflow-x: hidden; /* Prevent horizontal scroll for game grid */
}

.page-ban-ca__game-card {
  background-color: #D32F2F; /* Card BG */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid #F2B544; /* Border Gold */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-ban-ca__game-image {
  width: 100%;
  height: 250px; /* Fixed height for square aspect ratio on desktop */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid #FFCC66; /* Glow border */
  display: block; /* Ensure it behaves as a block element */
  max-width: 100%; /* Ensure image is responsive */
}

.page-ban-ca__game-title {
  font-size: 1.3em;
  color: #FFD86A; /* Gold */
  margin-bottom: 10px;
}

.page-ban-ca__game-description {
  font-size: 0.95em;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-ban-ca__btn-play {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
  color: #7A0E0E; /* Deep Red */
  border: 2px solid #F4D34D; /* Gold border */
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-ban-ca__btn-play:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

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

.page-ban-ca__promotion-item,
.page-ban-ca__step-item {
  background-color: #D32F2F; /* Card BG */
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #F2B544; /* Border Gold */
  color: #FFF5E1; /* Text Main */
}

.page-ban-ca__promotion-title,
.page-ban-ca__step-title {
  font-size: 1.4em;
  color: #FFCC66; /* Glow */
  margin-bottom: 10px;
}

.page-ban-ca__step-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
}

.page-ban-ca__step-icon {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
  color: #7A0E0E; /* Deep Red */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2em;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__faq-item {
  background-color: #D32F2F; /* Card BG */
  border: 1px solid #F2B544; /* Border Gold */
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFCC66; /* Glow */
  cursor: pointer;
  background-color: #7A0E0E; /* Deep Red */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* Remove default marker for details summary */
}

.page-ban-ca__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit browsers */
}

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

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-ban-ca__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #FFF5E1; /* Text Main */
  line-height: 1.6;
}

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

.page-ban-ca__conclusion-section {
  text-align: center;
  padding: 80px 0;
  background-color: #C91F17; /* Main color */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-ban-ca__conclusion-text {
  font-size: 1.15em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #FFF5E1; /* Text Main */
}

.page-ban-ca__dark-bg {
  background-color: #C91F17; /* Main color */
  color: #FFF5E1; /* Text Main */
}

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

/* Desktop styles for larger screens */
@media (min-width: 769px) {
  .page-ban-ca__hero-section {
    flex-direction: row; /* Desktop: row for image and content */
    justify-content: center;
    gap: 50px;
    padding-top: 50px;
  }

  .page-ban-ca__hero-image-wrapper {
    flex-shrink: 0;
    width: 60%; /* Adjust width for desktop layout */
    max-width: 800px; /* Max width for hero image */
    margin-bottom: 0;
  }

  .page-ban-ca__hero-image {
    object-fit: cover;
  }

  .page-ban-ca__hero-content {
    text-align: left;
    max-width: 40%; /* Adjust width for desktop layout */
  }

  .page-ban-ca__main-title {
    text-align: left;
  }

  .page-ban-ca__hero-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .page-ban-ca__hero-cta-buttons {
    justify-content: flex-start;
  }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .page-ban-ca__container {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  /* 1. Hero section */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 30px;
  }

  .page-ban-ca__hero-image-wrapper {
    margin-bottom: 20px;
    border-radius: 10px;
  }

  .page-ban-ca__hero-image {
    object-fit: contain !important; /* Mobile: contain to prevent cropping */
    max-height: 300px; /* Limit height on small screens */
    aspect-ratio: unset !important; /* unset aspect ratio */
    width: 100% !important; /* Ensure full width */
  }

  .page-ban-ca__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem); /* Adjust clamp for mobile H1 */
    margin-bottom: 15px;
  }

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

  /* 2. Game grid */
  .page-ban-ca__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* 2 columns for mobile */
    gap: 20px;
    overflow-x: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-ban-ca__game-card {
    padding: 15px;
  }

  .page-ban-ca__game-image {
    height: auto !important; /* Auto height for mobile */
    aspect-ratio: 1/1 !important; /* Square aspect ratio for mobile game cards */
    object-fit: cover !important;
    width: 100% !important;
  }

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

  .page-ban-ca__game-description {
    font-size: 0.9em;
  }

  /* 3. Universal images and containers */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-ban-ca__section,
  .page-ban-ca__card,
  .page-ban-ca__container,
  .page-ban-ca__rule-item,
  .page-ban-ca__strategy-card,
  .page-ban-ca__promotion-item,
  .page-ban-ca__step-item,
  .page-ban-ca__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 4. Buttons and button containers */
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary,
  .page-ban-ca__btn-play,
  .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__hero-cta-buttons,
  .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: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }

  /* 5. Winner list (not present in this page, but good to have a placeholder for the checklist) */
  /* If a winner list were present, it would be styled here */

  /* 6. Other content modules */
  .page-ban-ca__rules-grid,
  .page-ban-ca__strategy-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }

  .page-ban-ca__rule-item,
  .page-ban-ca__strategy-card {
    padding: 20px;
  }

  .page-ban-ca__promotion-item {
    padding: 20px;
  }

  .page-ban-ca__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .page-ban-ca__step-icon {
    margin-bottom: 15px;
  }

  .page-ban-ca__faq-item {
    margin-bottom: 10px;
  }

  .page-ban-ca__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-ban-ca__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.95em;
  }

  .page-ban-ca__conclusion-section {
    padding: 40px 0;
  }

  .page-ban-ca__conclusion-text {
    font-size: 1em;
    padding: 0 15px;
  }
}

/* Desktop styles for 1024px+ */
@media (min-width: 1024px) {
  .page-ban-ca__container {
    padding: 20px 0;
  }
  .page-ban-ca__hero-section {
    padding-bottom: 80px;
  }
  .page-ban-ca__introduction-section,
  .page-ban-ca__gameplay-rules-section,
  .page-ban-ca__featured-games-section,
  .page-ban-ca__strategies-section,
  .page-ban-ca__promotions-section,
  .page-ban-ca__registration-guide-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__conclusion-section {
    padding: 80px 0;
  }
  .page-ban-ca__game-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns for larger screens */
  }
}