/* style/lottery.css */
:root {
  --primary-color: #1A237E; /* Deep Indigo */
  --secondary-color: #FFD700; /* Bright Gold */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f4f7fa;
  --background-dark: #12184F; /* Slightly lighter than primary for contrast */
  --border-color: #e0e0e0;
  --button-hover-dark: #FFC107;
  --button-hover-light: #0D145C;
}

.page-lottery {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
}

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

/* Hero Section */
.page-lottery .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: var(--background-dark);
  color: var(--text-light);
  overflow: hidden;
}

.page-lottery .hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-lottery .hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-lottery .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-lottery .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-lottery .hero-content h1 {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-lottery .hero-content p {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.page-lottery .cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-lottery .cta-button:hover {
  background: var(--button-hover-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-lottery .cta-button-small {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}

.page-lottery .cta-button-small:hover {
  background: var(--button-hover-light);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* General Section Styling */
.page-lottery section {
  padding: 80px 0;
  background-color: var(--background-light);
}

.page-lottery section:nth-of-type(even) {
  background-color: #ffffff;
}

.page-lottery h2 {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-lottery h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.page-lottery h3 {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-lottery p {
  font-size: 1.1em;
  color: var(--text-dark);
  margin-bottom: 20px;
}

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

.page-lottery a:hover {
  color: var(--secondary-color);
}

/* Section Intro */
.page-lottery .section-intro p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

.page-lottery .game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-lottery .game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-lottery .game-card img {
  max-width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
}

.page-lottery .game-card h3 {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-lottery .game-card p {
  font-size: 1em;
  color: var(--text-dark);
  flex-grow: 1;
}

.page-lottery .btn-small {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.page-lottery .btn-small:hover {
  background: var(--button-hover-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* How To Play Section */
.page-lottery .section-how-to-play ol {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin-top: 40px;
}

.page-lottery .section-how-to-play ol li {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-bottom: 25px;
  position: relative;
  padding-left: 90px;
  transition: transform 0.3s ease;
}

.page-lottery .section-how-to-play ol li:hover {
  transform: translateY(-5px);
}

.page-lottery .section-how-to-play ol li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 30px;
  top: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-lottery .section-how-to-play ol li h3 {
  color: var(--primary-color);
  margin-top: 0;
  font-size: 1.5em;
}

.page-lottery .section-how-to-play ol li p {
  font-size: 1em;
}

/* 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: var(--background-dark);
  color: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery .promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.page-lottery .promo-card img {
  max-width: 100%;
  height: 200px; /* Fixed height */
  object-fit: contain; /* Ensure full image is visible */
  margin-bottom: 25px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px;
}

.page-lottery .promo-card h3 {
  font-size: 1.7em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-lottery .promo-card p {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.9);
}

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

/* Safety & Support Section */
.page-lottery .section-safety-support ul {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-lottery .section-safety-support ul li {
  background-color: #ffffff;
  border-left: 5px solid var(--secondary-color);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  transition: transform 0.3s ease;
}

.page-lottery .section-safety-support ul li:hover {
  transform: translateY(-5px);
}

.page-lottery .section-safety-support ul li h3 {
  color: var(--primary-color);
  margin-top: 0;
  font-size: 1.5em;
}

.page-lottery .section-safety-support ul li p {
  font-size: 1em;
}

/* FAQ Section */
.page-lottery .section-faq {
  background-color: var(--background-light);
}

.page-lottery .faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-lottery .faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-lottery .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-lottery .faq-question:hover {
  background: #f5f5f5;
}

.page-lottery .faq-question h3 {
  margin: 0;
  font-size: 1.25em;
  color: var(--primary-color);
}

.page-lottery .faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

.page-lottery .faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--primary-color);
}

.page-lottery .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-lottery .faq-item.active .faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding: 20px 25px;
  border: 1px solid var(--border-color);
  border-top: none;
}

.page-lottery .faq-answer p {
  margin: 0;
  font-size: 1em;
  color: var(--text-dark);
}

/* Blog/News Section */
.page-lottery .section-blog-news {
  background-color: #ffffff;
}

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

.page-lottery .blog-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery .blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-lottery .blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-lottery .blog-card h3 {
  font-size: 1.4em;
  color: var(--primary-color);
  padding: 20px 20px 10px 20px;
  margin: 0;
}

.page-lottery .blog-card h3 a {
  color: var(--primary-color);
}

.page-lottery .blog-card h3 a:hover {
  color: var(--secondary-color);
}

.page-lottery .blog-card p {
  font-size: 0.95em;
  color: var(--text-dark);
  padding: 0 20px 20px 20px;
  margin: 0;
}

.page-lottery .btn-read-more {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  transition: all 0.3s ease;
  margin: 0 20px 20px 20px;
}

.page-lottery .btn-read-more:hover {
  background: var(--button-hover-light);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery .hero-content h1 {
    font-size: 2.8em;
  }
  .page-lottery .hero-content p {
    font-size: 1.2em;
  }
  .page-lottery h2 {
    font-size: 2.2em;
  }
  .page-lottery .game-card img {
    height: 220px;
  }
  .page-lottery .promo-card img {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-lottery .hero-section {
    padding: 40px 15px;
  }
  .page-lottery .hero-image img {
    border-radius: 4px;
  }
  .page-lottery .hero-content h1 {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-lottery .hero-content p {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-lottery .cta-button {
    padding: 15px 35px;
    font-size: 1em;
  }
  .page-lottery section {
    padding: 60px 0;
  }
  .page-lottery h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-lottery h3 {
    font-size: 1.4em;
  }
  .page-lottery p {
    font-size: 0.95em;
  }
  .page-lottery .game-grid, .page-lottery .promo-grid, .page-lottery .blog-grid {
    grid-template-columns: 1fr;
  }
  .page-lottery .section-how-to-play ol li {
    padding: 25px;
    padding-left: 80px;
  }
  .page-lottery .section-how-to-play ol li::before {
    left: 25px;
    top: 25px;
    width: 40px;
    height: 40px;
    font-size: 1.5em;
  }
  .page-lottery .faq-question {
    padding: 15px 20px;
  }
  .page-lottery .faq-question h3 {
    font-size: 1.1em;
  }
  .page-lottery .faq-toggle {
    font-size: 1.5em;
  }
  .page-lottery .faq-answer {
    padding: 0 20px;
  }
  .page-lottery .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
  .page-lottery .section-safety-support ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-lottery .hero-content h1 {
    font-size: 1.8em;
  }
  .page-lottery .hero-content p {
    font-size: 0.9em;
  }
  .page-lottery .cta-button {
    padding: 12px 25px;
    font-size: 0.9em;
  }
  .page-lottery h2 {
    font-size: 1.6em;
  }
  .page-lottery .game-card img {
    height: 180px;
  }
  .page-lottery .promo-card img {
    height: 150px;
  }
  .page-lottery .section-how-to-play ol li {
    padding-left: 70px;
  }
  .page-lottery .section-how-to-play ol li::before {
    left: 20px;
    top: 20px;
    width: 35px;
    height: 35px;
    font-size: 1.3em;
  }
}