/* style/ban-ca.css */
:root {
  --primary-color: #1A237E; /* Deep Blue */
  --secondary-color: #FFD700; /* Gold */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-light: #f4f7f6;
  --background-dark: #12184F;
  --accent-light: #FFEB3B;
  --border-color: #e0e0e0;
}

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

.page-ban-ca .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-ban-ca section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-ban-ca h1, .page-ban-ca h2, .page-ban-ca h3 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-ban-ca h1 {
  font-size: 3.2em;
  color: var(--text-light);
}

.page-ban-ca h2 {
  font-size: 2.5em;
}

.page-ban-ca h3 {
  font-size: 1.8em;
  color: var(--primary-color);
}

.page-ban-ca p {
  margin-bottom: 15px;
  text-align: justify;
}

.page-ban-ca .text-center {
  text-align: center;
}

.page-ban-ca .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-ban-ca .cta-button:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-ban-ca .cta-button.small-button {
  padding: 10px 25px;
  font-size: 16px;
  margin-top: 15px;
}

.page-ban-ca .link-text {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-ban-ca .link-text:hover {
  color: var(--secondary-color);
}

/* Hero Section */
.page-ban-ca .hero-section {
  position: relative;
  width: 100%;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--background-dark) 100%);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 550px; /* Ensure sufficient height */
}

.page-ban-ca .hero-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  gap: 40px;
}

.page-ban-ca .hero-content {
  flex: 1;
  text-align: left;
}

.page-ban-ca .hero-content h1 {
  font-size: 3.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  text-align: left;
  color: var(--text-light);
}

.page-ban-ca .hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
  text-align: left;
  color: #e0e0e0;
}

.page-ban-ca .hero-image {
  flex: 1;
  text-align: right;
}

.page-ban-ca .hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* Section Intro & Guide Layouts */
.page-ban-ca .section-intro, .page-ban-ca .section-guide {
  background-color: var(--background-light);
}

.page-ban-ca .image-content-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-ban-ca .image-content-layout.reverse {
  flex-direction: row-reverse;
}

.page-ban-ca .image-content-layout img {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-ban-ca .image-content-layout .text-content {
  flex: 1;
  max-width: 50%;
}

.page-ban-ca .image-content-layout .text-content h3 {
  text-align: left;
  margin-bottom: 15px;
}

.page-ban-ca .image-content-layout .text-content ul {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-ban-ca .image-content-layout .text-content li {
  margin-bottom: 8px;
}

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

.page-ban-ca .game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ban-ca .game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-ban-ca .game-card img {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-ban-ca .game-card h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  text-align: center;
}

.page-ban-ca .game-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-ban-ca .game-card h3 a:hover {
  color: var(--secondary-color);
}

.page-ban-ca .game-card p {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 20px;
  text-align: center;
}

.page-ban-ca .card-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-ban-ca .card-button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Guide Steps */
.page-ban-ca .guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-ban-ca .step-item {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.page-ban-ca .step-item h3 {
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 15px;
}

/* Strategy Grid */
.page-ban-ca .section-strategy {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-ban-ca .section-strategy h2 {
  color: var(--secondary-color);
}

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

.page-ban-ca .strategy-item {
  background-color: var(--primary-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-ban-ca .strategy-item img {
  max-width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-ban-ca .strategy-item h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-ban-ca .strategy-item p {
  color: #e0e0e0;
  text-align: justify;
}

/* Promotions Section */
.page-ban-ca .section-promotions {
  background-color: var(--background-light);
}

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

.page-ban-ca .promo-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
}

.page-ban-ca .promo-item img {
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-ban-ca .promo-item h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-ban-ca .promo-item p {
  font-size: 0.95em;
  color: #555;
  text-align: center;
}

/* Benefits Section */
.page-ban-ca .section-benefits {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-ban-ca .section-benefits h2 {
  color: var(--secondary-color);
}

.page-ban-ca .section-benefits p {
  color: #e0e0e0;
  text-align: center;
  margin-bottom: 30px;
}

.page-ban-ca .benefits-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-ban-ca .benefits-list li {
  background-color: var(--background-dark);
  border-radius: 10px;
  padding: 25px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  font-size: 1.1em;
  color: #e0e0e0;
  text-align: left;
}

.page-ban-ca .benefit-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(1.2); /* Subtle brightness for visibility, not color change */
}

/* FAQ Section */
.page-ban-ca .section-faq {
  background-color: var(--background-light);
}

.page-ban-ca .faq-list {
  margin-top: 40px;
}

.page-ban-ca .faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-ban-ca .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-ban-ca .faq-question:hover {
  background: #f5f5f5;
}

.page-ban-ca .faq-question h3 {
  margin: 0;
  color: var(--primary-color);
  text-align: left;
  flex-grow: 1;
}

.page-ban-ca .faq-toggle {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.page-ban-ca .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 15px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}

.page-ban-ca .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height */
  padding: 15px;
  border: 1px solid var(--border-color);
  border-top: none;
}

.page-ban-ca .faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--secondary-color);
}

.page-ban-ca .faq-answer p {
  margin-bottom: 10px;
  text-align: left;
}

.page-ban-ca .faq-answer .cta-button {
  margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-ban-ca .hero-content h1 {
    font-size: 3em;
  }
  .page-ban-ca .hero-content p {
    font-size: 1.1em;
  }
  .page-ban-ca h2 {
    font-size: 2.2em;
  }
  .page-ban-ca h3 {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-ban-ca section {
    padding: 40px 0;
  }
  .page-ban-ca .hero-section {
    padding: 60px 15px;
  }
  .page-ban-ca .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .page-ban-ca .hero-content, .page-ban-ca .hero-image {
    flex: none;
    max-width: 100%;
    text-align: center;
  }
  .page-ban-ca .hero-content h1 {
    font-size: 2.5em;
    text-align: center;
  }
  .page-ban-ca .hero-content p {
    font-size: 1em;
    text-align: center;
  }
  .page-ban-ca .cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-ban-ca .image-content-layout, .page-ban-ca .image-content-layout.reverse {
    flex-direction: column;
  }
  .page-ban-ca .image-content-layout img, .page-ban-ca .image-content-layout .text-content {
    max-width: 100%;
  }
  .page-ban-ca .image-content-layout .text-content h3 {
    text-align: center;
  }
  .page-ban-ca .game-cards, .page-ban-ca .guide-steps, .page-ban-ca .strategy-grid, .page-ban-ca .promo-grid, .page-ban-ca .benefits-list {
    grid-template-columns: 1fr;
  }
  .page-ban-ca .benefits-list li {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-ban-ca .faq-question {
    padding: 12px;
    flex-direction: column;
    align-items: flex-start;
  }
  .page-ban-ca .faq-question h3 {
    margin-bottom: 8px;
  }
  .page-ban-ca .faq-toggle {
    align-self: flex-end;
    margin-top: -30px;
  }
}

@media (max-width: 480px) {
  .page-ban-ca h1 {
    font-size: 2em;
  }
  .page-ban-ca h2 {
    font-size: 1.8em;
  }
  .page-ban-ca h3 {
    font-size: 1.4em;
  }
  .page-ban-ca .cta-button {
    padding: 10px 25px;
    font-size: 14px;
  }
  .page-ban-ca .hero-section {
    min-height: 450px;
  }
}