/* style/lottery.css */
:root {
  --primary-color: #0A2342;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #121212; /* From body background */
  --card-background-dark: rgba(255, 255, 255, 0.08);
  --border-color-dark: rgba(255, 255, 255, 0.15);
}

.page-lottery {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--background-dark);
  line-height: 1.6;
}

.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: bold;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
  line-height: 1.2;
}

.page-lottery__description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-lottery__description--note {
  font-style: italic;
  font-size: 16px;
  margin-top: 40px;
}

/* Video Section */
.page-lottery__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Desktop: Adjust for fixed header */
  background-color: var(--primary-color);
}

.page-lottery__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-lottery__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-lottery__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.page-lottery__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from blocking click event */
}

.page-lottery__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-lottery__video-link:hover .page-lottery__video-overlay {
  opacity: 1;
}

.page-lottery__video-click-hint {
  color: var(--text-light);
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  padding: 12px 25px;
  background: rgba(255, 215, 0, 0.8);
  border-radius: 8px;
  white-space: nowrap;
}

.page-lottery__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-lottery__play-now-button {
  display: inline-block;
  padding: 18px 50px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 10px;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-lottery__play-now-button:hover {
  background: #e6c200;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.page-lottery__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-lottery__hero-section {
  background-color: var(--background-dark);
  padding: 80px 0;
  padding-top: 100px; /* Adjust for fixed header */
  text-align: center;
}

.page-lottery__main-title {
  font-size: 48px;
  font-weight: 900;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-lottery__hero-section .page-lottery__description {
  max-width: 900px;
  margin: 0 auto 40px auto;
  font-size: 20px;
  color: var(--text-light);
}

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

.page-lottery__cta-button {
  display: inline-block;
  padding: 15px 35px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
}

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

.page-lottery__cta-button--primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

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

/* General Section Styles */
.page-lottery__about-section, 
.page-lottery__types-section, 
.page-lottery__how-to-play-section, 
.page-lottery__advantages-section, 
.page-lottery__promotions-section, 
.page-lottery__faq-section, 
.page-lottery__cta-final-section {
  padding: 80px 0;
}

.page-lottery__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-lottery__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-lottery__content-grid:nth-child(even) {
  flex-direction: row-reverse;
}

.page-lottery__content-text {
  flex: 1;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-light);
}

.page-lottery__content-text p {
  margin-bottom: 15px;
}

.page-lottery__content-text strong {
  color: var(--secondary-color);
}

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

.page-lottery__content-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block; /* Ensures no extra space below image */
  margin: 0 auto;
}

/* Types Section */
.page-lottery__types-section {
  background-color: var(--background-dark);
}

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

.page-lottery__card {
  background: var(--card-background-dark);
  border: 1px solid var(--border-color-dark);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text-light);
}

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

.page-lottery__card img {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-lottery__card p {
  font-size: 16px;
  margin-bottom: 25px;
  flex-grow: 1;
  color: var(--text-light);
}

.page-lottery__card-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-transform: uppercase;
}

.page-lottery__card-button:hover {
  background: #e6c200;
  transform: translateY(-1px);
}

/* How to Play Section */
.page-lottery__how-to-play-section {
  background-color: var(--primary-color);
}

.page-lottery__step-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  counter-reset: step-counter;
}

.page-lottery__step-item {
  background: var(--card-background-dark);
  border: 1px solid var(--border-color-dark);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-left: 80px;
  color: var(--text-light);
}

.page-lottery__step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 30px;
  top: 30px;
  background: var(--secondary-color);
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-lottery__step-title {
  font-size: 22px;
  color: var(--secondary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-lottery__step-item p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 0;
  color: var(--text-light);
}

.page-lottery__cta-center {
  text-align: center;
  margin-top: 50px;
}

/* Advantages Section */
.page-lottery__advantages-section {
  background-color: var(--background-dark);
}

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

.page-lottery__advantage-item {
  background: var(--card-background-dark);
  border: 1px solid var(--border-color-dark);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: var(--text-light);
}

.page-lottery__advantage-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.12);
}

.page-lottery__advantage-item img {
  max-width: 100px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}

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

.page-lottery__advantage-item p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
}

/* Promotions Section */
.page-lottery__promotions-section {
  background-color: var(--primary-color);
}

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

.page-lottery__promo-card {
  background: var(--card-background-dark);
  border: 1px solid var(--border-color-dark);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text-light);
}

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

