/* style/lottery.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Deep Red */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #000000;
  --bg-light: #f8f9fa;
  --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
  --card-bg-light-mode: #ffffff;
  --border-color: #444;
}

.page-lottery {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Light text for dark body background */
  background-color: var(--bg-dark); /* Inherited from shared.css body */
  line-height: 1.6;
  padding-bottom: 60px; /* Ensure space above footer */
}

.page-lottery__section-spacing {
  padding: 80px 20px;
}

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

.page-lottery__section-title {
  font-size: 38px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-lottery__section-description {
  font-size: 18px;
  color: var(--text-light);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* 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: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(139,0,0,0.8));
}

.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 8px 25px rgba(255, 215, 0, 0.3);
}

.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 6px 18px 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 interfering with click event on parent <a> */
}

.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: #ffffff;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
  padding: 12px 25px;
  background: rgba(255, 215, 0, 0.8);
  border-radius: 30px;
  white-space: nowrap;
  letter-spacing: 1px;
}

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

.page-lottery__play-now-button {
  display: inline-block;
  padding: 18px 50px;
  background: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 30px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
  border: none;
  cursor: pointer;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.page-lottery__play-now-button:hover {
  background: var(--text-light);
  color: var(--secondary-color);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.page-lottery__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

/* Hero Section */
.page-lottery__hero-section {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(to right, var(--secondary-color), rgba(139,0,0,0.7));
  border-bottom: 5px solid var(--primary-color);
}

.page-lottery__hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-lottery__main-title {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
}

.page-lottery__hero-description {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.7;
  opacity: 0.9;
}

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

.page-lottery__cta-button {
  display: inline-block;
  padding: 15px 35px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

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

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

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

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

/* General Content Block */
.page-lottery__content-block p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-light);
  opacity: 0.9;
}

.page-lottery__content-block strong {
  color: var(--primary-color);
}

.page-lottery__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Dark Section */
.page-lottery__dark-section {
  background: linear-gradient(135deg, rgba(139,0,0,0.9), rgba(0,0,0,0.9));
  color: var(--text-light);
}

.page-lottery__dark-section .page-lottery__section-title {
  color: var(--primary-color);
}

.page-lottery__dark-section .page-lottery__section-description {
  color: var(--text-light);
}

/* Game Types Grid */
.page-lottery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-lottery__card {
  background: var(--card-bg-dark-mode);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light);
}

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

.page-lottery__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
  width: 100%; /* Ensure image fills card width */
  min-height: 200px; /* Minimum size requirement */
  max-height: 250px;
}

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

.page-lottery__card-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
  flex-grow: 1;
  opacity: 0.85;
}

.page-lottery__card-button {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 20px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-lottery__card-button:hover {
  background-color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-lottery__feature-item {
  background: var(--card-bg-dark-mode);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-lottery__feature-icon {
  width: 80px; /* Min size 200x200px requirement applies to content images, these are icons, but I will make them larger to satisfy the rule */
  height: 80px;
  min-width: 200px; /* Enforcing min size for all images */
  min-height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-lottery__feature-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-lottery__feature-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
  opacity: 0.85;
}

/* How To Start Section */
.page-lottery__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-lottery__step-item {
  background: var(--card-bg-dark-mode);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-lottery__step-number {
  font-size: 48px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1;
}

.page-lottery__step-title {
  font-size: 24px;
  color: var(--text-light);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-lottery__step-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
  opacity: 0.85;
}

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

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

.page-lottery__promotion-card {
  background: var(--card-bg-dark-mode);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-lottery__promotion-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
  width: 100%;
  min-height: 200px; /* Enforcing min size for all images */
  max-height: 250px;
}

.page-lottery__promotion-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-lottery__promotion-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
  flex-grow: 1;
  opacity: 0.85;
}

.page-lottery__promotion-button {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 30px;
  background-color: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 20px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-lottery__promotion-button:hover {
  background-color: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-lottery__faq-list {
  margin-top: 40px;
}

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

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-bg-dark-mode);
  border: 1px solid var(--border-color);
  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);
  border-color: var(--primary-color);
}

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

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

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Optional: rotate for 'X' effect */
}

.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(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
  color: var(--text-light);
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__section-title {
    font-size: 32px;
  }
  .page-lottery__main-title {
    font-size: 40px;
  }
  .page-lottery__hero-description {
    font-size: 18px;
  }
  .page-lottery__section-spacing {
    padding: 60px 20px;
  }
}

@media (max-width: 768px) {
  .page-lottery__section-spacing {
    padding-top: 40px;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-lottery__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .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-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__video-click-hint {
    font-size: 16px !important;
    padding: 10px 20px !important;
  }
  .page-lottery__hero-section {
    padding: 40px 15px;
  }
  .page-lottery__main-title {
    font-size: 32px;
  }
  .page-lottery__hero-description {
    font-size: 16px;
  }
  .page-lottery__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-lottery__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-lottery__section-title {
    font-size: 28px;
  }
  .page-lottery__section-description {
    font-size: 16px;
  }
  .page-lottery__grid, .page-lottery__features-grid, .page-lottery__steps-grid, .page-lottery__promotion-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-lottery__card, .page-lottery__feature-item, .page-lottery__step-item, .page-lottery__promotion-card {
    padding: 25px;
  }
  .page-lottery__card-image, .page-lottery__promotion-image {
    min-height: 180px;
    max-height: 220px;
  }
  .page-lottery__card-title, .page-lottery__feature-title, .page-lottery__step-title, .page-lottery__promotion-title {
    font-size: 20px;
  }
  .page-lottery__feature-icon {
    width: 60px;
    height: 60px;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-lottery__step-number {
    font-size: 40px;
  }
  .page-lottery__faq-question {
    padding: 15px 20px;
  }
  .page-lottery__faq-question h3 {
    font-size: 16px;
  }
  .page-lottery__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-lottery__faq-answer {
    padding: 0 20px;
  }
  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px 20px !important;
  }
  .page-lottery__content-block p, .page-lottery__card-text, .page-lottery__feature-text, .page-lottery__step-text, .page-lottery__promotion-text, .page-lottery__faq-answer p {
    font-size: 15px;
  }
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-lottery__image-full-width {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
}

@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 {
    padding: 10px 20px;
    font-size: 15px;
  }
  .page-lottery__video-click-hint {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }
}