/* style/lottery.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --dark-background: #000;
  --light-text: #ffffff;
  --dark-text: #333333;
  --card-background: #1a1a1a; /* Darker background for cards on dark body */
  --card-border: rgba(255, 255, 255, 0.1);
}

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

.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;
  text-align: center;
  margin-bottom: 40px;
  color: var(--light-text);
  position: relative;
  padding-bottom: 15px;
}

.page-lottery__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.page-lottery__section-description {
  text-align: center;
  font-size: 18px;
  margin-bottom: 50px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.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__cta-buttons--margin-top {
  margin-top: 60px;
}

.page-lottery__cta-button,
.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__cta-button {
  background: var(--primary-color);
  color: var(--light-text);
  box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3);
}

.page-lottery__cta-button:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

.page-lottery__cta-button--large {
  padding: 18px 45px;
  font-size: 20px;
}

.page-lottery__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--dark-text);
  box-shadow: 0 6px 15px rgba(255, 193, 7, 0.3);
}

.page-lottery__cta-button--secondary:hover {
  background: #e0a800;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
}

.page-lottery__btn-primary {
  background: var(--primary-color);
  color: var(--light-text);
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

.page-lottery__btn-primary:hover {
  background: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
}

.page-lottery__dark-section {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
  padding: 80px 0;
  margin-bottom: 0; /* Ensure no extra margin for dark sections */
}

.page-lottery__light-bg {
  background: var(--card-background);
  color: var(--light-text);
}

.page-lottery p {
  color: #e0e0e0;
  margin-bottom: 1em;
}

.page-lottery .highlight {
  color: var(--secondary-color);
}

/* 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(--dark-background);
}

.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: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-lottery__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from interfering with 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: 8px;
  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: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(0, 123, 255, 0.8);
  border-radius: 5px;
  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: 15px 40px;
  background: var(--secondary-color);
  color: var(--dark-text);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__play-now-button:hover {
  background: #e0a800;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 193, 7, 0.3);
}

/* H1 Title Section */
.page-lottery__title-section {
  background-color: var(--dark-background);
  padding: 80px 20px;
  text-align: center;
  color: var(--light-text);
}

.page-lottery__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--light-text);
}

.page-lottery__title-description {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

/* Introduction Section */
.page-lottery__introduction-section {
  padding: 80px 0;
}

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

.page-lottery__text-content {
  flex: 1;
}

.page-lottery__image-content {
  flex: 1;
  text-align: center;
}

.page-lottery__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

/* Features Section */
.page-lottery__features-section {
  padding: 80px 0;
  background-color: var(--dark-background);
}

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

.page-lottery__feature-card {
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-lottery__feature-icon {
  width: 120px; /* Increased size for content image, not icon */
  height: 120px;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

/* Guide Section */
.page-lottery__guide-section {
  padding: 80px 0;
}

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

.page-lottery__step-card {
  background: var(--card-background);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-lottery__step-icon {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background-color: var(--primary-color);
  color: var(--light-text);
  border-radius: 50%;
  font-size: 32px;
  font-weight: bold;
  margin: 0 auto 20px;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.4);
}

/* Promotions Section */
.page-lottery__promotions-section {
  padding: 80px 0;
  background-color: var(--dark-background);
}

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

.page-lottery__promotion-card {
  background: var(--card-background);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-lottery__promotion-image {
  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;
}

/* FAQ Section */
.page-lottery__faq-section {
  padding: 80px 0;
}

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

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}

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

.page-lottery__faq-question:hover {
  background: #2a2a2a;
  border-color: #333;
}

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

.page-lottery__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #aaa;
  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(--secondary-color);
  transform: rotate(45deg); /* Use rotation for '+' to '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 15px;
  opacity: 0;
  background: #101010;
  color: #e0e0e0;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px 15px !important;
  opacity: 1;
  border-top: 1px solid var(--card-border);
  border-radius: 0 0 5px 5px;
}

/* Brand Section */
.page-lottery__brand-section {
  padding: 80px 0;
  background-color: var(--dark-background);
}

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

.page-lottery__brand-item {
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-lottery__brand-logo {
  max-width: 180px; /* Larger logo size */
  height: auto;
  margin: 0 auto 20px;
  display: block;
}

.page-lottery__brand-icon {
  width: 100px; /* Content image size */
  height: 100px;
  margin: 0 auto 20px;
  object-fit: contain;
  display: block;
}

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

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

.page-lottery__blog-item {
  background: var(--card-background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

.page-lottery__blog-item-title {
  font-size: 20px;
  font-weight: bold;
  margin: 20px 20px 10px;
  color: var(--light-text);
}

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

.page-lottery__blog-item-date {
  font-size: 13px;
  color: #999;
  padding: 0 20px 20px;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__main-title {
    font-size: 42px;
  }
  .page-lottery__section-title {
    font-size: 32px;
  }
  .page-lottery__title-description,
  .page-lottery__section-description {
    font-size: 17px;
  }
}

@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: 4px;
    overflow: hidden !important;
  }

  .page-lottery__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    object-fit: contain;
  }

  .page-lottery__video-cta {
    margin-top: 20px;
    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: 12px 30px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-lottery__video-click-hint {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }

  .page-lottery__title-section {
    padding: 60px 15px;
  }

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

  .page-lottery__title-description {
    font-size: 16px;
  }

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

  .page-lottery__cta-button,
  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-lottery__cta-button--large {
    padding: 15px 30px;
    font-size: 18px;
  }

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

  .page-lottery__section-description {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .page-lottery__introduction-section,
  .page-lottery__features-section,
  .page-lottery__guide-section,
  .page-lottery__promotions-section,
  .page-lottery__faq-section,
  .page-lottery__brand-section,
  .page-lottery__blog-section {
    padding: 50px 0;
  }

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

  .page-lottery__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-lottery__feature-icon,
  .page-lottery__step-icon,
  .page-lottery__brand-logo,
  .page-lottery__brand-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }

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

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

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

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

  .page-lottery__blog-item-excerpt,
  .page-lottery__blog-item-date {
    padding: 0 15px 15px;
  }

  .page-lottery__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }

  .page-lottery__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }

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

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

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

  .page-lottery img,
  .page-lottery video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-lottery__section,
  .page-lottery__card,
  .page-lottery__container,
  .page-lottery__video-section,
  .page-lottery__video-container,
  .page-lottery__video-wrapper,
  .page-lottery__cta-buttons,
  .page-lottery__button-group,
  .page-lottery__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

@media (max-width: 480px) {
  .page-lottery__main-title {
    font-size: 28px;
  }
  .page-lottery__section-title {
    font-size: 24px;
  }
  .page-lottery__title-description,
  .page-lottery__section-description {
    font-size: 15px;
  }
  .page-lottery__feature-card,
  .page-lottery__step-card,
  .page-lottery__promotion-card,
  .page-lottery__brand-item,
  .page-lottery__blog-item {
    padding: 20px;
  }
  .page-lottery__card-title {
    font-size: 18px;
  }
}