/* style/ban-ca.css */

:root {
  --ao88a-primary: #2F6BFF;
  --ao88a-secondary: #6FA3FF;
  --ao88a-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --ao88a-card-bg: #FFFFFF;
  --ao88a-bg: #F4F7FB;
  --ao88a-text-main: #1F2D3D;
  --ao88a-text-dark: #000000;
  --ao88a-border: #D6E2FF;
  --ao88a-glow: #A5C4FF;
}

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

.page-ban-ca__content-area {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

/* Hero Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  background: var(--ao88a-gradient);
  color: #ffffff; /* White text on gradient background */
}

.page-ban-ca__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
}

.page-ban-ca__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: left;
}

.page-ban-ca__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-ban-ca__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-ban-ca__hero-cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-ban-ca__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.page-ban-ca__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* General Buttons */
.page-ban-ca__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-ban-ca__btn-primary {
  background: var(--ao88a-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-ban-ca__btn-secondary:hover {
  background: var(--ao88a-primary);
  color: #ffffff;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-ban-ca__btn-small {
  padding: 8px 18px;
  font-size: 0.9rem;
}

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

/* Section Titles */
.page-ban-ca__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--ao88a-text-dark);
}

.page-ban-ca__section-description {
  font-size: 1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--ao88a-text-main);
}

/* Intro Section */
.page-ban-ca__intro-section {
  padding: 60px 0;
  background-color: var(--ao88a-card-bg);
}

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

.page-ban-ca__feature-item {
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

.page-ban-ca__icon-box-media {
  width: 180px;
  height: 180px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--ao88a-primary);
  box-shadow: 0 0 0 8px var(--ao88a-glow);
}

.page-ban-ca__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.page-ban-ca__feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ao88a-primary);
}

.page-ban-ca__feature-text {
  font-size: 0.95rem;
  color: var(--ao88a-text-main);
}

/* Game List Section */
.page-ban-ca__game-list-section {
  padding: 60px 0;
  background-color: var(--ao88a-bg); /* Light background */
}

.page-ban-ca__game-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-ban-ca__game-card {
  background-color: var(--ao88a-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-ban-ca__game-card:hover {
  transform: translateY(-5px);
}

.page-ban-ca__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-ban-ca__game-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ao88a-primary);
}

.page-ban-ca__game-card-title a {
  color: inherit;
  text-decoration: none;
}

.page-ban-ca__game-card-title a:hover {
  text-decoration: underline;
}

.page-ban-ca__game-card-text {
  font-size: 0.95rem;
  color: var(--ao88a-text-main);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Guide Section */
.page-ban-ca__guide-section {
  padding: 60px 0;
  background-color: var(--ao88a-card-bg);
}

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

.page-ban-ca__guide-step {
  text-align: center;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 20px;
}

.page-ban-ca__guide-step-image {
  max-width: 100%;
  height: 250px; /* Fixed height for guide images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-ban-ca__guide-step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ao88a-primary);
}

.page-ban-ca__guide-step-text {
  font-size: 0.95rem;
  color: var(--ao88a-text-main);
}

/* Tips Section */
.page-ban-ca__tips-section {
  padding: 60px 0;
  background-color: var(--ao88a-primary); /* Dark background */
  color: #ffffff; /* White text on dark background */
}

.page-ban-ca__tips-section .page-ban-ca__section-title,
.page-ban-ca__tips-section .page-ban-ca__section-description {
  color: #ffffff;
}

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

.page-ban-ca__tips-list li {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  font-size: 1rem;
  color: #f0f0f0;
}

.page-ban-ca__list-icon {
  font-size: 1.2rem;
  margin-right: 10px;
  color: var(--ao88a-secondary);
}

/* Promo Section */
.page-ban-ca__promo-section {
  padding: 60px 0;
  background-color: var(--ao88a-bg);
}

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

.page-ban-ca__promo-card {
  background-color: var(--ao88a-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-ban-ca__promo-card:hover {
  transform: translateY(-5px);
}

.page-ban-ca__promo-card-image {
  width: 100%;
  height: 200px; /* Fixed height for promo images */
  object-fit: cover;
  display: block;
}

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

.page-ban-ca__promo-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ao88a-primary);
}

.page-ban-ca__promo-card-text {
  font-size: 0.95rem;
  color: var(--ao88a-text-main);
  margin-bottom: 20px;
  flex-grow: 1;
}

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

/* FAQ Section */
.page-ban-ca__faq-section {
  padding: 60px 0;
  background-color: var(--ao88a-card-bg);
}

.page-ban-ca__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
}

.page-ban-ca__faq-item {
  background-color: #ffffff;
  border: 1px solid var(--ao88a-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ao88a-primary);
  cursor: pointer;
  list-style: none;
  background-color: #f9f9f9;
  border-bottom: 1px solid var(--ao88a-border);
}

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

.page-ban-ca__faq-question:hover {
  background-color: #f0f0f0;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-question {
  border-bottom: 1px solid var(--ao88a-border);
}

.page-ban-ca__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--ao88a-text-dark);
}

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

