/* style/index-f8bet-2a-advantages.css */
.page-index-f8bet-2a-advantages {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background from shared.css */
}

.page-index-f8bet-2a-advantages__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-index-f8bet-2a-advantages__section-title,
.page-index-f8bet-2a-advantages__banner-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index-f8bet-2a-advantages__section-description,
.page-index-f8bet-2a-advantages__banner-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-index-f8bet-2a-advantages__hero-section {
  padding: var(--header-offset, 120px) 0 80px 0; /* Ensures content is below fixed header */
  background: linear-gradient(135deg, #017439, #00502a); /* Primary brand color gradient */
  color: #ffffff;
  text-align: center;
}

.page-index-f8bet-2a-advantages__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 900;
  color: #FFFF00; /* Register/Login font color */
}

.page-index-f8bet-2a-advantages__intro-text {
  font-size: 1.3em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.5;
}

.page-index-f8bet-2a-advantages__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-index-f8bet-2a-advantages__btn-primary,
.page-index-f8bet-2a-advantages__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-f8bet-2a-advantages__btn-primary {
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-index-f8bet-2a-advantages__btn-primary:hover {
  background-color: #e00b0b;
  border-color: #e00b0b;
}

.page-index-f8bet-2a-advantages__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Login font color */
  border: 2px solid #C30808; /* Login color */
}

.page-index-f8bet-2a-advantages__btn-secondary:hover {
  background-color: #C30808;
  color: #ffffff;
}

/* Video Section */
.page-index-f8bet-2a-advantages__video-section {
  background-color: #1a1a1a;
  padding: 80px 0;
  text-align: center;
}

.page-index-f8bet-2a-advantages__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 0 auto 20px auto;
  border-radius: 10px;
}

.page-index-f8bet-2a-advantages__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
  display: block;
}

.page-index-f8bet-2a-advantages__video-caption {
  font-size: 1em;
  color: #cccccc;
  margin-top: 20px;
}

/* Features Section */
.page-index-f8bet-2a-advantages__features-section {
  background-color: #2a2a2a;
  padding: 80px 0;
}

.page-index-f8bet-2a-advantages__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-index-f8bet-2a-advantages__feature-card {
  background-color: #3a3a3a; /* Slightly lighter dark background for cards */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index-f8bet-2a-advantages__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index-f8bet-2a-advantages__feature-icon {
  width: 100%; /* Ensure images fill card width */
  height: auto;
  max-width: 400px; /* Max width for content images */
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
}

.page-index-f8bet-2a-advantages__card-title {
  font-size: 1.8em;
  color: #FFFF00;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index-f8bet-2a-advantages__card-text {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
}

/* Game Types Section */
.page-index-f8bet-2a-advantages__game-types-section {
  background-color: #1a1a1a;
  padding: 80px 0;
}

.page-index-f8bet-2a-advantages__game-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-index-f8bet-2a-advantages__game-type-card {
  background-color: #3a3a3a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index-f8bet-2a-advantages__game-type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index-f8bet-2a-advantages__game-type-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency in grid */
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
}

.page-index-f8bet-2a-advantages__game-type-content {
  padding: 25px;
  color: #ffffff;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index-f8bet-2a-advantages__game-type-content .page-index-f8bet-2a-advantages__card-title {
  color: #FFFF00;
  font-size: 1.5em;
  margin-top: 0;
}

.page-index-f8bet-2a-advantages__game-type-content .page-index-f8bet-2a-advantages__card-text {
  font-size: 0.95em;
  margin-bottom: 20px;
}

/* CTA Banner */
.page-index-f8bet-2a-advantages__cta-banner {
  background: linear-gradient(90deg, #017439, #00502a);
  padding: 60px 0;
  text-align: center;
  color: #ffffff;
}

.page-index-f8bet-2a-advantages__banner-title {
  font-size: 2.8em;
  color: #FFFF00;
  margin-bottom: 15px;
}

.page-index-f8bet-2a-advantages__cta-banner .page-index-f8bet-2a-advantages__btn-primary {
  margin-top: 30px;
  background-color: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}

.page-index-f8bet-2a-advantages__cta-banner .page-index-f8bet-2a-advantages__btn-primary:hover {
  background-color: #e00b0b;
  border-color: #e00b0b;
}

/* FAQ Section */
.page-index-f8bet-2a-advantages__faq-section {
  background-color: #2a2a2a;
  padding: 80px 0;
}

.page-index-f8bet-2a-advantages__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-index-f8bet-2a-advantages__faq-item {
  background-color: #3a3a3a;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-index-f8bet-2a-advantages__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #017439; /* Brand color for question background */
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index-f8bet-2a-advantages__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #ffffff;
}

.page-index-f8bet-2a-advantages__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: #FFFF00;
}

