/* style/lottery.css */
:root {
  --primary-color: #0A192F;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-light: #f8f9fa;
  --border-color: #e0e0e0;
}

.page-lottery {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--primary-color); /* Inherited from shared.css body */
  padding-top: 120px; /* Spacing for fixed header */
}

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

.page-lottery__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.page-lottery__section-subtitle {
  font-size: 18px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

/* Hero Section */
.page-lottery__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 0;
  overflow: hidden;
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-lottery__hero-title {
  font-size: 48px;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-lottery__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 2px solid transparent;
  text-align: center;
}

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

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

.page-lottery__btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.page-lottery__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-lottery__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-lottery__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

/* Advantages Section */
.page-lottery__advantages-section {
  padding: 80px 0;
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-lottery__advantages-section .page-lottery__section-title,
.page-lottery__advantages-section .page-lottery__section-subtitle {
  color: var(--text-dark);
}

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

.page-lottery__card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
}

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

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

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

.page-lottery__card-text {
  font-size: 16px;
  color: #555555;
}

/* Types Section */
.page-lottery__types-section {
  padding: 80px 0;
}

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

.page-lottery__type-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light);
}

.page-lottery__type-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.1);
}

.page-lottery__type-image {
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-lottery__type-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-lottery__type-description {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-lottery__btn-small {
  display: inline-block;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-lottery__btn-small:hover {
  background: #e6c200;
}

/* Guide Section */
.page-lottery__guide-section {
  padding: 80px 0;
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-lottery__guide-section .page-lottery__section-title,
.page-lottery__guide-section .page-lottery__section-subtitle {
  color: var(--text-dark);
}

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

.page-lottery__step-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
}

.page-lottery__step-number {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  font-size: 28px;
  font-weight: bold;
  margin: 0 auto 20px;
}

.page-lottery__step-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-lottery__step-description {
  font-size: 16px;
  color: #555555;
}

.page-lottery__cta-center {
  text-align: center;
  margin-top: 50px;
}

/* Tips Section */
.page-lottery__tips-section {
  padding: 80px 0;
}

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

.page-lottery__tip-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: var(--text-light);
}

.page-lottery__tip-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.1);
}

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

.page-lottery__tip-description {
  font-size: 16px;
  color: #cccccc;
}

/* Final CTA Section */
.page-lottery__final-cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-lottery__hero-title {
    font-size: 42px;
  }
  .page-lottery__section-title {
    font-size: 32px;
  }
  .page-lottery__hero-description,
  .page-lottery__section-subtitle {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-lottery {
    padding-top: 100px !important; /* Mobile spacing for fixed header */
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-lottery__hero-section {
    padding: 80px 0;
  }

  .page-lottery__hero-title {
    font-size: 32px;
  }

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

  .page-lottery__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-lottery__btn-primary,
  .page-lottery__btn-secondary,
  .page-lottery a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-lottery__section-title {
    font-size: 28px;
  }

  .page-lottery__section-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-lottery__advantages-section,
  .page-lottery__types-section,
  .page-lottery__guide-section,
  .page-lottery__tips-section,
  .page-lottery__final-cta-section {
    padding: 60px 0;
  }

  .page-lottery__card,
  .page-lottery__type-item,
  .page-lottery__step-item,
  .page-lottery__tip-item {
    padding: 25px;
    border-radius: 8px;
  }

  .page-lottery__card-icon {
    width: 100px;
    height: 100px;
  }

  .page-lottery__card-title,
  .page-lottery__type-title,
  .page-lottery__step-title,
  .page-lottery__tip-title {
    font-size: 20px;
  }

  .page-lottery__card-text,
  .page-lottery__type-description,
  .page-lottery__step-description,
  .page-lottery__tip-description {
    font-size: 15px;
  }

  .page-lottery__type-image {
    width: 180px;
    height: 120px;
  }

  .page-lottery__btn-small {
    padding: 8px 15px;
    font-size: 14px;
  }

  .page-lottery img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-lottery__hero-image-wrapper, 
  .page-lottery__hero-image, 
  .page-lottery__card-icon, 
  .page-lottery__type-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-lottery__hero-title {
    font-size: 28px;
  }
  .page-lottery__section-title {
    font-size: 24px;
  }
  .page-lottery__hero-description,
  .page-lottery__section-subtitle {
    font-size: 15px;
  }
  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    padding: 12px 20px;
    font-size: 16px;
  }
}