/* style/lottery.css */
.page-lottery {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg-1);
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

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

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

.page-lottery__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #FFD700; /* Gold color for main titles */
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.page-lottery__main-title {
  font-size: 44px;
  font-weight: 800;
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-lottery__description, .page-lottery__text-block {
  font-size: 18px;
  color: #f0f0f0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

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

.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.page-lottery__btn-primary {
  background: #FFD700;
  color: #1a1a1a;
  border: 2px solid #FFD700;
}

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

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

/* HERO Section */
.page-lottery__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  margin-top: -120px; /* Offset the padding-top of main to make hero full-width from top */
}

.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 0;
  background: #1a1a1a; /* Auxiliary dark color */
  border-bottom: 1px solid rgba(255, 215, 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: 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 scrolling */
}

.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: #2a2a2a; /* Slightly lighter dark background for logo items */
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto; /* Re-enable pointer events for the logo item itself */
}

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

.page-lottery__logo-item a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 15px;
  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: var(--dark-bg-1);
}

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

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

.page-lottery__featured-game:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px 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: 20px;
  margin-bottom: 20px;
  align-items: center;
  justify-content: flex-start;
}

.page-lottery__games-tab {
  background: none;
  border: none;
  padding: 10px 15px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: #999999;
  transition: color 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
  position: relative;
  border-radius: 6px;
}

.page-lottery__games-tab:hover {
  color: #ffffff;
  background-color: rgba(255, 215, 0, 0.1);
}

.page-lottery__games-tab.active {
  color: #FFD700; /* Gold for active tab */
  background-color: rgba(255, 215, 0, 0.2);
  text-decoration: none;
}

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

.page-lottery__games-grid.active {
  display: grid; /* Active when displayed */
}

.page-lottery__game-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #2a2a2a;
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.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: 14px;
  font-weight: 500;
  margin: 10px 0 0 0;
  padding: 0 5px 10px 5px;
  color: #ffffff; /* Light text for dark card background */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.4;
}

/* Intro Section */
.page-lottery__intro-section {
  padding: 80px 0;
  background: var(--dark-bg-1);
}

.page-lottery__dark-section {
  background: #1a1a1a;
  color: #ffffff;
}

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

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

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

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

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

.page-lottery__feature-text {
  font-size: 16px;
  color: #f0f0f0;
}

/* Quick Access Section */
.page-lottery__quick-access-section {
  padding: 80px 0;
  background: var(--dark-bg-1);
}

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

.page-lottery__access-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #2a2a2a;
  padding: 25px;
  border-radius: 12px;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  height: 180px;
}

.page-lottery__access-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
  background-color: #3a3a3a;
}

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

.page-lottery__access-text {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  color: #FFD700;
}

/* Game Types Section */
.page-lottery__game-types-section {
  padding: 80px 0;
  background: #1a1a1a;
}

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

.page-lottery__game-type-card {
  background: #2a2a2a;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

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

.page-lottery__game-type-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-lottery__game-type-description {
  font-size: 16px;
  color: #f0f0f0;
}

/* Promo Section */
.page-lottery__promo-section {
  padding: 80px 0;
  background: var(--dark-bg-1);
}

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

.page-lottery__promo-card {
  background: #2a2a2a;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

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

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

.page-lottery__promo-description {
  font-size: 16px;
  color: #f0f0f0;
}

/* Security & Support Section */
.page-lottery__security-support-section {
  padding: 80px 0;
  background: #1a1a1a;
}

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

.page-lottery__info-item {
  text-align: center;
  background: #2a2a2a;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

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

.page-lottery__info-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-lottery__info-description {
  font-size: 16px;
  color: #f0f0f0;
}

/* FAQ Section */
.page-lottery__faq-section {
  padding: 80px 0;
  background: var(--dark-bg-1);
}

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

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: #2a2a2a;
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.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;
  color: #f0f0f0;
}

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

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #2a2a2a;
  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: #3a3a3a;
}

.page-lottery__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700;
  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: 30px;
  height: 30px;
}

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

/* Blog Section */
.page-lottery__blog-section {
  padding: 80px 0;
  background: #1a1a1a;
}

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

.page-lottery__blog-card {
  background: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-lottery__blog-content {
  padding: 25px;
}

.page-lottery__blog-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-lottery__blog-excerpt {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__games-layout {
    grid-template-columns: 1fr;
  }
  .page-lottery__games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-lottery__main-title {
    font-size: 38px;
  }
  .page-lottery__section-title {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .page-lottery {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-lottery__container {
    padding: 0 15px !important;
  }
  .page-lottery__main-title {
    font-size: 30px;
    margin-bottom: 20px;
  }
  .page-lottery__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .page-lottery__description, .page-lottery__text-block {
    font-size: 16px;
    margin-bottom: 40px;
  }
  .page-lottery__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-lottery__btn-primary, .page-lottery__btn-secondary {
    width: 100%;
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-lottery__hero-section {
    margin-top: -100px; /* Offset for mobile fixed header */
  }
  .page-lottery__logo-carousel-section {
    padding: 30px 0;
  }
  .page-lottery__logo-item {
    width: 150px;
    height: 150px;
  }
  .page-lottery__games-section {
    padding: 40px 15px;
  }
  .page-lottery__featured-game-title {
    font-size: 22px;
  }
  .page-lottery__featured-game-image {
    height: 300px;
  }
  .page-lottery__games-tabs {
    gap: 15px;
    justify-content: center;
  }
  .page-lottery__games-tab {
    font-size: 16px;
    padding: 8px 12px;
  }
  .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;
    padding: 0 3px 8px 3px;
  }
  .page-lottery__intro-section, .page-lottery__quick-access-section, .page-lottery__game-types-section, .page-lottery__promo-section, .page-lottery__security-support-section, .page-lottery__faq-section, .page-lottery__blog-section {
    padding: 40px 0;
  }
  .page-lottery__feature-item, .page-lottery__access-card, .page-lottery__game-type-card, .page-lottery__promo-card, .page-lottery__info-item, .page-lottery__blog-card {
    padding: 20px;
  }
  .page-lottery__feature-icon, .page-lottery__access-icon, .page-lottery__info-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
  }
  .page-lottery__feature-title, .page-lottery__info-title, .page-lottery__promo-title, .page-lottery__blog-title {
    font-size: 18px;
  }
  .page-lottery__access-text {
    font-size: 16px;
  }
  .page-lottery__game-type-image, .page-lottery__promo-image, .page-lottery__blog-image {
    height: 150px;
  }
  .page-lottery__faq-question {
    padding: 15px;
  }
  .page-lottery__faq-question h3 {
    font-size: 16px;
  }
  .page-lottery__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }
  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px !important;
  }
  .page-lottery__blog-content {
    padding: 15px;
  }
  .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__games-grid {
    grid-template-columns: 1fr;
  }
  .page-lottery__intro-features, .page-lottery__access-links, .page-lottery__game-type-grid, .page-lottery__promo-grid, .page-lottery__info-grid, .page-lottery__blog-grid {
    grid-template-columns: 1fr;
  }
  .page-lottery__logo-item {
    width: 120px;
    height: 120px;
  }
  .page-lottery__games-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }
}