/* style/blog-hp88-latest-promotions.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --background-light: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --border-color: #e0e0e0;
}

.page-blog-hp88-latest-promotions {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
}

/* Hero Section */
.page-blog-hp88-latest-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 60px;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--text-light);
  box-sizing: border-box;
}

.page-blog-hp88-latest-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-blog-hp88-latest-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog-hp88-latest-promotions__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-blog-hp88-latest-promotions__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

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

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

.page-blog-hp88-latest-promotions__cta-button {
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button adapts to container */
}

.page-blog-hp88-latest-promotions__btn-primary {
  background-color: var(--login-color); /* Use login color for primary CTA */
  color: var(--text-light);
  border: 2px solid var(--login-color);
}

.page-blog-hp88-latest-promotions__btn-primary:hover {
  background-color: #c96806; /* Darken login color */
  transform: translateY(-2px);
}

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

.page-blog-hp88-latest-promotions__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Content Area */
.page-blog-hp88-latest-promotions__content-area,
.page-blog-hp88-latest-promotions__why-hp88,
.page-blog-hp88-latest-promotions__video-section,
.page-blog-hp88-latest-promotions__faq-section,
.page-blog-hp88-latest-promotions__cta-final {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

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

.page-blog-hp88-latest-promotions__content-area p {
  font-size: 1.05em;
  margin-bottom: 20px;
  text-align: justify;
}

/* Promotion Grid */
.page-blog-hp88-latest-promotions__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog-hp88-latest-promotions__promo-card {
  background-color: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  color: var(--text-dark);
}

.page-blog-hp88-latest-promotions__promo-card:hover {
  transform: translateY(-8px);
}

.page-blog-hp88-latest-promotions__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-blog-hp88-latest-promotions__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-blog-hp88-latest-promotions__promo-card p {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 25px;
  padding: 0 20px;
  flex-grow: 1;
}

.page-blog-hp88-latest-promotions__card-button {
  padding: 12px 25px;
  font-size: 0.95em;
  border-radius: 30px;
}

/* Why HP88 Section */
.page-blog-hp88-latest-promotions__why-hp88 {
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
}

.page-blog-hp88-latest-promotions__why-hp88 .page-blog-hp88-latest-promotions__section-title {
  color: var(--secondary-color);
}

.page-blog-hp88-latest-promotions__reason-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  text-align: left;
}

.page-blog-hp88-latest-promotions__reason-list li {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  font-size: 1.05em;
  line-height: 1.8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-blog-hp88-latest-promotions__reason-list li strong {
  color: var(--secondary-color);
  display: block;
  margin-bottom: 10px;
  font-size: 1.15em;
}

/* Video Section */
.page-blog-hp88-latest-promotions__video-section {
  text-align: center;
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-blog-hp88-latest-promotions__video-description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-blog-hp88-latest-promotions__video-link-wrapper {
  display: block;
  width: 100%;
  max-width: 1000px; /* Max width for video container */
  margin: 0 auto 30px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.page-blog-hp88-latest-promotions__video {
  width: 100%;
  height: auto;
  display: block;
}

.page-blog-hp88-latest-promotions__cta-video .page-blog-hp88-latest-promotions__cta-button {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-blog-hp88-latest-promotions__cta-video .page-blog-hp88-latest-promotions__cta-button:hover {
  background-color: #1e87b8; /* Darken primary color */
}

/* FAQ Section */
.page-blog-hp88-latest-promotions__faq-section {
  background-color: #f9f9f9;
  color: var(--text-dark);
}

.page-blog-hp88-latest-promotions__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog-hp88-latest-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #f0f8ff; /* Lighter background for question */
  transition: background-color 0.3s ease;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.page-blog-hp88-latest-promotions__faq-question:hover {
  background-color: #e0f2ff;
}

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

.page-blog-hp88-latest-promotions__faq-item[open] .page-blog-hp88-latest-promotions__faq-toggle {
  content: "−"; /* Unicode minus sign */
}

.page-blog-hp88-latest-promotions__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #555;
  text-align: justify;
}

/* Final CTA Section */
.page-blog-hp88-latest-promotions__cta-final {
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-blog-hp88-latest-promotions__cta-final .page-blog-hp88-latest-promotions__section-title {
  color: var(--secondary-color);
}

.page-blog-hp88-latest-promotions__cta-final p {
  font-size: 1.15em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

  .page-blog-hp88-latest-promotions__hero-section,
  .page-blog-hp88-latest-promotions__content-area,
  .page-blog-hp88-latest-promotions__why-hp88,
  .page-blog-hp88-latest-promotions__faq-section,
  .page-blog-hp88-latest-promotions__cta-final {
    padding: 30px 15px;
  }
  .page-blog-hp88-latest-promotions__video-section {
    padding: 30px 0; /* Remove side padding for full width video, handled by container */
  }
  .page-blog-hp88-latest-promotions__hero-section { padding-top: 10px !important; }

  .page-blog-hp88-latest-promotions__main-title {
    font-size: 2em; /* Ensure not too large on mobile */
  }

  .page-blog-hp88-latest-promotions__intro-text {
    font-size: 1em;
  }

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

  .page-blog-hp88-latest-promotions__cta-button,
  .page-blog-hp88-latest-promotions a[class*="button"],
  .page-blog-hp88-latest-promotions a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog-hp88-latest-promotions__cta-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-blog-hp88-latest-promotions__promo-grid {
    grid-template-columns: 1fr;
  }

  .page-blog-hp88-latest-promotions__promo-image {
    height: 200px; /* Adjust height for mobile */
  }

  .page-blog-hp88-latest-promotions__reason-list {
    grid-template-columns: 1fr;
  }

  /* Images responsiveness */
  .page-blog-hp88-latest-promotions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog-hp88-latest-promotions__hero-image-wrapper,
  .page-blog-hp88-latest-promotions__promo-card,
  .page-blog-hp88-latest-promotions__section,
  .page-blog-hp88-latest-promotions__card,
  .page-blog-hp88-latest-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Video responsiveness */
  .page-blog-hp88-latest-promotions video,
  .page-blog-hp88-latest-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog-hp88-latest-promotions__video-section,
  .page-blog-hp88-latest-promotions__video-container,
  .page-blog-hp88-latest-promotions__video-wrapper,
  .page-blog-hp88-latest-promotions__video-link-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-blog-hp88-latest-promotions__video-section { padding-top: 10px !important; }
}

/* Color Contrast Adjustments */
.page-blog-hp88-latest-promotions__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-blog-hp88-latest-promotions__dark-bg .page-blog-hp88-latest-promotions__section-title {
  color: var(--secondary-color);
}

.page-blog-hp88-latest-promotions__light-bg {
  background-color: var(--background-light);
  color: var(--text-dark);
}

/* Ensure specific elements have correct contrast */
.page-blog-hp88-latest-promotions__promo-card {
  background-color: var(--secondary-color); /* White background */
  color: var(--text-dark); /* Dark text */
}

.page-blog-hp88-latest-promotions__faq-question {
  background-color: #f0f8ff; /* Light blue background */
  color: var(--primary-color); /* Brand primary color text */
}

.page-blog-hp88-latest-promotions__faq-answer p {
  color: #555; /* Slightly lighter dark text for answer */
}

/* Ensure no filter on images */
.page-blog-hp88-latest-promotions img { 
  filter: none; 
}