/* style/lottery.css */

/* Base styles for the lottery page */
.page-lottery {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Light text for dark background */
  background-color: var(--bg-color); /* Inherited from shared.css, which is #08160F */
  line-height: 1.6;
}

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

/* Section and container basic styles */
.page-lottery__section {
  padding: 60px 0;
  background-color: var(--bg-color);
  color: var(--text-main);
}

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

/* Hero Section */
.page-lottery__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* body padding-top handles header offset */
  overflow: hidden;
  min-height: 600px; /* Ensure hero section has a minimum height */
}

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

.page-lottery__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-lottery__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  color: var(--text-main);
}

.page-lottery__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: bold;
  color: var(--gold-color); /* Using gold for main title for luxury */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-lottery__description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

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

.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-lottery__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-lottery__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-lottery__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Section Titles */
.page-lottery__section-title {
  font-size: 2.5rem;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-lottery__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Introduction Section */
.page-lottery__introduction-section .page-lottery__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--text-main);
}

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

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

/* Cards */
.page-lottery__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
  padding-bottom: 20px;
}

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

.page-lottery__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-lottery__card-title {
  font-size: 1.5rem;
  color: var(--gold-color);
  margin: 0 20px 10px 20px;
  text-align: center;
}

.page-lottery__card-text {
  font-size: 1rem;
  color: var(--text-secondary);
  padding: 0 20px;
  text-align: justify;
}

/* Benefits Section */
.page-lottery__benefits-list {
  list-style: none;
  padding: 0;
}

.page-lottery__benefits-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-lottery__benefits-title {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.page-lottery__benefits-text {
  font-size: 1rem;
  color: var(--text-secondary);
}

.page-lottery__benefits-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-lottery__benefits-image,
.page-lottery__guide-image,
.page-lottery__tips-image,
.page-lottery__cta-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Guide Section */
.page-lottery__guide-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.page-lottery__step-number {
  background: var(--button-gradient);
  color: #ffffff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
  flex-shrink: 0;
  margin-right: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.page-lottery__step-text {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Tips Section */
.page-lottery__tips-content .page-lottery__sub-title {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-top: 25px;
  margin-bottom: 10px;
}

.page-lottery__tips-content .page-lottery__text-block {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
  text-align: justify;
}

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

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

.page-lottery__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-main);
  background-color: var(--deep-green-color);
  transition: background-color 0.3s ease;
}

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

.page-lottery__faq-item summary:hover {
  background-color: var(--primary-color);
}

.page-lottery__faq-qtext {
  flex-grow: 1;
  color: var(--text-main);
}

.page-lottery__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold-color);
}

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

/* CTA Banner Section */
.page-lottery__cta-banner {
  background: var(--deep-green-color);
  padding: 60px 0;
}

.page-lottery__cta-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.page-lottery__cta-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

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

.page-lottery__cta-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.page-lottery__cta-image-wrapper {
  flex: 0 0 400px; /* Fixed width for image on desktop */
  max-width: 100%;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-lottery__hero-content {
    max-width: 90%;
  }

  .page-lottery__grid-3-col,
  .page-lottery__grid-2-col {
    grid-template-columns: 1fr;
  }

  .page-lottery__benefits-image-wrapper,
  .page-lottery__guide-image-wrapper,
  .page-lottery__tips-image-wrapper {
    order: -1; /* Image first on smaller screens */
    margin-bottom: 30px;
  }

  .page-lottery__cta-container {
    flex-direction: column;
    text-align: center;
  }

  .page-lottery__cta-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-lottery__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    min-height: 450px;
  }

  .page-lottery__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-lottery__description {
    font-size: 1rem;
  }

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

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

  .page-lottery__container,
  .page-lottery__hero-content,
  .page-lottery__cta-buttons,
  .page-lottery__cta-container,
  .page-lottery__faq-list {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Image responsive adaptation */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video responsive adaptation */
  .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;
  }
  .page-lottery__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Button responsive adaptation */
  .page-lottery__btn-primary,
  .page-lottery__btn-secondary,
  .page-lottery a[class*="button"],
  .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__cta-buttons,
  .page-lottery__button-group,
  .page-lottery__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column !important; /* Stack buttons vertically on mobile */
  }

  .page-lottery__cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}