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

.page-lottery {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--background-dark);
}

/* Ensure content is not hidden by fixed header */
.page-lottery__hero-section,
.page-lottery__section--intro {
  padding-top: 120px; /* Desktop: Adjust based on shared header height */
}

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

.page-lottery__container--center {
  text-align: center;
}

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

.page-lottery__section--intro {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-lottery__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-lottery__text-block {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-light);
}

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

.page-lottery__text-block a:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-lottery__hero-section {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--background-dark) 100%);
  padding-bottom: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-lottery__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-lottery__hero-title {
  font-size: 48px;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-lottery__hero-subtitle {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.page-lottery__cta-button {
  display: inline-block;
  padding: 15px 35px;
  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.2);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.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--large {
  padding: 18px 45px;
  font-size: 20px;
}

.page-lottery__hero-image {
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  margin-top: 40px;
}

/* Grid Layouts */
.page-lottery__grid {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

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

/* Card Styles */
.page-lottery__card {
  background: var(--card-background-dark);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-lottery__card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

.page-lottery__card-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
  flex-grow: 1;
  margin-bottom: 20px;
}

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

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

/* Advantages Section */
.page-lottery__section--advantages {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.page-lottery__section--advantages .page-lottery__section-title {
  color: var(--primary-color);
}

.page-lottery__section--advantages .page-lottery__text-block {
  color: var(--text-light);
}

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

.page-lottery__feature-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-lottery__feature-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
}

/* Guide Section */
.page-lottery__section--guide {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-lottery__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-lottery__guide-item {
  background: var(--card-background-dark);
  border-left: 5px solid var(--primary-color);
  margin-bottom: 25px;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.page-lottery__guide-item p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-light);
}

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

/* Tips Section */
.page-lottery__section--tips {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.page-lottery__section--tips .page-lottery__section-title {
  color: var(--primary-color);
}

.page-lottery__section--tips .page-lottery__text-block {
  color: var(--text-light);
}

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

.page-lottery__tips-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.page-lottery__tips-item p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-light);
}

.page-lottery__tips-image {
  max-width: 600px;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Final CTA Section */
.page-lottery__section--cta-final {
  padding: 80px 0;
  background: linear-gradient(45deg, var(--primary-color) 0%, #e6c200 100%);
  color: var(--background-dark);
}

.page-lottery__section--cta-final .page-lottery__section-title {
  color: var(--background-dark);
  text-shadow: none;
}

.page-lottery__section--cta-final .page-lottery__text-block {
  color: var(--background-dark);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__section--cta-final .page-lottery__text-block a {
  color: var(--secondary-color);
}

.page-lottery__section--cta-final .page-lottery__cta-button {
  margin-top: 30px;
  background: var(--secondary-color);
  color: var(--text-light);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-lottery__section--cta-final .page-lottery__cta-button:hover {
  background: #000066;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

@media (max-width: 768px) {
  .page-lottery__hero-section,
  .page-lottery__section--intro {
    padding-top: 10px !important; /* Mobile: Adjust based on shared header height */
  }

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

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

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

  .page-lottery__hero-subtitle {
    font-size: 17px;
    margin-bottom: 30px;
  }

  .page-lottery__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
  }

  .page-lottery__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px !important;
    font-size: 16px !important;
  }

  .page-lottery__hero-image {
    max-width: 100%;
    margin-top: 30px;
  }

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

  .page-lottery__text-block {
    font-size: 16px;
    line-height: 1.7;
  }

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

  .page-lottery__card {
    padding: 20px;
  }

  .page-lottery__card-image {
    height: 180px;
  }

  .page-lottery__card-title {
    font-size: 20px;
  }

  .page-lottery__features-grid {
    grid-template-columns: 1fr;
  }

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

  .page-lottery__feature-icon {
    width: 60px;
    height: 60px;
  }

  .page-lottery__feature-title {
    font-size: 20px;
  }

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

  .page-lottery__guide-item-title {
    font-size: 20px;
  }

  .page-lottery__guide-item p {
    font-size: 16px;
  }

  .page-lottery__tips-list {
    grid-template-columns: 1fr;
  }

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

  .page-lottery__tips-item-title {
    font-size: 20px;
  }

  .page-lottery__tips-item p {
    font-size: 16px;
  }

  .page-lottery__tips-image {
    max-width: 100%;
  }

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

  .page-lottery__section--cta-final .page-lottery__cta-button {
    padding: 15px 30px;
    font-size: 18px;
  }

  /* General image and video responsive styles */
  .page-lottery img,
  .page-lottery video {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-lottery__section,
  .page-lottery__container,
  .page-lottery__card,
  .page-lottery__grid,
  .page-lottery__features-grid,
  .page-lottery__tips-list,
  .page-lottery__hero-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-lottery__hero-title {
    font-size: 28px;
  }
  .page-lottery__hero-subtitle {
    font-size: 16px;
  }
  .page-lottery__section-title {
    font-size: 24px;
  }
  .page-lottery__text-block {
    font-size: 15px;
  }
  .page-lottery__card-title,
  .page-lottery__feature-title,
  .page-lottery__guide-item-title,
  .page-lottery__tips-item-title {
    font-size: 18px;
  }
  .page-lottery__card-description,
  .page-lottery__feature-description,
  .page-lottery__guide-item p,
  .page-lottery__tips-item p {
    font-size: 15px;
  }
  .page-lottery__cta-button {
    padding: 10px 20px !important;
    font-size: 15px !important;
  }
  .page-lottery__card-button {
    padding: 8px 20px;
    font-size: 14px;
  }
}