/* style/lottery.css */

/* Custom Colors */
:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-button-gradient-start: #2AD16F;
  --color-button-gradient-end: #13994A;
  --color-card-bg: #11271B;
  --color-background: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
  --color-light-bg: #ffffff;
  --color-dark-text: #333333;
}

/* General Page Styles */
.page-lottery {
  color: var(--color-text-main); /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--color-background); /* Ensure consistent background */
}

.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__dark-bg {
  background-color: var(--color-background);
  color: var(--color-text-main);
}

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

/* Hero Section */
.page-lottery__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
  overflow: hidden;
}

.page-lottery__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  position: relative;
}

.page-lottery__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-lottery__hero-content {
  position: relative;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Overlap slightly for visual effect, but not text on image */
  z-index: 10;
  background: rgba(8, 22, 15, 0.8);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-lottery__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive H1 font size */
  color: var(--color-gold);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-lottery__description {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Video Section */
.page-lottery__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px 20px; /* Small top padding */
  box-sizing: border-box;
}

.page-lottery__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: var(--color-card-bg);
  border-radius: 10px;
  margin-top: 30px;
  width: 100%;
}

.page-lottery__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-lottery__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

/* Section Titles & Descriptions */
.page-lottery__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-lottery__section-description {
  font-size: 1rem;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-lottery__content-block-title {
  font-size: 1.6rem;
  color: var(--color-gold);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-lottery__content-block p {
  color: var(--color-text-main);
  margin-bottom: 15px;
}

/* Grid Layouts */
.page-lottery__grid-3-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-lottery__grid-2-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: center;
  margin-top: 40px;
}

/* Cards */
.page-lottery__card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in a row have equal height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

.page-lottery__card-title {
  font-size: 1.4rem;
  color: var(--color-gold);
  margin-bottom: 15px;
}

.page-lottery__card-text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

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

a.page-lottery__btn-primary {
  background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
  color: var(--color-light-bg);
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

a.page-lottery__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

a.page-lottery__btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

a.page-lottery__btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-light-bg);
}

.page-lottery__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.page-lottery__btn-large {
  padding: 15px 30px;
  font-size: 1.1rem;
}

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

.page-lottery__cta-buttons--center {
  justify-content: center;
}

/* Image Blocks */
.page-lottery__image-block {
  text-align: center;
}

.page-lottery__image-block-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  display: block;
}

/* FAQ Section */
.page-lottery__faq-section {
  padding: 60px 0;
}

.page-lottery__faq-list {
  margin-top: 40px;
}

.page-lottery__faq-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-lottery__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--color-text-main);
  list-style: none;
  outline: none;
}

.page-lottery__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-lottery__faq-qtext {
  color: var(--color-gold);
}

.page-lottery__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--color-gold);
}

.page-lottery__faq-item[open] .page-lottery__faq-toggle {
  transform: rotate(45deg);
}

.page-lottery__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.page-lottery__faq-answer p {
  margin-bottom: 0;
}

.page-lottery .highlight {
  color: var(--color-gold);
  font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-lottery__hero-content {
    margin-top: -100px;
  }
  .page-lottery__main-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
  }
  .page-lottery__section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  }
  .page-lottery__card-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-content {
    margin-top: -80px;
    padding: 30px 15px;
  }
  .page-lottery__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
    line-height: 1.3;
  }
  .page-lottery__description {
    font-size: 1rem;
  }
  .page-lottery__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
    padding-top: 30px;
  }
  .page-lottery__section-description {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }
  .page-lottery__content-block-title {
    font-size: 1.4rem;
  }
  .page-lottery__card {
    padding: 20px;
  }
  .page-lottery__card-title {
    font-size: 1.2rem;
  }
  .page-lottery__card-text {
    font-size: 0.9rem;
  }
  .page-lottery__grid-3-cols, .page-lottery__grid-2-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-lottery__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }
  .page-lottery__cta-buttons a {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile image responsiveness */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-lottery__hero-image-wrapper,
  .page-lottery__image-block,
  .page-lottery__card-image,
  .page-lottery__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Mobile video responsiveness */
  .page-lottery video,
  .page-lottery__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-lottery__video-section,
  .page-lottery__video-container,
  .page-lottery__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-lottery__video-section {
    padding-top: 10px !important;
  }

  /* Mobile container padding */
  .page-lottery__container {
    padding: 0 15px;
  }
  .page-lottery__hero-section {
    padding-bottom: 40px;
  }
  .page-lottery__section {
    padding: 40px 0;
  }
  .page-lottery__faq-item summary {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-lottery__faq-answer {
    padding: 0 20px 15px 20px;
  }
}