/* style/ban-ca.css */
:root {
  --primary-color: #4A148C; /* Deep Violet */
  --secondary-color: #FFD700; /* Bright Gold */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f4f4f4;
  --background-dark: #2c0b4e; /* Darker shade of primary */
  --accent-color-light: #ffee58; /* Lighter gold for highlights */
  --border-color: #e0e0e0;
}

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

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

.page-ban-ca-hero {
  position: relative;
  width: 100%;
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--background-dark) 100%);
  color: var(--text-light);
  text-align: center;
  overflow: hidden;
}

.page-ban-ca-hero-image {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-ban-ca-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

.page-ban-ca-hero-content h1 .highlight {
  color: var(--secondary-color);
}

.page-ban-ca-hero-content p {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #e0e0e0;
}

.page-ban-ca-hero-content p a {
  color: var(--accent-color-light);
  text-decoration: underline;
}

.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: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

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

.page-ban-ca-cta-button.small {
  padding: 10px 25px;
  font-size: 1em;
}

.page-ban-ca-section {
  padding: 60px 0;
  text-align: center;
}

.page-ban-ca-section:nth-of-type(even) {
  background-color: #fcfcfc;
}

.page-ban-ca-section h2 {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-ban-ca-section h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

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

.page-ban-ca-section p {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-ban-ca-section p a {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
}

.page-ban-ca-section p a:hover {
  text-decoration: underline;
}

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

.page-ban-ca-feature-item, .page-ban-ca-download-item, .page-ban-ca-article-card {
  background: var(--text-light);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-ban-ca-feature-item:hover, .page-ban-ca-download-item:hover, .page-ban-ca-article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-ban-ca-feature-item img, .page-ban-ca-download-item img, .page-ban-ca-article-card img {
  max-width: 100%;
  height: 250px; /* Fixed height for consistency */
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-ban-ca-feature-item h3, .page-ban-ca-download-item h3, .page-ban-ca-article-card h3 {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

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

.page-ban-ca-article-card h3 a:hover {
  text-decoration: underline;
}

.page-ban-ca-feature-item p, .page-ban-ca-download-item p, .page-ban-ca-article-card p {
  font-size: 1em;
  color: var(--text-dark);
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-ban-ca-how-to-play ol {
  list-style-type: decimal;
  text-align: left;
  max-width: 800px;
  margin: 0 auto 30px;
  padding-left: 25px;
  color: var(--text-dark);
}

.page-ban-ca-how-to-play ol li {
  font-size: 1.1em;
  margin-bottom: 15px;
  line-height: 1.8;
}

.page-ban-ca-how-to-play ol li strong {
  color: var(--primary-color);
}

.page-ban-ca-how-to-play ol li a {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
}

.page-ban-ca-how-to-play ol li a:hover {
  text-decoration: underline;
}

.page-ban-ca-features-game ul, .page-ban-ca-security-support ul {
  list-style-type: none;
  text-align: left;
  max-width: 900px;
  margin: 0 auto 30px;
  padding: 0;
}

.page-ban-ca-features-game ul li, .page-ban-ca-security-support ul li {
  font-size: 1.1em;
  margin-bottom: 15px;
  line-height: 1.8;
  position: relative;
  padding-left: 30px;
  color: var(--text-dark);
}

.page-ban-ca-features-game ul li::before, .page-ban-ca-security-support ul li::before {
  content: '✔';
  color: var(--secondary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.page-ban-ca-read-more {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.95em;
  font-weight: bold;
  margin-top: auto; /* Push to bottom */
  transition: background-color 0.3s ease;
}

.page-ban-ca-read-more:hover {
  background: var(--background-dark);
}

/* FAQ Styles */
.faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--text-light);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #f0f0f0;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--primary-color);
  flex-grow: 1;
}

.faq-question h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.faq-question h3 a:hover {
  text-decoration: underline;
}

.faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--secondary-color);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #f9f9f9;
  color: var(--text-dark);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 15px 25px;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer p {
  margin: 10px 0;
  font-size: 1em;
  line-height: 1.6;
  text-align: left;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-ban-ca-hero-content h1 {
    font-size: 2.8em;
  }
  .page-ban-ca-hero-content p {
    font-size: 1.1em;
  }
  .page-ban-ca-section h2 {
    font-size: 2em;
  }
  .page-ban-ca-features-grid, .page-ban-ca-download-grid, .page-ban-ca-articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-ban-ca-hero {
    padding: 40px 0;
  }
  .page-ban-ca-hero-content h1 {
    font-size: 2.2em;
  }
  .page-ban-ca-hero-content p {
    font-size: 1em;
  }
  .page-ban-ca-cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-ban-ca-section {
    padding: 40px 0;
  }
  .page-ban-ca-section h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-ban-ca-section p {
    font-size: 0.95em;
  }
  .page-ban-ca-feature-item, .page-ban-ca-download-item, .page-ban-ca-article-card {
    padding: 20px;
  }
  .page-ban-ca-feature-item img, .page-ban-ca-download-item img, .page-ban-ca-article-card img {
    height: 200px;
  }
  .page-ban-ca-feature-item h3, .page-ban-ca-download-item h3, .page-ban-ca-article-card h3 {
    font-size: 1.3em;
  }
  .page-ban-ca-how-to-play ol {
    padding-left: 20px;
  }
  .page-ban-ca-how-to-play ol li, .page-ban-ca-features-game ul li, .page-ban-ca-security-support ul li {
    font-size: 1em;
    padding-left: 25px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 1.5em;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  .page-ban-ca-hero-content h1 {
    font-size: 1.8em;
  }
  .page-ban-ca-hero-content p {
    font-size: 0.9em;
  }
  .page-ban-ca-cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }
  .page-ban-ca-section h2 {
    font-size: 1.5em;
  }
  .page-ban-ca-features-grid, .page-ban-ca-download-grid, .page-ban-ca-articles-grid {
    grid-template-columns: 1fr;
  }
  .page-ban-ca-feature-item img, .page-ban-ca-download-item img, .page-ban-ca-article-card img {
    height: 180px;
  }
  .page-ban-ca-container {
    padding: 0 15px;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 1.2em;
  }
}