/* style/lottery.css */

/* Base styles for the page content, ensuring contrast with dark body background */
.page-lottery {
  color: var(--text-main); /* #F2FFF6 */
  background-color: var(--background); /* #08160F */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-lottery__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  color: var(--gold); /* #F2C14E */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-lottery__main-title {
  font-size: clamp(32px, 4.5vw, 56px);
  color: var(--gold); /* #F2C14E */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.1;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__text-block {
  color: var(--text-main); /* #F2FFF6 */
  margin-bottom: 20px;
  font-size: 17px;
  text-align: justify;
}

/* Buttons */
.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-lottery__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main); /* #F2FFF6 */
  box-shadow: 0 4px 15px rgba(0, 255, 100, 0.3);
}

.page-lottery__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-lottery__btn-secondary {
  background: transparent;
  color: var(--text-main); /* #F2FFF6 */
  border: 2px solid var(--border); /* #2E7A4E */
}

.page-lottery__btn-secondary:hover {
  background: rgba(46, 122, 78, 0.2); /* #2E7A4E with transparency */
  transform: translateY(-2px);
}

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

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

.page-lottery__cta-buttons--centered {
  margin-top: 40px;
}

/* Hero Section */
.page-lottery__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  background-color: var(--background); /* Dark background */
}

.page-lottery__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
}

.page-lottery__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure min size */
}

.page-lottery__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-lottery__hero-description {
  font-size: 19px;
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* General Section Styling */
.page-lottery__intro-section,
.page-lottery__guide-section,
.page-lottery__security-section,
.page-lottery__faq-section {
  padding: 60px 0;
  background-color: var(--background); /* #08160F */
  color: var(--text-main); /* #F2FFF6 */
}

.page-lottery__games-section,
.page-lottery__benefits-section,
.page-lottery__promotions-section,
.page-lottery__contact-cta-section {
  padding: 60px 0;
  background-color: var(--card-bg); /* #11271B */
  color: var(--text-main); /* #F2FFF6 */
}

/* Card Styling */
.page-lottery__card {
  background-color: var(--card-bg); /* #11271B */
  border: 1px solid var(--border); /* #2E7A4E */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-main); /* #F2FFF6 */
  min-height: 200px; /* Ensure min size */
}

.page-lottery__card-image {
  width: 100%;
  max-width: 400px; /* Max width for card images */
  height: auto;
  display: block;
  margin-bottom: 15px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-lottery__card-title {
  font-size: 24px;
  color: var(--gold); /* #F2C14E */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-lottery__card-description {
  font-size: 16px;
  color: var(--text-secondary); /* #A7D9B8 */
  flex-grow: 1;
  margin-bottom: 20px;
}

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

.page-lottery__explore-more-cta {
  text-align: center;
  margin-top: 50px;
}

/* Guide Section */
.page-lottery__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-lottery__guide-item {
  background-color: var(--card-bg); /* #11271B */
  border: 1px solid var(--border); /* #2E7A4E */
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  color: var(--text-main); /* #F2FFF6 */
}

.page-lottery__guide-step-title {
  font-size: 22px;
  color: var(--gold); /* #F2C14E */
  margin-bottom: 10px;
}

.page-lottery__guide-item p {
  color: var(--text-secondary); /* #A7D9B8 */
  font-size: 16px;
}

/* Security Section */
.page-lottery__security-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-lottery__security-item {
  background-color: var(--card-bg); /* #11271B */
  border: 1px solid var(--border); /* #2E7A4E */
  border-radius: 10px;
  padding: 25px;
  color: var(--text-main); /* #F2FFF6 */
}

.page-lottery__security-feature-title {
  font-size: 22px;
  color: var(--gold); /* #F2C14E */
  margin-bottom: 10px;
}

.page-lottery__security-item p {
  color: var(--text-secondary); /* #A7D9B8 */
  font-size: 16px;
}

/* FAQ Section */
.page-lottery__faq-list {
  margin-top: 30px;
}

.page-lottery__faq-item {
  background-color: var(--card-bg); /* #11271B */
  border: 1px solid var(--border); /* #2E7A4E */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main); /* #F2FFF6 */
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: bold;
  color: var(--text-main); /* #F2FFF6 */
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-lottery__faq-question:hover {
  background-color: rgba(46, 122, 78, 0.2); /* #2E7A4E with transparency */
}

.page-lottery__faq-qtext {
  color: var(--text-main); /* #F2FFF6 */
}

.page-lottery__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: var(--gold); /* #F2C14E */
}

/* Hide default details marker */
.page-lottery__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-lottery__faq-item summary {
  list-style: none;
}

.page-lottery__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 16px;
  color: var(--text-secondary); /* #A7D9B8 */
}

.page-lottery__faq-answer p {
  margin: 0;
  color: var(--text-secondary); /* #A7D9B8 */
}

/* Contact CTA Section */
.page-lottery__contact-cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--deep-green); /* #0A4B2C */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-lottery__hero-description {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-lottery__main-title {
    font-size: clamp(28px, 6vw, 40px);
  }

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

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

  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-lottery__section-title {
    font-size: clamp(24px, 5vw, 36px);
  }

  .page-lottery__intro-section,
  .page-lottery__games-section,
  .page-lottery__guide-section,
  .page-lottery__benefits-section,
  .page-lottery__security-section,
  .page-lottery__promotions-section,
  .page-lottery__faq-section,
  .page-lottery__contact-cta-section {
    padding: 40px 0;
  }

  .page-lottery__text-block,
  .page-lottery p,
  .page-lottery li {
    font-size: 15px;
  }

  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-lottery__hero-image-wrapper,
  .page-lottery__game-card,
  .page-lottery__benefit-card,
  .page-lottery__promo-card,
  .page-lottery__card,
  .page-lottery__container,
  .page-lottery__guide-item,
  .page-lottery__security-item,
  .page-lottery__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-lottery__hero-content {
    padding: 0 15px;
  }

  .page-lottery__game-grid,
  .page-lottery__benefits-grid,
  .page-lottery__promotion-cards,
  .page-lottery__security-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-lottery__card-image {
    min-width: unset; /* Allow smaller display if container is small */
    min-height: unset;
  }
}

@media (max-width: 480px) {
  .page-lottery__main-title {
    font-size: clamp(24px, 7vw, 32px);
  }

  .page-lottery__section-title {
    font-size: clamp(22px, 6vw, 30px);
  }

  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    font-size: 16px;
    padding: 10px 20px;
  }

  .page-lottery__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }

  .page-lottery__faq-answer {
    padding: 0 20px 15px 20px;
  }
}

/* Custom property definitions */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}