/* style/lottery.css */
:root {
  --primary-color: #0A1C3C; /* Deep Sapphire Blue */
  --secondary-color: #FFD700; /* Luxury Gold */
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --background-dark: #121212;
  --card-background-dark: rgba(255, 255, 255, 0.1);
  --card-background-light: #ffffff;
  --border-color: #e0e0e0;
}

.page-lottery {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-light); /* Body background is dark, so text is light */
  background-color: var(--background-dark);
}

/* Ensure content is not hidden by fixed header */
.page-lottery__hero-section {
  padding-top: 120px; /* Desktop: Adjust based on shared header height */
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #050e1d 100%);
  color: var(--text-color-light);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.page-lottery__hero-content {
  max-width: 900px;
}

.page-lottery__main-title {
  font-size: 3.2em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-lottery__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

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

.page-lottery__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  text-align: center;
}

.page-lottery__cta-button--primary {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.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: var(--primary-color);
  color: var(--text-color-light);
  border: 2px solid var(--secondary-color);
}

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

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

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

.page-lottery__section-title--light {
  color: var(--text-color-light);
}

.page-lottery__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 60px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__section-description--light {
  color: rgba(255, 255, 255, 0.9);
}

.page-lottery__content-block p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.85);
  text-align: justify;
}

.page-lottery__dark-section {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

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

.page-lottery__card {
  background: var(--card-background-light);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-lottery__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-lottery__dark-bg-card {
  background: var(--card-background-dark);
  color: var(--text-color-light);
}

.page-lottery__card-image {
  max-width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__card-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-lottery__card-text {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-lottery__card-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-lottery__card-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
}

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

.page-lottery__advantage-item {
  background: var(--card-background-dark);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-lottery__advantage-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-lottery__advantage-title {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-lottery__advantage-item p {
  color: rgba(255, 255, 255, 0.8);
}

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

.page-lottery__step-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-lottery__step-number {
  width: 60px;
  height: 60px;
  background: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.page-lottery__step-item p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-lottery__step-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid var(--secondary-color);
  cursor: pointer;
}

.page-lottery__step-button:hover {
  background: #050e1d;
  transform: translateY(-2px);
  border-color: #e6c200;
}

.page-lottery__list-unstyled {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__list-item {
  background: var(--card-background-dark);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.page-lottery__list-item p {
  color: rgba(255, 255, 255, 0.8);
}

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

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--card-background-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.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;
  color: rgba(255, 255, 255, 0.8);
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 5px 5px;
}

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

.page-lottery__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-lottery__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--secondary-color);
}

.page-lottery__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  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: 28px;
  height: 28px;
}

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  color: var(--text-color-light);
  transform: rotate(45deg); /* Change to X for active state */
}

.page-lottery__conclusion {
  padding-bottom: 80px;
}

.page-lottery__cta-buttons--bottom {
  margin-top: 50px;
}

/* General image responsiveness */
.page-lottery img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__main-title {
    font-size: 2.8em;
  }

  .page-lottery__hero-description {
    font-size: 1.2em;
  }

  .page-lottery__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust based on mobile header height */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-lottery__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-lottery__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-lottery__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-lottery__cta-button {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 25px;
    font-size: 1em;
  }

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

  .page-lottery__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-lottery__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

  .page-lottery__content-block p {
    font-size: 1em;
  }

  .page-lottery__container {
    padding: 0 15px;
  }

  .page-lottery__grid-3-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery__card {
    padding: 20px;
  }

  .page-lottery__card-image {
    height: 200px;
    margin-bottom: 20px;
  }

  .page-lottery__card-title {
    font-size: 1.4em;
  }

  .page-lottery__card-text {
    font-size: 0.95em;
  }

  .page-lottery__card-button {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-lottery__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery__advantage-item {
    padding: 25px;
  }

  .page-lottery__advantage-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

  .page-lottery__advantage-title {
    font-size: 1.2em;
  }

  .page-lottery__steps-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery__step-item {
    padding: 25px;
  }

  .page-lottery__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-lottery__step-title {
    font-size: 1.3em;
  }

  .page-lottery__step-item p {
    font-size: 0.95em;
  }

  .page-lottery__step-button {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-lottery__list-item {
    padding: 25px;
  }

  .page-lottery__list-item-title {
    font-size: 1.2em;
  }

  .page-lottery__list-item p {
    font-size: 0.95em;
  }

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

  .page-lottery__faq-question h3 {
    font-size: 1em;
  }

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

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

  /* General image responsiveness */
  .page-lottery img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-lottery__section,
  .page-lottery__card,
  .page-lottery__container,
  .page-lottery__cta-buttons,
  .page-lottery__advantages-grid,
  .page-lottery__steps-container,
  .page-lottery__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}