:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark-main: #0d1117; /* Body background from shared.css */
  --bg-light-card: #f9f9f9;
  --border-light: #e0e0e0;
}

.page-lottery {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Ensure light text on dark body background */
  background-color: var(--bg-dark-main); /* Inherit from body/shared.css but ensure consistency */
}

.page-lottery__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 120px; /* Desktop: Adjust for fixed header */
  background: linear-gradient(135deg, #0d1117 0%, #1a2a3a 100%);
}

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

.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 on parent link */
}

.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.6);
  padding: 12px 25px;
  background: rgba(0, 123, 255, 0.85); /* Primary color with transparency */
  border-radius: 50px;
  white-space: nowrap;
}

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

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

.page-lottery__play-now-button:hover {
  background: #0056b3;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.6);
}

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

.page-lottery__hero-section {
  background: var(--bg-dark-main);
  padding: 80px 20px;
  text-align: center;
  margin-top: -100px; /* Pull up to overlap with video section */
  position: relative;
  z-index: 2;
}

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

.page-lottery__main-title {
  font-size: 44px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 25px;
  line-height: 1.2;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.page-lottery__hero-description {
  font-size: 18px;
  color: #cccccc;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-lottery__cta-button {
  display: inline-block;
  padding: 16px 35px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px 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: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-lottery__cta-button--primary:hover {
  background: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px 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(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-lottery__faq-section {
  background: #1a2a3a;
  padding: 80px 20px;
}

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

.page-lottery__faq-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  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: #2b3e50; /* Darker background for question */
  border: 1px solid #3a506a;
  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: #3a506a;
  border-color: #4a6480;
}

.page-lottery__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 19px;
  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: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 193, 7, 0.2);
}

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  color: var(--text-light);
  background: var(--secondary-color);
  transform: rotate(180deg);
}

.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: #1f3041; /* Slightly lighter than question background */
  color: #cccccc;
  border-radius: 0 0 8px 8px;
}

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

.page-lottery__faq-answer p {
  margin: 0;
  font-size: 16px;
}

.page-lottery__brand-section {
  background: #0d1117;
  padding: 80px 20px;
}

.page-lottery__brand-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-lottery__brand-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

.page-lottery__brand-item {
  background: #1a2a3a;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-lottery__brand-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-lottery__brand-item-image {
  width: 100%;
  max-width: 300px; /* Adjust max-width for images within cards */
  height: auto;
  object-fit: contain;
  margin: 0 auto 25px auto;
  border-radius: 8px;
}

.page-lottery__brand-item h3 {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 600;
  flex-shrink: 0;
}

.page-lottery__brand-item p {
  font-size: 16px;
  color: #cccccc;
  flex-grow: 1;
}

.page-lottery__blog-section {
  background: #1a2a3a;
  padding: 80px 20px;
}

.page-lottery__blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-lottery__blog-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

.page-lottery__blog-item {
  background: #2b3e50;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure equal height */
  display: flex;
  flex-direction: column;
}

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

.page-lottery__blog-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-lottery__blog-item-image {
  width: 100%;
  height: 200px; /* Fixed height for blog images */
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  flex-shrink: 0;
}

.page-lottery__blog-item-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-light);
  margin: 20px 20px 10px 20px;
  flex-shrink: 0;
}

.page-lottery__blog-item-excerpt {
  font-size: 15px;
  color: #bbbbbb;
  margin: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-lottery__blog-item-date {
  font-size: 14px;
  color: var(--secondary-color);
  margin: 0 20px 20px 20px;
  text-align: right;
  flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__main-title {
    font-size: 38px;
  }
  .page-lottery__hero-description {
    font-size: 17px;
  }
  .page-lottery__faq-title,
  .page-lottery__brand-title,
  .page-lottery__blog-title {
    font-size: 34px;
  }
}

@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 !important;
    padding: 10px 20px !important;
  }
  
  .page-lottery__video-cta {
    margin-top: 30px;
    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 15px;
    margin-top: -80px; /* Adjust overlap for mobile */
  }
  
  .page-lottery__main-title {
    font-size: 32px;
  }
  
  .page-lottery__hero-description {
    font-size: 16px;
  }
  
  .page-lottery__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .page-lottery__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 25px;
    font-size: 16px;
  }

  .page-lottery__faq-section,
  .page-lottery__brand-section,
  .page-lottery__blog-section {
    padding: 60px 15px;
  }
  
  .page-lottery__faq-title,
  .page-lottery__brand-title,
  .page-lottery__blog-title {
    font-size: 30px;
    margin-bottom: 40px;
  }
  
  .page-lottery__faq-question {
    padding: 18px 20px;
    flex-wrap: wrap;
  }
  
  .page-lottery__faq-question h3 {
    font-size: 17px;
    width: calc(100% - 40px);
  }
  
  .page-lottery__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  
  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 18px 20px !important;
  }
  
  .page-lottery__faq-answer p {
    font-size: 15px;
  }

  .page-lottery__brand-content {
    grid-template-columns: 1fr;
  }

  .page-lottery__brand-item {
    padding: 25px;
  }
  
  .page-lottery__brand-item-image {
    max-width: 250px; /* Adjust max-width for images within cards */
    margin-bottom: 20px;
  }

  .page-lottery__brand-item h3 {
    font-size: 22px;
  }
  
  .page-lottery__brand-item p {
    font-size: 15px;
  }

  .page-lottery__blog-list {
    grid-template-columns: 1fr;
  }

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

  .page-lottery__blog-item-title {
    font-size: 20px;
    margin: 15px 15px 8px 15px;
  }

  .page-lottery__blog-item-excerpt {
    font-size: 14px;
    margin: 0 15px 15px 15px;
  }

  .page-lottery__blog-item-date {
    margin: 0 15px 15px 15px;
  }
  
  /* General image responsive styles */
  .page-lottery img,
  .page-lottery video {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-lottery__section,
  .page-lottery__card,
  .page-lottery__container,
  .page-lottery__video-section,
  .page-lottery__video-container,
  .page-lottery__video-wrapper,
  .page-lottery__hero-section,
  .page-lottery__hero-container,
  .page-lottery__faq-section,
  .page-lottery__faq-container,
  .page-lottery__brand-section,
  .page-lottery__brand-container,
  .page-lottery__blog-section,
  .page-lottery__blog-container,
  .page-lottery__cta-buttons,
  .page-lottery__blog-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-lottery__video-section {
    padding-left: 0;
    padding-right: 0;
  }
}