/* style/lottery.css */
:root {
  --primary-color: #FFD700; /* Vàng sang trọng */
  --secondary-color: #8B0000; /* Đỏ rượu vang sâu */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f1f3f5;
  --card-background: #ffffff;
  --border-color: #e0e0e0;
  --button-hover-darken: #ccac00;
  --button-hover-lighten: #a00000;
}

.page-lottery {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--dark-bg-1); /* Assuming --dark-bg-1 is defined in shared.css and is dark */
}

.page-lottery__hero-banner-section {
  position: relative;
  width: 100%;
  padding-top: 180px; /* Adjust for fixed header */
  padding-bottom: 60px;
  background-color: #1a1a1a; /* Dark background for hero section */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-lottery__hero-banner-container {
  position: relative;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.page-lottery__hero-banner-image {
  width: 100%;
  height: auto;
  max-width: 1200px;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-lottery__hero-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-light);
  max-width: 900px;
}

.page-lottery__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-lottery__hero-description {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-lottery__text-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-lottery__text-link:hover {
  color: var(--button-hover-darken);
  text-decoration: underline;
}

.page-lottery__cta-button {
  display: inline-block;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-lottery__cta-button--primary {
  background: linear-gradient(135deg, var(--primary-color), var(--button-hover-darken));
  color: var(--text-light);
}

.page-lottery__cta-button--primary:hover {
  background: linear-gradient(135deg, var(--button-hover-darken), var(--primary-color));
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-lottery__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--text-light);
}

.page-lottery__cta-button--secondary:hover {
  background: var(--button-hover-lighten);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.page-lottery__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-lottery__introduction-section,
.page-lottery__game-types-section,
.page-lottery__advantages-section,
.page-lottery__tips-section,
.page-lottery__blog-section,
.page-lottery__faq-section {
  padding: 60px 0;
  background-color: var(--background-light);
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-color);
}

.page-lottery__introduction-section {
  padding-top: 120px; /* Adjust for fixed header, as it's the first content section after hero */
}

.page-lottery__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-lottery__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-lottery__text-block {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-dark);
  text-align: justify;
}

.page-lottery__highlight-text {
  color: var(--secondary-color);
  font-weight: bold;
}

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

.page-lottery__feature-card {
  background: var(--card-background);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-lottery__feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-lottery__feature-icon {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__feature-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-lottery__feature-description {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.6;
}

.page-lottery__game-type-card {
  display: flex;
  align-items: center;
  background: var(--card-background);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.page-lottery__game-type-card--reverse {
  flex-direction: row-reverse;
}

.page-lottery__game-type-image {
  width: 50%;
  height: 350px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-lottery__game-type-content {
  padding: 30px;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-lottery__game-type-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-lottery__game-type-description {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 25px;
  text-align: justify;
}

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

.page-lottery__advantage-item {
  background: var(--card-background);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  border: 1px solid var(--border-color);
}

.page-lottery__advantage-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-lottery__cta-block {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-lottery__cta-block .page-lottery__text-block {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-dark);
}

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

.page-lottery__list-item {
  background: var(--card-background);
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dark);
  border-left: 5px solid var(--primary-color);
}

.page-lottery__list-item strong {
  color: var(--secondary-color);
}

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

.page-lottery__blog-card {
  background: var(--card-background);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-lottery__blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-lottery__blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-lottery__blog-content {
  padding: 25px;
}

.page-lottery__blog-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-lottery__blog-title a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-lottery__blog-title a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-lottery__blog-excerpt {
  font-size: 15px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.page-lottery__blog-date {
  font-size: 14px;
  color: #999999;
}

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

/* FAQ Styles */
.page-lottery__faq-list {
  margin-top: 40px;
}

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-lottery__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-lottery__faq-question:active {
  background: #eeeeee;
}

.page-lottery__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--secondary-color);
  pointer-events: none; /* Prevent text selection from interfering with click */
}

.page-lottery__faq-toggle {
  font-size: 28px;
  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: 32px;
  height: 32px;
}

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(180deg);
}

.page-lottery__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 25px;
  opacity: 0;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: var(--text-dark);
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to show all content */
  padding: 20px 25px !important;
  opacity: 1;
  border: 1px solid var(--border-color);
  border-top: none;
}

.page-lottery__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__main-title {
    font-size: 42px;
  }

  .page-lottery__hero-description {
    font-size: 18px;
  }

  .page-lottery__game-type-image {
    height: 300px;
  }

  .page-lottery__game-type-title {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-banner-section {
    padding-top: 160px !important; /* Mobile fixed header adjustment */
    padding-bottom: 40px;
  }

  .page-lottery__introduction-section {
    padding-top: 80px; /* Adjust for fixed header on mobile, if hero not present */
  }

  .page-lottery__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-lottery__hero-banner-image,
  .page-lottery__feature-icon,
  .page-lottery__game-type-image,
  .page-lottery__blog-image,
  .page-lottery__faq-item img,
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-lottery__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-lottery__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-lottery__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

  .page-lottery__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-lottery__text-block,
  .page-lottery__feature-description,
  .page-lottery__game-type-description,
  .page-lottery__list-item,
  .page-lottery__blog-excerpt,
  .page-lottery__blog-date,
  .page-lottery__faq-answer p {
    font-size: 15px;
  }

  .page-lottery__features-grid,
  .page-lottery__advantages-grid,
  .page-lottery__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery__game-type-card {
    flex-direction: column;
  }

  .page-lottery__game-type-card--reverse {
    flex-direction: column;
  }

  .page-lottery__game-type-image {
    width: 100%;
    height: 250px;
    border-radius: 12px 12px 0 0;
  }

  .page-lottery__game-type-content {
    width: 100%;
    padding: 20px;
  }

  .page-lottery__game-type-title {
    font-size: 22px;
  }

  .page-lottery__advantage-title {
    font-size: 20px;
  }

  .page-lottery__blog-title {
    font-size: 18px;
  }

  .page-lottery__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }

  .page-lottery__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }

  .page-lottery__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }

  .page-lottery__faq-answer {
    padding: 0 20px;
  }

  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px 20px !important;
  }
}