.page-lottery__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-lottery__hero-section {
  position: relative;
  color: var(--text-main);
  text-align: center;
  padding-bottom: 40px;
  overflow: hidden;
}

.page-lottery__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.page-lottery__hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-lottery__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 20px;
  padding-left: 15px;
  padding-right: 15px;
}

.page-lottery__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--gold);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem); /* Responsive font size */
}

.page-lottery__description {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main);
}

.page-lottery__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

.page-lottery__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 176, 74, 0.6);
}

.page-lottery__section-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 10px;
  line-height: 1.3;
}

.page-lottery__intro-section,
.page-lottery__game-types-section,
.page-lottery__how-to-play-section,
.page-lottery__why-choose-section,
.page-lottery__news-tips-section,
.page-lottery__faq-section {
  background-color: var(--background);
  padding: 60px 0;
}

.page-lottery__intro-section {
  background-color: var(--card-b-g);
}

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

.page-lottery__text-content {
  flex: 1;
  min-width: 300px;
  color: var(--text-main);
  line-height: 1.7;
  font-size: 1.05rem;
}

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

.page-lottery__image-content {
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.page-lottery__image-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
  min-width: 200px;
  min-height: 200px;
}

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

.page-lottery__game-card {
  background-color: var(--card-b-g);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
}

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

.page-lottery__game-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--gold);
}

.page-lottery__game-card-title a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-lottery__game-card-title a:hover {
  color: var(--ffb04a-start);
}

.page-lottery__game-card-description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-lottery__learn-more-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--deep-red);
  color: var(--text-main);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-lottery__learn-more-button:hover {
  background-color: var(--main-color);
}

.page-lottery__how-to-play-section {
  background-color: var(--background);
}

.page-lottery__guide-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.page-lottery__guide-steps {
  flex: 2;
  min-width: 300px;
}

.page-lottery__guide-steps ol {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-lottery__guide-steps li {
  counter-increment: step-counter;
  margin-bottom: 25px;
  position: relative;
  padding-left: 50px;
  color: var(--text-main);
}

.page-lottery__guide-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--gold);
  color: var(--background);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.page-lottery__guide-steps h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--gold);
}

.page-lottery__guide-steps h3 a {
  color: var(--gold);
  text-decoration: none;
}

.page-lottery__guide-steps h3 a:hover {
  color: var(--ffb04a-start);
}

.page-lottery__guide-steps p {
  font-size: 1rem;
  line-height: 1.6;
}

.page-lottery__cta-button--play-now {
  margin-top: 30px;
}

.page-lottery__guide-image {
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.page-lottery__guide-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
  min-width: 200px;
  min-height: 200px;
}

.page-lottery__why-choose-section {
  background-color: var(--card-b-g);
}

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

.page-lottery__benefit-card {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
}

.page-lottery__benefit-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--gold);
}

.page-lottery__benefit-card p {
  font-size: 1rem;
  line-height: 1.6;
}

.page-lottery__benefit-card a {
  color: var(--gold);
  text-decoration: none;
}

.page-lottery__benefit-card a:hover {
  color: var(--ffb04a-start);
}

.page-lottery__why-choose-section img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
  min-width: 200px;
  min-height: 200px;
}

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

.page-lottery__news-card {
  background-color: var(--card-b-g);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
}

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

.page-lottery__news-card img {
  width: 100%;
  height: 200px; /* Fixed height for visual consistency */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-lottery__news-card-content {
  padding: 20px;
}

.page-lottery__news-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-lottery__news-card-title a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-lottery__news-card-title a:hover {
  color: var(--ffb04a-start);
}

.page-lottery__news-card-date {
  font-size: 0.9rem;
  color: #bbb;
  margin-bottom: 10px;
}

.page-lottery__news-card-excerpt {
  font-size: 1rem;
  line-height: 1.6;
}

.page-lottery__cta-button--view-all {
  margin-top: 20px;
  text-align: center;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-lottery__faq-item {
  background-color: var(--card-b-g);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  color: var(--text-main);
}

.page-lottery__faq-question {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-lottery__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.page-lottery__faq-question.active::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}

.page-lottery__faq-answer {
  font-size: 1rem;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-lottery__faq-answer.active {
  max-height: 200px; /* Adjust as needed for content */
  margin-top: 10px;
}

/* Color Variables */
:root {
  --main-color: #C61F1F;
  --accent-color: #E53030;
  --ffb04a-start: #FFB04A; /* For button gradient start */
  --d86a14-end: #D86A14; /* For button gradient end */
  --card-b-g: #2A1212;
  --background: #140C0C;
  --text-main: #FFF1E8;
  --border: #6A1E1E;
  --gold: #F3C54D;
  --deep-red: #7E0D0D;
}

/* Responsive adjustments */
@media (max-width: 849px) {
  .page-lottery__content-wrapper,
  .page-lottery__guide-content {
    flex-direction: column;
  }

  .page-lottery__text-content, .page-lottery__image-content,
  .page-lottery__guide-steps, .page-lottery__guide-image {
    flex: none;
    width: 100%;
  }

  .page-lottery__main-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .page-lottery__description {
    font-size: 1rem;
  }

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

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

@media (max-width: 768px) {
  .page-lottery__hero-section {
    padding-bottom: 30px;
  }

  .page-lottery__intro-section,
  .page-lottery__game-types-section,
  .page-lottery__how-to-play-section,
  .page-lottery__why-choose-section,
  .page-lottery__news-tips-section,
  .page-lottery__faq-section {
    padding: 40px 0;
  }

  .page-lottery__news-card img,
  .page-lottery__image-content img,
  .page-lottery__guide-image img,
  .page-lottery__why-choose-section img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 549px) {
  .page-lottery__main-title {
    font-size: clamp(1.3rem, 7vw, 2rem);
  }

  .page-lottery__description {
    font-size: 0.95rem;
  }

  .page-lottery__section-title {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
  }

  .page-lottery__hero-content {
    padding-top: 5px;
  }

  .page-lottery__game-cards-grid,
  .page-lottery__benefits-grid,
  .page-lottery__news-grid {
    grid-template-columns: 1fr;
  }

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

  .page-lottery__guide-steps li {
    padding-left: 40px;
  }

  .page-lottery__guide-steps li::before {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .page-lottery__faq-question {
    font-size: 1.1rem;
  }

  .page-lottery__faq-answer {
    font-size: 0.95rem;
  }
}