/* style/lottery.css */
.page-lottery {
  /* Màu chữ mặc định cho nội dung chính trên nền tối */
  color: #f0f0f0;
  background-color: #0a0a0a; /* Thừa hưởng từ body, nhưng đảm bảo */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Đảm bảo nội dung không bị che bởi header cố định */
.page-lottery__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
}

.page-lottery__hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.page-lottery__hero-image {
  width: 100%;
  margin: 0;
}

.page-lottery__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* LOGO Carousel Section */
.page-lottery__logo-carousel-section {
  width: 100%;
  padding: 40px 20px;
  background: #1a1a1a; /* Nền tối hơn cho phần carousel */
  box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.2);
}

.page-lottery__logo-carousel-container {
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.page-lottery__logo-carousel {
  display: flex;
  gap: 30px;
  overflow: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  padding: 10px 0;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none; /* Disable user interaction for auto-scroll */
}

.page-lottery__logo-carousel::-webkit-scrollbar {
  display: none;
}

.page-lottery__logo-item {
  flex-shrink: 0;
  width: 200px;
  height: 100px; /* Reduced height for logos */
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff; /* Nền trắng cho logo */
  border: 1px solid #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto; /* Allow logo items to be clickable */
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-lottery__logo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.page-lottery__logo-item a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px; /* Adjusted padding */
  box-sizing: border-box;
  pointer-events: auto;
}

.page-lottery__logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Games Section */
.page-lottery__games-section {
  width: 100%;
  padding: 60px 20px;
  background: #0a0a0a;
}

.page-lottery__games-container {
  max-width: 1400px;
  margin: 0 auto;
}

.page-lottery__games-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  align-items: start;
}

.page-lottery__featured-game-area {
  width: 100%;
}

.page-lottery__featured-game-title {
  font-size: 28px;
  font-weight: bold;
  margin: 0 0 20px 0;
  color: #ffd700; /* Vàng */
  text-align: left;
  text-transform: uppercase;
}

.page-lottery__featured-game {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #1c1c1c; /* Nền tối cho card game nổi bật */
  border: 1px solid #333333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__featured-game:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
}

.page-lottery__featured-game-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-lottery__featured-game-image {
  width: 100%;
  height: 500px;
  overflow: hidden;
}

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

.page-lottery__games-grid-area {
  width: 100%;
}

.page-lottery__games-tabs {
  display: flex;
  gap: 25px;
  margin-bottom: 25px;
  align-items: center;
  justify-content: flex-start;
}

.page-lottery__games-tab {
  background: none;
  border: none;
  padding: 8px 0;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: #999999;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  text-decoration: none;
  position: relative;
  text-transform: uppercase;
}

.page-lottery__games-tab:hover {
  color: #ffffff;
}

.page-lottery__games-tab.active {
  color: #ffd700; /* Vàng */
  border-bottom: 3px solid #ffd700;
}

.page-lottery__games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  display: none;
}

.page-lottery__games-grid.active {
  display: grid;
}

.page-lottery__game-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #1c1c1c; /* Nền tối cho card game */
  border: 1px solid #333333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.page-lottery__game-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-lottery__game-card-image {
  width: 100%;
  height: 150px; /* Chiều cao cố định cho ảnh game card */
  overflow: hidden;
}

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

.page-lottery__game-card-title {
  font-size: 14px;
  font-weight: 500;
  margin: 10px 0 10px 0;
  padding: 0 8px;
  color: #ffffff; /* Chữ trắng trên nền tối */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.4;
}

/* General Section Styles */
.page-lottery__section {
  padding: 60px 20px;
  background-color: #0a0a0a;
  color: #f0f0f0;
}

.page-lottery__section:nth-of-type(odd) {
  background-color: #1a1a1a;
}

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

