/* style/ban-ca.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-color: #C30808;
  --login-color: #C30808;
  --register-login-font-color: #FFFF00;
  --background-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --gap-md: 24px;
  --gap-lg: 40px;
  --padding-section: 60px 0;
}

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

.page-ban-ca__content-area {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-ban-ca__section-title {
  font-size: 3em;
  font-weight: bold;
  text-align: center;
  margin-bottom: var(--gap-md);
  color: var(--primary-color);
  line-height: 1.2;
}

.page-ban-ca__section-subtitle {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: var(--gap-lg);
  color: var(--text-dark);
}

.page-ban-ca__text-block {
  margin-bottom: var(--gap-md);
  font-size: 1.1em;
  text-align: justify;
}

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

.page-ban-ca__btn-primary {
  background-color: var(--register-color); /* Custom Register color */
  color: var(--register-login-font-color); /* Custom Register font color */
  border: 2px solid var(--register-color);
}

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

.page-ban-ca__btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.page-ban-ca__btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

/* Hero Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: var(--padding-section);
  background-color: var(--primary-color); /* Dark background */
  color: var(--text-light);
}

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

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

.page-ban-ca__hero-title {
  font-size: 3.8em;
  font-weight: 900;
  margin-bottom: var(--gap-md);
  line-height: 1.1;
  color: var(--text-light);
}

.page-ban-ca__hero-description {
  font-size: 1.3em;
  margin-bottom: var(--gap-lg);
  color: var(--text-light);
}

.page-ban-ca__hero-cta-buttons {
  display: flex;
  gap: var(--gap-md);
  flex-wrap: wrap;
}

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

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

/* Intro Section */
.page-ban-ca__intro-section {
  padding: var(--padding-section) 0;
  background-color: var(--background-color);
}

/* Why Choose Section (Feature Grid) */
.page-ban-ca__why-choose-section {
  padding: var(--padding-section) 0;
  background-color: #f8f9fa;
}

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

.page-ban-ca__feature-item {
  background-color: var(--secondary-color);
  padding: var(--gap-md);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-ban-ca__icon-box-media {
  width: 240px;
  height: 240px;
  aspect-ratio: 1 / 1;
  margin: 0 auto var(--gap-md);
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.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.8em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-ban-ca__feature-description {
  font-size: 1em;
  color: var(--text-dark);
}

/* Featured Games Section */
.page-ban-ca__featured-games-section {
  padding: var(--padding-section) 0;
  background-color: var(--primary-color); /* Dark background */
  color: var(--text-light);
}

.page-ban-ca__featured-games-section .page-ban-ca__section-title,
.page-ban-ca__featured-games-section .page-ban-ca__section-subtitle {
  color: var(--text-light);
}

.page-ban-ca__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap-lg);
  margin-top: var(--gap-lg);
}

.page-ban-ca__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: var(--gap-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-ban-ca__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: var(--gap-md);
  display: block;
}

.page-ban-ca__game-title {
  font-size: 1.8em;
  color: var(--text-light);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-ban-ca__game-description {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--gap-md);
  padding: 0 15px;
  flex-grow: 1;
}

.page-ban-ca__game-card .page-ban-ca__btn-primary {
  margin-top: auto; /* Push button to bottom */
}

/* Guide Section */
.page-ban-ca__guide-section {
  padding: var(--padding-section) 0;
  background-color: var(--background-color);
}

.page-ban-ca__guide-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-lg);
  align-items: center;
}

.page-ban-ca__guide-text {
  flex: 1 1 50%;
  min-width: 300px;
}

.page-ban-ca__guide-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--gap-md) 0;
}

.page-ban-ca__guide-list li {
  background-color: #f0f0f0;
  padding: var(--gap-md);
  border-radius: 8px;
  margin-bottom: var(--gap-md);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__guide-step-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-ban-ca__guide-list p {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 0;
}

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

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

/* Tips Section */
.page-ban-ca__tips-section {
  padding: var(--padding-section) 0;
  background-color: #f8f9fa;
}

.page-ban-ca__tips-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap-md);
}

.page-ban-ca__tips-list li {
  background-color: var(--secondary-color);
  padding: var(--gap-md);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.page-ban-ca__tip-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-ban-ca__tips-list p {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 0;
}

/* Promo Section */
.page-ban-ca__promo-section {
  padding: var(--padding-section) 0;
  background-color: var(--primary-color); /* Dark background */
  color: var(--text-light);
}

.page-ban-ca__promo-section .page-ban-ca__section-title,
.page-ban-ca__promo-section .page-ban-ca__section-subtitle {
  color: var(--text-light);
}

.page-ban-ca__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap-lg);
  margin-top: var(--gap-lg);
}

.page-ban-ca__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: var(--gap-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-ban-ca__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: var(--gap-md);
  display: block;
}

.page-ban-ca__promo-title {
  font-size: 1.8em;
  color: var(--text-light);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-ban-ca__promo-description {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--gap-md);
  padding: 0 15px;
  flex-grow: 1;
}

.page-ban-ca__promo-card .page-ban-ca__btn-secondary {
  margin-top: auto; /* Push button to bottom */
  color: var(--text-light);
  border-color: var(--text-light);
}

.page-ban-ca__promo-card .page-ban-ca__btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

