/* Core styles for the Bắn Cá page */
.page-ban-ca {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--secondary-color, #ffffff); /* Ensure light background for main content */
}

/* Hero Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, relies on body for --header-offset */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #e0f2f7, #ffffff); /* Light gradient background */
}

.page-ban-ca__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

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

.page-ban-ca__hero-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive font size for H1 */
  color: #26A9E0; /* Brand color for H1 */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

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

.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.1);
  display: block;
}

.page-ban-ca__hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* General Section Styles */
.page-ban-ca__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-ban-ca__section-title {
  font-size: 2.5rem;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-ban-ca__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: justify;
}

/* Feature Section (Why Play) */
.page-ban-ca__features-section {
  background-color: #26A9E0; /* Dark background with brand color */
  color: #ffffff;
  padding: 60px 0;
}

.page-ban-ca__text-white {
  color: #ffffff;
}

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

.page-ban-ca__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.page-ban-ca__icon-box-media {
  width: 180px; /* Smaller for desktop */
  height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.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.5rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-ban-ca__feature-description {
  font-size: 1rem;
  opacity: 0.9;
}

/* How to Play Section */
.page-ban-ca__how-to-play-section {
  padding: 60px 0;
  background-color: var(--secondary-color, #ffffff);
}

.page-ban-ca__how-to-play-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.page-ban-ca__how-to-play-image {
  flex: 1 1 45%;
  min-width: 300px;
}

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

.page-ban-ca__how-to-play-steps {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-ban-ca__step-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.page-ban-ca__step-item {
  background-color: #f9f9f9;
  border-left: 5px solid #26A9E0;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__step-title {
  font-size: 1.3rem;
  color: #26A9E0;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-ban-ca__step-description {
  font-size: 1rem;
  color: #555555;
}

/* Promotion Section */
.page-ban-ca__promotion-section {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.page-ban-ca__promotion-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-ban-ca__promotion-banner {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca__promotion-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* FAQ Section */
.page-ban-ca__faq-section {
  padding: 60px 0;
  background-color: var(--secondary-color, #ffffff);
}

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

.page-ban-ca__faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f9f9f9;
}

.page-ban-ca__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background-color: #e0f2f7; /* Lighter shade of brand color */
  transition: background-color 0.3s ease;
}

.page-ban-ca__faq-item summary:hover {
  background-color: #d1ecf1;
}

.page-ban-ca__faq-item summary::-webkit-details-marker,
.page-ban-ca__faq-item summary::marker {
  display: none;
}

.page-ban-ca__faq-qtext {
  flex-grow: 1;
}

.page-ban-ca__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
  content: "−";
}

.page-ban-ca__faq-answer {
  padding: 20px;
  background-color: #ffffff;
  font-size: 1rem;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

/* CTA Section */
.page-ban-ca__cta-section {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.page-ban-ca__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-ban-ca__cta-description {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* Buttons */
.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  max-width: 100%;
}

.page-ban-ca__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-ban-ca__btn-primary:hover {
  background-color: #d66f06;
  border-color: #d66f06;
}

.page-ban-ca__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-ban-ca__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1e87bb;
  border-color: #1e87bb;
}

.page-ban-ca__full-width-btn {
  display: block;
  margin-top: 20px;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-ban-ca__hero-content {
    text-align: center;
  }

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

  .page-ban-ca__how-to-play-grid {
    flex-direction: column;
  }

  .page-ban-ca__how-to-play-image {
    order: 1; /* Image above steps on smaller screens */
  }

  .page-ban-ca__how-to-play-steps {
    order: 2;
  }

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

@media (max-width: 768px) {
  /* HERO Section */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 40px !important;
  }

  .page-ban-ca__hero-container {
    padding: 30px 15px !important;
    gap: 30px !important;
  }

  .page-ban-ca__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
    margin-bottom: 15px !important;
  }

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

  .page-ban-ca__hero-side-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-ban-ca__hero-cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Introduction Section */
  .page-ban-ca__content-area {
    padding: 40px 15px !important;
  }

  .page-ban-ca__section-title {
    font-size: 1.8rem !important;
    margin-bottom: 30px !important;
  }

  .page-ban-ca__text-block {
    font-size: 0.95rem !important;
  }

  /* Features Section (Module 1 three columns) */
  .page-ban-ca__features-grid {
    grid-template-columns: 1fr !important; /* Single column */
    gap: 20px !important;
  }

  .page-ban-ca__icon-box-media {
    width: 200px !important; /* Maintain square aspect ratio */
    height: 200px !important;
    border-width: 3px !important;
  }

  .page-ban-ca__icon-box-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Ensure image fills the circle */
  }

  .page-ban-ca__feature-title {
    font-size: 1.3rem !important;
  }

  .page-ban-ca__feature-description {
    font-size: 0.9rem !important;
  }

  /* How to Play Section */
  .page-ban-ca__how-to-play-grid {
    gap: 30px !important;
  }

  .page-ban-ca__responsive-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-ban-ca__step-item {
    padding: 15px !important;
  }

  .page-ban-ca__step-title {
    font-size: 1.2rem !important;
  }

  .page-ban-ca__step-description {
    font-size: 0.95rem !important;
  }

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

  /* Promotion Section */
  .page-ban-ca__promotion-banner {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 20px !important;
  }

  .page-ban-ca__promotion-description {
    font-size: 1rem !important;
  }

  /* FAQ Section */
  .page-ban-ca__faq-item summary {
    padding: 15px !important;
    font-size: 1rem !important;
  }

  .page-ban-ca__faq-answer {
    padding: 15px !important;
    font-size: 0.95rem !important;
  }

  /* CTA Section */
  .page-ban-ca__cta-section {
    padding: 60px 0 !important;
  }

  .page-ban-ca__cta-description {
    font-size: 1rem !important;
    margin-bottom: 30px !important;
  }

  .page-ban-ca__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Generic Image and Button Responsiveness */
  .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,
  .page-ban-ca__feature-item,
  .page-ban-ca__promotion-content,
  .page-ban-ca__faq-list,
  .page-ban-ca__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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;
  }
}