/* style/blog-nex8-latest-promotions.css */
/* Body background is #0a0a0a (dark), so text color should be light (#ffffff) for contrast */

.page-blog-nex8-latest-promotions {
  color: #ffffff; /* Default text color for the page content */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Rely on body background from shared.css */
}

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

.page-blog-nex8-latest-promotions__section {
  padding: 60px 0;
  text-align: center;
}

.page-blog-nex8-latest-promotions__dark-bg {
  background-color: rgba(38, 169, 224, 0.1);
  color: #ffffff;
}

.page-blog-nex8-latest-promotions__light-bg {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.page-blog-nex8-latest-promotions__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.page-blog-nex8-latest-promotions__text-block {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-blog-nex8-latest-promotions__text-block .highlight {
  color: #EA7C07; /* Login color for highlights */
  font-weight: bold;
}

/* Hero Section */
.page-blog-nex8-latest-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
}

.page-blog-nex8-latest-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
}

.page-blog-nex8-latest-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly dim the image for text readability */
}

.page-blog-nex8-latest-promotions__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  max-width: 900px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.page-blog-nex8-latest-promotions__main-title {
  font-size: clamp(36px, 5vw, 60px);
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-blog-nex8-latest-promotions__description {
  font-size: clamp(16px, 2vw, 20px);
  color: #f0f0f0;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

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

.page-blog-nex8-latest-promotions__btn-primary,
.page-blog-nex8-latest-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog-nex8-latest-promotions__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-blog-nex8-latest-promotions__btn-primary:hover {
  background-color: #1a8cc2;
  transform: translateY(-2px);
}

.page-blog-nex8-latest-promotions__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-blog-nex8-latest-promotions__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Promotions Overview */
.page-blog-nex8-latest-promotions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog-nex8-latest-promotions__card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #ffffff;
  border: 1px solid rgba(38, 169, 224, 0.3);
}

.page-blog-nex8-latest-promotions__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-blog-nex8-latest-promotions__card-title {
  font-size: 24px;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-blog-nex8-latest-promotions__card-text {
  font-size: 16px;
  color: #f0f0f0;
}

/* Detail Promotions */
.page-blog-nex8-latest-promotions__promo-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 40px;
  text-align: left;
  border: 1px solid rgba(38, 169, 224, 0.3);
}

.page-blog-nex8-latest-promotions__promo-title {
  font-size: 28px;
  color: #EA7C07; /* Login color for promo titles */
  margin-bottom: 20px;
  font-weight: 700;
}

.page-blog-nex8-latest-promotions__promo-image {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
}

.page-blog-nex8-latest-promotions__promo-text {
  font-size: 17px;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-blog-nex8-latest-promotions__promo-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.page-blog-nex8-latest-promotions__promo-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%2326A9E0"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat left center;
  background-size: 18px;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 16px;
  color: #f0f0f0;
}

.page-blog-nex8-latest-promotions__promo-list li strong {
  color: #26A9E0;
}

/* How To Claim */
.page-blog-nex8-latest-promotions__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-blog-nex8-latest-promotions__step-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  text-align: center;
  color: #ffffff;
  border: 1px solid rgba(38, 169, 224, 0.3);
}

.page-blog-nex8-latest-promotions__step-number {
  font-size: 48px;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1;
}

.page-blog-nex8-latest-promotions__step-title {
  font-size: 22px;
  color: #EA7C07;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-blog-nex8-latest-promotions__step-text {
  font-size: 16px;
  color: #f0f0f0;
}

.page-blog-nex8-latest-promotions__how-to-claim-image {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  border-radius: 12px;
  margin-top: 40px;
  display: block;
}

/* Terms and Conditions */
.page-blog-nex8-latest-promotions__terms-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog-nex8-latest-promotions__terms-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23EA7C07"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>') no-repeat left top 5px;
  background-size: 18px;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 16px;
  color: #f0f0f0;
}

