/* style/lottery.css */

/* Biến CSS */
:root {
  --primary-color: #1A2E4E;
  --secondary-color: #FFD700;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --background-dark: var(--dark-bg-1, #0d0d0d); /* Giả định dark-bg-1 là màu nền tối */
  --background-light: #f9f9f9;
  --card-background: rgba(255, 255, 255, 0.1);
  --border-color: #e0e0e0;
}

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

/* Fixed header padding */
.page-lottery__hero-section {
  padding-top: 120px; /* Desktop: Adjust based on fixed header height */
}

/* Sections */
.page-lottery__section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-lottery__sub-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-lottery__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-color-light);
  text-align: center;
}

.page-lottery__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  padding: 60px 0;
}

.page-lottery__hero-section {
  background-image: url('[GALLERY:bg:xoso_hero_background,68 gb,lottery_banner]');
  background-size: cover;
  background-position: center;
  padding: 120px 0 80px; /* Adjusted padding-top for fixed header */
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-lottery__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6); /* Overlay for readability */
  z-index: -1;
}

.page-lottery__main-title {
  font-size: 3.5em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.page-lottery__description {
  font-size: 1.3em;
  color: var(--text-color-light);
  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-buttons--center {
  margin-top: 40px;
}

.page-lottery__cta-button {
  display: inline-block;
  padding: 15px 40px;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Responsive button */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__btn-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-lottery__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-lottery__btn-secondary:hover {
  background-color: #0c1a2e;
  border-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Types Section */
.page-lottery__types-section {
  padding: 80px 0;
  background-color: var(--background-light);
  color: var(--text-color-dark);
}

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

.page-lottery__types-section .page-lottery__text-block {
  color: var(--text-color-dark);
}

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

.page-lottery__card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-dark);
  border: 1px solid var(--border-color);
}

.page-lottery__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-lottery__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  display: block;
}

.page-lottery__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-lottery__card-description {
  font-size: 1em;
  color: var(--text-color-dark);
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-lottery__card-link {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-lottery__card-link:hover {
  background-color: #0c1a2e;
}

/* How To Play Section */
.page-lottery__how-to-play-section {
  padding: 80px 0;
}

.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-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.page-lottery__step-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-lottery__step-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-lottery__step-description {
  font-size: 1em;
  color: var(--text-color-light);
}

/* Benefits Section */
.page-lottery__benefits-section {
  padding: 80px 0;
  background-color: var(--background-light);
  color: var(--text-color-dark);
}

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

.page-lottery__benefits-section .page-lottery__text-block {
  color: var(--text-color-dark);
}

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

.page-lottery__feature-item {
  padding: 30px;
  text-align: center;
}

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

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

.page-lottery__feature-description {
  font-size: 1em;
  color: var(--text-color-dark);
}

/* Promotions Section */
.page-lottery__promotions-section {
  padding: 80px 0;
}

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

.page-lottery__promo-item {
  padding-bottom: 25px;
}

.page-lottery__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  margin-bottom: 20px;
}

.page-lottery__promo-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-lottery__promo-description {
  font-size: 1em;
  color: var(--text-color-light);
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-lottery__promo-button {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-lottery__promo-button:hover {
  background-color: #e6c200;
}

/* Tips Section */
.page-lottery__tips-section {
  padding: 80px 0;
  background-color: var(--background-light);
  color: var(--text-color-dark);
}

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

.page-lottery__tips-section .page-lottery__text-block {
  color: var(--text-color-dark);
  text-align: left;
}

.page-lottery__tips-section .page-lottery__sub-title {
  color: var(--primary-color);
}

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

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

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

.page-lottery__tips-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-lottery__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-color-dark);
}

.page-lottery__list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

/* Final CTA Section */
.page-lottery__final-cta-section {
  padding: 80px 0;
  text-align: center;
}

/* Responsive images */
.page-lottery img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .page-lottery__hero-section {
    padding-top: 100px; /* Mobile: Adjust based on mobile fixed header height */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-lottery__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-lottery__description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-lottery__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-lottery__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px !important;
    font-size: 1em !important;
  }

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

  .page-lottery__sub-title {
    font-size: 1.4em;
  }

  .page-lottery__dark-bg, .page-lottery__types-section, .page-lottery__how-to-play-section, .page-lottery__benefits-section, .page-lottery__promotions-section, .page-lottery__tips-section, .page-lottery__final-cta-section {
    padding: 40px 0;
  }

  .page-lottery__container {
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-lottery__grid, .page-lottery__steps-grid, .page-lottery__feature-grid, .page-lottery__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery__card, .page-lottery__step-item, .page-lottery__feature-item, .page-lottery__promo-item {
    padding: 20px;
  }

  .page-lottery__card-image, .page-lottery__promo-image {
    height: 180px;
  }

  .page-lottery__card-title, .page-lottery__promo-title {
    font-size: 1.3em;
  }

  .page-lottery__step-title {
    font-size: 1.4em;
  }

  .page-lottery__feature-title {
    font-size: 1.3em;
  }

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

  .page-lottery__text-block, .page-lottery__list li {
    font-size: 0.95em;
  }

  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}