/* style/lottery.css */
:root {
  --primary-color: #FFD700; /* Vàng */
  --secondary-color: #0A1931; /* Xanh đậm */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #0a0a0a; /* Từ shared.css */
  --card-bg: rgba(255, 255, 255, 0.08); /* Nền thẻ hơi trong suốt */
  --border-color: rgba(255, 255, 255, 0.15);
}

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

.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; /* Adjusted for fixed header */
  background: linear-gradient(135deg, #0A1931, #000000);
}

.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(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 4px 15px rgba(0, 0, 0, 0.4);
  border: 2px solid var(--primary-color);
}

.page-lottery__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
  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: 10px;
  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;
  text-transform: uppercase;
}

.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(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}

.page-lottery__play-now-button:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

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

.page-lottery__title-section {
  text-align: center;
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-lottery__main-title {
  font-size: 44px;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.page-lottery__title-description {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

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

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

.page-lottery__content-section {
  padding: 80px 20px;
}

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

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

.page-lottery__section-title {
  font-size: 38px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 25px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

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

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

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

.page-lottery__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-lottery__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-lottery__feature-text {
  font-size: 16px;
  color: var(--text-light);
}

.page-lottery__brand-section {
  padding: 80px 20px;
  background: #1a1a1a;
  color: var(--text-light);
}

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

.page-lottery__brand-title {
  font-size: 38px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

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

.page-lottery__brand-item {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-lottery__brand-item-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-lottery__brand-item p {
  font-size: 16px;
  color: var(--text-light);
}

.page-lottery__faq-section {
  padding: 80px 20px;
  background: var(--background-dark);
}

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

.page-lottery__faq-list {
  margin-top: 40px;
}

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

.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 20px;
  opacity: 0;
  color: var(--text-dark);
  background: #f0f0f0;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: #f0f0f0;
  border-radius: 0 0 10px 10px;
}

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

.page-lottery__faq-question:active {
  background: 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(--primary-color);
  pointer-events: none;
}

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

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

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

.page-lottery__blog-title {
  font-size: 38px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

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

.page-lottery__blog-item {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-lottery__blog-link {
  display: block;
  text-decoration: none;
  color: var(--text-light);
}

.page-lottery__blog-item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.page-lottery__blog-item-title {
  font-size: 22px;
  color: var(--primary-color);
  padding: 20px 20px 10px 20px;
  margin: 0;
}

.page-lottery__blog-item-excerpt {
  font-size: 15px;
  padding: 0 20px 15px 20px;
  color: rgba(255, 255, 255, 0.8);
}

.page-lottery__blog-item-date {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  padding: 0 20px 20px 20px;
}

.page-lottery__view-more-cta {
  text-align: center;
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__main-title {
    font-size: 38px;
  }
  .page-lottery__section-title, .page-lottery__brand-title, .page-lottery__blog-title {
    font-size: 34px;
  }
  .page-lottery__feature-title, .page-lottery__brand-item-title, .page-lottery__blog-item-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-lottery__video-section {
    padding-top: 10px !important;
    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: 12px 30px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-lottery__main-title {
    font-size: 30px;
  }
  .page-lottery__title-description {
    font-size: 16px;
  }
  .page-lottery__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-lottery__cta-button {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    font-size: 16px;
    padding: 12px 25px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-lottery__section-title, .page-lottery__brand-title, .page-lottery__blog-title {
    font-size: 28px;
  }
  .page-lottery__section-description {
    font-size: 15px;
  }
  .page-lottery__features-grid, .page-lottery__brand-content, .page-lottery__blog-list {
    grid-template-columns: 1fr;
  }
  .page-lottery__feature-item, .page-lottery__brand-item, .page-lottery__blog-item {
    padding: 25px;
  }
  .page-lottery__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-lottery__feature-title, .page-lottery__brand-item-title {
    font-size: 20px;
  }
  .page-lottery__faq-question {
    padding: 15px;
  }
  .page-lottery__faq-question h3 {
    font-size: 16px;
  }
  .page-lottery__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }
  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px !important;
  }
  .page-lottery__blog-item-image {
    height: 180px;
  }
  .page-lottery__blog-item-title {
    font-size: 18px;
  }
  .page-lottery__blog-item-excerpt, .page-lottery__blog-item-date {
    font-size: 14px;
  }
  
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-lottery__section, .page-lottery__card, .page-lottery__container, 
  .page-lottery__title-section, .page-lottery__content-section, 
  .page-lottery__brand-section, .page-lottery__faq-section, 
  .page-lottery__blog-section, .page-lottery__features-grid, 
  .page-lottery__brand-content, .page-lottery__blog-list, 
  .page-lottery__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-lottery__main-title {
    font-size: 26px;
  }
  .page-lottery__section-title, .page-lottery__brand-title, .page-lottery__blog-title {
    font-size: 24px;
  }
  .page-lottery__video-click-hint {
    font-size: 16px;
    padding: 10px 20px;
  }
}