/* style/lottery-gameplay-rules.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f4f4f4;
  --background-dark: #222222;
  --border-color: #e0e0e0;
}

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

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

.page-lottery-gameplay-rules h1,
.page-lottery-gameplay-rules h2,
.page-lottery-gameplay-rules h3 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-align: center;
}

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

.page-lottery-gameplay-rules h2 {
  font-size: 2.2em;
  padding-top: 40px;
}

.page-lottery-gameplay-rules h3 {
  font-size: 1.8em;
  color: var(--text-dark);
  text-align: left;
  margin-top: 30px;
}

.page-lottery-gameplay-rules p {
  margin-bottom: 15px;
  text-align: justify;
}

.page-lottery-gameplay-rules ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-lottery-gameplay-rules ol {
  list-style: decimal;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-lottery-gameplay-rules li {
  margin-bottom: 8px;
}

.page-lottery-gameplay-rules .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

.page-lottery-gameplay-rules .cta-button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-lottery-gameplay-rules .small-button {
  padding: 10px 25px;
  font-size: 16px;
  margin-top: 15px;
}

/* Hero Section */
.page-lottery-gameplay-rules .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #a00000 100%); /* Dark Red gradient for depth */
  color: var(--text-light);
}

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

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

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

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

.page-lottery-gameplay-rules .hero-content h1 {
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-lottery-gameplay-rules .hero-content p {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 20px auto;
}

/* Section Intro */
.page-lottery-gameplay-rules .section-intro {
  padding: 60px 0;
  background-color: var(--background-light);
}

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

.page-lottery-gameplay-rules .game-type-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-lottery-gameplay-rules .game-type-card .card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-lottery-gameplay-rules .game-type-card h3 {
  color: var(--secondary-color);
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-lottery-gameplay-rules .game-type-card p {
  font-size: 0.95em;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.page-lottery-gameplay-rules .game-type-card .read-more-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-lottery-gameplay-rules .game-type-card .read-more-link:hover {
  color: var(--secondary-color);
}

/* Detailed Rules Section */
.page-lottery-gameplay-rules .section-detailed-rules {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-lottery-gameplay-rules .section-detailed-rules h2 {
  text-align: center;
  margin-bottom: 30px;
}

.page-lottery-gameplay-rules .section-detailed-rules h3 {
  color: var(--secondary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: left;
}

/* Steps Container */
.page-lottery-gameplay-rules .steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-lottery-gameplay-rules .step-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-lottery-gameplay-rules .step-item .step-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-lottery-gameplay-rules .step-item h3 {
  color: var(--primary-color);
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 15px;
  text-align: center;
}

.page-lottery-gameplay-rules .step-item p {
  font-size: 0.9em;
  color: var(--text-dark);
  flex-grow: 1;
}

/* Tips Section */
.page-lottery-gameplay-rules .section-tips {
  padding: 60px 0;
  background-color: var(--background-light);
}

.page-lottery-gameplay-rules .section-tips ul {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-lottery-gameplay-rules .section-tips li {
  background: #ffffff;
  border-left: 5px solid var(--primary-color);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  font-size: 1.1em;
}

/* Why Choose Section */
.page-lottery-gameplay-rules .section-why-choose {
  padding: 60px 0;
  background: linear-gradient(135deg, #a00000 0%, var(--secondary-color) 100%);
  color: var(--text-light);
}

.page-lottery-gameplay-rules .section-why-choose h2 {
  color: var(--primary-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-lottery-gameplay-rules .section-why-choose p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
}

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

.page-lottery-gameplay-rules .feature-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-lottery-gameplay-rules .feature-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.page-lottery-gameplay-rules .feature-item .feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.7)); /* Subtle glow for icons */
}

.page-lottery-gameplay-rules .feature-item h3 {
  color: var(--primary-color);
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-lottery-gameplay-rules .feature-item p {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.9);
}

/* FAQ Section */
.page-lottery-gameplay-rules .section-faq {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-lottery-gameplay-rules .faq-list {
  margin-top: 40px;
}

.page-lottery-gameplay-rules .faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  overflow: hidden;
}

.page-lottery-gameplay-rules .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-lottery-gameplay-rules .faq-question h3 {
  margin: 0;
  font-size: 1.15em;
  color: var(--text-dark);
  text-align: left;
}

.page-lottery-gameplay-rules .faq-toggle {
  font-size: 20px;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

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

.page-lottery-gameplay-rules .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 15px;
  background: #f9f9f9;
  color: var(--text-dark);
}

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

/* Final CTA Section */
.page-lottery-gameplay-rules .section-cta-final {
  padding: 60px 0;
  background: var(--secondary-color);
  text-align: center;
  color: var(--text-light);
}

.page-lottery-gameplay-rules .section-cta-final h2 {
  color: var(--primary-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-lottery-gameplay-rules .section-cta-final p {
  font-size: 1.2em;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-lottery-gameplay-rules h1 {
    font-size: 2.4em;
  }
  .page-lottery-gameplay-rules h2 {
    font-size: 1.8em;
  }
  .page-lottery-gameplay-rules h3 {
    font-size: 1.5em;
  }
  .page-lottery-gameplay-rules .game-types-grid,
  .page-lottery-gameplay-rules .steps-container,
  .page-lottery-gameplay-rules .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-lottery-gameplay-rules .hero-section {
    padding: 40px 15px;
  }
  .page-lottery-gameplay-rules .hero-content h1 {
    font-size: 2em;
  }
  .page-lottery-gameplay-rules .hero-content p {
    font-size: 1em;
  }
  .page-lottery-gameplay-rules .cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-lottery-gameplay-rules .game-type-card .card-image {
    height: 150px;
  }
  .page-lottery-gameplay-rules .section-intro,
  .page-lottery-gameplay-rules .section-detailed-rules,
  .page-lottery-gameplay-rules .section-tips,
  .page-lottery-gameplay-rules .section-why-choose,
  .page-lottery-gameplay-rules .section-faq,
  .page-lottery-gameplay-rules .section-cta-final {
    padding: 40px 0;
  }
  .page-lottery-gameplay-rules .faq-question {
    padding: 12px;
  }
  .page-lottery-gameplay-rules .faq-question h3 {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-lottery-gameplay-rules h1 {
    font-size: 1.8em;
  }
  .page-lottery-gameplay-rules h2 {
    font-size: 1.5em;
  }
  .page-lottery-gameplay-rules h3 {
    font-size: 1.3em;
  }
  .page-lottery-gameplay-rules .game-types-grid,
  .page-lottery-gameplay-rules .steps-container,
  .page-lottery-gameplay-rules .features-grid {
    grid-template-columns: 1fr;
  }
  .page-lottery-gameplay-rules .cta-button {
    width: 100%;
    box-sizing: border-box;
  }
  .page-lottery-gameplay-rules .step-item .step-image {
    height: 120px;
  }
}