.page-lottery__heading {
  font-size: 32px;
  font-weight: bold;
  color: #ffd700; /* Vàng */
  text-align: center;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.page-lottery__text--highlight {
  color: #ffd700;
  font-weight: bold;
  text-align: center;
  font-size: 18px;
}

.page-lottery__call-to-action {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-lottery__button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

.page-lottery__btn-primary {
  background: #ffd700;
  color: #0a0a0a;
  border: 2px solid #ffd700;
}

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

.page-lottery__btn-secondary {
  background: transparent;
  color: #ffd700;
  border: 2px solid #ffd700;
}

.page-lottery__btn-secondary:hover {
  background: #ffd700;
  color: #0a0a0a;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Quick Links Section */
.page-lottery__quick-links .page-lottery__heading {
  color: #ffd700;
}

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

.page-lottery__link-card {
  background: #1c1c1c;
  border: 1px solid #333333;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: #f0f0f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.page-lottery__link-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

.page-lottery__link-icon {
  font-size: 48px;
  color: #ffd700;
  margin-bottom: 15px;
}

.page-lottery__link-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-lottery__link-description {
  font-size: 14px;
  color: #b0b0b0;
  line-height: 1.5;
}

/* Core Games Section */
.page-lottery__core-games .page-lottery__heading {
  color: #ffd700;
}

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

.page-lottery__game-category-card {
  background: #1c1c1c;
  border: 1px solid #333333;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #f0f0f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-lottery__game-category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

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

.page-lottery__category-title {
  font-size: 22px;
  font-weight: bold;
  color: #ffd700;
  margin-bottom: 15px;
}

.page-lottery__category-description {
  font-size: 15px;
  color: #b0b0b0;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-lottery__btn-link {
  background: #8B0000; /* Đỏ sẫm */
  color: #ffffff;
  border: 2px solid #8B0000;
  padding: 10px 25px;
}

.page-lottery__btn-link:hover {
  background: #a00000;
  border-color: #a00000;
  box-shadow: 0 5px 15px rgba(139, 0, 0, 0.4);
}

/* Promotions Section */
.page-lottery__promotions .page-lottery__heading {
  color: #ffd700;
}

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

.page-lottery__promo-card {
  background: #1c1c1c;
  border: 1px solid #333333;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: #f0f0f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

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

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

.page-lottery__promo-title {
  font-size: 22px;
  font-weight: bold;
  color: #ffd700;
  margin-bottom: 15px;
}

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

.page-lottery__btn-promo {
  background: #ffd700;
  color: #0a0a0a;
  border: 2px solid #ffd700;
  padding: 10px 25px;
}

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

/* Security & Support Section */
.page-lottery__security-support .page-lottery__heading {
  color: #ffd700;
}

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

.page-lottery__feature-item {
  background: #1c1c1c;
  border: 1px solid #333333;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: #f0f0f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

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

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

.page-lottery__contact-info {
  margin-top: 40px;
  text-align: center;
  background: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 10px;
  padding: 30px;
}

.page-lottery__contact-info p {
  font-size: 18px;
  font-weight: bold;
  color: #ffd700;
  margin-bottom: 15px;
}

.page-lottery__contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-lottery__contact-info li {
  margin-bottom: 10px;
  font-size: 16px;
  color: #e0e0e0;
}

.page-lottery__contact-info li a {
  color: #ffd700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-lottery__contact-info li a:hover {
  color: #ffffff;
  text-decoration: underline;
}

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

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

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #333333;
  background: #1c1c1c;
}

.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;
  padding: 0 20px;
  opacity: 0;
  color: #b0b0b0;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important; 
  padding: 20px !important;
  opacity: 1;
  background: #1a1a1a;
  border-radius: 0 0 8px 8px;
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1c1c1c;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-lottery__faq-question:hover {
  background: #2a2a2a;
}

.page-lottery__faq-question:active {
  background: #3a3a3a;
}

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

.page-lottery__faq-toggle {
  font-size: 28px;
  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: 30px;
  height: 30px;
}

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
}

/* Latest Blog Section */
.page-lottery__latest-blog .page-lottery__heading {
  color: #ffd700;
}

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

.page-lottery__blog-card {
  background: #1c1c1c;
  border: 1px solid #333333;
  border-radius: 10px;
  overflow: hidden;
  color: #f0f0f0;
  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 20px rgba(255, 215, 0, 0.2);
}

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

.page-lottery__blog-title {
  font-size: 20px;
  font-weight: bold;
  margin: 20px 20px 10px 20px;
  color: #ffd700;
}

.page-lottery__blog-title a {
  color: #ffd700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-lottery__blog-title a:hover {
  color: #ffffff;
  text-decoration: underline;
}

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

.page-lottery__btn-readmore {
  display: inline-block;
  background: #8B0000;
  color: #ffffff;
  border: 2px solid #8B0000;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  transition: all 0.3s ease;
  margin: 0 20px 20px 20px;
  align-self: flex-start;
}

.page-lottery__btn-readmore:hover {
  background: #a00000;
  border-color: #a00000;
  box-shadow: 0 5px 15px rgba(139, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .page-lottery__container {
    padding: 0 20px;
  }
}

@media (max-width: 1024px) {
  .page-lottery__games-layout {
    grid-template-columns: 1fr;
  }
  .page-lottery__featured-game-image {
    height: 400px;
  }
  .page-lottery__games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-lottery__games-tab {
    font-size: 17px;
  }
  .page-lottery__heading {
    font-size: 28px;
  }
  .page-lottery__game-card-image {
    height: 120px;
  }
  .page-lottery__game-card-title {
    font-size: 13px;
    margin: 8px 0 8px 0;
  }
  .page-lottery__logo-item {
    width: 180px;
    height: 90px;
  }
  .page-lottery__logo-carousel {
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .page-lottery {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-lottery__section,
  .page-lottery__container,
  .page-lottery__link-card,
  .page-lottery__game-category-card,
  .page-lottery__promo-card,
  .page-lottery__feature-item,
  .page-lottery__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-lottery__hero-section {
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .page-lottery__logo-carousel-section {
    padding: 30px 15px;
  }
  .page-lottery__logo-item {
    width: 140px;
    height: 70px;
  }
  .page-lottery__logo-carousel {
    gap: 15px;
  }
  .page-lottery__games-section {
    padding: 40px 15px;
  }
  .page-lottery__games-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-lottery__featured-game-title {
    font-size: 24px;
    margin-bottom: 15px;
  }
  .page-lottery__featured-game-image {
    height: 250px;
  }
  .page-lottery__games-tabs {
    gap: 15px;
    justify-content: center;
  }
  .page-lottery__games-tab {
    font-size: 16px;
  }
  .page-lottery__games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-lottery__game-card-image {
    height: 100px;
  }
  .page-lottery__game-card-title {
    font-size: 12px;
    margin: 5px 0 5px 0;
    padding: 0 5px;
  }
  .page-lottery__heading {
    font-size: 24px;
    margin-bottom: 25px;
  }
  .page-lottery__text {
    font-size: 15px;
    margin-bottom: 15px;
  }
  .page-lottery__call-to-action {
    flex-direction: column;
    gap: 15px;
  }
  .page-lottery__button {
    padding: 10px 20px;
    font-size: 15px;
    width: 100%;
    max-width: 300px;
  }
  .page-lottery__links-grid, .page-lottery__game-categories, .page-lottery__promo-grid, .page-lottery__features-grid, .page-lottery__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-lottery__link-card, .page-lottery__game-category-card, .page-lottery__promo-card, .page-lottery__feature-item, .page-lottery__blog-card {
    padding: 20px;
  }
  .page-lottery__link-icon {
    font-size: 40px;
    margin-bottom: 10px;
  }
  .page-lottery__link-title, .page-lottery__category-title, .page-lottery__promo-title, .page-lottery__feature-title, .page-lottery__blog-title {
    font-size: 18px;
  }
  .page-lottery__link-description, .page-lottery__category-description, .page-lottery__promo-description, .page-lottery__feature-description, .page-lottery__blog-excerpt {
    font-size: 14px;
  }
  .page-lottery__faq-question {
    padding: 15px;
  }
  .page-lottery__faq-question h3 {
    font-size: 15px;
  }
  .page-lottery__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }
  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px !important;
  }
  .page-lottery__contact-info {
    padding: 20px;
  }
  .page-lottery__contact-info p {
    font-size: 16px;
  }
  .page-lottery__contact-info li {
    font-size: 14px;
  }
}