.page-lottery {
  color: #ffffff; /* Text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

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

.page-lottery__section {
  padding: 60px 0;
}

.page-lottery__dark-bg {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark for contrast */
}

.page-lottery__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD700; /* Primary brand color for titles */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-lottery__text-content {
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: #f0f0f0; /* Light text for readability */
}

.page-lottery__text-content--note {
  font-size: 16px;
  opacity: 0.8;
  margin-top: 40px;
}

.page-lottery__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-lottery__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-lottery__cta-button--primary {
  background: #FFD700; /* Gold */
  color: #121212; /* Dark text for contrast on gold */
}

.page-lottery__cta-button--primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-lottery__cta-button--secondary {
  background: #000080; /* Dark Blue */
  color: #ffffff; /* White text for contrast on dark blue */
  border: 2px solid #FFD700;
}

.page-lottery__cta-button--secondary:hover {
  background: #000066;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-lottery__cta-button--small {
  padding: 10px 25px;
  font-size: 16px;
}

/* Hero Section */
.page-lottery__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #000080 0%, #1a1a3a 100%); /* Dark blue gradient */
}

.page-lottery__hero-section .page-lottery__container {
  position: relative;
  z-index: 1;
}

.page-lottery__main-title {
  font-size: 52px;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.page-lottery__description {
  font-size: 20px;
  max-width: 800px;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-lottery__hero-image {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
}

/* Advantages Section */
.page-lottery__advantages-section {
  background-color: #1a1a1a;
}

.page-lottery__advantages-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-lottery__advantages-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-lottery__advantages-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.page-lottery__advantages-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__advantages-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-lottery__advantages-description {
  font-size: 16px;
  line-height: 1.7;
  color: #e0e0e0;
}

/* Types Section */
.page-lottery__types-section {
  background-color: #0d0d0d;
}

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

.page-lottery__type-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-lottery__type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-lottery__type-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-lottery__type-card .page-lottery__type-title {
  font-size: 22px;
  color: #FFD700;
  margin: 20px 20px 10px 20px;
  text-align: center;
}

.page-lottery__type-card .page-lottery__type-description {
  font-size: 15px;
  line-height: 1.6;
  color: #e0e0e0;
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-lottery__type-card .page-lottery__cta-button--small {
  margin: 0 20px 20px 20px;
  align-self: center;
  width: calc(100% - 40px);
}

/* Guide Section */
.page-lottery__guide-section {
  background-color: #1a1a1a;
  position: relative;
}

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

.page-lottery__step-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-lottery__step-number {
  width: 50px;
  height: 50px;
  background: #FFD700;
  color: #121212;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-lottery__step-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-lottery__step-description {
  font-size: 16px;
  line-height: 1.7;
  color: #e0e0e0;
  flex-grow: 1;
}

.page-lottery__guide-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 60px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Tips Section */
.page-lottery__tips-section {
  background-color: #0d0d0d;
}

.page-lottery__tips-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}

.page-lottery__tips-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-left: 5px solid #FFD700;
}

.page-lottery__tips-item:last-child {
  margin-bottom: 0;
}

.page-lottery__tips-title {
  font-size: 20px;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-lottery__tips-description {
  font-size: 16px;
  line-height: 1.7;
  color: #e0e0e0;
}

/* Promotions Section */
.page-lottery__promotions-section {
  background-color: #1a1a1a;
}

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

.page-lottery__promotion-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-lottery__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-lottery__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-lottery__promotion-card .page-lottery__promotion-title {
  font-size: 22px;
  color: #FFD700;
  margin: 20px 20px 10px 20px;
  text-align: center;
}

.page-lottery__promotion-card .page-lottery__promotion-description {
  font-size: 15px;
  line-height: 1.6;
  color: #e0e0e0;
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-lottery__promotion-card .page-lottery__cta-button--small {
  margin: 0 20px 20px 20px;
  align-self: center;
  width: calc(100% - 40px);
}

/* Responsible Gaming Section */
.page-lottery__responsible-gaming-section {
  background-color: #000080;
  background: linear-gradient(135deg, #000080 0%, #00004d 100%);
}

.page-lottery__responsible-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-lottery__responsible-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-left: 5px solid #FFD700;
  text-align: center;
}

.page-lottery__responsible-title {
  font-size: 20px;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-lottery__responsible-description {
  font-size: 16px;
  line-height: 1.7;
  color: #e0e0e0;
}

/* Other Games Section */
.page-lottery__other-games-section {
  background-color: #1a1a1a;
}

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

.page-lottery__game-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-lottery__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-lottery__game-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.page-lottery__game-card .page-lottery__game-title {
  font-size: 22px;
  color: #FFD700;
  margin: 20px 20px 10px 20px;
  text-align: center;
}

.page-lottery__game-card .page-lottery__game-description {
  font-size: 15px;
  line-height: 1.6;
  color: #e0e0e0;
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-lottery__game-card .page-lottery__cta-button--small {
  margin: 0 20px 20px 20px;
  align-self: center;
  width: calc(100% - 40px);
}

/* FAQ Section */
.page-lottery__faq-section {
  background-color: #0d0d0d;
}

.page-lottery__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-lottery__faq-question:hover {
  background: rgba(255, 255, 255, 0.12);
}

.page-lottery__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700;
  pointer-events: none;
}

.page-lottery__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
}

.page-lottery__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.05);
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
}

.page-lottery__faq-answer p {
  font-size: 16px;
  line-height: 1.7;
  color: #e0e0e0;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__main-title {
    font-size: 44px;
  }
  .page-lottery__section-title {
    font-size: 32px;
  }
  .page-lottery__description, .page-lottery__text-content {
    font-size: 17px;
  }
  .page-lottery__advantages-item, .page-lottery__type-card, .page-lottery__step-item, .page-lottery__promotion-card, .page-lottery__responsible-item, .page-lottery__game-card {
    padding: 25px;
  }
  .page-lottery__advantages-title, .page-lottery__type-card .page-lottery__type-title, .page-lottery__step-title, .page-lottery__promotion-card .page-lottery__promotion-title, .page-lottery__responsible-title, .page-lottery__game-card .page-lottery__game-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-lottery {
    padding-top: 100px !important; /* Adjust for fixed header on mobile */
  }
  .page-lottery__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-lottery__section {
    padding: 40px 0;
  }
  .page-lottery__hero-section {
    padding: 60px 0;
  }
  .page-lottery__main-title {
    font-size: 36px;
    margin-bottom: 15px;
  }
  .page-lottery__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-lottery__description, .page-lottery__text-content {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-lottery__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
  }
  .page-lottery__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-lottery__advantages-list, .page-lottery__type-grid, .page-lottery__guide-steps, .page-lottery__promotion-grid, .page-lottery__responsible-list, .page-lottery__game-categories {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery__advantages-item, .page-lottery__type-card, .page-lottery__step-item, .page-lottery__promotion-card, .page-lottery__responsible-item, .page-lottery__game-card {
    padding: 20px;
  }

  .page-lottery__advantages-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }

  .page-lottery__advantages-title, .page-lottery__type-card .page-lottery__type-title, .page-lottery__step-title, .page-lottery__promotion-card .page-lottery__promotion-title, .page-lottery__responsible-title, .page-lottery__game-card .page-lottery__game-title {
    font-size: 18px;
  }

  .page-lottery__advantages-description, .page-lottery__type-card .page-lottery__type-description, .page-lottery__step-description, .page-lottery__tips-description, .page-lottery__promotion-card .page-lottery__promotion-description, .page-lottery__responsible-description, .page-lottery__game-card .page-lottery__game-description, .page-lottery__faq-answer p {
    font-size: 15px;
  }

  .page-lottery__type-image, .page-lottery__promotion-image, .page-lottery__game-image {
    height: 150px;
  }

  .page-lottery__guide-image {
    margin-top: 40px;
  }

  .page-lottery__faq-question {
    padding: 15px;
  }

  .page-lottery__faq-question h3 {
    font-size: 16px;
  }

  .page-lottery__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px !important;
  }

  /* Image responsiveness */
  .page-lottery img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-lottery__hero-image {
    position: relative;
    height: 250px;
    opacity: 0.2;
    margin-top: 20px;
  }

  .page-lottery__hero-section {
    padding-bottom: 20px;
  }

  .page-lottery__step-item .page-lottery__cta-button--small,
  .page-lottery__type-card .page-lottery__cta-button--small,
  .page-lottery__promotion-card .page-lottery__cta-button--small,
  .page-lottery__game-card .page-lottery__cta-button--small {
    width: calc(100% - 0px) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .page-lottery__tips-item {
    padding: 20px;
  }
}