/* style/ban-ca.css */
.page-ban-ca {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Default background */
}

.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #f8f8f8;
}

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

.page-ban-ca__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  color: #333333;
}

.page-ban-ca__main-title {
  font-size: 2.8em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

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

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

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

.page-ban-ca__btn-primary {
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

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

.page-ban-ca__btn-secondary:hover {
  background-color: #017439;
  color: #FFFFFF;
}

/* General container for content sections */
.page-ban-ca__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
}

.page-ban-ca__section-title {
  font-size: 2.2em;
  font-weight: bold;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
}

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

/* Intro Section */
.page-ban-ca__intro-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #333333;
}

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

.page-ban-ca__feature-item {
  flex: 1 1 300px;
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.page-ban-ca__icon-box-media {
  width: 200px;
  height: 200px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #017439;
}

.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.5em;
  color: #017439;
  margin-bottom: 15px;
}

.page-ban-ca__feature-text {
  font-size: 1em;
  color: #666666;
}

/* Game Overview Section */
.page-ban-ca__game-overview-section {
  padding: 60px 0;
  background-color: #017439;
  color: #FFFFFF;
}

.page-ban-ca__game-overview-section .page-ban-ca__section-title,
.page-ban-ca__game-overview-section .page-ban-ca__section-description {
  color: #FFFFFF;
}

.page-ban-ca__game-types-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-bottom: 50px;
}

.page-ban-ca__game-type-card {
  flex: 1 1 300px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ban-ca__game-type-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-ban-ca__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-ban-ca__card-title {
  font-size: 1.4em;
  color: #FFFF00; /* Custom font color for titles in dark sections */
  margin: 20px 15px 10px;
}

.page-ban-ca__card-text {
  font-size: 0.95em;
  color: #f0f0f0;
  padding: 0 15px 20px;
}

.page-ban-ca__card-button {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
  margin-bottom: 20px;
  padding: 10px 20px;
  border-radius: 6px;
}

.page-ban-ca__card-button:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-ban-ca__sub-title {
  font-size: 1.8em;
  color: #FFFF00;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 30px;
}

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

.page-ban-ca__guide-item {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 20px;
  flex: 1 1 280px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.page-ban-ca__guide-number {
  background-color: #FFFF00;
  color: #017439;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
  flex-shrink: 0;
}

.page-ban-ca__guide-text {
  color: #f0f0f0;
  font-size: 1em;
  text-align: left;
}

/* Strategy Section */
.page-ban-ca__strategy-section {
  padding: 60px 0;
  background-color: #f8f8f8;
  color: #333333;
}

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

.page-ban-ca__strategy-item {
  flex: 1 1 300px;
  background-color: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  text-align: center;
}

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

.page-ban-ca__strategy-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-ban-ca__strategy-title {
  font-size: 1.4em;
  color: #017439;
  margin: 20px 15px 10px;
}

.page-ban-ca__strategy-text {
  font-size: 0.95em;
  color: #666666;
  padding: 0 15px 20px;
}

/* Promo Section */
.page-ban-ca__promo-section {
  padding: 60px 0;
  background-color: #017439;
  color: #FFFFFF;
}

.page-ban-ca__promo-section .page-ban-ca__section-title,
.page-ban-ca__promo-section .page-ban-ca__section-description {
  color: #FFFFFF;
}

.page-ban-ca__promo-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.page-ban-ca__promo-card {
  flex: 1 1 450px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Reusing card image, title, text, button styles from game types */

/* FAQ Section */
.page-ban-ca__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  color: #333333;
}

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

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

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #e8f5e9; /* Lighter green background for question */
  border-bottom: 1px solid #d4e7d4;
  list-style: none; /* For details/summary */
}

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

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

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

.page-ban-ca__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #555555;
  background-color: #fefefe;
}

/* CTA Section */
.page-ban-ca__cta-section {
  padding: 60px 0;
  background-color: #017439;
  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-buttons {
  justify-content: center;
  margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__main-title {
    font-size: 2.5em;
  }
  .page-ban-ca__section-title {
    font-size: 2em;
  }
  .page-ban-ca__hero-container {
    padding: 30px 16px;
    gap: 30px;
  }
  .page-ban-ca__guide-item {
    flex: 1 1 250px;
  }
}

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

  .page-ban-ca__hero-container {
    flex-direction: column;
    padding: 20px 15px;
    gap: 20px;
  }

  .page-ban-ca__hero-content,
  .page-ban-ca__hero-image {
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-ban-ca__main-title {
    font-size: clamp(1.8em, 7vw, 2.2em); /* Clamp for H1 font size */
    text-align: center;
  }

  .page-ban-ca__hero-description {
    font-size: 1em;
    text-align: center;
  }

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

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
  }

  /* General content sections and images */
  .page-ban-ca__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Module 1 Three-column Intro (feature images) */
  .page-ban-ca__features-grid,
  .page-ban-ca__game-types-grid,
  .page-ban-ca__strategy-grid,
  .page-ban-ca__promo-cards,
  .page-ban-ca__guide-steps {
    flex-direction: column;
    gap: 20px;
  }

  .page-ban-ca__feature-item,
  .page-ban-ca__game-type-card,
  .page-ban-ca__strategy-item,
  .page-ban-ca__promo-card,
  .page-ban-ca__guide-item {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .page-ban-ca__icon-box-media {
    width: 180px;
    height: 180px;
    border-width: 3px;
  }

  /* Game Tabs (not present on this non-homepage, but included for completeness as per checklist) */
  /* If .page-ban-ca__game-tabs were present, it would be flex-direction: column; */
  /* .page-ban-ca__tab-nav button { width: 100%; } */

  /* Tutorial/Promo/Trust/FAQ/Blog content modules */
  .page-ban-ca__intro-section,
  .page-ban-ca__game-overview-section,
  .page-ban-ca__strategy-section,
  .page-ban-ca__promo-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__cta-section {
    padding: 40px 0;
  }

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

  .page-ban-ca__faq-answer {
    padding: 10px 20px 15px;
  }

  .page-ban-ca__sub-title {
    font-size: 1.5em;
  }

  .page-ban-ca__card-button {
    width: calc(100% - 30px) !important; /* Adjust for padding in card */
    max-width: calc(100% - 30px) !important;
    margin-left: 15px;
    margin-right: 15px;
  }
}