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

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

/* Body background from shared.css, assuming dark. Text color set accordingly. */
.page-blog-what-is-q8bet-code {
  color: var(--q8bet-text-main); /* Light text for dark background */
  background-color: var(--q8bet-bg-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

.page-blog-what-is-q8bet-code__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  background-color: var(--q8bet-deep-green);
  overflow: hidden;
}

.page-blog-what-is-q8bet-code__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit hero image height */
  overflow: hidden;
  position: relative;
}

.page-blog-what-is-q8bet-code__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text contrast */
}

.page-blog-what-is-q8bet-code__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  text-align: center;
  color: var(--q8bet-text-main);
  z-index: 10;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-blog-what-is-q8bet-code__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--q8bet-gold);
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

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

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

.page-blog-what-is-q8bet-code__btn-primary,
.page-blog-what-is-q8bet-code__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box;
  max-width: 100%;
}

.page-blog-what-is-q8bet-code__btn-primary {
  background: var(--q8bet-btn-gradient);
  color: var(--q8bet-text-main);
  border: 2px solid var(--q8bet-primary);
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-blog-what-is-q8bet-code__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
  transform: translateY(-2px);
}

.page-blog-what-is-q8bet-code__btn-secondary {
  background-color: transparent;
  color: var(--q8bet-secondary);
  border: 2px solid var(--q8bet-secondary);
}

.page-blog-what-is-q8bet-code__btn-secondary:hover {
  background-color: var(--q8bet-secondary);
  color: var(--q8bet-bg-color);
  transform: translateY(-2px);
}

.page-blog-what-is-q8bet-code__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: var(--q8bet-bg-color);
  color: var(--q8bet-text-main);
}

.page-blog-what-is-q8bet-code__section-title {
  font-size: 2.2em;
  color: var(--q8bet-gold);
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
}

.page-blog-what-is-q8bet-code__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--q8bet-primary);
  margin: 15px auto 0 auto;
  border-radius: 2px;
}

.page-blog-what-is-q8bet-code__paragraph {
  margin-bottom: 20px;
  line-height: 1.8;
  text-align: justify;
  color: var(--q8bet-text-secondary);
}

.page-blog-what-is-q8bet-code__highlight {
  color: var(--q8bet-text-main);
  font-weight: bold;
}

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

.page-blog-what-is-q8bet-code__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-blog-what-is-q8bet-code__feature-card {
  background-color: var(--q8bet-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--q8bet-border-color);
}

