/* style/lottery.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #1A1A1A;
  --accent-color: #DC3545; /* A subtle red for emphasis */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0d0d0d;
  --bg-light: #f8f9fa;
  --card-bg-light: #ffffff;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
}

.page-lottery {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark);
  padding-top: 10px; /* Base padding to clear fixed header */
}

/* General Section Spacing */
.page-lottery__section-spacing {
  padding: 60px 20px;
}

/* Container */
.page-lottery__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

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

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

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

/* Text Blocks */
.page-lottery__text-block {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__text-block--light {
  color: var(--text-light);
}

/* Dark Background Sections */
.page-lottery__dark-bg {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

/* Hero Section */
.page-lottery__hero-section {
  position: relative;
  text-align: center;
  padding: 120px 20px 80px; /* Adjusted padding-top for fixed header */
  background: url('[GALLERY:hero:tt88 slot,xoso,background,1920x1080]') no-repeat center center/cover;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-lottery__hero-container {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.6);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-lottery__main-title {
  font-size: 48px;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-lottery__hero-description {
  font-size: 19px;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-lottery__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-lottery__btn-secondary:hover {
  background: #000000;
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Intro Section */
.page-lottery__intro-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-lottery__intro-section .page-lottery__section-title, 
.page-lottery__intro-section .page-lottery__sub-title {
  color: var(--secondary-color);
}

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

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

.page-lottery__image-text-block .page-lottery__image {
  flex: 1;
  max-width: 50%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.page-lottery__image-text-block .page-lottery__image--left {
  order: 0;
}

.page-lottery__text-content {
  flex: 1;
  text-align: left;
}

.page-lottery__text-content p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-dark);
  text-align: left;
}

.page-lottery__text-content .page-lottery__btn-primary {
  margin-top: 10px;
}

/* Games Section */
.page-lottery__games-section {
  background-color: var(--secondary-color);
}

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

.page-lottery__game-card {
  background: var(--card-bg-light);
  color: var(--text-dark);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-lottery__game-card .page-lottery__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-lottery__game-card .page-lottery__card-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

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

.page-lottery__btn-small {
  padding: 10px 25px;
  font-size: 16px;
  border-radius: 5px;
}

/* Guide Section */
.page-lottery__guide-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-lottery__guide-section .page-lottery__section-title {
  color: var(--secondary-color);
}

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

.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: var(--card-bg-light);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
}

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

.page-lottery__step-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.page-lottery__step-item p {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.page-lottery__btn-link {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-lottery__btn-link:hover {
  color: var(--primary-color);
  border-color: var(--secondary-color);
}

/* Benefits Section */
.page-lottery__benefits-section {
  background-color: var(--secondary-color);
}

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

.page-lottery__benefit-item {
  background: var(--card-bg-dark);
  color: var(--text-light);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

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

.page-lottery__benefit-item p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
}

.page-lottery__cta-center {
  text-align: center;
  margin-top: 50px;
}

/* Strategy Section */
.page-lottery__strategy-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-lottery__strategy-section .page-lottery__section-title {
  color: var(--secondary-color);
}

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

.page-lottery__strategy-list {
  list-style-type: disc;
  margin: 30px auto;
  padding-left: 40px;
  max-width: 800px;
  text-align: left;
  color: var(--text-dark);
  font-size: 16px;
}

.page-lottery__strategy-list li {
  margin-bottom: 15px;
  line-height: 1.7;
}

.page-lottery__strategy-list strong {
  color: var(--primary-color);
}

/* FAQ Section */
.page-lottery__faq-section {
  background-color: var(--secondary-color);
}

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

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-bg-light);
  color: var(--text-dark);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.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(--secondary-color);
}

.page-lottery__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  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: 30px;
  height: 30px;
}

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

.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 25px;
  opacity: 0;
  background: var(--bg-light);
  color: var(--text-dark);
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

.page-lottery__faq-answer p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  color: var(--text-dark);
}

/* Brand Section */
.page-lottery__brand-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-lottery__brand-section .page-lottery__section-title {
  color: var(--secondary-color);
}

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

.page-lottery__brand-item {
  background: var(--card-bg-light);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
}

.page-lottery__brand-item .page-lottery__brand-image {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-lottery__brand-item p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
}

/* Blog Section */
.page-lottery__blog-section {
  background-color: var(--secondary-color);
}

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

.page-lottery__blog-item {
  background: var(--card-bg-light);
  color: var(--text-dark);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-lottery__blog-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-lottery__blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-lottery__blog-item-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 10px;
  padding: 0 20px;
  line-height: 1.4;
}

.page-lottery__blog-item-excerpt {
  font-size: 15px;
  color: var(--text-dark);
  padding: 0 20px;
  margin-bottom: 15px;
}

.page-lottery__blog-item-date {
  display: block;
  font-size: 13px;
  color: #666;
  padding: 0 20px 20px;
  text-align: right;
}

/* Contact CTA Section */
.page-lottery__contact-cta .page-lottery__container {
  background-color: var(--secondary-color);
  padding: 50px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.page-lottery__contact-cta .page-lottery__section-title {
  margin-bottom: 20px;
}

.page-lottery__contact-cta .page-lottery__text-block {
  margin-bottom: 30px;
}

.page-lottery__cta-buttons--center {
  justify-content: center;
}

/* Global Image Styles */
.page-lottery img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__hero-section {
    padding: 100px 15px 60px;
  }

  .page-lottery__main-title {
    font-size: 40px;
  }

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

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

  .page-lottery__image-text-block .page-lottery__image {
    max-width: 100%;
  }

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

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

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

  .page-lottery__section-spacing {
    padding: 40px 15px;
  }

  .page-lottery__hero-section {
    padding: 80px 15px 40px;
  }

  .page-lottery__hero-container {
    padding: 30px;
  }

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

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

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

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

  .page-lottery__text-block {
    font-size: 16px;
  }

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

  .page-lottery__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px !important;
    font-size: 16px !important;
  }

  .page-lottery__game-grid,
  .page-lottery__steps-grid,
  .page-lottery__benefits-grid,
  .page-lottery__brand-content,
  .page-lottery__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery__game-card .page-lottery__card-title,
  .page-lottery__step-title,
  .page-lottery__benefit-title,
  .page-lottery__brand-sub-title,
  .page-lottery__blog-item-title {
    font-size: 18px;
  }

  .page-lottery__game-card .page-lottery__card-description,
  .page-lottery__step-item p,
  .page-lottery__benefit-item p,
  .page-lottery__brand-item p,
  .page-lottery__blog-item-excerpt {
    font-size: 15px;
  }

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

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

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

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

  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px 20px !important;
  }

  .page-lottery__strategy-list {
    padding-left: 20px;
    font-size: 15px;
  }

  .page-lottery__contact-cta .page-lottery__container {
    padding: 30px 20px;
  }

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

  .page-lottery__image-text-block .page-lottery__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-lottery__game-card .page-lottery__card-image,
  .page-lottery__step-icon img,
  .page-lottery__brand-item .page-lottery__brand-image,
  .page-lottery__blog-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }

  .page-lottery__container,
  .page-lottery__hero-container,
  .page-lottery__image-text-block,
  .page-lottery__game-grid,
  .page-lottery__steps-grid,
  .page-lottery__benefits-grid,
  .page-lottery__brand-content,
  .page-lottery__blog-list,
  .page-lottery__faq-list,
  .page-lottery__contact-cta .page-lottery__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}