/* style/ban-ca.css */

:root {
  --page-ban-ca-primary-color: #017439;
  --page-ban-ca-secondary-color: #FFFFFF;
  --page-ban-ca-register-color: #C30808;
  --page-ban-ca-login-color: #C30808;
  --page-ban-ca-background-color: #FFFFFF;
  --page-ban-ca-register-login-font-color: #FFFF00;
  --page-ban-ca-text-dark: #333333;
  --page-ban-ca-text-light: #ffffff;
}

.page-ban-ca {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-ban-ca-text-dark);
  background-color: var(--page-ban-ca-background-color);
}

/* Hero Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, header offset handled by body */
  padding-bottom: 60px;
  background-color: var(--page-ban-ca-secondary-color);
}

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

.page-ban-ca__hero-content {
  flex: 1 1 500px; /* Allow content to grow/shrink */
  color: var(--page-ban-ca-text-dark);
}

.page-ban-ca__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--page-ban-ca-primary-color);
}

.page-ban-ca__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 600px;
}

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

.page-ban-ca__btn-primary,
.page-ban-ca__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-ban-ca__btn-primary {
  background-color: var(--page-ban-ca-register-color); /* Use register color for primary CTA */
  color: var(--page-ban-ca-register-login-font-color);
  border-color: var(--page-ban-ca-register-color);
}

.page-ban-ca__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
  transform: translateY(-2px);
}

.page-ban-ca__btn-secondary {
  background-color: var(--page-ban-ca-primary-color);
  color: var(--page-ban-ca-secondary-color);
  border-color: var(--page-ban-ca-primary-color);
}

.page-ban-ca__btn-secondary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
  transform: translateY(-2px);
}

.page-ban-ca__hero-image {
  flex: 1 1 500px; /* Allow image to grow/shrink */
  text-align: center;
}

.page-ban-ca__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

/* General Section Styles */
.page-ban-ca__intro-section,
.page-ban-ca__game-showcase-section,
.page-ban-ca__guide-section,
.page-ban-ca__strategy-section,
.page-ban-ca__faq-section,
.page-ban-ca__cta-final-section {
  padding: 80px 0;
}

.page-ban-ca__dark-bg {
  background-color: var(--page-ban-ca-primary-color);
  color: var(--page-ban-ca-text-light);
}

.page-ban-ca__light-bg {
  background-color: var(--page-ban-ca-background-color);
  color: var(--page-ban-ca-text-dark);
}

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

.page-ban-ca__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section */
}

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

/* Intro Section Features Grid */
.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;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: var(--page-ban-ca-text-light);
}

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

.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(--page-ban-ca-secondary-color);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.2);
}

.page-ban-ca__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

.page-ban-ca__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--page-ban-ca-secondary-color);
}

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

/* Game Showcase Section */
.page-ban-ca__game-showcase-section {
  background-color: var(--page-ban-ca-background-color);
}

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

.page-ban-ca__game-card {
  background-color: var(--page-ban-ca-secondary-color);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  color: var(--page-ban-ca-text-dark);
}

.page-ban-ca__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

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

.page-ban-ca__game-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 20px 15px 10px;
  color: var(--page-ban-ca-primary-color);
}

.page-ban-ca__game-description {
  font-size: 0.95rem;
  padding: 0 15px 20px;
  color: #555;
}

.page-ban-ca__btn-small {
  display: inline-block;
  background-color: var(--page-ban-ca-primary-color);
  color: var(--page-ban-ca-secondary-color);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-ban-ca__btn-small:hover {
  background-color: #005a2e;
}

/* Guide Section */
.page-ban-ca__guide-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}

.page-ban-ca__guide-item {
  background-color: var(--page-ban-ca-secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.page-ban-ca__guide-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.page-ban-ca__guide-item p {
  font-size: 1.05rem;
  color: #555;
}

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

/* Strategy Section */
.page-ban-ca__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-ban-ca__strategy-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  transition: transform 0.3s ease;
  color: var(--page-ban-ca-text-light);
}

.page-ban-ca__strategy-card:hover {
  transform: translateY(-10px);
}

.page-ban-ca__strategy-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-ban-ca__strategy-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 20px 10px;
  color: var(--page-ban-ca-secondary-color);
}

.page-ban-ca__strategy-card p {
  font-size: 1rem;
  padding: 0 20px;
  opacity: 0.9;
}

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

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

.page-ban-ca__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--page-ban-ca-primary-color);
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

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

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