.page-lottery__promo-card img {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-lottery__promo-card p {
  font-size: 16px;
  margin-bottom: 25px;
  flex-grow: 1;
  color: var(--text-light);
}

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

.page-lottery__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: var(--card-background-dark);
  border: 1px solid var(--border-color-dark);
  border-radius: 10px;
  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.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.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: 20px;
  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 {
  transform: rotate(45deg);
  color: var(--secondary-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;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0 0 10px 10px;
  color: var(--text-light);
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid var(--border-color-dark);
}

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

/* Final CTA Section */
.page-lottery__cta-final-section {
  padding: 100px 0;
  text-align: center;
}

.page-lottery__cta-final-container {
  max-width: 800px;
}

.page-lottery__cta-final-section .page-lottery__section-title {
  color: var(--secondary-color);
  margin-bottom: 25px;
}

.page-lottery__cta-final-section .page-lottery__description {
  font-size: 20px;
  margin-bottom: 50px;
  color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__section-title {
    font-size: 32px;
  }
  .page-lottery__main-title {
    font-size: 40px;
  }
  .page-lottery__hero-section .page-lottery__description {
    font-size: 18px;
  }
  .page-lottery__content-grid {
    flex-direction: column;
  }
  .page-lottery__content-grid:nth-child(even) {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-lottery__video-section {
    padding-top: 10px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-lottery__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  
  .page-lottery__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-lottery__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 8px;
    overflow: hidden !important;
  }
  
  .page-lottery__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    object-fit: contain;
  }

  .page-lottery__video-click-hint {
    font-size: 16px;
    padding: 10px 20px;
  }

  .page-lottery__video-cta {
    margin-top: 25px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-lottery__play-now-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 15px 30px !important;
    font-size: 18px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-lottery__hero-section {
    padding: 60px 0;
    padding-top: 80px; /* Mobile: Adjust for fixed header */
  }

  .page-lottery__main-title {
    font-size: 32px;
  }

  .page-lottery__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-lottery__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-lottery__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px;
    font-size: 16px;
    white-space: normal;
    word-wrap: break-word;
  }

  .page-lottery__container {
    padding: 0 15px;
  }

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

  .page-lottery__about-section, 
  .page-lottery__types-section, 
  .page-lottery__how-to-play-section, 
  .page-lottery__advantages-section, 
  .page-lottery__promotions-section, 
  .page-lottery__faq-section, 
  .page-lottery__cta-final-section {
    padding: 50px 0;
  }

  .page-lottery__content-text {
    font-size: 16px;
  }
  
  .page-lottery__content-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    border-radius: 8px;
  }

  .page-lottery__cards-grid, .page-lottery__advantages-grid, .page-lottery__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery__card, .page-lottery__advantage-item, .page-lottery__promo-card {
    padding: 20px;
    border-radius: 8px;
  }

  .page-lottery__card img, .page-lottery__promo-card img {
    height: 180px;
    border-radius: 6px;
  }

  .page-lottery__card-title, .page-lottery__promo-title {
    font-size: 20px;
  }

  .page-lottery__card p, .page-lottery__advantage-item p, .page-lottery__promo-card p {
    font-size: 15px;
  }

  .page-lottery__step-item {
    padding: 25px 20px 25px 65px;
  }

  .page-lottery__step-item::before {
    left: 20px;
    top: 25px;
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .page-lottery__step-title {
    font-size: 19px;
  }

  .page-lottery__faq-question {
    padding: 18px 20px;
  }

  .page-lottery__faq-question h3 {
    font-size: 16px;
  }

  .page-lottery__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
    margin-left: 15px;
  }

  .page-lottery__faq-answer {
    padding: 0 20px;
  }

  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 18px 20px !important;
  }

  .page-lottery__faq-answer p {
    font-size: 15px;
  }

  .page-lottery__cta-final-section {
    padding: 60px 0;
  }

  .page-lottery__cta-final-section .page-lottery__section-title {
    font-size: 26px;
  }

  .page-lottery__cta-final-section .page-lottery__description {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .page-lottery__main-title {
    font-size: 28px;
  }
  .page-lottery__section-title {
    font-size: 24px;
  }
  .page-lottery__play-now-button {
    padding: 12px 25px !important;
    font-size: 16px !important;
  }
  .page-lottery__cta-button {
    font-size: 15px;
    padding: 10px 20px;
  }
  .page-lottery__card img, .page-lottery__promo-card img {
    height: 150px;
  }
  .page-lottery__card-title, .page-lottery__promo-title {
    font-size: 18px;
  }
  .page-lottery__step-title {
    font-size: 18px;
  }
  .page-lottery__advantage-title {
    font-size: 19px;
  }
}

/* Ensure all images are responsive */
.page-lottery img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-lottery__section, 
  .page-lottery__card, 
  .page-lottery__container, 
  .page-lottery__content-grid, 
  .page-lottery__advantages-grid, 
  .page-lottery__promo-grid, 
  .page-lottery__faq-list, 
  .page-lottery__cta-final-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure all videos are responsive */
.page-lottery video, .page-lottery__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .page-lottery video, .page-lottery__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-lottery__video-section, .page-lottery__video-container, .page-lottery__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}