/* style/lottery.css */
.page-lottery {
  color: #ffffff; /* Mặc định chữ trắng trên nền tối */
  font-family: 'Arial', sans-serif;
}

.page-lottery__hero-banner {
  position: relative;
  width: 100%;
  padding: 120px 0 60px; /* Thêm padding-top cho header cố định */
  background-color: var(--dark-bg-1); /* Nền tối từ shared.css */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-lottery__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.page-lottery__hero-title {
  font-size: 48px;
  font-weight: bold;
  color: #FFD700; /* Màu vàng phụ đạo */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-lottery__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2;
  overflow: hidden;
}

.page-lottery__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%); /* Giảm độ bão hòa để chữ nổi bật */
}

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

.page-lottery__dark-section {
  background-color: var(--dark-bg-1);
  color: #ffffff;
}

.page-lottery__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.page-lottery__text-block {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #f0f0f0;
  text-align: justify;
}

.page-lottery__text-block a {
  color: #FFD700;
  text-decoration: none;
}

.page-lottery__text-block a:hover {
  text-decoration: underline;
}

.page-lottery__highlight-text {
  color: #FFD700;
  font-weight: bold;
}

/* Buttons */
.page-lottery__btn-primary,
.page-lottery__btn-secondary,
.page-lottery__btn-small,
.page-lottery__btn-text {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.page-lottery__btn-primary {
  background: linear-gradient(90deg, #FFD700, #FFA500);
  color: #1A202C; /* Chữ tối trên nền vàng */
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-lottery__btn-primary:hover {
  background: linear-gradient(90deg, #FFA500, #FFD700);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-lottery__btn-secondary {
  background: #1A202C;
  color: #FFD700; /* Chữ vàng trên nền tối */
  border: 2px solid #FFD700;
  margin-top: 20px;
}

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

.page-lottery__btn-small {
  padding: 8px 15px;
  font-size: 14px;
  border-radius: 5px;
  background: #FFD700;
  color: #1A202C;
  margin-top: 15px;
}

.page-lottery__btn-small:hover {
  background: #FFA500;
  transform: translateY(-2px);
}

.page-lottery__btn-text {
  background: none;
  color: #FFD700;
  padding: 0;
  font-size: 15px;
  text-decoration: underline;
}

.page-lottery__btn-text:hover {
  color: #FFA500;
}

/* Quick Access Section */
.page-lottery__quick-access-section {
  padding-bottom: 60px;
}

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

.page-lottery__access-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-lottery__access-item:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.15);
}

.page-lottery__access-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-lottery__access-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-lottery__access-item p {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Game Intro Section */
.page-lottery__game-intro-section {
  padding-bottom: 60px;
}

.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: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-lottery__game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-lottery__game-card-title {
  font-size: 20px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-lottery__game-card p {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Promotions Section */
.page-lottery__promotions-section {
  padding-bottom: 60px;
}

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

.page-lottery__promo-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-lottery__promo-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-lottery__promo-card p {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Security & Customer Service Section */
.page-lottery__security-cs-section {
  padding-bottom: 60px;
}

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

.page-lottery__feature-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-lottery__feature-item:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.15);
}

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

.page-lottery__feature-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-lottery__feature-item p {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.6;
}

/* FAQ Section */
.page-lottery__faq-section {
  padding-bottom: 60px;
}

.page-lottery__faq-list {
  margin-top: 40px;
}

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

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

.page-lottery__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-lottery__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none;
}

.page-lottery__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  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__faq-item.active .page-lottery__faq-toggle {
  color: #FFD700;
  transform: rotate(45deg);
}

.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 20px;
  opacity: 0;
  color: #cccccc;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 0 5px 5px;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
}

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

/* Blog Section */
.page-lottery__blog-section {
  padding-bottom: 80px;
}

.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: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-lottery__blog-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.page-lottery__blog-card-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-lottery__blog-card-title a:hover {
  color: #FFA500;
}

.page-lottery__blog-card-excerpt {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Mobile Floating Button */
.page-lottery__mobile-floating-btn {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: none; /* Mặc định ẩn, chỉ hiển thị trên mobile */
  width: calc(100% - 40px);
  max-width: 400px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border-radius: 50px;
  overflow: hidden;
}

.page-lottery__mobile-floating-btn a {
  display: block;
  padding: 15px 20px;
  background: linear-gradient(90deg, #FFD700, #FFA500);
  color: #1A202C;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.page-lottery__mobile-floating-btn a:hover {
  background: linear-gradient(90deg, #FFA500, #FFD700);
}

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

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

  .page-lottery__access-grid,
  .page-lottery__game-cards-grid,
  .page-lottery__promo-grid,
  .page-lottery__security-features,
  .page-lottery__blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-banner {
    padding-top: 100px; /* Điều chỉnh padding-top cho mobile */
    padding-bottom: 40px;
  }

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

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

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

  .page-lottery__text-block,
  .page-lottery__access-item p,
  .page-lottery__game-card p,
  .page-lottery__promo-card p,
  .page-lottery__feature-item p,
  .page-lottery__blog-card-excerpt {
    font-size: 15px;
    line-height: 1.7;
  }

  .page-lottery__access-grid,
  .page-lottery__game-cards-grid,
  .page-lottery__promo-grid,
  .page-lottery__security-features,
  .page-lottery__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery__access-icon {
    width: 80px;
    height: 80px;
  }

  .page-lottery__access-title,
  .page-lottery__game-card-title,
  .page-lottery__promo-card-title,
  .page-lottery__feature-title,
  .page-lottery__blog-card-title {
    font-size: 18px;
  }

  .page-lottery__game-card-image,
  .page-lottery__promo-card-image,
  .page-lottery__blog-card-image {
    height: 180px;
  }

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

  .page-lottery__faq-question h3 {
    font-size: 15px;
  }

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

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

  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    padding: 10px 20px;
    font-size: 15px;
  }

  .page-lottery__mobile-floating-btn {
    display: block; /* Hiển thị trên mobile */
  }

  /* Responsive images */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-lottery__container,
  .page-lottery__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-lottery__hero-title {
    font-size: 28px;
  }

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

  .page-lottery__mobile-floating-btn {
    bottom: 15px;
    width: calc(100% - 30px);
  }

  .page-lottery__mobile-floating-btn a {
    font-size: 16px;
    padding: 12px 15px;
  }
}