/* style/lottery.css */
/* 🚨 Cảnh báo: body background là #000 (đen). Sử dụng màu chữ sáng cho nội dung chính. */

.page-lottery {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Màu chữ sáng cho nền tối */
  background-color: #000;
  padding-top: 80px; /* Đảm bảo nội dung không bị che bởi header cố định */
}

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

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

.page-lottery__heading {
  color: #FFD700; /* Màu vàng thương hiệu cho tiêu đề */
  text-align: center;
  margin-bottom: 30px;
  font-size: 32px;
  font-weight: bold;
}

.page-lottery__heading--main {
  font-size: 48px;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-lottery__text {
  color: #f0f0f0; /* Màu chữ hơi nhạt hơn cho đoạn văn */
  text-align: justify;
  margin-bottom: 15px;
  font-size: 16px;
}

.page-lottery__text--center {
  text-align: center;
}

.page-lottery__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.page-lottery__button--primary {
  background-color: #FFD700; /* Nút chính: vàng */
  color: #0A2463; /* Chữ xanh đậm */
  border: 2px solid #FFD700;
}

.page-lottery__button--primary:hover {
  background-color: #e0b800;
  border-color: #e0b800;
}

.page-lottery__button--secondary {
  background-color: #0A2463; /* Nút phụ: xanh đậm */
  color: #FFD700; /* Chữ vàng */
  border: 2px solid #FFD700;
}

.page-lottery__button--secondary:hover {
  background-color: #1a3c7c;
  border-color: #FFD700;
}

.page-lottery__button--small {
  padding: 8px 15px;
  font-size: 14px;
  margin-top: 15px;
}

.page-lottery__button--center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

.page-lottery__dark-section {
  background-color: #0A2463; /* Nền xanh đậm */
  padding: 60px 0;
}

.page-lottery__light-bg {
  background-color: #0d0d0d; /* Nền xám đen nhẹ để phân biệt */
  padding: 60px 0;
}

/* Hero Banner */
.page-lottery__hero-banner {
  padding: 100px 0;
  background: linear-gradient(135deg, #0A2463 0%, #1a3c7c 100%);
  text-align: center;
}

.page-lottery__hero-banner .page-lottery__button {
  margin-top: 30px;
  font-size: 20px;
  padding: 15px 40px;
}

/* Why Choose Us Section */
.page-lottery__why-choose-us .page-lottery__heading {
  color: #FFD700;
}

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

.page-lottery__card {
  background-color: rgba(255, 255, 255, 0.08); /* Nền hơi trong suốt */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-lottery__card-image-wrapper {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 50%;
  border: 3px solid #FFD700;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
}

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

.page-lottery__card-title {
  color: #FFD700;
  font-size: 20px;
  margin-bottom: 10px;
}

/* Lottery Types Section */
.page-lottery__lottery-types .page-lottery__heading {
  color: #FFD700;
}

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

.page-lottery__card--type {
  text-align: left;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-lottery__card--type .page-lottery__card-image-wrapper {
  width: 100%;
  height: 250px;
  border-radius: 8px 8px 0 0;
  border: none;
  margin-bottom: 15px;
}

.page-lottery__card--type .page-lottery__card-title {
  font-size: 22px;
  margin-top: 0;
  padding: 0 15px;
}

.page-lottery__card--type .page-lottery__text {
  padding: 0 15px;
  margin-bottom: 15px;
}

.page-lottery__card--type .page-lottery__button {
  margin-left: 15px;
  margin-bottom: 15px;
}

/* Guide Section */
.page-lottery__guide .page-lottery__heading {
  color: #FFD700;
}

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

.page-lottery__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-lottery__step-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  background-color: #FFD700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-lottery__step-icon {
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
}

.page-lottery__step-title {
  color: #FFD700;
  font-size: 20px;
  margin-bottom: 10px;
}

/* Tips Section */
.page-lottery__tips .page-lottery__heading {
  color: #FFD700;
}

.page-lottery__list-tips {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-lottery__list-item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-lottery__list-title {
  color: #FFD700;
  font-size: 20px;
  margin-bottom: 10px;
}

/* Offers Section */
.page-lottery__offers .page-lottery__heading {
  color: #FFD700;
}

.page-lottery__offer-card {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-lottery__offer-icon-wrapper {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 50%;
  border: 3px solid #FFD700;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
}

.page-lottery__offer-icon {
  width: 60%;
  height: 60%;
  object-fit: contain;
  display: block;
}

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

/* FAQ Section */
.page-lottery__faq-section .page-lottery__heading {
  color: #FFD700;
}

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

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

.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 15px;
  opacity: 0;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05); /* Nền nhẹ cho câu trả lời */
  border-radius: 0 0 5px 5px;
}

.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:active {
  background: rgba(255, 255, 255, 0.2);
}

.page-lottery__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  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: #ffffff;
  transform: rotate(45deg);
}

/* CTA Section */
.page-lottery__cta {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(90deg, #0A2463, #1a3c7c);
}

.page-lottery__cta-content {
  max-width: 800px;
}

.page-lottery__cta .page-lottery__heading {
  color: #FFD700;
  font-size: 38px;
}

.page-lottery__cta .page-lottery__text {
  font-size: 18px;
  margin-bottom: 40px;
}

.page-lottery__cta .page-lottery__button {
  font-size: 22px;
  padding: 18px 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__heading--main {
    font-size: 40px;
  }
  .page-lottery__heading {
    font-size: 28px;
  }
  .page-lottery__cta .page-lottery__heading {
    font-size: 32px;
  }
  .page-lottery__card-image-wrapper {
    width: 100px;
    height: 100px;
  }
  .page-lottery__card-title {
    font-size: 18px;
  }
  .page-lottery__offer-title {
    font-size: 20px;
  }
  .page-lottery__step-icon-wrapper {
    width: 70px;
    height: 70px;
  }
  .page-lottery__step-title {
    font-size: 18px;
  }
  .page-lottery__card--type .page-lottery__card-image-wrapper {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-lottery__heading--main {
    font-size: 32px;
  }
  .page-lottery__heading {
    font-size: 24px;
  }
  .page-lottery__hero-banner {
    padding: 80px 0;
  }
  .page-lottery__hero-banner .page-lottery__button {
    font-size: 18px;
    padding: 12px 30px;
  }
  .page-lottery__grid-3-cols, .page-lottery__grid-2-cols, .page-lottery__guide-steps, .page-lottery__list-tips {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-lottery__dark-section, .page-lottery__light-bg {
    padding: 40px 0;
  }
  .page-lottery__card, .page-lottery__step-item, .page-lottery__list-item, .page-lottery__offer-card {
    padding: 20px;
  }
  .page-lottery__card-image-wrapper {
    width: 90px;
    height: 90px;
  }
  .page-lottery__card-title {
    font-size: 17px;
  }
  .page-lottery__offer-icon-wrapper {
    width: 80px;
    height: 80px;
  }
  .page-lottery__offer-title {
    font-size: 18px;
  }
  .page-lottery__step-icon-wrapper {
    width: 60px;
    height: 60px;
  }
  .page-lottery__step-title {
    font-size: 17px;
  }
  .page-lottery__faq-question {
    padding: 15px;
  }
  .page-lottery__faq-question h3 {
    font-size: 16px;
  }
  .page-lottery__faq-toggle {
    font-size: 22px;
    width: 24px;
    height: 24px;
  }
  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px !important;
  }
  .page-lottery__cta .page-lottery__heading {
    font-size: 28px;
  }
  .page-lottery__cta .page-lottery__text {
    font-size: 16px;
  }
  .page-lottery__cta .page-lottery__button {
    font-size: 18px;
    padding: 15px 35px;
  }
  /* Mobile image adaptation */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-lottery__section,
  .page-lottery__card,
  .page-lottery__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-lottery__heading--main {
    font-size: 28px;
  }
  .page-lottery__heading {
    font-size: 22px;
  }
  .page-lottery__text {
    font-size: 15px;
  }
  .page-lottery__cta .page-lottery__heading {
    font-size: 24px;
  }
  .page-lottery__cta .page-lottery__text {
    font-size: 15px;
  }
  .page-lottery__cta .page-lottery__button {
    font-size: 16px;
    padding: 12px 25px;
  }
  .page-lottery__card-image-wrapper {
    width: 80px;
    height: 80px;
  }
  .page-lottery__card-title {
    font-size: 16px;
  }
  .page-lottery__offer-icon-wrapper {
    width: 70px;
    height: 70px;
  }
  .page-lottery__offer-title {
    font-size: 16px;
  }
  .page-lottery__step-icon-wrapper {
    width: 50px;
    height: 50px;
  }
  .page-lottery__step-title {
    font-size: 16px;
  }
  .page-lottery__faq-question h3 {
    font-size: 15px;
  }
  .page-lottery__faq-toggle {
    font-size: 20px;
    width: 20px;
    height: 20px;
  }
  .page-lottery__card--type .page-lottery__card-image-wrapper {
    height: 180px;
  }
}