/* style/ban-ca.css */

/* Base Styles */
.page-ban-ca {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Text Main */
  background-color: #F5F7FA; /* Background */
}

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

.page-ban-ca__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #E53935; /* Primary color for titles */
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

.page-ban-ca__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #FF5A4F 0%, #E53935 100%);
  border-radius: 5px;
}

.page-ban-ca__section-title--light {
  color: #ffffff;
}

.page-ban-ca__text-block {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: justify;
}

.page-ban-ca__text-block--light {
  color: #f0f0f0;
}

.page-ban-ca__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

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

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

.page-ban-ca__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-ban-ca__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
}

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

.page-ban-ca__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.2);
}

.page-ban-ca__btn-small {
  padding: 10px 20px;
  font-size: 16px;
}

.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hero Section */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Adjusted for header offset */
  padding-bottom: 60px;
  background-color: #F5F7FA;
}

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

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

.page-ban-ca__main-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: #333333;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-ban-ca__hero-description {
  font-size: 18px;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 30px;
}

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

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

/* Features Section */
.page-ban-ca__features-section {
  padding: 60px 0;
  background-color: #E53935; /* Primary brand color */
  color: #ffffff;
}

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

.page-ban-ca__feature-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.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 #FF5A4F; /* Accent border */
  box-shadow: 0 0 0 8px rgba(255, 90, 79, 0.2);
}

.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: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-ban-ca__feature-description {
  font-size: 16px;
  line-height: 1.6;
  color: #f0f0f0;
}

/* Games Section */
.page-ban-ca__games-section {
  padding: 60px 0;
  background-color: #F5F7FA;
}

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

.page-ban-ca__game-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
}

.page-ban-ca__game-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-ban-ca__game-title {
  font-size: 22px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-ban-ca__game-description {
  font-size: 15px;
  line-height: 1.5;
  color: #555555;
  margin-bottom: 20px;
  padding: 0 15px;
}

/* Guide Section */
.page-ban-ca__guide-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-ban-ca__guide-item {
  text-align: center;
  padding: 30px;
  border-radius: 12px;
  background: #F5F7FA;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: transform 0.3s ease;
}

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

.page-ban-ca__guide-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3);
}

.page-ban-ca__guide-title {
  font-size: 20px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 10px;
}

.page-ban-ca__guide-description {
  font-size: 15px;
  line-height: 1.6;
  color: #555555;
}

/* Promo Section */
.page-ban-ca__promo-section {
  padding: 60px 0;
  background-color: #E53935; /* Primary brand color */
  color: #ffffff;
}

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

.page-ban-ca__promo-card {
  background: 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: 20px;
}

.page-ban-ca__promo-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-ban-ca__promo-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-ban-ca__promo-description {
  font-size: 15px;
  line-height: 1.5;
  color: #f0f0f0;
  margin-bottom: 20px;
  padding: 0 15px;
}

/* Why Choose Section */
.page-ban-ca__why-choose-section {
  padding: 60px 0;
  background-color: #F5F7FA;
}

.page-ban-ca__reason-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.page-ban-ca__reason-item {
  font-size: 17px;
  line-height: 1.6;
  color: #333333;
  padding-left: 30px;
  position: relative;
  text-align: left;
}

.page-ban-ca__reason-item::before {
  content: '✓';
  color: #E53935;
  font-weight: 700;
  position: absolute;
  left: 0;
  top: 0;
}

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

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

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

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  list-style: none; /* For details/summary */
}

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

.page-ban-ca__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  color: #E53935;
  margin-left: 15px;
}

.page-ban-ca__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
}

/* Responsive Styles */

@media (max-width: 1024px) {
  .page-ban-ca__container {
    padding: 30px 15px;
  }

  .page-ban-ca__section-title {
    font-size: 28px;
    margin-bottom: 25px;
  }

  .page-ban-ca__hero-container {
    flex-direction: column;
    text-align: center;
    padding: 30px 15px;
  }

  .page-ban-ca__hero-content {
    text-align: center;
  }

  .page-ban-ca__main-title {
    font-size: clamp(28px, 6vw, 40px);
  }

  .page-ban-ca__hero-description {
    font-size: 17px;
  }

  .page-ban-ca__hero-image {
    order: -1; /* Image above text on smaller screens */
  }

  .page-ban-ca__feature-grid, 
  .page-ban-ca__game-list, 
  .page-ban-ca__guide-steps, 
  .page-ban-ca__promo-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .page-ban-ca__reason-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-ban-ca__reason-item {
    font-size: 16px;
  }

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

  .page-ban-ca__game-card img,
  .page-ban-ca__promo-card img {
    
  }
}

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

  .page-ban-ca__hero-container {
    padding: 20px 15px;
    gap: 30px;
  }

  .page-ban-ca__main-title {
    font-size: clamp(26px, 7vw, 36px);
  }

  .page-ban-ca__hero-description {
    font-size: 16px;
  }

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* General Content Sections */
  .page-ban-ca__container {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-ban-ca__section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .page-ban-ca__text-block {
    font-size: 15px;
  }

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

  .page-ban-ca__icon-box-media {
    width: 150px;
    height: 150px;
    border-width: 3px;
    box-shadow: 0 0 0 6px rgba(255, 90, 79, 0.2);
  }

  .page-ban-ca__feature-title {
    font-size: 20px;
  }

  .page-ban-ca__feature-description {
    font-size: 15px;
  }

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

  .page-ban-ca__game-card img {
    
  }

  .page-ban-ca__game-title {
    font-size: 20px;
  }

  /* Guide Section */
  .page-ban-ca__guide-steps {
    grid-template-columns: 1fr;
  }

  .page-ban-ca__guide-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .page-ban-ca__guide-title {
    font-size: 18px;
  }

  /* Promo Section */
  .page-ban-ca__promo-cards {
    grid-template-columns: 1fr;
  }

  .page-ban-ca__promo-card img {
    
  }

  .page-ban-ca__promo-title {
    font-size: 20px;
  }

  /* Why Choose Section */
  .page-ban-ca__reason-list {
    grid-template-columns: 1fr;
  }

  .page-ban-ca__reason-item {
    font-size: 15px;
  }

  /* FAQ Section */
  .page-ban-ca__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }

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

  /* Universal Image Responsiveness for content area */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Exception for round images in feature section */
  .page-ban-ca__icon-box-media img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
  }

  /* Ensure all containers with images also adapt */
  .page-ban-ca__hero-image,
  .page-ban-ca__game-card,
  .page-ban-ca__promo-card,
  .page-ban-ca__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}