/* style/lottery.css */

:root {
  --primary-color: #007bff;
  --secondary-color: #28a745;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --background-light: #f1f3f5;
  --background-card: #ffffff;
  --border-color: #e0e0e0;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-lottery {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background: var(--dark-bg-1); /* Inherited from shared.css, assuming it's a dark background */
}

.page-lottery__keyword {
  font-weight: bold;
  color: var(--primary-color);
}

/* --- General Section Styling --- */
.page-lottery__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-lottery__section-title--light {
  color: var(--text-color-light);
}

.page-lottery__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.5;
}

.page-lottery__section-description--light {
  color: var(--text-color-light);
}

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

.page-lottery__link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-lottery__link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-lottery__link-highlight {
  color: var(--secondary-color);
  font-weight: bold;
  text-decoration: underline;
}

.page-lottery__link-highlight:hover {
  color: var(--primary-color);
}

/* --- CTA Button Styling --- */
.page-lottery__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.page-lottery__btn-primary {
  background: var(--primary-color);
  color: var(--text-color-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-lottery__btn-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-lottery__btn-secondary {
  background: var(--secondary-color);
  color: var(--text-color-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-lottery__btn-secondary:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* --- Hero Banner Section --- */
.page-lottery__hero-banner-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 180px; /* Desktop: Adjust for fixed header */
  background: linear-gradient(135deg, #0056b3, #007bff);
  color: var(--text-color-light);
}

.page-lottery__hero-banner-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-lottery__hero-banner-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-lottery__hero-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 900px;
}

.page-lottery__hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 25px;
  line-height: 1.2;
  color: var(--text-color-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-lottery__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* --- Introduction Section --- */
.page-lottery__introduction-section {
  padding: 60px 20px;
  background: var(--background-light);
  color: var(--text-color-dark);
}

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

.page-lottery__introduction-card {
  background: var(--background-card);
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  padding: 40px;
  text-align: justify;
}

.page-lottery__introduction-card h2 {
  color: var(--primary-color);
  margin-bottom: 25px;
}

.page-lottery__introduction-card p {
  font-size: 17px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-lottery__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* --- Game Types Section --- */
.page-lottery__game-types-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #0056b3, #007bff); /* Dark background */
  color: var(--text-color-light);
}

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

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

.page-lottery__game-type-card {
  background: var(--background-card);
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-dark);
}

.page-lottery__game-type-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-lottery__game-type-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-lottery__card-text {
  font-size: 16px;
  line-height: 1.7;
}

/* --- Promotions Section --- */
.page-lottery__promotions-section {
  padding: 60px 20px;
  background: var(--background-light);
  color: var(--text-color-dark);
}

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

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

.page-lottery__promo-card {
  background: var(--primary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-light);
}

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

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

.page-lottery__promo-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-color-light);
}

.page-lottery__promo-text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* --- Guide Section --- */
.page-lottery__guide-section {
  padding: 60px 20px;
  background: var(--background-card);
  color: var(--text-color-dark);
}

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

.page-lottery__guide-steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.page-lottery__step-item {
  display: flex;
  align-items: center;
  gap: 30px;
  background: var(--background-light);
  border-radius: 12px;
  padding: 25px 35px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-lottery__step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--text-color-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-lottery__step-content {
  flex-grow: 1;
}

.page-lottery__step-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-lottery__step-content p {
  font-size: 16px;
  line-height: 1.7;
}

.page-lottery__step-image {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-lottery__guide-cta-text {
  margin-top: 50px;
  font-size: 18px;
}

/* --- News Section --- */
.page-lottery__news-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #0056b3, #007bff); /* Dark background */
  color: var(--text-color-light);
}

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

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

.page-lottery__news-card {
  background: var(--background-card);
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-dark);
}

.page-lottery__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-lottery__news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-lottery__news-title {
  font-size: 20px;
  font-weight: bold;
  margin: 20px 20px 10px 20px;
  line-height: 1.4;
}

.page-lottery__news-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-lottery__news-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-lottery__news-summary {
  font-size: 15px;
  color: #555555;
  margin: 0 20px 15px 20px;
  line-height: 1.6;
}

.page-lottery__read-more-link {
  display: inline-block;
  margin: 0 20px 20px 20px;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-lottery__read-more-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* --- FAQ Section --- */
.page-lottery__faq-section {
  padding: 60px 20px;
  background: var(--background-light);
  color: var(--text-color-dark);
}

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

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

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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 15px;
  opacity: 0;
}

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

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-lottery__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-lottery__faq-question:active {
  background: #eeeeee;
}

.page-lottery__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-lottery__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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: 32px;
  height: 32px;
}

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

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

  .page-lottery__hero-description {
    font-size: 18px;
  }

  .page-lottery__section-title {
    font-size: 32px;
  }

  .page-lottery__section-description {
    font-size: 16px;
  }

  .page-lottery__introduction-card {
    padding: 30px;
  }

  .page-lottery__introduction-card p {
    font-size: 16px;
  }

  .page-lottery__game-type-card, .page-lottery__promo-card, .page-lottery__news-card {
    padding: 20px;
  }

  .page-lottery__card-title, .page-lottery__promo-title {
    font-size: 20px;
  }

  .page-lottery__card-text, .page-lottery__promo-text {
    font-size: 15px;
  }

  .page-lottery__step-item {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .page-lottery__step-image {
    order: -1;
    margin-bottom: 20px;
  }

  .page-lottery__step-number {
    margin-bottom: 15px;
  }

  .page-lottery__news-image {
    height: 180px;
  }

  .page-lottery__news-title {
    font-size: 18px;
  }

  .page-lottery__faq-question h3 {
    font-size: 17px;
  }

  .page-lottery__faq-toggle {
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  /* 🚨 Mobile specific padding-top for fixed header */
  .page-lottery__hero-banner-section {
    padding-top: 160px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-lottery__hero-title {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .page-lottery__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-lottery__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }

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

  .page-lottery__section-description {
    font-size: 15px;
    margin-bottom: 40px;
  }

  .page-lottery__introduction-section,
  .page-lottery__game-types-section,
  .page-lottery__promotions-section,
  .page-lottery__guide-section,
  .page-lottery__news-section,
  .page-lottery__faq-section {
    padding: 30px 15px;
  }

  .page-lottery__introduction-card {
    padding: 25px;
  }

  .page-lottery__introduction-card p {
    font-size: 15px;
  }

  .page-lottery__image-content {
    border-radius: 6px;
  }

  .page-lottery__game-type-grid,
  .page-lottery__promo-grid,
  .page-lottery__news-grid {
    gap: 20px;
  }

  .page-lottery__game-type-card,
  .page-lottery__promo-card,
  .page-lottery__news-card {
    padding: 15px;
  }

  .page-lottery__card-title,
  .page-lottery__promo-title {
    font-size: 18px;
  }

  .page-lottery__card-text,
  .page-lottery__promo-text {
    font-size: 14px;
  }

  .page-lottery__promo-icon {
    width: 80px;
    height: 80px;
  }

  .page-lottery__step-item {
    padding: 20px;
    gap: 20px;
  }

  .page-lottery__step-number {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .page-lottery__step-title {
    font-size: 20px;
  }

  .page-lottery__step-content p {
    font-size: 15px;
  }

  .page-lottery__step-image {
    width: 100px;
    height: 100px;
  }

  .page-lottery__news-image {
    height: 160px;
  }

  .page-lottery__news-title {
    font-size: 17px;
    margin: 15px 15px 8px 15px;
  }

  .page-lottery__news-summary {
    font-size: 14px;
    margin: 0 15px 12px 15px;
  }

  .page-lottery__read-more-link {
    margin: 0 15px 15px 15px;
  }

  .page-lottery__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-lottery__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-lottery__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-lottery__faq-answer {
    padding: 0 15px;
  }
  
  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px !important;
  }
}

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

.page-lottery__section,
.page-lottery__card,
.page-lottery__container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-lottery__section,
  .page-lottery__card,
  .page-lottery__container,
  .page-lottery__hero-banner-section,
  .page-lottery__introduction-section,
  .page-lottery__game-types-section,
  .page-lottery__promotions-section,
  .page-lottery__guide-section,
  .page-lottery__news-section,
  .page-lottery__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}