/* style/blog-one88-latest-promotions.css */

:root {
  --one88-primary-color: #26A9E0;
  --one88-secondary-color: #FFFFFF;
  --one88-login-color: #EA7C07;
  --one88-text-dark: #333333;
  --one88-text-light: #ffffff;
  --one88-bg-light: #FFFFFF;
  --one88-bg-dark: #26A9E0;
}

.page-blog-one88-latest-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--one88-text-dark); /* Body background is light, so use dark text */
  background-color: var(--one88-bg-light);
}

.page-blog-one88-latest-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px; /* Small top padding */
  background-color: var(--one88-bg-light);
}

.page-blog-one88-latest-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-blog-one88-latest-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-blog-one88-latest-promotions__hero-content {
  max-width: 900px;
  margin-top: 30px;
  text-align: center;
  padding: 0 20px;
}

.page-blog-one88-latest-promotions__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  color: var(--one88-primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog-one88-latest-promotions__tagline {
  font-size: 1.2em;
  color: var(--one88-text-dark);
  margin-bottom: 30px;
}

.page-blog-one88-latest-promotions__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-blog-one88-latest-promotions__btn-primary,
.page-blog-one88-latest-promotions__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
}

.page-blog-one88-latest-promotions__btn-primary {
  background-color: var(--one88-primary-color);
  color: var(--one88-text-light);
  border: 2px solid var(--one88-primary-color);
}

.page-blog-one88-latest-promotions__btn-primary:hover {
  background-color: darken(var(--one88-primary-color), 10%);
  border-color: darken(var(--one88-primary-color), 10%);
}

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

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

.page-blog-one88-latest-promotions__login-btn {
  background-color: var(--one88-login-color);
  border-color: var(--one88-login-color);
  color: var(--one88-text-light);
}

.page-blog-one88-latest-promotions__login-btn:hover {
  background-color: darken(var(--one88-login-color), 10%);
  border-color: darken(var(--one88-login-color), 10%);
}

.page-blog-one88-latest-promotions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: var(--one88-bg-light);
  color: var(--one88-text-dark);
}

.page-blog-one88-latest-promotions__section-title {
  font-size: 2.5em;
  color: var(--one88-primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-blog-one88-latest-promotions__sub-title {
  font-size: 1.8em;
  color: var(--one88-primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-blog-one88-latest-promotions__paragraph {
  margin-bottom: 20px;
  color: var(--one88-text-dark);
}

.page-blog-one88-latest-promotions__list,
.page-blog-one88-latest-promotions__ordered-list {
  list-style-position: inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-blog-one88-latest-promotions__list-item {
  margin-bottom: 10px;
  color: var(--one88-text-dark);
}

.page-blog-one88-latest-promotions__image-text-block,
.page-blog-one88-latest-promotions__product-promo-block {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 40px;
}

.page-blog-one88-latest-promotions__image {
  flex: 1;
  min-width: 400px; /* Ensure images are not too small */
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-blog-one88-latest-promotions__text-content {
  flex: 1;
}

.page-blog-one88-latest-promotions__dark-section {
  background-color: var(--one88-bg-dark);
  color: var(--one88-text-light);
  padding: 60px 20px;
}

.page-blog-one88-latest-promotions__dark-section .page-blog-one88-latest-promotions__section-title,
.page-blog-one88-latest-promotions__dark-section .page-blog-one88-latest-promotions__sub-title {
  color: var(--one88-text-light);
}

.page-blog-one88-latest-promotions__dark-section .page-blog-one88-latest-promotions__paragraph,
.page-blog-one88-latest-promotions__dark-section .page-blog-one88-latest-promotions__list-item {
  color: var(--one88-text-light);
}

.page-blog-one88-latest-promotions__faq-list {
  margin-top: 30px;
}

.page-blog-one88-latest-promotions__faq-item {
  background-color: var(--one88-bg-light);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--one88-text-dark);
}

.page-blog-one88-latest-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  background-color: #f9f9f9;
  color: var(--one88-primary-color);
  user-select: none;
}

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

.page-blog-one88-latest-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
  color: var(--one88-primary-color);
}

.page-blog-one88-latest-promotions__faq-answer {
  padding: 0 25px 15px;
  color: var(--one88-text-dark);
  transition: max-height 0.3s ease-out;
}

.page-blog-one88-latest-promotions__faq-answer p {
  margin-top: 10px;
}

.page-blog-one88-latest-promotions__faq-item[open] .page-blog-one88-latest-promotions__faq-question {
  background-color: #f0f0f0;
}

.page-blog-one88-latest-promotions__faq-image {
  margin-top: 40px;
  width: 100%;
  max-width: 600px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-blog-one88-latest-promotions__cta-section {
  text-align: center;
  padding: 80px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog-one88-latest-promotions__image-text-block,
  .page-blog-one88-latest-promotions__product-promo-block {
    flex-direction: column;
    align-items: center;
  }

  .page-blog-one88-latest-promotions__image {
    min-width: unset;
    width: 100%;
    max-width: 600px; /* Constrain max width on smaller desktops/tablets */
  }

  .page-blog-one88-latest-promotions__text-content {
    text-align: center;
    margin-top: 20px;
  }

  .page-blog-one88-latest-promotions__section-title {
    font-size: 2em;
  }

  .page-blog-one88-latest-promotions__sub-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-blog-one88-latest-promotions__hero-section {
    padding-bottom: 40px;
  }

  .page-blog-one88-latest-promotions__main-title {
    font-size: 2em; /* Smaller on mobile */
  }

  .page-blog-one88-latest-promotions__tagline {
    font-size: 1em;
  }

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

  .page-blog-one88-latest-promotions__btn-primary,
  .page-blog-one88-latest-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 0.95em !important;
  }

  .page-blog-one88-latest-promotions__content-area,
  .page-blog-one88-latest-promotions__dark-section,
  .page-blog-one88-latest-promotions__cta-section {
    padding: 30px 15px !important;
  }

  .page-blog-one88-latest-promotions__section-title {
    font-size: 1.8em !important;
    margin-bottom: 30px !important;
  }

  .page-blog-one88-latest-promotions__sub-title {
    font-size: 1.3em !important;
  }

  /* Mobile image responsiveness */
  .page-blog-one88-latest-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure containers with images/buttons/videos are responsive */
  .page-blog-one88-latest-promotions__section,
  .page-blog-one88-latest-promotions__card,
  .page-blog-one88-latest-promotions__container,
  .page-blog-one88-latest-promotions__hero-image-wrapper,
  .page-blog-one88-latest-promotions__image-text-block,
  .page-blog-one88-latest-promotions__product-promo-block,
  .page-blog-one88-latest-promotions__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-blog-one88-latest-promotions__hero-content {
    padding: 0 15px;
  }

  .page-blog-one88-latest-promotions__video-section {
    padding-top: 10px !important;
  }
}