/* style/lottery.css */
:root {
  --primary-color: #0A2463;
  --secondary-color: #E34234;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0f0f0f;
  --bg-light-card: rgba(255, 255, 255, 0.1);
  --border-color: #444;
}

.page-lottery {
  color: var(--text-light); /* Body background is dark, so text is light */
  background-color: var(--bg-dark);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* General padding for main content */
}

.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, var(--primary-color) 0%, rgba(10, 36, 99, 0.8) 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.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 25px 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;
}

.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(227, 66, 52, 0.85); /* Use secondary color */
  border-radius: 30px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.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 45px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 10px;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-lottery__play-now-button:hover {
  background: #c7372b;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px 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);
}

.page-lottery__title-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

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

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

.page-lottery__title-description {
  font-size: 19px;
  line-height: 1.7;
  margin-bottom: 40px;
  color: #e0e0e0;
}

.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: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

/* FAQ Section */
.page-lottery__faq-section {
  padding: 80px 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

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

.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: #1a3a70; /* Slightly lighter primary color */
  border: 1px solid #2a5a90;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-light);
}

.page-lottery__faq-question:hover {
  background: #2a5a90;
  border-color: #3a6a9a;
}

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

.page-lottery__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #e0e0e0;
  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;
}

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg);
}

.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: #0f2b60; /* Darker background for answer */
  color: #e0e0e0;
  border-radius: 0 0 10px 10px;
}

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

.page-lottery__faq-answer p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
}

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

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

.page-lottery__brand-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text-light);
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
}

.page-lottery__brand-intro-text {
  font-size: 19px;
  line-height: 1.7;
  margin-bottom: 60px;
  color: #e0e0e0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-lottery__brand-item {
  background: var(--bg-light-card);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.page-lottery__brand-item-image {
  width: 150px;
  height: auto;
  margin-bottom: 25px;
  border-radius: 8px;
  object-fit: cover;
  border: 3px solid var(--secondary-color);
  padding: 5px;
  box-shadow: 0 0 15px rgba(227, 66, 52, 0.5);
}

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

.page-lottery__brand-item p {
  font-size: 17px;
  line-height: 1.7;
  color: #c0c0c0;
}

.page-lottery__brand-conclusion {
  font-size: 19px;
  line-height: 1.7;
  margin-top: 60px;
  color: #e0e0e0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Blog Section */
.page-lottery__blog-section {
  padding: 80px 20px;
  background-color: #151515; /* Slightly darker background for blog */
  color: var(--text-light);
}

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

.page-lottery__blog-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--text-light);
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
}

.page-lottery__blog-description {
  font-size: 19px;
  line-height: 1.7;
  margin-bottom: 50px;
  color: #e0e0e0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-lottery__blog-item {
  background: var(--bg-light-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

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

.page-lottery__blog-item-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-lottery__blog-item-content {
  padding: 25px;
  text-align: left;
}

.page-lottery__blog-item-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--secondary-color);
  line-height: 1.4;
}

.page-lottery__blog-item-excerpt {
  font-size: 16px;
  color: #c0c0c0;
  margin-bottom: 15px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-lottery__blog-item-date {
  font-size: 14px;
  color: #888;
  font-style: italic;
}

.page-lottery__view-all-blogs {
  margin-top: 60px;
}

.page-lottery__cta-final-section {
  padding: 100px 20px;
  background: linear-gradient(45deg, var(--secondary-color) 0%, #c7372b 100%);
  text-align: center;
  color: var(--text-light);
  box-shadow: inset 0 8px 30px rgba(0, 0, 0, 0.3);
}

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

.page-lottery__cta-final-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.2;
  text-shadow: 0 3px 5px rgba(0, 0, 0, 0.4);
}

.page-lottery__cta-final-description {
  font-size: 20px;
  line-height: 1.7;
  margin-bottom: 40px;
  color: #ffe0e0;
}

.page-lottery__cta-button--large {
  padding: 18px 50px;
  font-size: 20px;
  border-radius: 10px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-lottery__cta-button--large:hover {
  background-color: #071b4a;
  border-color: #071b4a;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__main-title {
    font-size: 40px;
  }
  .page-lottery__faq-title,
  .page-lottery__brand-title,
  .page-lottery__blog-title,
  .page-lottery__cta-final-title {
    font-size: 36px;
  }
  .page-lottery__brand-item-image {
    width: 120px;
  }
  .page-lottery__blog-item-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-lottery {
    padding-left: 0;
    padding-right: 0;
    font-size: 16px;
    line-height: 1.6;
  }

  .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__title-section,
  .page-lottery__faq-section,
  .page-lottery__brand-section,
  .page-lottery__blog-section,
  .page-lottery__cta-final-section {
    padding: 50px 15px;
  }

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

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

  .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 !important;
    font-size: 16px !important;
  }

  .page-lottery__faq-title,
  .page-lottery__brand-title,
  .page-lottery__blog-title,
  .page-lottery__cta-final-title {
    font-size: 30px;
  }

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

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

  .page-lottery__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

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

  .page-lottery__brand-item-image {
    width: 100px;
  }

  .page-lottery__brand-item h3 {
    font-size: 20px;
  }

  .page-lottery__brand-item p {
    font-size: 16px;
  }

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

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

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

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

  .page-lottery__cta-final-description {
    font-size: 18px;
  }

  .page-lottery__cta-button--large {
    padding: 15px 40px;
    font-size: 18px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Ensure all images are responsive */
  .page-lottery img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-lottery__section,
  .page-lottery__card,
  .page-lottery__container,
  .page-lottery__brand-item,
  .page-lottery__blog-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
}