.page-ban-ca__promo-cta {
  text-align: center;
  margin-top: var(--gap-lg);
}

/* FAQ Section */
.page-ban-ca__faq-section {
  padding: var(--padding-section) 0;
  background-color: var(--background-color);
}

.page-ban-ca__faq-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-lg);
  align-items: flex-start;
}

.page-ban-ca__faq-image-container {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

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

.page-ban-ca__faq-items {
  flex: 1 1 50%;
  min-width: 300px;
}

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

.page-ban-ca__faq-item summary {
  display: block;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  color: var(--primary-color);
  list-style: none;
  position: relative;
}

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

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-ban-ca__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--primary-color);
  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 20px 18px 20px;
  font-size: 1em;
  color: var(--text-dark);
}

/* Conclusion Section */
.page-ban-ca__conclusion-section {
  padding: var(--padding-section) 0;
  background-color: var(--primary-color); /* Dark background */
  color: var(--text-light);
  text-align: center;
}

.page-ban-ca__conclusion-section .page-ban-ca__section-title,
.page-ban-ca__conclusion-section .page-ban-ca__text-block {
  color: var(--text-light);
}

.page-ban-ca__conclusion-cta {
  margin-top: var(--gap-lg);
}

/* General image rules for content area */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ban-ca__hero-title {
    font-size: 3.2em;
  }
  .page-ban-ca__hero-description {
    font-size: 1.15em;
  }
  .page-ban-ca__section-title {
    font-size: 2.5em;
  }
  .page-ban-ca__icon-box-media {
    width: 200px;
    height: 200px;
  }
  .page-ban-ca__game-image, .page-ban-ca__promo-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Ensure small padding */
  }
  .page-ban-ca__hero-container {
    flex-direction: column;
    padding: 20px 15px;
  }
  .page-ban-ca__hero-content,
  .page-ban-ca__hero-image {
    flex: 1 1 100%;
    text-align: center;
  }
  .page-ban-ca__hero-title {
    font-size: 2.5em;
  }
  .page-ban-ca__hero-description {
    font-size: 1em;
  }
  .page-ban-ca__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-ban-ca__btn-primary,
  .page-ban-ca__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-ban-ca__section-title {
    font-size: 2em;
    margin-bottom: var(--gap-md);
  }
  .page-ban-ca__section-subtitle {
    font-size: 1em;
    margin-bottom: var(--gap-md);
  }
  .page-ban-ca__text-block {
    font-size: 0.95em;
  }
  .page-ban-ca__content-area {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-ban-ca__features-grid,
  .page-ban-ca__games-grid,
  .page-ban-ca__promo-grid {
    grid-template-columns: 1fr;
    gap: var(--gap-md);
  }
  .page-ban-ca__feature-item,
  .page-ban-ca__game-card,
  .page-ban-ca__promo-card {
    padding: 20px;
  }
  .page-ban-ca__icon-box-media {
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
  }
  .page-ban-ca__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }
  .page-ban-ca__game-image, .page-ban-ca__promo-image {
    height: 150px;
    margin-bottom: 15px;
  }
  .page-ban-ca__game-title, .page-ban-ca__promo-title {
    font-size: 1.5em;
  }
  .page-ban-ca__guide-content {
    flex-direction: column-reverse; /* Text above image for guide */
  }
  .page-ban-ca__guide-text,
  .page-ban-ca__guide-image {
    flex: 1 1 100%;
  }
  .page-ban-ca__guide-list li {
    padding: 15px;
    margin-bottom: 15px;
  }
  .page-ban-ca__guide-step-title {
    font-size: 1.2em;
  }
  .page-ban-ca__tips-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-ban-ca__tip-title {
    font-size: 1.3em;
  }
  .page-ban-ca__faq-grid {
    flex-direction: column;
  }
  .page-ban-ca__faq-image-container,
  .page-ban-ca__faq-items {
    flex: 1 1 100%;
  }
  .page-ban-ca__faq-item summary {
    font-size: 1em;
    padding: 15px;
  }
  .page-ban-ca__faq-answer {
    padding: 0 15px 15px 15px;
  }
  /* Universal image responsive for content area */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-ban-ca__hero-image img,
  .page-ban-ca__guide-image img,
  .page-ban-ca__faq-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-ban-ca__hero-cta-buttons,
  .page-ban-ca__promo-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-ban-ca__hero-title {
    font-size: 2em;
  }
  .page-ban-ca__section-title {
    font-size: 1.8em;
  }
  .page-ban-ca__hero-cta-buttons {
    flex-direction: column;
  }
  .page-ban-ca__btn-primary, .page-ban-ca__btn-secondary {
    padding: 10px 15px;
    font-size: 0.9em;
  }
  .page-ban-ca__icon-box-media {
    width: 120px;
    height: 120px;
  }
  .page-ban-ca__game-image, .page-ban-ca__promo-image {
    height: 120px;
  }
  .page-ban-ca__game-title, .page-ban-ca__promo-title {
    font-size: 1.3em;
  }
  .page-ban-ca__guide-step-title {
    font-size: 1.1em;
  }
  .page-ban-ca__tip-title {
    font-size: 1.2em;
  }
  .page-ban-ca__faq-item summary {
    font-size: 0.95em;
  }
}