/* style/lottery.css */
:root {
  --primary-color: #FF4500; /* Cam đỏ sôi động */
  --secondary-color: #FFD700; /* Vàng kim sang trọng */
  --dark-bg: #121212; /* Nền tối của body */
  --text-light: #ffffff;
  --text-dark: #333333;
  --card-bg-light: #ffffff;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --border-color-light: #e0e0e0;
  --border-color-dark: rgba(255, 255, 255, 0.2);
}

.page-lottery {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Mặc định chữ sáng trên nền tối của body */
  background-color: var(--dark-bg); /* Nền tối của body */
  padding-top: 120px; /* Đảm bảo nội dung không bị header cố định che */
}

.page-lottery h1, .page-lottery h2, .page-lottery h3, .page-lottery h4, .page-lottery h5, .page-lottery h6 {
  color: var(--text-light);
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-lottery p {
  margin-bottom: 15px;
}

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

.page-lottery a:hover {
  color: var(--primary-color);
}

.page-lottery__hero-section {
  background: linear-gradient(135deg, rgba(255, 69, 0, 0.8), rgba(255, 215, 0, 0.6)), url('[GALLERY:bg:lottery,winvn app,hero,abstract pattern]') no-repeat center center/cover;
  padding: 80px 20px;
  text-align: center;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
  padding-top: 60px; /* Điều chỉnh để không bị header che */
}

.page-lottery__hero-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-lottery__main-title {
  font-size: 3.2em;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.page-lottery__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.8;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

.page-lottery__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-lottery__cta-button--primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-lottery__cta-button--primary:hover {
  background-color: #e63900;
  border-color: #e63900;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-lottery__cta-button--secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-lottery__cta-button--secondary:hover {
  background-color: var(--secondary-color);
  color: var(--dark-bg);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-lottery__info-section, .page-lottery__guide-section, .page-lottery__security-section, .page-lottery__faq-section {
  padding: 60px 20px;
  background-color: #1a1a1a;
  color: var(--text-light);
}

.page-lottery__dark-section {
  background-color: #0d0d0d;
  color: var(--text-light);
}

.page-lottery__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: var(--secondary-color);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-lottery__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #cccccc;
}

.page-lottery__info-container, .page-lottery__types-container, .page-lottery__guide-container, .page-lottery__promotions-container, .page-lottery__security-container, .page-lottery__support-container, .page-lottery__faq-container, .page-lottery__news-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-lottery__info-item {
  background-color: #222222;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-lottery__info-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-lottery__item-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-lottery__item-text {
  font-size: 1em;
  color: #b0b0b0;
}

.page-lottery__type-grid, .page-lottery__promo-grid, .page-lottery__news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-lottery__type-card, .page-lottery__promo-card, .page-lottery__news-item {
  background-color: #222222;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.page-lottery__type-card:hover, .page-lottery__promo-card:hover, .page-lottery__news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-lottery__type-image, .page-lottery__promo-image, .page-lottery__news-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-lottery__card-title {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-lottery__card-text {
  font-size: 0.95em;
  color: #b0b0b0;
  flex-grow: 1;
}

.page-lottery__card-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 5px;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.page-lottery__card-button:hover {
  background-color: #e63900;
}

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

.page-lottery__step-item {
  background-color: #222222;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-lottery__step-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-lottery__step-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-lottery__step-text {
  font-size: 0.95em;
  color: #b0b0b0;
  flex-grow: 1;
}

.page-lottery__step-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--secondary-color);
  color: var(--dark-bg);
  border-radius: 5px;
  font-weight: bold;
  margin-top: 25px;
  transition: background-color 0.3s ease;
}

.page-lottery__step-button:hover {
  background-color: #e6c200;
}

.page-lottery__security-features, .page-lottery__support-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-lottery__feature-item, .page-lottery__channel-item {
  background-color: #222222;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-lottery__feature-icon, .page-lottery__channel-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-lottery__feature-title, .page-lottery__channel-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-lottery__feature-text, .page-lottery__channel-text {
  font-size: 0.95em;
  color: #b0b0b0;
  flex-grow: 1;
}

.page-lottery__channel-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 5px;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.page-lottery__channel-button:hover {
  background-color: #e63900;
}

/* FAQ Section */
.page-lottery__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-lottery__faq-question:hover {
  background-color: #333333;
  border-color: var(--primary-color);
}

.page-lottery__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-light);
  pointer-events: none;
}

.page-lottery__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-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: 30px;
  height: 30px;
}

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  color: var(--primary-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-color: #222222;
  color: #b0b0b0;
  border-top: 1px solid #333333;
  border-radius: 0 0 8px 8px;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important; /* Đủ lớn để chứa mọi nội dung */
  padding: 20px 25px !important;
  opacity: 1;
}

/* News Section */
.page-lottery__news-item {
  text-align: left;
  padding: 20px;
}

.page-lottery__news-item-title {
  font-size: 1.3em;
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-lottery__news-item-title a {
  color: var(--text-light);
  transition: color 0.3s ease;
}

.page-lottery__news-item-title a:hover {
  color: var(--primary-color);
}

.page-lottery__news-item-excerpt {
  font-size: 0.9em;
  color: #b0b0b0;
  margin-bottom: 15px;
}

.page-lottery__news-item-date {
  font-size: 0.85em;
  color: #888888;
  display: block;
  text-align: right;
}

.page-lottery__view-all-news {
  text-align: center;
  margin-top: 50px;
}

.page-lottery__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--secondary-color);
  color: var(--dark-bg);
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-lottery__view-all-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

@media (max-width: 768px) {
  .page-lottery {
    padding-top: 100px !important; /* Điều chỉnh padding-top cho mobile */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-lottery h1, .page-lottery h2, .page-lottery h3, .page-lottery h4, .page-lottery h5, .page-lottery h6 {
    color: var(--text-light) !important; /* Đảm bảo màu chữ trên mobile */
  }

  .page-lottery__hero-section {
    padding: 60px 15px;
    padding-top: 40px;
  }

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

  .page-lottery__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-lottery__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-lottery__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-lottery__info-section, .page-lottery__guide-section, .page-lottery__security-section, .page-lottery__faq-section, .page-lottery__promotions-section, .page-lottery__support-section, .page-lottery__news-section {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-lottery__info-container, .page-lottery__types-container, .page-lottery__guide-container, .page-lottery__promotions-container, .page-lottery__security-container, .page-lottery__support-container, .page-lottery__faq-container, .page-lottery__news-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0;
  }

  .page-lottery__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-lottery__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-lottery__info-item, .page-lottery__type-card, .page-lottery__promo-card, .page-lottery__step-item, .page-lottery__feature-item, .page-lottery__channel-item, .page-lottery__news-item {
    padding: 20px;
  }

  .page-lottery__info-image, .page-lottery__type-image, .page-lottery__promo-image, .page-lottery__step-icon, .page-lottery__feature-icon, .page-lottery__channel-icon, .page-lottery__news-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-lottery__item-title, .page-lottery__card-title, .page-lottery__step-title, .page-lottery__feature-title, .page-lottery__channel-title {
    font-size: 1.3em;
  }

  .page-lottery__card-button, .page-lottery__step-button, .page-lottery__channel-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 15px !important;
    font-size: 0.9em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-lottery__faq-question h3 {
    font-size: 1em;
  }

  .page-lottery__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }

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

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

  .page-lottery__news-item-title {
    font-size: 1.1em;
  }

  .page-lottery__view-all-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}

@media (max-width: 480px) {
  .page-lottery__main-title {
    font-size: 1.8em;
  }
  .page-lottery__section-title {
    font-size: 1.6em;
  }
}