/* style/lottery.css */

/* Base styles for the lottery page */
.page-lottery {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default dark text for light body background */
  line-height: 1.6;
  background-color: #ffffff; /* Explicitly set for content area if body is default white */
}

/* Sections layout */
.page-lottery__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #f0f8ff; /* Light background for hero section */
}

.page-lottery__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-lottery__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-lottery__hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 1;
}

.page-lottery__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-lottery__hero-description {
  font-size: 1.1rem;
  color: #555555;
  margin-bottom: 30px;
}

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

.page-lottery__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
}

.page-lottery__paragraph {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.page-lottery__highlight {
  font-weight: bold;
  color: #26A9E0;
}

/* Color contrast sections */
.page-lottery__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-lottery__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 60px 0;
}

.page-lottery__dark-section .page-lottery__section-title,
.page-lottery__dark-section .page-lottery__highlight {
  color: #ffffff;
}

/* Buttons */
.page-lottery__btn-primary,
.page-lottery__btn-secondary,
.page-lottery__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

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

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

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

.page-lottery__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1a7bb0;
  border-color: #1a7bb0;
}

.page-lottery__btn-link {
  background: none;
  border: none;
  color: #26A9E0;
  padding: 0;
  margin-top: 10px;
  display: block;
  font-size: 1rem;
}

.page-lottery__btn-link:hover {
  text-decoration: underline;
  color: #1a7bb0;
}

.page-lottery__text-link {
  color: #EA7C07; /* Login color for text links */
  text-decoration: underline;
}

.page-lottery__text-link:hover {
  color: #c96800;
}

/* Game Types Section */
.page-lottery__game-types-section .page-lottery__grid-3-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-lottery__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-lottery__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.page-lottery__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-lottery__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-lottery__card-description {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 15px;
}

/* Guide Section */
.page-lottery__ordered-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-lottery__ordered-list .page-lottery__list-item {
  background-color: #f9f9f9;
  border-left: 5px solid #26A9E0;
  padding: 20px 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-lottery__ordered-list .page-lottery__list-title {
  font-size: 1.3rem;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-lottery__ordered-list .page-lottery__list-description {
  font-size: 1rem;
  color: #555555;
}

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

.page-lottery__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  color: #333333;
}

.page-lottery__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-lottery__promo-description {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 15px;
}

/* Strategies Section */
.page-lottery__unordered-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-lottery__unordered-list .page-lottery__list-item {
  background-color: #f9f9f9;
  border-left: 5px solid #EA7C07; /* Using 'login' color for highlight */
  padding: 20px 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-lottery__unordered-list .page-lottery__list-title {
  font-size: 1.3rem;
  color: #EA7C07;
  margin-bottom: 10px;
}

.page-lottery__unordered-list .page-lottery__list-description {
  font-size: 1rem;
  color: #555555;
}

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

.page-lottery__feature-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  color: #333333;
}

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

.page-lottery__feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-lottery__feature-description {
  font-size: 0.95rem;
  color: #555555;
}

/* FAQ Section */
.page-lottery__faq-list {
  margin-top: 30px;
}

.page-lottery__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-lottery__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background-color: #eaf6fc;
}

.page-lottery__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-lottery__faq-qtext {
  flex-grow: 1;
}

.page-lottery__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
}

.page-lottery__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

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

.page-lottery__article-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-lottery__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.page-lottery__article-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-lottery__article-card h3 {
  padding: 15px 20px 0;
}

.page-lottery__article-card h3 a {
  font-size: 1.25rem;
  font-weight: 600;
  color: #26A9E0;
  text-decoration: none;
  display: block;
}

.page-lottery__article-card h3 a:hover {
  color: #1a7bb0;
}

.page-lottery__article-meta {
  font-size: 0.9rem;
  color: #888888;
  padding: 0 20px;
  margin-bottom: 10px;
}

.page-lottery__article-summary {
  font-size: 0.95rem;
  color: #555555;
  padding: 0 20px 15px;
}

.page-lottery__article-card .page-lottery__btn-link {
  padding: 0 20px 20px;
  text-align: left;
}

.page-lottery__view-all-button {
  text-align: center;
  margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-lottery__hero-section {
    padding: 40px 15px;
  }

  .page-lottery__main-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }

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

  .page-lottery__card-title,
  .page-lottery__promo-title,
  .page-lottery__feature-title,
  .page-lottery__ordered-list .page-lottery__list-title,
  .page-lottery__unordered-list .page-lottery__list-title {
    font-size: 1.2rem;
  }

  .page-lottery__paragraph,
  .page-lottery__hero-description,
  .page-lottery__card-description,
  .page-lottery__promo-description,
  .page-lottery__feature-description,
  .page-lottery__ordered-list .page-lottery__list-description,
  .page-lottery__unordered-list .page-lottery__list-description,
  .page-lottery__faq-item summary,
  .page-lottery__faq-answer {
    font-size: 1rem;
  }
}

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

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

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

  .page-lottery__section,
  .page-lottery__card,
  .page-lottery__container,
  .page-lottery__promo-card,
  .page-lottery__feature-card,
  .page-lottery__article-card,
  .page-lottery__ordered-list .page-lottery__list-item,
  .page-lottery__unordered-list .page-lottery__list-item,
  .page-lottery__faq-item,
  .page-lottery__game-types-section,
  .page-lottery__promotions-section,
  .page-lottery__strategies-section,
  .page-lottery__features-section,
  .page-lottery__faq-section,
  .page-lottery__conclusion-section,
  .page-lottery__related-articles {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-lottery__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-lottery__video-section {
    padding-top: 10px !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-lottery__video-container,
  .page-lottery__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-lottery__cta-button,
  .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;
    margin-bottom: 10px; /* Add spacing for stacked buttons */
  }

  .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;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  .page-lottery__grid-3-cols,
  .page-lottery__promo-grid,
  .page-lottery__features-grid,
  .page-lottery__article-grid {
    grid-template-columns: 1fr;
  }

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

  .page-lottery__hero-content {
    padding: 0 10px;
  }

  .page-lottery__section-title {
    font-size: 1.8rem;
    padding-top: 20px;
  }

  .page-lottery__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

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