.page-index-f8bet-2a-advantages__faq-item.active .page-index-f8bet-2a-advantages__faq-toggle {
  transform: rotate(45deg);
}

.page-index-f8bet-2a-advantages__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #3a3a3a;
  color: #f0f0f0;
}

.page-index-f8bet-2a-advantages__faq-item.active .page-index-f8bet-2a-advantages__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

/* Color Contrast System - Ensure text is visible on dark body background */
.page-index-f8bet-2a-advantages p,
.page-index-f8bet-2a-advantages li,
.page-index-f8bet-2a-advantages h2,
.page-index-f8bet-2a-advantages h3 {
  color: #ffffff; /* Default for dark body background */
}

/* Specific overrides for cards or light backgrounds */
.page-index-f8bet-2a-advantages__light-bg {
  background-color: #ffffff; /* Example light background */
  color: #333333; /* Dark text for light background */
}

.page-index-f8bet-2a-advantages__light-bg h3 {
  color: #017439; /* Brand color for titles on light background */
}

/* Ensure images maintain original color */
.page-index-f8bet-2a-advantages img {
  filter: none; /* Prohibit any CSS filters */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-f8bet-2a-advantages__main-title {
    font-size: 2.8em;
  }

  .page-index-f8bet-2a-advantages__section-title,
  .page-index-f8bet-2a-advantages__banner-title {
    font-size: 2em;
  }

  .page-index-f8bet-2a-advantages__feature-grid,
  .page-index-f8bet-2a-advantages__game-type-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-index-f8bet-2a-advantages {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-index-f8bet-2a-advantages__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure proper spacing for mobile */
    padding-bottom: 60px;
  }

  .page-index-f8bet-2a-advantages__main-title {
    font-size: 2.2em;
  }

  .page-index-f8bet-2a-advantages__intro-text {
    font-size: 1.1em;
  }

  .page-index-f8bet-2a-advantages__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index-f8bet-2a-advantages__btn-primary,
  .page-index-f8bet-2a-advantages__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    margin: 0 auto;
  }

  .page-index-f8bet-2a-advantages__video-section,
  .page-index-f8bet-2a-advantages__features-section,
  .page-index-f8bet-2a-advantages__game-types-section,
  .page-index-f8bet-2a-advantages__cta-banner,
  .page-index-f8bet-2a-advantages__faq-section {
    padding: 40px 0;
  }

  .page-index-f8bet-2a-advantages__section-title,
  .page-index-f8bet-2a-advantages__banner-title {
    font-size: 1.8em;
  }

  .page-index-f8bet-2a-advantages__section-description,
  .page-index-f8bet-2a-advantages__banner-text {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  /* Mobile image and video responsiveness */
  .page-index-f8bet-2a-advantages img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-height: 200px !important; /* Enforce minimum size */
  }

  .page-index-f8bet-2a-advantages video,
  .page-index-f8bet-2a-advantages__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-index-f8bet-2a-advantages__video-section,
  .page-index-f8bet-2a-advantages__video-container,
  .page-index-f8bet-2a-advantages__video-wrapper,
  .page-index-f8bet-2a-advantages__feature-card,
  .page-index-f8bet-2a-advantages__game-type-card,
  .page-index-f8bet-2a-advantages__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-index-f8bet-2a-advantages__video-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .page-index-f8bet-2a-advantages__faq-question,
  .page-index-f8bet-2a-advantages__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-index-f8bet-2a-advantages__main-title {
    font-size: 1.8em;
  }
  .page-index-f8bet-2a-advantages__section-title,
  .page-index-f8bet-2a-advantages__banner-title {
    font-size: 1.5em;
  }
  .page-index-f8bet-2a-advantages__card-title {
    font-size: 1.3em;
  }
}