/* Why Choose nex8 */
.page-blog-nex8-latest-promotions__benefits-list {
  list-style: none;
  padding-left: 0;
  margin-top: 40px;
  margin-bottom: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog-nex8-latest-promotions__benefits-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%2326A9E0"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat left center;
  background-size: 18px;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 17px;
  color: #f0f0f0;
}

.page-blog-nex8-latest-promotions__benefits-list li strong {
  color: #26A9E0;
}

/* FAQ Section */
.page-blog-nex8-latest-promotions__faq-list {
  margin-top: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog-nex8-latest-promotions__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid rgba(38, 169, 224, 0.3);
  color: #ffffff;
}

.page-blog-nex8-latest-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: #26A9E0;
  transition: color 0.3s ease;
  list-style: none;
}

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

.page-blog-nex8-latest-promotions__faq-question:hover {
  color: #EA7C07;
}

.page-blog-nex8-latest-promotions__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
}

.page-blog-nex8-latest-promotions__faq-item[open] .page-blog-nex8-latest-promotions__faq-toggle {
  content: '−';
}

.page-blog-nex8-latest-promotions__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 16px;
  color: #f0f0f0;
  line-height: 1.7;
}

.page-blog-nex8-latest-promotions__faq-answer p {
  margin: 0;
}

/* Final CTA Section */
.page-blog-nex8-latest-promotions__cta-image {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 40px;
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-blog-nex8-latest-promotions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog-nex8-latest-promotions__container {
    padding: 0 15px !important;
  }

  .page-blog-nex8-latest-promotions__section {
    padding: 40px 0;
  }

  .page-blog-nex8-latest-promotions__section-title {
    font-size: 24px;
  }

  .page-blog-nex8-latest-promotions__text-block {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-blog-nex8-latest-promotions__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-blog-nex8-latest-promotions__hero-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding: 20px 15px;
  }

  .page-blog-nex8-latest-promotions__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-blog-nex8-latest-promotions__description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-blog-nex8-latest-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog-nex8-latest-promotions__btn-primary,
  .page-blog-nex8-latest-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-blog-nex8-latest-promotions__grid,
  .page-blog-nex8-latest-promotions__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog-nex8-latest-promotions__card,
  .page-blog-nex8-latest-promotions__step-card,
  .page-blog-nex8-latest-promotions__promo-item,
  .page-blog-nex8-latest-promotions__faq-item {
    padding: 20px;
  }

  .page-blog-nex8-latest-promotions__card-image,
  .page-blog-nex8-latest-promotions__promo-image,
  .page-blog-nex8-latest-promotions__how-to-claim-image,
  .page-blog-nex8-latest-promotions__cta-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog-nex8-latest-promotions__card-title {
    font-size: 20px;
  }

  .page-blog-nex8-latest-promotions__promo-title {
    font-size: 22px;
  }

  .page-blog-nex8-latest-promotions__step-title {
    font-size: 20px;
  }

  .page-blog-nex8-latest-promotions__faq-question {
    font-size: 16px;
    padding: 15px;
  }

  .page-blog-nex8-latest-promotions__faq-answer {
    padding: 0 15px 15px 15px;
  }
}

/* Ensure all image containers are responsive */
.page-blog-nex8-latest-promotions__hero-image-wrapper,
.page-blog-nex8-latest-promotions__card,
.page-blog-nex8-latest-promotions__promo-item,
.page-blog-nex8-latest-promotions__step-card,
.page-blog-nex8-latest-promotions__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Mobile specific container padding */
@media (max-width: 768px) {
  .page-blog-nex8-latest-promotions__section,
  .page-blog-nex8-latest-promotions__card,
  .page-blog-nex8-latest-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog-nex8-latest-promotions__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-blog-nex8-latest-promotions__hero-image-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Global image reset for safety */
.page-blog-nex8-latest-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* No filter on images */
.page-blog-nex8-latest-promotions img {
  filter: none; /* Ensure no CSS filters are applied */
}

.page-blog-nex8-latest-promotions__hero-image {
  filter: brightness(0.6); /* This is an intentional effect for readability, not color change */
}