.page-lottery {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Body background from shared.css */
}

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

.page-lottery__dark-bg {
  background-color: #017439; /* Main brand color for dark sections */
  color: #ffffff;
}

.page-lottery__light-bg {
  background-color: #ffffff; /* Auxiliary color for light sections */
  color: #333333;
}

.page-lottery__hero-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  background-image: url('[GALLERY:hero:1920x1080:xo_so_hero,ty_le_keo_88,giai_thuong_lon,nen_xanh_la,vietnam]');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-lottery__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFF00; /* Custom font color for main title */
}

.page-lottery__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  color: inherit;
}

.page-lottery__section-subtitle {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 60px;
  color: inherit;
}

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

.page-lottery__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

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

.page-lottery__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #017439;
  cursor: pointer;
}

.page-lottery__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #00562c;
}

.page-lottery__introduction-section,
.page-lottery__guide-section,
.page-lottery__security-section,
.page-lottery__conclusion-section {
  padding: 80px 0;
}

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

.page-lottery__content-wrapper:nth-child(even) {
  flex-direction: row-reverse;
}

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

.page-lottery__text-block p {
  margin-bottom: 15px;
}

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

.page-lottery__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-lottery__types-section,
.page-lottery__promotions-section,
.page-lottery__support-faq-section {
  padding: 80px 0;
}

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

.page-lottery__card,
.page-lottery__promo-card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-lottery__card-image,
.page-lottery__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-lottery__card-title,
.page-lottery__promo-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  padding: 0 20px;
  color: #017439;
}

.page-lottery__card-description,
.page-lottery__promo-description {
  font-size: 0.95em;
  margin-bottom: 20px;
  padding: 0 20px;
  flex-grow: 1;
}

.page-lottery__btn-card {
  display: inline-block;
  background-color: #017439;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: auto;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.page-lottery__btn-card:hover {
  background-color: #00562c;
}

.page-lottery__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-lottery__step-item {
  background-color: #f8f8f8;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-lottery__step-icon {
  background-color: #017439;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px auto;
}

.page-lottery__step-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #017439;
}

.page-lottery__tip-block {
  background-color: #fffbe6;
  border-left: 5px solid #ffcc00;
  padding: 20px;
  margin-top: 60px;
  border-radius: 5px;
  color: #333333;
}

.page-lottery__tip-title {
  font-size: 1.4em;
  color: #cc9900;
  margin-bottom: 15px;
}

.page-lottery__tip-block ul {
  list-style-type: disc;
  margin-left: 20px;
}

.page-lottery__tip-block li {
  margin-bottom: 10px;
}

.page-lottery__promo-note {
  text-align: center;
  margin-top: 40px;
  font-style: italic;
  color: #f0f0f0; /* Light text for dark background */
}

.page-lottery__promo-note a {
  color: #FFFF00;
  text-decoration: underline;
}

.page-lottery__contact-info {
  text-align: center;
  margin-bottom: 50px;
  color: #ffffff;
}

.page-lottery__contact-info ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: inline-block; /* Center the list */
  text-align: left;
}

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

.page-lottery__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.page-lottery__faq-question:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

.page-lottery__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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: #f0f0f0;
}

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

.page-lottery__conclusion-section {
  text-align: center;
}

.page-lottery__conclusion-text {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #333333;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-lottery__hero-title {
    font-size: 2.8em;
  }
  .page-lottery__section-title {
    font-size: 2em;
  }
  .page-lottery__content-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .page-lottery__content-wrapper:nth-child(even) {
    flex-direction: column;
  }
  .page-lottery__image-block {
    order: -1;
  }
}

@media (max-width: 768px) {
  .page-lottery {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-lottery__hero-section {
    padding: 80px 0;
  }
  .page-lottery__hero-title {
    font-size: 2.2em;
  }
  .page-lottery__hero-description {
    font-size: 1em;
  }
  .page-lottery__section-title {
    font-size: 1.8em;
  }
  .page-lottery__section-subtitle {
    font-size: 1em;
  }
  .page-lottery__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-lottery__btn-primary,
  .page-lottery__btn-secondary,
  .page-lottery a[class*="button"],
  .page-lottery a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-lottery__introduction-section,
  .page-lottery__types-section,
  .page-lottery__guide-section,
  .page-lottery__promotions-section,
  .page-lottery__security-section,
  .page-lottery__support-faq-section,
  .page-lottery__conclusion-section {
    padding: 50px 0;
  }
  .page-lottery__content-wrapper {
    gap: 20px;
  }
  .page-lottery__image,
  .page-lottery__card-image,
  .page-lottery__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-lottery__section,
  .page-lottery__card,
  .page-lottery__container,
  .page-lottery__content-wrapper,
  .page-lottery__cards-grid,
  .page-lottery__promo-grid,
  .page-lottery__guide-steps,
  .page-lottery__tip-block,
  .page-lottery__contact-info,
  .page-lottery__faq-list,
  .page-lottery__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  .page-lottery__card-image,
  .page-lottery__promo-image {
    height: 180px; /* Adjust height for mobile */
  }
  .page-lottery__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-lottery__faq-answer {
    padding: 0 20px;
  }
  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px 20px;
  }
  .page-lottery__hero-section {
    padding-top: var(--header-offset, 120px) !important; 
  }
}

/* Ensure no image filter is used */
.page-lottery img {
  filter: none; 
}

/* Content area images CSS dimensions lower bound */
.page-lottery img {
  min-width: 200px; /* Enforce minimum width */
  min-height: 200px; /* Enforce minimum height */
}

/* Override specific styles that might reduce image size */
.page-lottery__content-area img,
.page-lottery__text-block img,
.page-lottery__image-block img,
.page-lottery__card-image,
.page-lottery__promo-image {
  width: auto; /* Allow natural width or max-width: 100% */
  height: auto; /* Allow natural height or max-width: 100% */
  max-width: 100%;
}

@media (max-width: 768px) {
  .page-lottery__content-area img,
  .page-lottery__text-block img,
  .page-lottery__image-block img,
  .page-lottery__card-image,
  .page-lottery__promo-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
}