/* style/lottery.css */

/* 🚨 Cần điều chỉnh padding-top cho main để tránh bị header cố định che phủ */
.page-lottery {
  color: #ffffff; /* Body background is #000 (dark), so text should be light */
  padding-top: 120px; /* Khoảng cách cho header cố định trên desktop */
}

@media (max-width: 768px) {
  .page-lottery {
    padding-top: 100px; /* Khoảng cách cho header cố định trên mobile */
  }
}

/* General Styles */
.page-lottery__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-lottery__section {
  padding: 60px 0;
  text-align: center;
}

.page-lottery__dark-bg {
  background-color: #0d0d0d; /* Slightly lighter than pure black for depth */
  color: #ffffff;
}

.page-lottery__light-bg {
  background-color: #f8f8f8;
  color: #333333;
}

.page-lottery__section-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #FFD700; /* Primary brand color */
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.page-lottery__section-title--dark {
  color: #DC143C; /* Secondary brand color for light background */
}

.page-lottery__description {
  font-size: 18px;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-lottery__description--dark {
  color: #555555;
}

.page-lottery__text-link {
  color: #FFD700;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-lottery__text-link:hover {
  color: #ffffff;
}

.page-lottery__text-link--dark {
  color: #DC143C;
}

.page-lottery__text-link--dark:hover {
  color: #FFD700;
}

/* Buttons */
.page-lottery__btn-primary {
  display: inline-block;
  background-color: #FFD700; /* Gold */
  color: #000000; /* Black text for contrast */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.page-lottery__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-lottery__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 20px;
}

.page-lottery__btn-secondary:hover {
  background-color: #FFD700;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.page-lottery__btn-primary--large {
  padding: 18px 40px;
  font-size: 20px;
}

/* Hero Banner */
.page-lottery__hero-banner {
  padding: 100px 0;
  background-image: url('[GALLERY:hero:xoso_banner,khin789,lottery,vietnam]'); /* Placeholder, will be replaced by actual image */
  background-size: cover;
  background-position: center;
  color: #ffffff;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-lottery__hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Overlay for text readability */
  z-index: 1;
}

.page-lottery__hero-banner > .page-lottery__container {
  position: relative;
  z-index: 2;
}

.page-lottery__main-heading {
  font-size: 52px;
  font-weight: 900;
  margin-bottom: 25px;
  line-height: 1.2;
  color: #FFD700;
  text-transform: uppercase;
}

.page-lottery__hero-description {
  font-size: 20px;
  line-height: 1.7;
  max-width: 1000px;
  margin: 0 auto 40px auto;
  font-weight: 300;
}

.page-lottery__hero-actions {
  margin-top: 30px;
}

/* Intro Section */
.page-lottery__intro-section {
  padding: 80px 0;
}

.page-lottery__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-lottery__text-block p {
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-lottery__image-block {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-lottery__img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Game Types Section */
.page-lottery__game-types {
  padding: 80px 0;
}

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

.page-lottery__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  padding-bottom: 20px;
}

.page-lottery__card--dark-text {
  color: #333333;
}

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

.page-lottery__game-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-lottery__game-card-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 20px 10px 20px;
  line-height: 1.3;
  color: #DC143C;
}

.page-lottery__game-card-description {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 20px 20px 20px;
  color: #555555;
}

.page-lottery__btn-play {
  display: inline-block;
  background-color: #DC143C;
  color: #ffffff;
  padding: 10px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.3s ease;
  margin-left: 20px;
}

.page-lottery__btn-play:hover {
  background-color: #b00f2f;
}

.page-lottery__btn-play--dark {
  background-color: #FFD700;
  color: #000000;
}

.page-lottery__btn-play--dark:hover {
  background-color: #e6c200;
}

/* How To Play Section */
.page-lottery__how-to-play {
  padding: 80px 0;
}

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

.page-lottery__step-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  padding: 30px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: #ffffff;
}

.page-lottery__step-card:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-lottery__step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px auto;
  background-color: #FFD700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-lottery__img-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.page-lottery__step-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-lottery__step-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
  color: #e0e0e0;
}

.page-lottery__btn-step {
  display: inline-block;
  background-color: #DC143C;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background-color 0.3s ease;
}

.page-lottery__btn-step:hover {
  background-color: #b00f2f;
}

/* Advantages Section */
.page-lottery__advantages {
  padding: 80px 0;
}

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

.page-lottery__feature-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  color: #333333;
}

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

.page-lottery__feature-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-lottery__feature-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #DC143C;
}

.page-lottery__feature-description {
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
}

/* Promotions Section */
.page-lottery__promotions {
  padding: 80px 0;
}

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

.page-lottery__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  color: #ffffff;
}

.page-lottery__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.page-lottery__promo-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-lottery__promo-card-content {
  padding: 25px;
}

