/* style/lottery.css */

:root {
  --page-lottery-primary-color: #FFD700;
  --page-lottery-secondary-color: #1A1A1A;
  --page-lottery-text-light: #ffffff;
  --page-lottery-text-dark: #333333;
  --page-lottery-bg-dark: #000;
  --page-lottery-card-bg: rgba(255, 255, 255, 0.08);
  --page-lottery-border-color: rgba(255, 255, 255, 0.15);
  --page-lottery-hover-color: #ffe066;
  --page-lottery-active-tab-color: #ff0000; /* Red for active tab as per instruction */
}

/* Ensure content is not hidden by fixed header */
.page-lottery {
  padding-top: 0; /* Hero section is full-width, no padding needed here */
  color: var(--page-lottery-text-light); /* Body background is dark, so text is light */
  background-color: var(--page-lottery-bg-dark);
}

/* General Section and Container Styles */
.page-lottery__section {
  width: 100%;
  padding: 60px 20px;
  box-sizing: border-box;
}

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

.page-lottery__heading {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-lottery-primary-color);
  line-height: 1.3;
}

.page-lottery__sub-heading {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--page-lottery-primary-color);
  text-align: left;
}

.page-lottery__paragraph {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--page-lottery-text-light);
}

.page-lottery__highlight {
  color: var(--page-lottery-primary-color);
  font-weight: bold;
}

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

.page-lottery__cta-buttons--center {
  justify-content: center;
}

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

.page-lottery__btn-primary {
  background: var(--page-lottery-primary-color);
  color: var(--page-lottery-secondary-color);
  border-color: var(--page-lottery-primary-color);
}

.page-lottery__btn-primary:hover {
  background: var(--page-lottery-hover-color);
  color: var(--page-lottery-secondary-color);
  border-color: var(--page-lottery-hover-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-lottery__btn-secondary {
  background: transparent;
  color: var(--page-lottery-primary-color);
  border-color: var(--page-lottery-primary-color);
}

.page-lottery__btn-secondary:hover {
  background: var(--page-lottery-primary-color);
  color: var(--page-lottery-secondary-color);
  border-color: var(--page-lottery-primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-lottery__btn-text-link {
  color: var(--page-lottery-primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-lottery__btn-text-link:hover {
  color: var(--page-lottery-hover-color);
  text-decoration: underline;
}

.page-lottery a {
  color: var(--page-lottery-primary-color);
  text-decoration: none;
}

.page-lottery a:hover {
  color: var(--page-lottery-hover-color);
  text-decoration: underline;
}

/* Card Styles */
.page-lottery__card {
  background: var(--page-lottery-card-bg);
  border: 1px solid var(--page-lottery-border-color);
  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;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  color: var(--page-lottery-text-light);
}

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

.page-lottery__card-title {
  font-size: 20px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--page-lottery-primary-color);
}

.page-lottery__card-title a {
  color: var(--page-lottery-primary-color);
  text-decoration: none;
}

.page-lottery__card-title a:hover {
  color: var(--page-lottery-hover-color);
  text-decoration: underline;
}

.page-lottery__card-text {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--page-lottery-text-light);
  flex-grow: 1;
}

/* HERO Section */
.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: var(--page-lottery-secondary-color);
}

.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;
  -ms-overflow-style: none;
  padding: 10px 0;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.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: var(--page-lottery-card-bg);
  border: 1px solid var(--page-lottery-border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto;
}

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

.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;
}

/* Game Showcase Section */
.page-lottery__games-section {
  width: 100%;
  padding: 60px 20px;
  background: var(--page-lottery-bg-dark);
}

.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: 24px;
  font-weight: bold;
  margin: 0 0 20px 0;
  color: var(--page-lottery-primary-color);
  text-align: left;
}

.page-lottery__featured-game {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--page-lottery-card-bg);
  border: 1px solid var(--page-lottery-border-color);
  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(255, 215, 0, 0.25);
}

.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;
}

.page-lottery__games-tab {
  background: none;
  border: none;
  padding: 0;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
  text-decoration: none;
  position: relative;
}

.page-lottery__games-tab:hover {
  color: var(--page-lottery-text-light);
}

.page-lottery__games-tab.active {
  color: var(--page-lottery-active-tab-color);
  text-decoration: underline;
}

.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: var(--page-lottery-card-bg);
  border: 1px solid var(--page-lottery-border-color);
  box-shadow: 0 2px 8px 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 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: 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;
  color: var(--page-lottery-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.4;
}

