/* style/lottery.css */

/* Base styles for the lottery page */
.page-lottery {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Default background */
}

/* Header offset for fixed header */
.page-lottery__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-lottery__section {
  padding: 60px 0;
}

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

.page-lottery__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-lottery__section-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* Hero Section */
.page-lottery__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-lottery__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-lottery__dark-bg .page-lottery__section-title,
.page-lottery__dark-bg .page-lottery__hero-title {
  color: #ffffff;
}

.page-lottery__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-lottery__light-bg .page-lottery__section-title,
.page-lottery__light-bg .page-lottery__hero-title {
  color: #26A9E0;
}

.page-lottery__hero-content {
  z-index: 1;
  position: relative;
  max-width: 800px;
  padding: 20px;
}

.page-lottery__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-lottery__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
}

.page-lottery__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.page-lottery__hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.page-lottery__cta-buttons--center {
  margin-top: 40px;
}

.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-lottery__btn-primary {
  background-color: #EA7C07; /* Login button color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-lottery__btn-primary:hover {
  background-color: #d16e06;
  border-color: #d16e06;
}

.page-lottery__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-lottery__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Introduce Section */
.page-lottery__introduce-section .page-lottery__section-text {
  margin-bottom: 20px;
}

.page-lottery__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-lottery__image-block {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
  display: block;
}

.page-lottery__text-block {
  flex: 2;
  font-size: 1.1em;
  text-align: left;
}

/* Video Section */
.page-lottery__video-section {
  padding: 60px 0;
}

.page-lottery__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 40px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-lottery__video {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

/* Types Section */
.page-lottery__card-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: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-lottery__card:hover {
  transform: translateY(-5px);
}

.page-lottery__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
  display: block;
}

.page-lottery__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-lottery__card-link {
  text-decoration: none;
  color: inherit;
}

.page-lottery__card-link:hover {
  text-decoration: underline;
}

.page-lottery__card-description {
  font-size: 0.95em;
  color: #555555;
}

/* Guide Section */
.page-lottery__guide-list {
  list-style: none;
  padding: 0;
  counter-reset: guide-step;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-lottery__guide-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  position: relative;
  padding-left: 70px;
  text-align: left;
}

.page-lottery__guide-item::before {
  counter-increment: guide-step;
  content: "Bước " counter(guide-step);
  position: absolute;
  left: 20px;
  top: 25px;
  background-color: #EA7C07;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
}

.page-lottery__guide-step-title {
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-lottery__guide-item p {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 0;
  text-align: left;
}

.page-lottery__guide-item p a {
  color: #ffffff;
  text-decoration: underline;
}

.page-lottery__guide-item p a:hover {
  color: #f0f0f0;
}

/* Promo Section */
.page-lottery__promo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-lottery__promo-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-lottery__promo-item:hover {
  transform: translateY(-5px);
}

.page-lottery__promo-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__promo-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-lottery__promo-item p {
  font-size: 0.95em;
  color: #555555;
}

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

.page-lottery__benefit-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: background-color 0.3s ease;
}

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

.page-lottery__benefit-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__benefit-title {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-lottery__benefit-item p {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-lottery__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-lottery__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

.page-lottery__faq-question:hover {
  background-color: #f0f0f0;
}

.page-lottery__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

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

.page-lottery__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 15px 25px;
}

.page-lottery__faq-answer p {
  font-size: 1em;
  margin-bottom: 0;
  text-align: left;
}

/* Conclusion Section */
.page-lottery__conclusion-section .page-lottery__section-text {
  margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__hero-title {
    font-size: 3em;
  }

  .page-lottery__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-section {
    flex-direction: column;
    padding-bottom: 40px;
  }

  .page-lottery__hero-title {
    font-size: 2.2em;
  }

  .page-lottery__hero-description {
    font-size: 1em;
  }

  .page-lottery__section {
    padding: 40px 0;
  }

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

  .page-lottery__section-text {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

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

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

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

  .page-lottery__image-text-block {
    flex-direction: column;
    gap: 20px;
  }

  .page-lottery__text-block {
    text-align: center;
  }

  /* Images responsive */
  .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__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-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Video responsive */
  .page-lottery video,
  .page-lottery__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-lottery__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Re-apply for mobile */
  }

  .page-lottery__guide-item {
    padding-left: 20px;
    padding-right: 15px;
  }

  .page-lottery__guide-item::before {
    left: 15px;
    top: 18px;
    width: 35px;
    height: 35px;
    font-size: 0.8em;
  }

  .page-lottery__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

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

  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 10px 20px;
  }

  .page-lottery__hero-image-wrapper {
    margin-top: 20px;
  }

  .page-lottery__promo-icon,
  .page-lottery__benefit-icon {
    width: 100px;
    height: 100px;
    min-width: 100px; /* Adjust min size for mobile */
    min-height: 100px; /* Adjust min size for mobile */
  }
}

@media (max-width: 480px) {
  .page-lottery__hero-title {
    font-size: 1.8em;
  }

  .page-lottery__section-title {
    font-size: 1.5em;
  }
}