.page-ban-ca__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  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: 0 25px 20px;
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
}

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

/* Final CTA Section */
.page-ban-ca__cta-final-section .page-ban-ca__section-title,
.page-ban-ca__cta-final-section .page-ban-ca__section-description {
  color: var(--page-ban-ca-text-light);
}

.page-ban-ca__cta-final-section .page-ban-ca__cta-buttons {
  justify-content: center;
  margin-top: 40px;
}

/* Image minimum size enforcement */
.page-ban-ca img:not(.page-ban-ca__icon-box-media img) {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__hero-container {
    padding: 30px 15px;
    gap: 30px;
  }

  .page-ban-ca__main-title {
    font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  }

  .page-ban-ca__hero-description {
    font-size: 1.05rem;
  }

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

  .page-ban-ca__intro-section,
  .page-ban-ca__game-showcase-section,
  .page-ban-ca__guide-section,
  .page-ban-ca__strategy-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__cta-final-section {
    padding: 60px 0;
  }

  .page-ban-ca__section-title {
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  }

  .page-ban-ca__section-description {
    font-size: 1rem;
    margin-bottom: 40px;
  }

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

  .page-ban-ca__icon-box-media {
    width: 160px;
    height: 160px;
  }

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

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

  .page-ban-ca__game-title {
    font-size: 1.3rem;
  }

  .page-ban-ca__guide-item {
    padding: 25px;
  }

  .page-ban-ca__guide-step-title {
    font-size: 1.4rem;
  }

  .page-ban-ca__strategy-image {
    height: 220px;
  }

  .page-ban-ca__strategy-title {
    font-size: 1.3rem;
  }

  .page-ban-ca__faq-item summary {
    font-size: 1.05rem;
    padding: 18px 22px;
  }

  .page-ban-ca__faq-answer {
    padding: 0 22px 18px;
  }
}

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

  .page-ban-ca__hero-container {
    flex-direction: column-reverse; /* Image above content */
    text-align: center;
    padding: 20px 15px;
    gap: 30px;
  }

  .page-ban-ca__hero-content {
    order: 2; /* Content after image */
  }

  .page-ban-ca__hero-image {
    order: 1; /* Image first */
    margin-bottom: 20px;
  }

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

  .page-ban-ca__hero-description {
    font-size: 1rem;
  }

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

  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

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

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

  .page-ban-ca__icon-box-media {
    width: 150px; /* Keep square */
    height: 150px; /* Keep square */
    margin: 0 auto 15px;
  }

  .page-ban-ca__icon-box-media img {
    min- /* Adjust min size for mobile square */
    min-
  }

  .page-ban-ca__feature-title {
    font-size: 1.2rem;
  }

  .page-ban-ca__feature-text {
    font-size: 0.95rem;
  }

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

  .page-ban-ca__game-card {
    margin: 0 auto;
    max-width: 350px;
  }

  .page-ban-ca__game-image {
    height: 160px;
    min-width: 200px !important;
    min-height: 160px !important;
  }

  .page-ban-ca__btn-small {
    width: auto !important;
    max-width: 100% !important;
    padding: 8px 15px !important;
    font-size: 0.9rem !important;
  }

  /* Guide Section */
  .page-ban-ca__guide-list {
    padding: 0 15px;
  }

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

  .page-ban-ca__guide-step-title {
    font-size: 1.3rem;
  }

  .page-ban-ca__guide-item p {
    font-size: 0.95rem;
  }

  .page-ban-ca__cta-center .page-ban-ca__btn-primary {
    width: calc(100% - 30px) !important; /* Account for container padding */
    max-width: calc(100% - 30px) !important;
    margin: 0 15px;
  }

  /* Strategy Section */
  .page-ban-ca__strategy-grid {
    grid-template-columns: 1fr;
  }

  .page-ban-ca__strategy-card {
    max-width: 350px;
    margin: 0 auto;
  }

  .page-ban-ca__strategy-image {
    height: 200px;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-ban-ca__strategy-title {
    font-size: 1.3rem;
  }

  .page-ban-ca__strategy-card p {
    font-size: 0.95rem;
  }

  /* FAQ Section */
  .page-ban-ca__faq-list {
    padding: 0 15px;
  }

  .page-ban-ca__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-ban-ca__faq-toggle {
    font-size: 1.5rem;
  }

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

  /* Final CTA Section */
  .page-ban-ca__cta-final-section .page-ban-ca__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  /* General content container and image responsiveness */
  .page-ban-ca__content-container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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