.page-lottery__promo-card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFD700;
}

.page-lottery__promo-card-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-lottery__btn-promo {
  display: inline-block;
  background-color: #DC143C;
  color: #ffffff;
  padding: 10px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.page-lottery__btn-promo:hover {
  background-color: #b00f2f;
}

/* FAQ Section */
.page-lottery__faq-section {
  padding: 80px 0;
}

.page-lottery__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #333333; /* Dark text for light background */
}

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

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

.page-lottery__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: #333333;
}

.page-lottery__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #DC143C;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  color: #FFD700;
  transform: rotate(45deg); /* Rotate to form an 'x' or '-' */
}

.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-color: #f0f0f0;
  border-radius: 0 0 8px 8px;
  color: #555555; /* Dark text for light background */
  text-align: left;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important; /* Ensure content fits */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-lottery__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #555555;
}

/* CTA Section */
.page-lottery__cta-section {
  padding: 80px 0;
  background-color: #DC143C; /* Secondary brand color as background */
  color: #ffffff;
}

.page-lottery__cta-section .page-lottery__section-title {
  color: #FFD700;
}

.page-lottery__cta-section .page-lottery__description {
  color: #f0f0f0;
}

.page-lottery__cta-section .page-lottery__text-link {
  color: #FFD700;
}

.page-lottery__cta-section .page-lottery__text-link:hover {
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__main-heading {
    font-size: 44px;
  }
  .page-lottery__section-title {
    font-size: 32px;
  }
  .page-lottery__content-grid {
    grid-template-columns: 1fr;
  }
  .page-lottery__image-block {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-lottery__section {
    padding: 40px 0;
  }
  .page-lottery__main-heading {
    font-size: 32px;
  }
  .page-lottery__hero-description {
    font-size: 17px;
  }
  .page-lottery__section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .page-lottery__description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-lottery__hero-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .page-lottery__btn-secondary {
    margin-left: 0;
  }
  .page-lottery__btn-primary, .page-lottery__btn-secondary {
    width: 100%;
    text-align: center;
    font-size: 16px;
    padding: 12px 20px;
  }
  .page-lottery__btn-primary--large {
    font-size: 18px;
    padding: 15px 30px;
  }
  .page-lottery__game-card-img {
    height: 180px;
  }
  .page-lottery__game-card-title {
    font-size: 20px;
  }
  .page-lottery__game-card-description {
    font-size: 15px;
  }
  .page-lottery__btn-play {
    font-size: 14px;
    padding: 8px 18px;
  }
  .page-lottery__step-icon {
    width: 70px;
    height: 70px;
  }
  .page-lottery__img-icon {
    width: 40px;
    height: 40px;
  }
  .page-lottery__step-title {
    font-size: 20px;
  }
  .page-lottery__step-description {
    font-size: 15px;
  }
  .page-lottery__btn-step {
    font-size: 14px;
    padding: 8px 16px;
  }
  .page-lottery__feature-img {
    width: 50px;
    height: 50px;
  }
  .page-lottery__feature-title {
    font-size: 20px;
  }
  .page-lottery__promo-card-img {
    height: 160px;
  }
  .page-lottery__promo-card-title {
    font-size: 20px;
  }
  .page-lottery__faq-question {
    padding: 15px 20px;
  }
  .page-lottery__faq-question h3 {
    font-size: 16px;
  }
  .page-lottery__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-lottery__faq-answer {
    padding: 0 20px;
  }
  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px 20px !important;
  }
  /* 🚨 Mobile image responsive adaptation */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-lottery__section,
  .page-lottery__container,
  .page-lottery__content-grid,
  .page-lottery__game-cards-grid,
  .page-lottery__steps-grid,
  .page-lottery__features-grid,
  .page-lottery__promo-cards-grid,
  .page-lottery__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-lottery__main-heading {
    font-size: 28px;
  }
  .page-lottery__section-title {
    font-size: 24px;
  }
  .page-lottery__game-cards-grid,
  .page-lottery__steps-grid,
  .page-lottery__features-grid,
  .page-lottery__promo-cards-grid {
    grid-template-columns: 1fr;
  }
  .page-lottery__game-card-img {
    height: 160px;
  }
  .page-lottery__promo-card-img {
    height: 140px;
  }
  .page-lottery__game-card, .page-lottery__feature-item, .page-lottery__promo-card, .page-lottery__step-card {
    padding: 20px;
  }
  .page-lottery__game-card-title, .page-lottery__feature-title, .page-lottery__promo-card-title, .page-lottery__step-title {
    font-size: 18px;
  }
  .page-lottery__game-card-description, .page-lottery__feature-description, .page-lottery__promo-card-description, .page-lottery__step-description {
    font-size: 14px;
  }
}