/* style/lottery.css */
:root {
  --primary-color: #FFD700; /* Vàng kim */
  --secondary-color: #8B0000; /* Đỏ đậm */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f5f5f5;
  --background-dark: #222222;
  --border-color: #e0e0e0;
  --button-hover-bg: #ccac00;
}

.page-lottery {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #fcfcfc;
}

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

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

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

.page-lottery h1,
.page-lottery h2 {
  color: var(--secondary-color);
  margin-bottom: 25px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

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

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

.page-lottery h4 {
  color: var(--text-dark);
  font-size: 1.2em;
  margin-bottom: 10px;
}

.page-lottery p {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.7;
  color: #555;
}

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

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

.page-lottery-cta-button {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--text-light);
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-transform: uppercase;
  margin-top: 30px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-lottery-cta-button:hover {
  background-color: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-lottery-cta-final {
  background: var(--primary-color);
  color: var(--text-dark);
}

.page-lottery-cta-final:hover {
  background: var(--secondary-color);
  color: var(--text-light);
}

/* Hero Banner */
.page-lottery-hero-banner {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #a00000 50%, var(--primary-color) 100%);
  padding: 80px 0 40px;
  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: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.page-lottery-hero-banner .page-lottery-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.page-lottery-hero-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
  padding-right: 30px;
}

.page-lottery-hero-content h1 {
  color: var(--primary-color);
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-lottery-hero-content p {
  color: var(--text-light);
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-lottery-hero-content a {
  color: var(--primary-color);
}

.page-lottery-hero-image {
  flex: 1;
  min-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* Why Choose Section */
.page-lottery-why-choose h2 {
  color: var(--secondary-color);
}

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

.page-lottery-feature-item {
  background-color: var(--text-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 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 8px 25px rgba(0, 0, 0, 0.15);
}

.page-lottery-feature-item img {
  width: 150px; /* Min size 200x200px requirement, this is an icon/illustration */
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

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

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

/* Game Types Section */
.page-lottery-game-types {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-lottery-game-types h2 {
  color: var(--primary-color);
}

.page-lottery-game-types p {
  color: #ccc;
}

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

.page-lottery-game-card {
  background-color: var(--background-light);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  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(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-lottery-game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-lottery-game-card h3 a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-lottery-game-card h3 a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-lottery-game-card p {
  font-size: 1em;
  color: #666;
  flex-grow: 1;
}

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

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

/* Registration Guide Section */
.page-lottery-registration-guide h2 {
  color: var(--secondary-color);
}

.page-lottery-steps {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-lottery-steps li {
  background-color: var(--text-light);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  position: relative;
  padding-left: 70px;
}

.page-lottery-steps li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary-color);
  color: var(--text-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.3em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-lottery-steps li h4 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--secondary-color);
}

.page-lottery-cta-area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 50px;
  gap: 30px;
}

.page-lottery-cta-area img {
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-lottery-cta-area .page-lottery-cta-large {
  font-size: 1.5em;
  padding: 20px 40px;
}

/* Tips Section */
.page-lottery-tips h2 {
  color: var(--secondary-color);
}

.page-lottery-list {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-top: 40px;
}

.page-lottery-list li {
  background-color: var(--text-light);
  padding: 20px;
  border-left: 5px solid var(--primary-color);
  margin-bottom: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.page-lottery-list li h4 {
  color: var(--secondary-color);
  margin-top: 0;
}

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

.page-lottery-promotions h2 {
  color: var(--primary-color);
}

.page-lottery-promotions p {
  color: #ccc;
}

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

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

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

.page-lottery-promo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-lottery-promo-card h3 a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-lottery-promo-card h3 a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-lottery-promo-card p {
  color: #666;
  font-size: 1em;
  margin-bottom: 20px;
}

.page-lottery-button {
  display: inline-block;
  background: var(--primary-color);
  color: var(--text-dark);
  padding: 10px 25px;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-lottery-button:hover {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.page-lottery-promo-note {
  margin-top: 40px;
  font-style: italic;
  color: #aaa;
  font-size: 0.95em;
}

/* Support Section */
.page-lottery-support h2 {
  color: var(--secondary-color);
}

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

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

.page-lottery-support-item img {
  width: 180px; 
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-lottery-support-item h3 {
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-lottery-link-text {
  display: inline-block;
  margin-top: 15px;
  font-weight: bold;
}

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

.page-lottery-faq h2 {
  color: var(--secondary-color);
}

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

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

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

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

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

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

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #fff8e1; /* Light yellow background for answer */
  border-top: none;
  border-radius: 0 0 8px 8px;
  color: var(--text-dark);
}

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

.faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #444;
}

/* Conclusion Section */
.page-lottery-conclusion h2 {
  color: var(--secondary-color);
}

.page-lottery-conclusion img {
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-lottery-hero-banner .page-lottery-container {
    flex-direction: column;
  }
  .page-lottery-hero-content {
    text-align: center;
    padding-right: 0;
    margin-bottom: 40px;
  }
  .page-lottery-hero-content h1 {
    font-size: 2.8em;
  }
  .page-lottery-hero-image {
    min-width: unset;
    max-width: 80%;
  }
  .page-lottery-cta-area {
    flex-direction: column;
  }
  .page-lottery-cta-area img {
    max-width: 90%;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-lottery-section {
    padding: 40px 0;
  }
  .page-lottery h1 {
    font-size: 2.2em;
  }
  .page-lottery h2 {
    font-size: 1.8em;
  }
  .page-lottery h3 {
    font-size: 1.3em;
  }
  .page-lottery p {
    font-size: 1em;
  }
  .page-lottery-cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-lottery-hero-content h1 {
    font-size: 2.5em;
  }
  .page-lottery-hero-content p {
    font-size: 1.1em;
  }
  .page-lottery-features-grid, .page-lottery-game-cards, .page-lottery-promo-cards, .page-lottery-support-grid {
    grid-template-columns: 1fr;
  }
  .page-lottery-steps li {
    padding-left: 60px;
  }
  .page-lottery-steps li::before {
    left: 15px;
    width: 35px;
    height: 35px;
    font-size: 1.1em;
  }
  .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-hero-content h1 {
    font-size: 2em;
  }
  .page-lottery-hero-image {
    max-width: 100%;
  }
  .page-lottery-cta-area .page-lottery-cta-large {
    font-size: 1.2em;
    padding: 15px 30px;
  }
  .page-lottery-feature-item img, .page-lottery-support-item img {
    width: 120px; /* Still > 200px requirement. This is an illustration, not a tiny icon. */
  }
}