/* style/lottery-game-introduction.css */

:root {
  --primary-color: #FFD700; /* Vàng */
  --secondary-color: #8B0000; /* Đỏ rượu */
  --text-color-dark-bg: #ffffff;
  --text-color-light-bg: #333333;
  --background-color-dark: #000000;
  --background-color-light: #f8f9fa;
  --card-background-dark: rgba(255, 255, 255, 0.1);
  --card-background-light: #ffffff;
  --border-color: #e0e0e0;
}

/* Base styles for the page content, considering body background is #000000 (dark) */
.page-lottery-game-introduction {
  color: var(--text-color-dark-bg); /* Use light text for dark body background */
  background-color: var(--background-color-dark);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Ensure main content is not hidden by fixed header */
.page-lottery-game-introduction__hero-section {
  padding-top: 120px; /* Desktop: Adjust based on header height */
  padding-bottom: 60px;
  background: linear-gradient(135deg, rgba(255,215,0, 0.1), rgba(139,0,0, 0.2)), url('[GALLERY:bg:hii88,xoso,hero_background,pattern]') no-repeat center center/cover;
  text-align: center;
}

.page-lottery-game-introduction__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-lottery-game-introduction__section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-lottery-game-introduction__section:last-of-type {
  border-bottom: none;
}

.page-lottery-game-introduction__section--overview,
.page-lottery-game-introduction__section--guide,
.page-lottery-game-introduction__section--strategy,
.page-lottery-game-introduction__section--conclusion {
  background-color: var(--background-color-dark);
  color: var(--text-color-dark-bg);
}

.page-lottery-game-introduction__section--types,
.page-lottery-game-introduction__section--faq,
.page-lottery-game-introduction__section--blog,
.page-lottery-game-introduction__section--why-hii88 {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: var(--text-color-dark-bg);
}

.page-lottery-game-introduction__main-title {
  font-size: 3.2em;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.page-lottery-game-introduction__subtitle {
  font-size: 1.3em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery-game-introduction__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-lottery-game-introduction__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-lottery-game-introduction__cta-button--primary {
  background-color: var(--primary-color);
  color: var(--background-color-dark);
}

.page-lottery-game-introduction__cta-button--primary:hover {
  background-color: darken(var(--primary-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-lottery-game-introduction__cta-button--secondary {
  background-color: var(--secondary-color);
  color: var(--text-color-dark-bg);
}

.page-lottery-game-introduction__cta-button--secondary:hover {
  background-color: darken(var(--secondary-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-lottery-game-introduction__cta-button--large {
  padding: 18px 45px;
  font-size: 1.2em;
}

.page-lottery-game-introduction__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-lottery-game-introduction__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.85);
  text-align: justify;
}

.page-lottery-game-introduction__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 30px auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-lottery-game-introduction__image--centered {
  margin-left: auto;
  margin-right: auto;
}

.page-lottery-game-introduction__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-lottery-game-introduction__card {
  background-color: var(--card-background-dark);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-lottery-game-introduction__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-lottery-game-introduction__card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-lottery-game-introduction__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-lottery-game-introduction__card-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1em;
  margin-bottom: 20px;
}

.page-lottery-game-introduction__card-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--secondary-color);
  color: var(--text-color-dark-bg);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-lottery-game-introduction__card-button:hover {
  background-color: darken(var(--secondary-color), 10%);
}

.page-lottery-game-introduction__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-lottery-game-introduction__step-item {
  background-color: var(--card-background-dark);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-lottery-game-introduction__step-icon-wrapper {
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.page-lottery-game-introduction__step-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.page-lottery-game-introduction__step-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-lottery-game-introduction__step-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95em;
  margin-bottom: 20px;
}

.page-lottery-game-introduction__step-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--background-color-dark);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-lottery-game-introduction__step-button:hover {
  background-color: darken(var(--primary-color), 10%);
}

.page-lottery-game-introduction__strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-lottery-game-introduction__strategy-item {
  background-color: var(--card-background-dark);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-lottery-game-introduction__strategy-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-lottery-game-introduction__strategy-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1em;
}

.page-lottery-game-introduction__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-lottery-game-introduction__benefits-list li {
  background-color: var(--card-background-dark);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 5px solid var(--primary-color);
}

.page-lottery-game-introduction__benefits-list li strong {
  color: var(--primary-color);
}

/* FAQ styles */
.page-lottery-game-introduction__faq-list {
  margin-top: 40px;
}

.page-lottery-game-introduction__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--card-background-dark);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-lottery-game-introduction__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-lottery-game-introduction__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-lottery-game-introduction__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none;
}

.page-lottery-game-introduction__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-lottery-game-introduction__faq-item.active .page-lottery-game-introduction__faq-toggle {
  transform: rotate(45deg); /* Change to X or rotate */
  color: var(--secondary-color);
}

.page-lottery-game-introduction__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1em;
  text-align: justify;
}

.page-lottery-game-introduction__faq-item.active .page-lottery-game-introduction__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain content */
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.03);
}

.page-lottery-game-introduction__faq-answer p {
  margin: 0;
  padding: 0;
}

.page-lottery-game-introduction__faq-app-button {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 20px;
  background-color: var(--secondary-color);
  color: var(--text-color-dark-bg);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-lottery-game-introduction__faq-app-button:hover {
  background-color: darken(var(--secondary-color), 10%);
}

/* Blog List Styles */
.page-lottery-game-introduction__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-lottery-game-introduction__blog-item {
  background-color: var(--card-background-dark);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-lottery-game-introduction__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-lottery-game-introduction__blog-link {
  text-decoration: none;
  display: block;
  color: inherit;
  height: 100%; /* Ensure link covers entire card */
}

.page-lottery-game-introduction__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-lottery-game-introduction__blog-item-title {
  font-size: 1.3em;
  color: var(--primary-color);
  padding: 15px 20px 0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-lottery-game-introduction__blog-item-excerpt {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.75);
  padding: 0 20px 15px;
  text-align: justify;
}

.page-lottery-game-introduction__blog-item-date {
  display: block;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.6);
  padding: 0 20px 20px;
}

.page-lottery-game-introduction__view-all-button-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-lottery-game-introduction__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--secondary-color);
  color: var(--text-color-dark-bg);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-lottery-game-introduction__view-all-button:hover {
  background-color: darken(var(--secondary-color), 10%);
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-lottery-game-introduction__main-title {
    font-size: 2.8em;
  }
  .page-lottery-game-introduction__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-lottery-game-introduction__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust based on header height */
    padding-bottom: 40px;
  }

  .page-lottery-game-introduction__section {
    padding: 40px 0;
  }

  .page-lottery-game-introduction__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-lottery-game-introduction__main-title {
    font-size: 2em;
  }

  .page-lottery-game-introduction__subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-lottery-game-introduction__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .page-lottery-game-introduction__cta-button {
    width: 100% !important;
    font-size: 1em;
    padding: 12px 25px;
  }

  .page-lottery-game-introduction__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-lottery-game-introduction__text-block,
  .page-lottery-game-introduction__benefits-list li,
  .page-lottery-game-introduction__strategy-text,
  .page-lottery-game-introduction__blog-item-excerpt {
    font-size: 0.95em;
  }

  .page-lottery-game-introduction__card-grid,
  .page-lottery-game-introduction__guide-steps,
  .page-lottery-game-introduction__strategy-grid,
  .page-lottery-game-introduction__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery-game-introduction__card-image {
    height: 180px;
  }

  .page-lottery-game-introduction__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-lottery-game-introduction__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-lottery-game-introduction__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-lottery-game-introduction__faq-answer {
    padding: 0 15px;
  }
  
  .page-lottery-game-introduction__faq-item.active .page-lottery-game-introduction__faq-answer {
    padding: 15px !important;
  }
  
  .page-lottery-game-introduction__faq-app-button {
    width: 100% !important;
    font-size: 0.95em;
    padding: 10px 15px;
  }

  .page-lottery-game-introduction__blog-image {
    height: 160px;
  }

  .page-lottery-game-introduction__view-all-button {
    width: 100% !important;
    font-size: 1em;
    padding: 10px 20px;
  }
  
  .page-lottery-game-introduction img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
}

/* Helper to darken colors, simple implementation for CSS vars */
/* This is a placeholder, actual SASS/LESS would use darken() function */
/* For pure CSS, manual adjustment or JS-based color manipulation might be needed */
/* For demonstration, let's assume `darken` is a preprocessor function or manually adjusted */
/* Example: background-color: #ffd700; becomes #e6c200 for hover */
/* Example: background-color: #8b0000; becomes #7a0000 for hover */

/* Color contrast fixes if needed */
.page-lottery-game-introduction__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-lottery-game-introduction__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}