/* style/lottery.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #2F4F4F; /* Dark Slate Gray */
  --accent-color: #DC143C; /* Crimson for highlights */
  --text-dark: #2F4F4F;
  --text-light: #FFFFFF;
  --background-light: #F8F8F8;
  --background-dark: #1A1A1A;
  --border-color: #E0E0E0;
}

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

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

.page-lottery h1, .page-lottery h2, .page-lottery h3, .page-lottery h4, .page-lottery h5, .page-lottery h6 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-lottery h1 {
  font-size: 2.8em;
  text-align: center;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-lottery h2 {
  font-size: 2.2em;
  margin-top: 40px;
  text-align: center;
}

.page-lottery h3 {
  font-size: 1.6em;
  margin-top: 30px;
}

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

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

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

.page-lottery .primary-button,
.page-lottery .secondary-button,
.page-lottery .cta-button,
.page-lottery .button-small {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 15px;
}

.page-lottery .primary-button,
.page-lottery .cta-button {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

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

.page-lottery .secondary-button {
  background: var(--secondary-color);
  color: var(--text-light);
  border: 2px solid var(--secondary-color);
}

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

.page-lottery .button-small {
  padding: 8px 15px;
  font-size: 0.9em;
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
}

.page-lottery .button-small:hover {
  background: var(--accent-color);
}

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

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

.page-lottery img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* 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: linear-gradient(135deg, #FFD700, #2F4F4F);
}

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

.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 8px 20px 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 {
  color: var(--text-light);
  font-size: 3.5em;
  margin-bottom: 20px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.page-lottery .hero-content p {
  color: var(--text-light);
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-lottery .cta-button {
  padding: 18px 45px;
  font-size: 1.2em;
  border-radius: 8px;
}

/* About Lottery QU88 Section */
.page-lottery .about-lottery-qu88 {
  background-color: var(--background-light);
}

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

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

.page-lottery .feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-lottery .feature-item img {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px auto;
  object-fit: contain;
  border-radius: 0;
}

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

.page-lottery .feature-item p {
  font-size: 0.95em;
  color: var(--text-dark);
}

/* Why Choose Us Section */
.page-lottery .why-choose-us ul {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-lottery .why-choose-us ul li {
  background: var(--text-light);
  margin-bottom: 15px;
  padding: 20px 25px;
  border-left: 5px solid var(--primary-color);
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-size: 1.1em;
}

.page-lottery .why-choose-us ul li strong {
  color: var(--secondary-color);
}

/* Lottery Types Section */
.page-lottery .lottery-types {
  background-color: var(--background-light);
}

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

.page-lottery .type-card {
  background: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

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

.page-lottery .type-card p {
  padding: 0 20px 15px;
  font-size: 0.95em;
}

.page-lottery .type-card ul {
  list-style: disc;
  padding: 0 20px 15px 40px;
  font-size: 0.9em;
  color: #555;
}

.page-lottery .type-card ul li {
  margin-bottom: 5px;
}

.page-lottery .type-card .secondary-button {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

/* Registration Guide Section */
.page-lottery .registration-guide ol {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
}

.page-lottery .registration-guide ol li {
  counter-increment: step-counter;
  margin-bottom: 40px;
  background: var(--text-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  padding-left: 90px;
}

.page-lottery .registration-guide ol li::before {
  content: counter(step-counter);
  position: absolute;
  left: 30px;
  top: 30px;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

.page-lottery .registration-guide ol li h3 {
  margin-top: 0;
  color: var(--secondary-color);
}

.page-lottery .full-width-image {
  width: 100%;
  height: auto;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Strategies Section */
.page-lottery .strategies {
  background-color: var(--background-light);
}

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

.page-lottery .strategy-item {
  background: var(--text-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-lottery .strategy-item img {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px auto;
  object-fit: contain;
  border-radius: 0;
}

.page-lottery .strategy-item h3 {
  color: var(--secondary-color);
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-lottery .strategy-item p {
  font-size: 0.95em;
  color: var(--text-dark);
}

/* Promotions Section */
.page-lottery .promotions {
  background-color: var(--text-light);
}

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

.page-lottery .promo-card {
  background: var(--background-light);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
}

.page-lottery .promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

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

.page-lottery .promo-card p {
  padding: 0 20px 15px;
  font-size: 0.95em;
}

.page-lottery .promo-card .primary-button, .page-lottery .promo-card .secondary-button {
  margin-bottom: 20px;
}

/* Security & Support Section */
.page-lottery .security-support {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-lottery .security-support h2, .page-lottery .security-support h3 {
  color: var(--primary-color);
}

.page-lottery .security-support p {
  color: rgba(255, 255, 255, 0.8);
}

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

.page-lottery .security-item, .page-lottery .support-item {
  background: #3a5c5c;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-lottery .security-item img, .page-lottery .support-item img {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px auto;
  object-fit: contain;
  border-radius: 0;
}

.page-lottery .security-item h3, .page-lottery .support-item h3 {
  font-size: 1.4em;
  margin-bottom: 10px;
}

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

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

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

.page-lottery .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--text-light);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

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

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

.page-lottery .faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--accent-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;
  color: var(--text-dark);
}

.page-lottery .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 20px 25px;
  border-top: 1px solid var(--border-color);
}

.page-lottery .faq-answer p {
  margin-bottom: 10px;
}

/* Latest Articles Section */
.page-lottery .latest-articles {
  background-color: var(--text-light);
}

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

.page-lottery .article-card {
  background: var(--background-light);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-lottery .article-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

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

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

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

.page-lottery .article-card p {
  padding: 0 20px;
  font-size: 0.95em;
}

.page-lottery .article-card .article-date {
  display: block;
  font-size: 0.85em;
  color: #888;
  padding: 10px 20px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery .hero-content h1 {
    font-size: 3em;
  }
  .page-lottery h2 {
    font-size: 1.8em;
  }
  .page-lottery h3 {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-lottery .hero-content h1 {
    font-size: 2.5em;
  }
  .page-lottery .hero-content p {
    font-size: 1em;
  }
  .page-lottery .cta-button {
    padding: 15px 35px;
    font-size: 1.1em;
  }
  .page-lottery section {
    padding: 40px 0;
  }
  .page-lottery h2 {
    font-size: 1.6em;
  }
  .page-lottery h3 {
    font-size: 1.2em;
  }
  .page-lottery .features-grid,
  .page-lottery .type-cards-grid,
  .page-lottery .strategy-grid,
  .page-lottery .promo-cards-grid,
  .page-lottery .security-support-grid,
  .page-lottery .article-cards-grid {
    grid-template-columns: 1fr;
  }
  .page-lottery .registration-guide ol li {
    padding-left: 70px;
  }
  .page-lottery .registration-guide ol li::before {
    left: 20px;
    top: 25px;
    width: 35px;
    height: 35px;
    font-size: 1.3em;
  }
  .page-lottery .faq-question {
    padding: 15px 20px;
  }
  .page-lottery .faq-question h3 {
    font-size: 1.1em;
  }
  .page-lottery .faq-toggle {
    font-size: 20px;
  }
  .page-lottery .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-lottery .hero-content h1 {
    font-size: 2em;
  }
  .page-lottery .cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-lottery h2 {
    font-size: 1.4em;
  }
  .page-lottery h3 {
    font-size: 1.1em;
  }
  .page-lottery .feature-item img,
  .page-lottery .strategy-item img,
  .page-lottery .security-item img,
  .page-lottery .support-item img {
    width: 80px;
    height: 80px;
  }
  .page-lottery .type-card img,
  .page-lottery .promo-card img,
  .page-lottery .article-card img {
    height: 180px;
  }
  .page-lottery .primary-button,
  .page-lottery .secondary-button {
    width: 100%;
    box-sizing: border-box;
  }
}