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

.page-blog-m88-latest-promotions {
  background-color: var(--m88-background); /* Body background is dark */
  color: var(--m88-text-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-blog-m88-latest-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-blog-m88-latest-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  text-align: center;
  background-color: var(--m88-background);
}

.page-blog-m88-latest-promotions__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
}

.page-blog-m88-latest-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-blog-m88-latest-promotions__hero-content {
  max-width: 900px;
  margin-top: 20px;
  padding: 0 20px;
}

.page-blog-m88-latest-promotions__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Use clamp for H1 font size */
  color: var(--m88-text-main);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-blog-m88-latest-promotions__intro-text {
  font-size: 1.1em;
  color: var(--m88-text-secondary);
  margin-bottom: 30px;
}

.page-blog-m88-latest-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-blog-m88-latest-promotions__btn-primary,
.page-blog-m88-latest-promotions__btn-secondary {
  display: inline-block;
  padding: 12px 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 wrapping */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
}

.page-blog-m88-latest-promotions__btn-primary {
  background: var(--m88-button-gradient);
  color: var(--m88-text-main);
  border: none;
}

.page-blog-m88-latest-promotions__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-blog-m88-latest-promotions__btn-secondary {
  background: transparent;
  color: var(--m88-primary-color);
  border: 2px solid var(--m88-primary-color);
}

.page-blog-m88-latest-promotions__btn-secondary:hover {
  background: var(--m88-primary-color);
  color: var(--m88-text-main);
}

.page-blog-m88-latest-promotions__content-section {
  padding: 60px 0;
  background-color: var(--m88-card-bg);
  margin-bottom: 20px;
  border-radius: 10px;
}

.page-blog-m88-latest-promotions__overview,
.page-blog-m88-latest-promotions__promo-types,
.page-blog-m88-latest-promotions__terms,
.page-blog-m88-latest-promotions__how-to-join,
.page-blog-m88-latest-promotions__benefits,
.page-blog-m88-latest-promotions__faq-section,
.page-blog-m88-latest-promotions__conclusion {
  background-color: var(--m88-background); /* All content sections use background color */
  color: var(--m88-text-main);
  padding: 40px 0;
}

.page-blog-m88-latest-promotions__section-title {
  font-size: 2.2em;
  color: var(--m88-primary-color);
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
}

.page-blog-m88-latest-promotions__sub-section-title {
  font-size: 1.8em;
  color: var(--m88-text-main);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 500;
}

.page-blog-m88-latest-promotions__text-block {
  font-size: 1em;
  color: var(--m88-text-secondary);
  margin-bottom: 15px;
  text-align: justify;
}

.page-blog-m88-latest-promotions__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--m88-text-secondary);
}

.page-blog-m88-latest-promotions__ordered-list {
  list-style-type: decimal;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--m88-text-secondary);
}

.page-blog-m88-latest-promotions__list-item {
  margin-bottom: 10px;
}

.page-blog-m88-latest-promotions__list-item strong {
  color: var(--m88-text-main);
}

.page-blog-m88-latest-promotions__image-in-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 30px 0;
  object-fit: cover;
}

/* FAQ Section */
.page-blog-m88-latest-promotions__faq-list {
  margin-top: 30px;
}

.page-blog-m88-latest-promotions__faq-item {
  background-color: var(--m88-card-bg);
  border: 1px solid var(--m88-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog-m88-latest-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  color: var(--m88-text-main);
  font-weight: bold;
  font-size: 1.1em;
  user-select: none;
  list-style: none; /* For details/summary compatibility */
}

.page-blog-m88-latest-promotions__faq-question::-webkit-details-marker {
  display: none;
}

.page-blog-m88-latest-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-blog-m88-latest-promotions__faq-item[open] .page-blog-m88-latest-promotions__faq-toggle {
  transform: rotate(45deg);
}

.page-blog-m88-latest-promotions__faq-answer {
  padding: 0 20px 15px;
  color: var(--m88-text-secondary);
  font-size: 0.95em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog-m88-latest-promotions__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }
  .page-blog-m88-latest-promotions__section-title {
    font-size: 2em;
  }
  .page-blog-m88-latest-promotions__sub-section-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-blog-m88-latest-promotions {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-blog-m88-latest-promotions__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }
  .page-blog-m88-latest-promotions__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em) !important;
    padding: 0 15px;
  }
  .page-blog-m88-latest-promotions__intro-text {
    padding: 0 15px;
  }
  .page-blog-m88-latest-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-blog-m88-latest-promotions__btn-primary,
  .page-blog-m88-latest-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    box-sizing: border-box !important;
  }
  .page-blog-m88-latest-promotions__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog-m88-latest-promotions__content-section {
    padding: 30px 0;
  }
  .page-blog-m88-latest-promotions__section-title {
    font-size: 1.8em;
    padding: 0 15px;
  }
  .page-blog-m88-latest-promotions__sub-section-title {
    font-size: 1.4em;
    padding: 0 15px;
  }
  .page-blog-m88-latest-promotions__text-block {
    padding: 0 15px;
  }
  .page-blog-m88-latest-promotions__list,
  .page-blog-m88-latest-promotions__ordered-list {
    margin-left: 15px;
    padding-right: 15px;
  }
  .page-blog-m88-latest-promotions__image-in-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 20px 0 !important;
  }
  .page-blog-m88-latest-promotions__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }
  .page-blog-m88-latest-promotions__faq-answer {
    padding: 0 15px 12px;
  }
  /* Ensure all containers with images/videos/buttons are constrained */
  .page-blog-m88-latest-promotions__hero-image-wrapper,
  .page-blog-m88-latest-promotions__overview,
  .page-blog-m88-latest-promotions__promo-types,
  .page-blog-m88-latest-promotions__terms,
  .page-blog-m88-latest-promotions__how-to-join,
  .page-blog-m88-latest-promotions__benefits,
  .page-blog-m88-latest-promotions__faq-section,
  .page-blog-m88-latest-promotions__conclusion {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}