/* Quick Access Links */
.page-lottery__quick-access {
  padding-top: 40px; /* Adjust if header covers */
}

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

.page-lottery__link-cards .page-lottery__card {
  align-items: center;
  text-align: center;
}

.page-lottery__link-cards .page-lottery__card-text {
  text-align: center;
}

/* Game Types Section */
.page-lottery__game-types {
  background-color: var(--page-lottery-secondary-color);
}

.page-lottery__game-tabs-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(45%, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.page-lottery__game-type-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.page-lottery__game-type-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Promotions Section */
.page-lottery__promotions {
  background-color: var(--page-lottery-bg-dark);
}

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

/* Security & Support Section */
.page-lottery__security-support {
  background-color: var(--page-lottery-secondary-color);
}

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

/* FAQ Section */
.page-lottery__faq {
  background-color: var(--page-lottery-bg-dark);
}

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

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--page-lottery-card-bg);
  border: 1px solid var(--page-lottery-border-color);
}

.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: var(--page-lottery-text-light);
}

.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.12);
  border-radius: 0 0 8px 8px;
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--page-lottery-card-bg);
  border-bottom: 1px solid var(--page-lottery-border-color);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-lottery__faq-item.active .page-lottery__faq-question {
  border-bottom-color: transparent;
}

.page-lottery__faq-question:hover {
  background: rgba(255, 215, 0, 0.1);
}

.page-lottery__faq-question:active {
  background: rgba(255, 215, 0, 0.15);
}

.page-lottery__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--page-lottery-primary-color);
}

.page-lottery__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--page-lottery-primary-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: 28px;
  height: 28px;
}

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  color: var(--page-lottery-hover-color);
  transform: rotate(45deg); /* Plus to X for active */
}

/* Blog Section */
.page-lottery__blog {
  background-color: var(--page-lottery-secondary-color);
}

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

.page-lottery__blog-grid .page-lottery__card {
  padding: 0;
  background: var(--page-lottery-card-bg);
  border: 1px solid var(--page-lottery-border-color);
  border-radius: 12px;
  overflow: hidden;
}

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

.page-lottery__blog-grid .page-lottery__card-title {
  padding: 15px 20px 0;
  font-size: 18px;
  color: var(--page-lottery-primary-color);
}

.page-lottery__blog-grid .page-lottery__card-text {
  padding: 0 20px;
  font-size: 14px;
  color: var(--page-lottery-text-light);
}

.page-lottery__blog-grid .page-lottery__btn-text-link {
  display: inline-block;
  margin: 15px 20px 20px;
}

/* 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__game-type-item {
    width: 100%;
  }
  .page-lottery__game-tabs-content {
    grid-template-columns: 1fr;
  }
  .page-lottery__heading {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-lottery {
    padding-top: 100px; /* Mobile header fixed, add padding to content */
    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__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-lottery__heading {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-lottery__sub-heading {
    font-size: 20px;
  }

  .page-lottery__paragraph {
    font-size: 15px;
  }

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

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

  .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: 20px;
  }
  
  .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__link-cards, .page-lottery__promo-grid, .page-lottery__info-grid, .page-lottery__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery__card {
    padding: 20px;
  }

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

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

  .page-lottery__faq-question {
    padding: 15px;
  }
  
  .page-lottery__faq-question h3 {
    font-size: 15px;
  }
  
  .page-lottery__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  
  .page-lottery__faq-answer {
    padding: 0 15px;
  }
  
  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px !important;
  }

  .page-lottery__blog-image {
    height: 180px;
  }

  .page-lottery__blog-grid .page-lottery__card-title {
    font-size: 16px;
    padding: 12px 15px 0;
  }
  .page-lottery__blog-grid .page-lottery__card-text {
    padding: 0 15px;
  }
  .page-lottery__blog-grid .page-lottery__btn-text-link {
    margin: 12px 15px 15px;
  }
}

@media (max-width: 480px) {
  .page-lottery__heading {
    font-size: 24px;
  }
  .page-lottery__sub-heading {
    font-size: 18px;
  }
  .page-lottery__hero-image {
    height: 250px;
  }
  .page-lottery__featured-game-image {
    height: 200px;
  }
  .page-lottery__games-grid {
    grid-template-columns: 1fr;
  }
  .page-lottery__game-card-image {
    height: 120px;
  }
}