/* style/ban-ca.css */

/* General styles for the page content wrapper */
.page-ban-ca {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Default body background is white */
}

/* Container for consistent content width */
.page-ban-ca__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

/* Section titles and descriptions */
.page-ban-ca__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #017439; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-ban-ca__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* 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: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.page-ban-ca__btn-primary {
  background-color: #017439; /* Main brand color */
  color: #FFFFFF;
  border: 2px solid #017439;
}

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

.page-ban-ca__btn-secondary {
  background-color: #FFFFFF;
  color: #017439; /* Main brand color */
  border: 2px solid #017439;
}

.page-ban-ca__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2e;
}

/* Specific button colors for promotion links */
.page-ban-ca__cta-buttons a[href*="redirect"] {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border-color: #C30808;
}

.page-ban-ca__cta-buttons a[href*="redirect"]:hover {
  background-color: #a00606;
  border-color: #a00606;
}


/* HERO SECTION */
.page-ban-ca__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #FFFFFF; /* Ensure white background for contrast with dark text */
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
}

.page-ban-ca__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Max width for hero image */
  margin-bottom: 30px;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-ban-ca__hero-content-wrapper {
  max-width: 800px;
  text-align: center;
  padding: 0 16px;
}

.page-ban-ca__hero-title {
  font-size: clamp(30px, 4.5vw, 52px); /* Responsive font size for H1 */
  font-weight: 800;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-ban-ca__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 600px; /* Limit button group width */
  margin: 0 auto;
}

/* INTRO SECTION - Three-column layout for features */
.page-ban-ca__intro-section {
  padding: 80px 0;
  background-color: #f8f8f8; /* Light background */
}

.page-ban-ca__features-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;
  padding: 20px;
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

.page-ban-ca__icon-box-media {
  width: 240px; /* Fixed size for circular image */
  height: 240px;
  aspect-ratio: 1/1; /* Maintain aspect ratio */
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #017439; /* Brand color border */
  box-shadow: 0 0 0 8px rgba(1, 116, 57, 0.2); /* Outer glow */
}

.page-ban-ca__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure image fills the circle */
  border-radius: 50%; /* Image itself is circular */
  display: block;
}

.page-ban-ca__feature-title {
  font-size: 24px;
  font-weight: bold;
  color: #017439;
  margin-bottom: 10px;
}

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

/* GAME TYPES SECTION */
.page-ban-ca__game-types-section {
  padding: 80px 0;
  background-color: #017439; /* Dark brand color background */
  color: #FFFFFF; /* Light text for dark background */
}

.page-ban-ca__game-types-section .page-ban-ca__section-title {
  color: #FFFFFF; /* White title for dark background */
}

.page-ban-ca__game-types-section .page-ban-ca__section-description {
  color: #f0f0f0; /* Light grey description */
}

.page-ban-ca__game-grid {
  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: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-ban-ca__game-card:hover {
  transform: translateY(-8px);
}

.page-ban-ca__game-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
}

.page-ban-ca__game-card-title {
  font-size: 22px;
  font-weight: bold;
  color: #017439;
  margin: 20px 15px 10px;
}

.page-ban-ca__game-card-description {
  font-size: 16px;
  color: #555555;
  padding: 0 15px 20px;
  line-height: 1.6;
}

.page-ban-ca__game-card .page-ban-ca__btn-secondary {
  margin-bottom: 20px;
}

/* GUIDE SECTION */
.page-ban-ca__guide-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* Light background */
}

.page-ban-ca__guide-steps {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 40px;
}

.page-ban-ca__guide-step-item {
  display: flex;
  align-items: center;
  gap: 40px;
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-ban-ca__guide-step-item:nth-child(even) {
  flex-direction: row-reverse; /* Alternate image and text */
}

.page-ban-ca__guide-step-image {
  flex: 1 1 50%;
  max-width: 50%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-ban-ca__guide-step-content {
  flex: 1 1 50%;
}

.page-ban-ca__guide-step-title {
  font-size: 26px;
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
}

.page-ban-ca__guide-step-content p {
  font-size: 17px;
  line-height: 1.7;
  color: #555555;
}

/* TIPS SECTION */
.page-ban-ca__tips-section {
  padding: 80px 0;
  background-color: #017439; /* Dark brand color background */
  color: #FFFFFF; /* Light text for dark background */
}

.page-ban-ca__tips-section .page-ban-ca__section-title {
  color: #FFFFFF;
}

.page-ban-ca__tips-section .page-ban-ca__section-description {
  color: #f0f0f0;
}

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

.page-ban-ca__tips-item {
  background-color: #FFFFFF;
  color: #333333;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-ban-ca__tips-item-title {
  font-size: 22px;
  font-weight: bold;
  color: #017439;
  margin-bottom: 10px;
}

.page-ban-ca__tips-item p {
  font-size: 16px;
  line-height: 1.6;
}

/* PROMO SECTION */
.page-ban-ca__promo-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* Light background */
}

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

.page-ban-ca__promo-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-ban-ca__promo-card:hover {
  transform: translateY(-8px);
}

.page-ban-ca__promo-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-ban-ca__promo-card-title {
  font-size: 22px;
  font-weight: bold;
  color: #017439;
  margin: 20px 15px 10px;
}

.page-ban-ca__promo-card-description {
  font-size: 16px;
  color: #555555;
  padding: 0 15px 20px;
  line-height: 1.6;
}

.page-ban-ca__promo-card .page-ban-ca__btn-primary {
  margin-bottom: 20px;
}

.page-ban-ca__cta-full-width {
  text-align: center;
  margin-top: 20px;
}

/* FAQ SECTION */
.page-ban-ca__faq-section {
  padding: 80px 0;
  background-color: #017439; /* Dark brand color background */
  color: #FFFFFF; /* Light text for dark background */
}

.page-ban-ca__faq-section .page-ban-ca__section-title {
  color: #FFFFFF;
}

.page-ban-ca__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-ban-ca__faq-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.page-ban-ca__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 19px;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* Remove default marker */
}

