/* style/lottery.css */
:root {
  --primary-color: #0A2463;
  --secondary-color: #E34234;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f4f7f6;
  --bg-dark: #0A2463;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
}

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

.page-lottery-section {
  padding: 60px 0;
  margin-bottom: 20px;
}

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

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

.page-lottery h1,
.page-lottery h2,
.page-lottery h3 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-lottery h1 {
  font-size: 3.2em;
  color: var(--text-light);
}

.page-lottery h2 {
  font-size: 2.5em;
}

.page-lottery h3 {
  font-size: 1.8em;
  color: var(--secondary-color);
}

.page-lottery p {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
}

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

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

.page-lottery-cta-button:hover {
  background: #c7372d;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.page-lottery-hero {
  background: linear-gradient(135deg, var(--bg-dark), #1A3E8A);
  padding: 80px 20px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-lottery-hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-lottery-hero-content h1 {
  text-align: left;
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-lottery-hero-content p {
  text-align: left;
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-lottery-hero-image {
  flex: 1;
  max-width: 50%;
}

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

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

.page-lottery-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-lottery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.page-lottery-card h3 {
  padding: 20px 20px 10px;
  margin-bottom: 0;
  text-align: left;
  font-size: 1.5em;
  color: var(--primary-color);
}

.page-lottery-card h3 a {
  color: inherit;
  text-decoration: none;
}

.page-lottery-card h3 a:hover {
  text-decoration: underline;
}

.page-lottery-card p {
  padding: 0 20px;
  text-align: left;
  font-size: 1em;
  flex-grow: 1;
}

.page-lottery-card ul {
  list-style: none;
  padding: 0 20px 10px;
  margin: 0;
}

.page-lottery-card ul li {
  margin-bottom: 5px;
  font-size: 0.95em;
  color: #555;
  position: relative;
  padding-left: 20px;
}

.page-lottery-card ul li::before {
  content: '✔';
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-lottery-card-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin: 20px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.page-lottery-card-button:hover {
  background-color: #071a47;
}

/* Why Choose Section */
.page-lottery-why-choose {
  background-color: var(--bg-light);
}

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

.page-lottery-feature-item {
  text-align: center;
  padding: 30px;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-lottery-feature-item:hover {
  transform: translateY(-5px);
}

.page-lottery-feature-item img {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-lottery-feature-item p {
  font-size: 1em;
  color: #666;
  text-align: center;
}

/* How To Play Section */
.page-lottery-how-to-play .page-lottery-steps {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-lottery-how-to-play .page-lottery-steps li {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  counter-increment: step-counter;
  padding-top: 60px;
  text-align: center;
}

.page-lottery-how-to-play .page-lottery-steps li::before {
  content: counter(step-counter);
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--secondary-color);
  color: var(--text-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-lottery-how-to-play .page-lottery-steps h3 {
  margin-top: 10px;
  margin-bottom: 15px;
  font-size: 1.6em;
  color: var(--primary-color);
  text-align: center;
}

.page-lottery-how-to-play .page-lottery-steps p {
  font-size: 1em;
  color: #666;
  text-align: center;
}

/* Promotions Section */
.page-lottery-promotions {
  background-color: #f0f8ff;
}

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

.page-lottery-promo-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-lottery-promo-item:hover {
  transform: translateY(-5px);
}

.page-lottery-promo-item img {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-lottery-promo-item p {
  font-size: 1em;
  color: #666;
  text-align: center;
}

/* Tips Section */
.page-lottery-list-tips {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-lottery-list-tips li {
  background-color: var(--card-bg);
  padding: 25px 30px;
  border-left: 5px solid var(--primary-color);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-lottery-list-tips li strong {
  color: var(--secondary-color);
  font-size: 1.1em;
  display: block;
  margin-bottom: 5px;
}

.page-lottery-list-tips li p {
  text-align: left;
  margin-bottom: 0;
}

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

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

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

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

.faq-question h3 {
  margin: 0;
  font-size: 1.3em;
  color: var(--primary-color);
  text-align: left;
  flex-grow: 1;
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.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 8px 8px;
}

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

.faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #555;
  text-align: left;
}

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

.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: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-lottery-blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.page-lottery-blog-card h3 {
  padding: 20px 20px 10px;
  margin-bottom: 0;
  text-align: left;
  font-size: 1.4em;
  color: var(--primary-color);
  flex-grow: 1;
}

.page-lottery-blog-card h3 a {
  color: inherit;
  text-decoration: none;
}

.page-lottery-blog-card h3 a:hover {
  text-decoration: underline;
}

.page-lottery-blog-card p {
  padding: 0 20px;
  text-align: left;
  font-size: 0.95em;
  color: #555;
  margin-bottom: 15px;
}

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

.page-lottery-read-more:hover {
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-lottery-hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-lottery-hero-content {
    text-align: center;
    margin-bottom: 40px;
  }

  .page-lottery-hero-content h1,
  .page-lottery-hero-content p {
    text-align: center;
  }

  .page-lottery-hero-image {
    max-width: 80%;
  }

  .page-lottery h1 {
    font-size: 2.8em;
  }

  .page-lottery h2 {
    font-size: 2em;
  }

  .page-lottery h3 {
    font-size: 1.6em;
  }

  .page-lottery-game-types .page-lottery-grid,
  .page-lottery-features,
  .page-lottery-how-to-play .page-lottery-steps,
  .page-lottery-promo-list,
  .page-lottery-blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-lottery-section {
    padding: 40px 0;
  }

  .page-lottery-container {
    padding: 0 15px;
  }

  .page-lottery h1 {
    font-size: 2.2em;
  }

  .page-lottery h2 {
    font-size: 1.8em;
  }

  .page-lottery h3 {
    font-size: 1.4em;
  }

  .page-lottery p {
    font-size: 1em;
  }

  .page-lottery-cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }

  .page-lottery-hero {
    padding: 60px 15px;
  }

  .page-lottery-hero-image {
    max-width: 100%;
  }

  .faq-question {
    padding: 15px 20px;
  }

  .faq-question h3 {
    font-size: 1.1em;
  }

  .faq-toggle {
    font-size: 20px;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-lottery-game-types .page-lottery-grid,
  .page-lottery-features,
  .page-lottery-how-to-play .page-lottery-steps,
  .page-lottery-promo-list,
  .page-lottery-blog-grid {
    grid-template-columns: 1fr;
  }

  .page-lottery-card h3,
  .page-lottery-card p,
  .page-lottery-card ul {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-lottery-card-button {
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-lottery-list-tips li {
    padding: 20px 25px;
  }

  .page-lottery-list-tips li p {
    font-size: 0.95em;
  }
}