/* style/lottery.css */
:root {
  --primary-color: #0A244A;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-light: #f4f7f6;
  --background-dark: #0A244A;
  --accent-light: #FFEB3B;
  --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: 0 20px;
}

.page-lottery .section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-lottery p {
  margin-bottom: 1em;
  color: var(--text-dark);
}

.page-lottery a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

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

.page-lottery .cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-lottery .cta-button:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

/* Hero Banner */
.page-lottery .hero-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1A3A6A 100%);
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.page-lottery .hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 L 0 10" fill="none" stroke="%231A3A6A" stroke-width="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
  opacity: 0.1;
  z-index: 1;
}

.page-lottery .hero-banner .hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-lottery .hero-banner .hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-lottery .hero-banner .hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #E0E0E0;
}

.page-lottery .hero-banner .hero-image {
  max-width: 800px;
  width: 100%;
  position: relative;
  z-index: 2;
}

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

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

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

.page-lottery .intro-section .feature-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.page-lottery .intro-section .feature-item img {
  width: 100%; /* Ensure image fills its container */
  max-width: 300px; /* Adjust max-width as needed */
  height: 200px; /* Fixed height for consistency */
  object-fit: cover; /* Cover the area, crop if necessary */
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-lottery .intro-section .feature-item h3 {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* Game Types Section */
.page-lottery .game-types-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

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

.page-lottery .game-card img {
  width: 100%;
  height: 250px; /* Fixed height for card images */
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

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

.page-lottery .game-card p {
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-lottery .game-card .card-button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  text-align: center;
  padding: 12px 20px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

/* Registration Guide Section */
.page-lottery .registration-guide-section {
  padding: 60px 0;
  background-color: var(--background-light);
  text-align: center;
}

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

.page-lottery .step-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-lottery .step-item img {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-lottery .step-item h3 {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* Advantages Section */
.page-lottery .advantages-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
}

.page-lottery .advantages-section .section-title {
  color: var(--secondary-color);
}

.page-lottery .advantages-section p {
  color: #E0E0E0;
}

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

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

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

.page-lottery .advantage-item {
  background: #1A3A6A;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-lottery .advantage-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px var(--secondary-color)); /* Allowed as it doesn't change image color */
}

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

/* Promotions Section */
.page-lottery .promotions-section {
  padding: 60px 0;
  background-color: var(--background-light);
}

.page-lottery .promotions-section ul {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery .promotions-section ul li {
  background: #ffffff;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.1em;
  color: var(--text-dark);
  border-left: 5px solid var(--secondary-color);
}

.page-lottery .promotions-section ul li strong {
  color: var(--primary-color);
}

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

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

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

.page-lottery .faq-item.active {
  border-color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

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

.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;
  color: var(--text-dark);
}

.page-lottery .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 15px 25px;
}

.page-lottery .faq-answer p {
  margin: 0;
}

/* Final CTA Section */
.page-lottery .final-cta-section {
  padding: 60px 0;
  background: linear-gradient(90deg, var(--primary-color), #1A3A6A);
  color: var(--text-light);
  text-align: center;
}

.page-lottery .final-cta-section .section-title {
  color: var(--secondary-color);
}

.page-lottery .final-cta-section p {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #E0E0E0;
}

.page-lottery .final-cta-section .large-cta {
  padding: 18px 40px;
  font-size: 1.3em;
  border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery .hero-banner .hero-title {
    font-size: 3em;
  }
  .page-lottery .hero-banner .hero-description {
    font-size: 1.1em;
  }
  .page-lottery .section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-lottery .hero-banner {
    flex-direction: column;
    padding: 60px 0;
  }
  .page-lottery .hero-banner .hero-content {
    margin-bottom: 30px;
  }
  .page-lottery .hero-banner .hero-title {
    font-size: 2.5em;
  }
  .page-lottery .hero-banner .hero-description {
    font-size: 1em;
  }
  .page-lottery .cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-lottery .intro-section .intro-features,
  .page-lottery .game-grid,
  .page-lottery .steps-grid,
  .page-lottery .advantages-grid {
    grid-template-columns: 1fr;
  }
  .page-lottery .section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-lottery .intro-section,
  .page-lottery .game-types-section,
  .page-lottery .registration-guide-section,
  .page-lottery .advantages-section,
  .page-lottery .promotions-section,
  .page-lottery .faq-section,
  .page-lottery .final-cta-section {
    padding: 40px 0;
  }
  .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;
  }
}

@media (max-width: 480px) {
  .page-lottery .hero-banner .hero-title {
    font-size: 2em;
  }
  .page-lottery .cta-button {
    width: 100%;
    box-sizing: border-box;
  }
  .page-lottery .final-cta-section .large-cta {
    font-size: 1.1em;
    padding: 15px 25px;
  }
  .page-lottery .intro-section .feature-item img,
  .page-lottery .game-card img,
  .page-lottery .step-item img {
    height: 180px;
  }
}