.page-ban-ca__faq-item[open] > .page-ban-ca__faq-question {
  background-color: #e0e0e0;
}

.page-ban-ca__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-ban-ca__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: #017439;
  margin-left: 15px;
}

.page-ban-ca__faq-item[open] .page-ban-ca__faq-toggle {
  content: "−"; /* Change to minus when open */
}

.page-ban-ca__faq-answer {
  padding: 15px 25px 20px;
  font-size: 16px;
  color: #555555;
  line-height: 1.7;
  background-color: #FFFFFF;
}

/* Universal image responsive styles */
.page-ban-ca img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .page-ban-ca__container {
    padding: 20px 15px !important; /* Adjust padding for mobile */
  }

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

  .page-ban-ca__section-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  /* HERO SECTION Mobile */
  .page-ban-ca__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
  }

  .page-ban-ca__hero-image-wrapper {
    margin-bottom: 20px;
    padding: 0 15px; /* Add padding to prevent image touching edges */
  }

  .page-ban-ca__hero-title {
    font-size: clamp(28px, 8vw, 40px);
    padding: 0 15px;
  }

  .page-ban-ca__hero-description {
    font-size: 17px;
    padding: 0 15px;
    margin-bottom: 25px;
  }

  .page-ban-ca__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
  }

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

  /* INTRO SECTION Mobile */
  .page-ban-ca__intro-section {
    padding: 40px 0;
  }

  .page-ban-ca__features-grid {
    grid-template-columns: 1fr !important; /* Single column for features */
    gap: 25px;
  }

  .page-ban-ca__icon-box-media {
    width: 180px;
    height: 180px;
    border-width: 3px;
    box-shadow: 0 0 0 6px rgba(1, 116, 57, 0.2);
  }

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

  /* GAME TYPES SECTION Mobile */
  .page-ban-ca__game-types-section {
    padding: 40px 0;
  }

  .page-ban-ca__game-grid {
    grid-template-columns: 1fr !important; /* Single column for game cards */
    gap: 25px;
  }

  .page-ban-ca__game-card-image {
    height: 200px; /* Adjust image height for mobile cards */
  }

  /* GUIDE SECTION Mobile */
  .page-ban-ca__guide-section {
    padding: 40px 0;
  }

  .page-ban-ca__guide-steps {
    gap: 30px;
  }

  .page-ban-ca__guide-step-item {
    flex-direction: column !important; /* Stack image and text vertically */
    gap: 20px;
    padding: 20px;
  }

  .page-ban-ca__guide-step-image {
    max-width: 100% !important; /* Image takes full width */
    flex: none !important;
  }

  .page-ban-ca__guide-step-content {
    flex: none !important;
    text-align: center;
  }

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

  .page-ban-ca__guide-step-content p {
    font-size: 15px;
  }

  /* TIPS SECTION Mobile */
  .page-ban-ca__tips-section {
    padding: 40px 0;
  }

  .page-ban-ca__tips-list {
    grid-template-columns: 1fr !important; /* Single column for tips */
    gap: 25px;
  }

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

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

  /* PROMO SECTION Mobile */
  .page-ban-ca__promo-section {
    padding: 40px 0;
  }

  .page-ban-ca__promo-grid {
    grid-template-columns: 1fr !important; /* Single column for promo cards */
    gap: 25px;
  }

  .page-ban-ca__promo-card-image {
    height: 180px; /* Adjust image height for mobile promo cards */
  }

  /* FAQ SECTION Mobile */
  .page-ban-ca__faq-section {
    padding: 40px 0;
  }

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

  .page-ban-ca__faq-question {
    font-size: 17px;
    padding: 15px 20px;
  }

  .page-ban-ca__faq-toggle {
    font-size: 20px;
  }

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

  /* Generic image and container mobile styles */
  .page-ban-ca img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-ban-ca__section,
  .page-ban-ca__card,
  .page-ban-ca__container,
  .page-ban-ca__hero-section,
  .page-ban-ca__intro-section,
  .page-ban-ca__game-types-section,
  .page-ban-ca__guide-section,
  .page-ban-ca__tips-section,
  .page-ban-ca__promo-section,
  .page-ban-ca__faq-section,
  .page-ban-ca__hero-image-wrapper,
  .page-ban-ca__hero-content-wrapper,
  .page-ban-ca__features-grid,
  .page-ban-ca__game-grid,
  .page-ban-ca__guide-steps,
  .page-ban-ca__tips-list,
  .page-ban-ca__promo-grid,
  .page-ban-ca__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}