.page-ban-ca__faq-answer {
  padding: 15px 20px;
  font-size: 0.95rem;
  color: var(--ao88a-text-main);
  background-color: #ffffff;
}

/* CTA Section */
.page-ban-ca__cta-section {
  padding: 80px 0;
  background-color: var(--ao88a-primary); /* Dark background */
  color: #ffffff;
  text-align: center;
}

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

.page-ban-ca__cta-section .page-ban-ca__cta-button {
  margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-ban-ca__hero-description {
    font-size: 1rem;
  }
  .page-ban-ca__section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-ban-ca {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
  }

  .page-ban-ca__hero-container {
    flex-direction: column;
    text-align: center;
    padding: 30px 15px;
  }

  .page-ban-ca__hero-content {
    order: 2; /* Content below image on mobile */
    text-align: center;
    min-width: unset;
    flex: 1 1 100%;
  }

  .page-ban-ca__hero-image {
    order: 1; /* Image above content on mobile */
    min-width: unset;
    flex: 1 1 100%;
    margin-bottom: 20px;
  }

  .page-ban-ca__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  /* Buttons mobile adaptation */
  .page-ban-ca__cta-button,
  .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__hero-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-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Ensure vertical stacking for multiple buttons */
  }

  .page-ban-ca__main-title {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }

  .page-ban-ca__content-area {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  /* Module 1: Intro Section (three columns) */
  .page-ban-ca__features-grid {
    grid-template-columns: 1fr;
  }

  .page-ban-ca__feature-item {
    padding: 15px;
  }

  .page-ban-ca__icon-box-media {
    width: 150px;
    height: 150px;
    border-width: 3px;
    box-shadow: 0 0 0 6px var(--ao88a-glow);
    margin-bottom: 15px;
  }

  /* Game List Section */
  .page-ban-ca__game-cards-grid {
    grid-template-columns: 1fr;
  }

  .page-ban-ca__game-card-image {
    height: 180px;
  }

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

  /* Guide Section */
  .page-ban-ca__guide-steps {
    grid-template-columns: 1fr;
  }

  .page-ban-ca__guide-step-image {
    height: 200px;
  }

  /* Tips Section */
  .page-ban-ca__tips-list li {
    padding: 12px 15px;
    font-size: 0.95rem;
  }

  /* Promo Section */
  .page-ban-ca__promo-cards-grid {
    grid-template-columns: 1fr;
  }

  .page-ban-ca__promo-card-image {
    height: 180px;
  }

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

  /* FAQ Section */
  .page-ban-ca__faq-question {
    padding: 12px 15px;
    font-size: 1rem;
  }

  .page-ban-ca__faq-answer {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  /* CTA Section */
  .page-ban-ca__cta-section {
    padding: 60px 15px;
  }
  
  /* Universal image responsive styles for content area */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-ban-ca__section,
  .page-ban-ca__card,
  .page-ban-ca__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}