/* style/lottery.css */
.page-lottery {
  color: #f0f0f0; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

.page-lottery__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  margin-top: 120px; /* Adjust for fixed header on desktop */
}

@media (max-width: 768px) {
  .page-lottery__hero-section {
    margin-top: 100px; /* Adjust for fixed header on mobile */
  }
}

.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: rgba(255, 255, 255, 0.03); /* Slightly lighter dark background */
}

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

.page-lottery__logo-carousel {
  display: flex;
  gap: 20px;
  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 carousel itself */
}

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

.page-lottery__logo-item {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08); /* Darker card background */
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto; /* Allow logo-item itself to be clickable */
}

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

.page-lottery__logo-item a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 15px;
  box-sizing: border-box;
  pointer-events: auto; /* Allow link to be clickable */
}

.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: #121212; /* Match body background */
}

.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; /* Gold */
  text-align: left;
}

.page-lottery__featured-game {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.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: 19px;
  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; /* Gold for active tab */
  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: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  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(0, 0, 0, 0.3);
}

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

.page-lottery__game-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

.page-lottery__game-card-title {
  font-size: 15px;
  font-weight: 500;
  margin: 10px 0 15px 0;
  padding: 0 8px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.4;
}

/* General Section Styles */
.page-lottery__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-lottery__heading-primary {
  font-size: 38px;
  font-weight: 700;
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-lottery__heading-secondary {
  font-size: 32px;
  font-weight: 700;
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

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

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

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

.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 200px;
}

.page-lottery__btn-primary {
  background: #FFD700;
  color: #000000; /* Black text on gold for strong contrast */
  border: 2px solid #FFD700;
}

.page-lottery__btn-primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  color: #000000;
  box-shadow: 0 6px 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: #000000;
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

/* Specific Section Backgrounds */
.page-lottery__dark-section {
  background-color: #121212;
  color: #f0f0f0;
  padding: 80px 0;
}

.page-lottery__light-bg {
  background-color: #1a1a1a; /* Slightly lighter dark for contrast */
  color: #f0f0f0;
  padding: 80px 0;
}

/* Quick Access Section */
.page-lottery__links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-lottery__access-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 30px;
  text-decoration: none;
  color: #f0f0f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-lottery__access-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

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

/* Core Games Detail Section */
.page-lottery__game-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-lottery__game-detail-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-lottery__game-detail-card .page-lottery__card-title {
  color: #FFD700;
  font-size: 22px;
  margin-top: 0;
  text-align: left;
}

.page-lottery__game-detail-card .page-lottery__card-description {
  color: #cccccc;
  font-size: 16px;
  text-align: justify;
}

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

.page-lottery__promo-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-lottery__promo-card .page-lottery__card-title {
  color: #FFD700;
  font-size: 20px;
  margin-top: 0;
  text-align: left;
}

.page-lottery__promo-card .page-lottery__card-description {
  color: #cccccc;
  font-size: 15px;
  text-align: justify;
}

/* Security & Support Section */
.page-lottery__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-lottery__feature-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  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;
}

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

.page-lottery__feature-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 20px;
}

.page-lottery__feature-card .page-lottery__card-title {
  color: #FFD700;
  font-size: 20px;
  margin-top: 0;
  text-align: center;
}

.page-lottery__feature-card .page-lottery__card-description {
  color: #cccccc;
  font-size: 15px;
  text-align: center;
}

/* FAQ Section */
.page-lottery__faq-section {
  padding: 80px 0;
}

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

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
}

.page-lottery__faq-answer p {
  color: #cccccc;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.12);
  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);
}

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

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

/* Blog Section */
.page-lottery__blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-lottery__blog-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

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

.page-lottery__blog-card .page-lottery__card-description {
  color: #cccccc;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.page-lottery__blog-date {
  font-size: 14px;
  color: #999999;
  display: block;
  text-align: right;
}

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

@media (max-width: 1024px) {
  .page-lottery__games-layout {
    grid-template-columns: 1fr;
  }
  
  .page-lottery__games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-lottery__featured-game-image {
    height: 400px;
  }

  .page-lottery__heading-primary {
    font-size: 32px;
  }
  
  .page-lottery__heading-secondary {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-lottery__hero-section,
  .page-lottery__logo-carousel-section,
  .page-lottery__games-section,
  .page-lottery__introduction-section,
  .page-lottery__quick-access-section,
  .page-lottery__core-games-section,
  .page-lottery__promotions-section,
  .page-lottery__security-support-section,
  .page-lottery__faq-section,
  .page-lottery__blog-section,
  .page-lottery__container,
  .page-lottery__card,
  .page-lottery__access-card,
  .page-lottery__game-detail-card,
  .page-lottery__promo-card,
  .page-lottery__feature-card,
  .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__hero-image img {
    width: 100%;
    height: auto;
  }

  .page-lottery__logo-carousel-section {
    padding: 30px 15px;
  }
  
  .page-lottery__logo-item {
    width: 150px;
    height: 150px;
  }
  
  .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;
  }
  
  .page-lottery__featured-game-image {
    height: 300px;
  }
  
  .page-lottery__games-tabs {
    gap: 15px;
  }
  
  .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: 150px;
  }
  
  .page-lottery__game-card-title {
    font-size: 13px;
    margin: 8px 0 0 0;
    padding: 0 3px;
  }

  .page-lottery__heading-primary {
    font-size: 28px;
  }

  .page-lottery__heading-secondary {
    font-size: 24px;
  }
  
  .page-lottery__text-block {
    font-size: 15px;
  }

  .page-lottery__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    min-width: unset;
    width: 100%;
    font-size: 16px;
    padding: 12px 20px;
  }

  .page-lottery__links-grid,
  .page-lottery__game-detail-grid,
  .page-lottery__promo-grid,
  .page-lottery__feature-grid,
  .page-lottery__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery__access-card img,
  .page-lottery__feature-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }

  .page-lottery__card-title {
    font-size: 18px;
  }

  .page-lottery__card-description {
    font-size: 14px;
  }

  .page-lottery__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-lottery__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-lottery__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-lottery__faq-answer {
    padding: 0 15px;
  }
  
  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px !important;
  }

  .page-lottery__blog-card .page-lottery__card-title {
    font-size: 18px;
  }

  .page-lottery__blog-card img {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .page-lottery__games-grid {
    grid-template-columns: 1fr;
  }
  .page-lottery__games-tab {
    font-size: 14px;
  }
}