.page-blog-what-is-q8bet-code__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-blog-what-is-q8bet-code__card-title {
  font-size: 1.5em;
  color: var(--q8bet-gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog-what-is-q8bet-code__card-text {
  color: var(--q8bet-text-secondary);
  line-height: 1.7;
}

.page-blog-what-is-q8bet-code__ordered-list,
.page-blog-what-is-q8bet-code__unordered-list {
  margin-bottom: 20px;
  padding-left: 25px;
}

.page-blog-what-is-q8bet-code__list-item {
  margin-bottom: 15px;
  color: var(--q8bet-text-secondary);
}

.page-blog-what-is-q8bet-code__list-title {
  font-size: 1.2em;
  color: var(--q8bet-text-main);
  font-weight: bold;
  margin-bottom: 8px;
}

.page-blog-what-is-q8bet-code__list-item-sub {
  margin-bottom: 5px;
  color: var(--q8bet-text-secondary);
  list-style-type: disc;
}

.page-blog-what-is-q8bet-code__comparison-table {
  margin: 40px 0;
  border-collapse: collapse;
  width: 100%;
  background-color: var(--q8bet-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-blog-what-is-q8bet-code__table-row {
  display: flex;
  border-bottom: 1px solid var(--q8bet-divider);
}

.page-blog-what-is-q8bet-code__table-row:last-child {
  border-bottom: none;
}

.page-blog-what-is-q8bet-code__table-header {
  background-color: var(--q8bet-primary);
  color: var(--q8bet-text-main);
  font-weight: bold;
}

.page-blog-what-is-q8bet-code__table-cell {
  flex: 1;
  padding: 15px 20px;
  text-align: left;
  color: var(--q8bet-text-secondary);
}

.page-blog-what-is-q8bet-code__table-header .page-blog-what-is-q8bet-code__table-cell {
  color: var(--q8bet-text-main);
}

.page-blog-what-is-q8bet-code__faq-list {
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-blog-what-is-q8bet-code__faq-item {
  background-color: var(--q8bet-card-bg);
  border: 1px solid var(--q8bet-border-color);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-blog-what-is-q8bet-code__faq-item[open] {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-blog-what-is-q8bet-code__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  color: var(--q8bet-text-main);
  font-size: 1.2em;
  background-color: var(--q8bet-deep-green);
  border-bottom: 1px solid transparent; /* default */
  transition: background-color 0.3s ease;
}

.page-blog-what-is-q8bet-code__faq-item[open] .page-blog-what-is-q8bet-code__faq-question {
  border-bottom: 1px solid var(--q8bet-divider);
  background-color: var(--q8bet-primary);
  color: var(--q8bet-text-main);
}

.page-blog-what-is-q8bet-code__faq-question:hover {
  background-color: var(--q8bet-primary);
}

.page-blog-what-is-q8bet-code__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Allow click on entire summary */
}

.page-blog-what-is-q8bet-code__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  pointer-events: none; /* Allow click on entire summary */
}

.page-blog-what-is-q8bet-code__faq-answer {
  padding: 20px;
  color: var(--q8bet-text-secondary);
  line-height: 1.7;
}

/* Hide default details marker */
.page-blog-what-is-q8bet-code__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-blog-what-is-q8bet-code__faq-item summary {
  list-style: none;
}

.page-blog-what-is-q8bet-code__cta-buttons--bottom {
  margin-top: 50px;
  margin-bottom: 20px;
}

/* --- Responsive Design --- */

/* Desktop specific (larger screens) */
@media (min-width: 769px) {
  .page-blog-what-is-q8bet-code__hero-content {
    max-width: 800px;
  }
  .page-blog-what-is-q8bet-code__hero-image {
    height: 600px; /* Fixed height for desktop hero image */
  }
}

/* Tablet and Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-blog-what-is-q8bet-code {
    font-size: 15px;
    line-height: 1.6;
  }

  .page-blog-what-is-q8bet-code__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-blog-what-is-q8bet-code__hero-content {
    position: static;
    transform: none;
    padding: 20px 15px;
    margin: 0 auto;
    background-color: var(--q8bet-deep-green); /* Solid background on mobile for readability */
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-blog-what-is-q8bet-code__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-blog-what-is-q8bet-code__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-blog-what-is-q8bet-code__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

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

  .page-blog-what-is-q8bet-code__content-area {
    padding: 20px 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-blog-what-is-q8bet-code__section-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-blog-what-is-q8bet-code__section-title::after {
    margin-top: 10px;
  }

  /* Image responsiveness */
  .page-blog-what-is-q8bet-code img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-blog-what-is-q8bet-code__image-full-width {
    margin: 20px 0;
  }

  /* Video responsiveness (if any) */
  .page-blog-what-is-q8bet-code video,
  .page-blog-what-is-q8bet-code__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-blog-what-is-q8bet-code__video-section,
  .page-blog-what-is-q8bet-code__video-container,
  .page-blog-what-is-q8bet-code__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-blog-what-is-q8bet-code__video-section {
    padding-top: 10px !important;
  }

  .page-blog-what-is-q8bet-code__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog-what-is-q8bet-code__feature-card {
    padding: 25px;
  }

  .page-blog-what-is-q8bet-code__comparison-table {
    margin: 30px 0;
  }

  .page-blog-what-is-q8bet-code__table-row {
    flex-direction: column;
  }

  .page-blog-what-is-q8bet-code__table-cell {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid var(--q8bet-divider);
  }

  .page-blog-what-is-q8bet-code__table-row:last-child .page-blog-what-is-q8bet-code__table-cell:last-child {
    border-bottom: none;
  }

  .page-blog-what-is-q8bet-code__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-blog-what-is-q8bet-code__faq-answer {
    padding: 15px;
  }

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