/* style/blog-what-is-bet88-code.css */

/* Custom Colors */
:root {
  --bet88-primary-color: #11A84E;
  --bet88-secondary-color: #22C768;
  --bet88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --bet88-card-bg: #11271B;
  --bet88-background: #08160F;
  --bet88-text-main: #F2FFF6;
  --bet88-text-secondary: #A7D9B8;
  --bet88-border: #2E7A4E;
  --bet88-glow: #57E38D;
  --bet88-gold: #F2C14E;
  --bet88-divider: #1E3A2A;
  --bet88-deep-green: #0A4B2C;
}

/* Base styles for the page content, assuming body background is dark from shared.css */
.page-blog-what-is-bet88-code {
  background-color: var(--bet88-background);
  color: var(--bet88-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-blog-what-is-bet88-code__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-blog-what-is-bet88-code__section-title {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  color: var(--bet88-text-main);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-blog-what-is-bet88-code__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--bet88-primary-color);
  border-radius: 2px;
}

.page-blog-what-is-bet88-code__paragraph {
  margin-bottom: 1em;
  color: var(--bet88-text-main);
}

.page-blog-what-is-bet88-code__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 1em;
  color: var(--bet88-text-main);
}

.page-blog-what-is-bet88-code__list-highlight {
  color: var(--bet88-text-main);
}

/* Hero Section */
.page-blog-what-is-bet88-code__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 60px;
  overflow: hidden;
}

.page-blog-what-is-bet88-code__hero-image-wrapper {
  width: 100%;
  position: relative;
  z-index: 1;
}

.page-blog-what-is-bet88-code__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-blog-what-is-bet88-code__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  max-width: 900px;
  margin-top: -80px; /* Adjust to bring content slightly over image bottom */
  background-color: var(--bet88-background);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--bet88-border);
}

.page-blog-what-is-bet88-code__main-title {
  font-size: clamp(2rem, 4vw, 3.2rem); /* H1 font size */
  color: var(--bet88-gold);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-blog-what-is-bet88-code__intro-text {
  font-size: 1.1rem;
  color: var(--bet88-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog-what-is-bet88-code__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-blog-what-is-bet88-code__cta-buttons--center {
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-blog-what-is-bet88-code__btn-primary,
.page-blog-what-is-bet88-code__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-blog-what-is-bet88-code__btn-primary {
  background: var(--bet88-button-gradient);
  color: #ffffff; /* Forced white text for primary button */
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-blog-what-is-bet88-code__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-blog-what-is-bet88-code__btn-secondary {
  background: transparent;
  color: var(--bet88-primary-color);
  border: 2px solid var(--bet88-primary-color);
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.2);
}

.page-blog-what-is-bet88-code__btn-secondary:hover {
  background: var(--bet88-primary-color);
  color: #ffffff; /* Forced white text for secondary button on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.4);
}

/* Content Sections */
.page-blog-what-is-bet88-code__content-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--bet88-divider);
}

.page-blog-what-is-bet88-code__content-section:last-of-type {
  border-bottom: none;
}

.page-blog-what-is-bet88-code__card {
  background-color: var(--bet88-card-bg);
  border: 1px solid var(--bet88-border);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  color: var(--bet88-text-main);
}

.page-blog-what-is-bet88-code__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-bottom: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Advantages Section */
.page-blog-what-is-bet88-code__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog-what-is-bet88-code__feature-title {
  color: var(--bet88-gold);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* How to Use Section */
.page-blog-what-is-bet88-code__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog-what-is-bet88-code__step-title {
  color: var(--bet88-gold);
  font-size: 1.4rem;
  margin-bottom: 15px;
}

/* Games Section */
.page-blog-what-is-bet88-code__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog-what-is-bet88-code__game-title {
  color: var(--bet88-gold);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

/* Safety & Trust Section */
.page-blog-what-is-bet88-code__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog-what-is-bet88-code__feature-card .page-blog-what-is-bet88-code__feature-title {
  color: var(--bet88-gold);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

/* FAQ Section */
.page-blog-what-is-bet88-code__faq-list {
  margin-top: 40px;
}

.page-blog-what-is-bet88-code__faq-item {
  margin-bottom: 20px;
  background-color: var(--bet88-card-bg);
  border: 1px solid var(--bet88-border);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-blog-what-is-bet88-code__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  color: var(--bet88-text-main);
  font-size: 1.2rem;
  list-style: none; /* For details summary */
}

.page-blog-what-is-bet88-code__faq-question::-webkit-details-marker {
  display: none;
}

.page-blog-what-is-bet88-code__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--bet88-primary-color);
}

.page-blog-what-is-bet88-code__faq-item[open] .page-blog-what-is-bet88-code__faq-toggle {
  transform: rotate(45deg);
}

.page-blog-what-is-bet88-code__faq-answer {
  padding-top: 15px;
  color: var(--bet88-text-secondary);
  font-size: 1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-blog-what-is-bet88-code {
    font-size: 16px;
    line-height: 1.6;
    padding-top: 10px !important;
  }

  .page-blog-what-is-bet88-code__container,
  .page-blog-what-is-bet88-code__hero-content,
  .page-blog-what-is-bet88-code__feature-item,
  .page-blog-what-is-bet88-code__step-item,
  .page-blog-what-is-bet88-code__game-card,
  .page-blog-what-is-bet88-code__feature-card,
  .page-blog-what-is-bet88-code__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog-what-is-bet88-code__hero-content {
    margin-top: -40px; /* Adjust for smaller screens */
    padding: 15px;
  }

  .page-blog-what-is-bet88-code__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-blog-what-is-bet88-code__intro-text {
    font-size: 1rem;
  }

  .page-blog-what-is-bet88-code__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-blog-what-is-bet88-code__btn-primary,
  .page-blog-what-is-bet88-code__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
  }

  .page-blog-what-is-bet88-code__image-full-width,
  .page-blog-what-is-bet88-code__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog-what-is-bet88-code__content-section {
    padding: 30px 0;
  }

  .page-blog-what-is-bet88-code__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 30px;
  }

  .page-blog-what-is-bet88-code__feature-list,
  .page-blog-what-is-bet88-code__steps,
  .page-blog-what-is-bet88-code__game-categories,
  .page-blog-what-is-bet88-code__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog-what-is-bet88-code__card {
    padding: 20px;
  }

  .page-blog-what-is-bet88-code__faq-question {
    font-size: 1rem;
  }

  .page-blog-what-is-bet88-code__faq-answer {
    font-size: 0.9rem;
  }

  /* Ensure no video section uses var(--header-offset) */
  .page-blog-what-is-bet88-code__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-blog-what-is-bet88-code__video-container,
  .page-blog-what-is-bet88-code__video-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-blog-what-is-bet88-code video,
  .page-blog-what-is-bet88-code__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

/* Ensure images don't use filter */
.page-blog-what-is-bet88-code img {
  filter: none; /* No CSS filter allowed */
}