/* style/lottery.css */

/* Biến CSS cho màu sắc */
:root {
  --primary-color: #0A2463;
  --secondary-color: #E0B752;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #000000;
  --bg-light-card: rgba(255, 255, 255, 0.1);
  --border-color: #333333;
  --button-hover-dark: #071a47;
  --button-hover-light: #c29e44;
}

/* Đảm bảo nội dung trang không bị che bởi header cố định */
.page-lottery__hero-section {
  padding-top: 120px; /* Điều chỉnh dựa trên chiều cao header cố định */
  background: var(--bg-dark);
  color: var(--text-light);
  position: relative;
  z-index: 1;
}

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

.page-lottery__main-title {
  font-size: 48px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--secondary-color); /* Sử dụng màu vàng cho tiêu đề chính */
  line-height: 1.2;
}

.page-lottery__hero-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-lottery__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-lottery__cta-button--primary:hover {
  background: var(--button-hover-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

/* Các phần chung */
.page-lottery__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 25px;
  color: var(--secondary-color);
  line-height: 1.3;
}

.page-lottery__section-description {
  font-size: 17px;
  text-align: center;
  margin-bottom: 50px;
  line-height: 1.6;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

/* Phần Lợi Ích */
.page-lottery__benefits-section {
  padding: 80px 0;
  background: var(--primary-color);
  color: var(--text-light);
}

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

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

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

.page-lottery__benefit-icon {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-lottery__benefit-text {
  font-size: 16px;
  line-height: 1.6;
}

/* Phần Các Loại Xổ Số */
.page-lottery__games-section {
  padding: 80px 0;
  background: var(--bg-dark);
  color: var(--text-light);
}

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

.page-lottery__game-card {
  background: var(--bg-light-card);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-lottery__game-text {
  font-size: 15px;
  line-height: 1.6;
}

/* Phần Hướng Dẫn */
.page-lottery__how-to-play-section {
  padding: 80px 0;
  background: var(--primary-color);
  color: var(--text-light);
}

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

.page-lottery__step-card {
  background: var(--bg-light-card);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-lottery__step-number {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background: var(--secondary-color);
  color: var(--text-dark);
  border-radius: 50%;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-lottery__step-text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-lottery__step-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__step-button:hover {
  background: var(--button-hover-light);
}

/* Phần Khuyến Mãi */
.page-lottery__promotions-section {
  padding: 80px 0;
  background: var(--bg-dark);
  color: var(--text-light);
}

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

.page-lottery__promo-card {
  background: var(--bg-light-card);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

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

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

.page-lottery__promo-text {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-lottery__promo-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__promo-button:hover {
  background: var(--button-hover-light);
}

.page-lottery__full-promo-cta {
  text-align: center;
  margin-top: 50px;
}

/* Phần Di Động */
.page-lottery__mobile-section {
  padding: 80px 0;
  background: var(--primary-color);
  color: var(--text-light);
}

.page-lottery__mobile-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-lottery__mobile-text-content {
  flex: 1;
}

.page-lottery__mobile-subtitle {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-lottery__mobile-paragraph {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 25px;
}

.page-lottery__mobile-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-lottery__mobile-features li {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
}

.page-lottery__mobile-features .icon-check {
  color: var(--secondary-color);
  margin-right: 10px;
  font-size: 20px;
  line-height: 1.8;
}

.page-lottery__mobile-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-lottery__mobile-app-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Phần An Toàn */
.page-lottery__security-section {
  padding: 80px 0;
  background: var(--bg-dark);
  color: var(--text-light);
}

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

.page-lottery__security-item {
  background: var(--bg-light-card);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-lottery__security-subtitle {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-lottery__security-text {
  font-size: 16px;
  line-height: 1.6;
}

/* Phần FAQ */
.page-lottery__faq-section {
  padding: 80px 0;
  background: var(--primary-color);
  color: var(--text-light);
}

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

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

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--bg-light-card);
  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;
  position: relative;
}

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

.page-lottery__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  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: 32px;
  height: 32px;
}

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  transform: rotate(45deg); /* Hoặc sử dụng '−' */
  color: var(--text-light);
}

.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: rgba(255, 255, 255, 0.05);
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 8px 8px;
}

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

.page-lottery__faq-answer p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 15px;
}

.page-lottery__faq-button {
  display: inline-block;
  padding: 8px 20px;
  background: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__faq-button:hover {
  background: var(--button-hover-light);
}

/* Phần Giới Thiệu Thương Hiệu */
.page-lottery__brand-section {
  padding: 80px 0;
  background: var(--bg-dark);
  color: var(--text-light);
}

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

.page-lottery__brand-item {
  background: var(--bg-light-card);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-lottery__brand-subtitle {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-lottery__brand-text {
  font-size: 16px;
  line-height: 1.6;
}

/* Phần Blog */
.page-lottery__blog-section {
  padding: 80px 0;
  background: var(--primary-color);
  color: var(--text-light);
}

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

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

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

.page-lottery__blog-link {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 25px;
}

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

.page-lottery__blog-item-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
  line-height: 1.4;
}

.page-lottery__blog-item-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 15px;
}

.page-lottery__blog-item-date {
  font-size: 14px;
  color: #aaa;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__main-title {
    font-size: 40px;
  }
  .page-lottery__section-title {
    font-size: 32px;
  }
  .page-lottery__mobile-content {
    flex-direction: column;
    text-align: center;
  }
  .page-lottery__mobile-image-wrapper {
    margin-top: 40px;
  }
  .page-lottery__mobile-features {
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-section {
    padding-top: 100px !important; /* Điều chỉnh cho mobile */
  }
  .page-lottery__main-title {
    font-size: 32px;
  }
  .page-lottery__hero-description {
    font-size: 16px;
  }
  .page-lottery__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-lottery__cta-button {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px !important;
    font-size: 16px !important;
  }
  .page-lottery__section-title {
    font-size: 28px;
  }
  .page-lottery__section-description,
  .page-lottery__mobile-paragraph,
  .page-lottery__mobile-features li,
  .page-lottery__benefit-text,
  .page-lottery__game-text,
  .page-lottery__step-text,
  .page-lottery__promo-text,
  .page-lottery__security-text,
  .page-lottery__faq-answer p,
  .page-lottery__brand-text,
  .page-lottery__blog-item-excerpt {
    font-size: 15px;
  }
  .page-lottery__benefit-card,
  .page-lottery__game-card,
  .page-lottery__step-card,
  .page-lottery__promo-card,
  .page-lottery__security-item,
  .page-lottery__brand-item,
  .page-lottery__blog-item {
    padding: 20px;
  }
  .page-lottery__benefit-icon {
    width: 100px;
  }
  .page-lottery__benefit-title,
  .page-lottery__game-title,
  .page-lottery__step-title,
  .page-lottery__promo-title,
  .page-lottery__security-subtitle,
  .page-lottery__brand-subtitle,
  .page-lottery__blog-item-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-item.active .page-lottery__faq-answer {
    padding: 15px 20px !important;
  }
  .page-lottery__faq-button {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
    padding: 10px 15px !important;
  }
  .page-lottery__mobile-app-image {
    max-width: 300px;
  }
  
  /* Responsive images */
  .page-lottery img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-lottery__container,
  .page-lottery__benefits-grid,
  .page-lottery__game-categories,
  .page-lottery__steps-grid,
  .page-lottery__promo-grid,
  .page-lottery__mobile-content,
  .page-lottery__mobile-image-wrapper,
  .page-lottery__security-features,
  .page-lottery__faq-list,
  .page-lottery__brand-content,
  .page-lottery__blog-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-lottery__main-title {
    font-size: 28px;
  }
  .page-lottery__section-title {
    font-size: 24px;
  }
  .page-lottery__cta-button {
    font-size: 15px !important;
    padding: 10px 20px !important;
  }
  .page-lottery__benefit-title,
  .page-lottery__game-title,
  .page-lottery__step-title,
  .page-lottery__promo-title,
  .page-lottery__security-subtitle,
  .page-lottery__brand-subtitle,
  .page-lottery__blog-item-title {
    font-size: 18px;
  }
  .page-lottery__hero-section,
  .page-lottery__benefits-section,
  .page-lottery__games-section,
  .page-lottery__how-to-play-section,
  .page-lottery__promotions-section,
  .page-lottery__mobile-section,
  .page-lottery__security-section,
  .page-lottery__faq-section,
  .page-lottery__brand-section,
  .page-lottery__blog-section {
    padding: 50px 0;
  }
  .page-lottery__section-description {
    margin-bottom: 30px;
  }
  .page-lottery__mobile-features li {
    font-size: 14px;
  }
}