/* style/lottery.css */

/* Custom properties (variables) */
:root {
  --primary-color: #007bff; /* Deep Blue */
  --secondary-color: #28a745; /* Emerald Green */
  --accent-color: #ffc107; /* Gold */
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --light-bg-1: #f8f9fa; /* Light Gray for general sections */
  --light-bg-2: #ffffff; /* White for cards/blocks */
  --dark-bg-1: #0d0d0d; /* From shared.css, assuming this is the body background */
  --border-color: #e0e0e0;
}

/* Page specific styles for .page-lottery */
.page-lottery {
  font-family: 'Arial', sans-serif;
  line-height: 1.7;
  color: var(--light-text-color); /* Default text color for the page, assuming dark body background */
  background-color: var(--dark-bg-1); /* Ensure consistency if body background is dark */
}

/* Fixed header padding to prevent content overlap */
.page-lottery__intro-section {
  padding-top: 120px; /* Desktop: Adjust based on shared header height */
  padding-bottom: 40px;
}

/* Container for content sections */
.page-lottery__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* General section styling */
.page-lottery__section {
  padding: 40px 0;
  margin-bottom: 20px;
}

/* Background colors for sections based on contrast rules */
.page-lottery__light-bg {
  background-color: var(--light-bg-1);
  color: var(--dark-text-color);
}

.page-lottery__dark-bg {
  background-color: var(--primary-color); /* Using primary color for dark sections */
  color: var(--light-text-color);
}

/* Headings */
.page-lottery__main-heading {
  font-size: 36px;
  font-weight: bold;
  color: var(--dark-text-color); /* For light background sections */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-lottery__section-heading {
  font-size: 30px;
  font-weight: bold;
  color: var(--dark-text-color); /* For light background sections */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-lottery__heading-white {
  color: var(--light-text-color); /* For dark background sections */
}

.page-lottery__sub-heading {
  font-size: 22px;
  font-weight: bold;
  color: var(--dark-text-color); /* Default for light background */
  margin-top: 25px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-lottery__text-white .page-lottery__sub-heading {
  color: var(--light-text-color); /* For dark background sections */
}

/* Paragraphs */
.page-lottery__paragraph {
  font-size: 16px;
  margin-bottom: 15px;
  line-height: 1.7;
}

.page-lottery__text-white .page-lottery__paragraph {
  color: var(--light-text-color);
}

/* Links within text */
.page-lottery__paragraph a,
.page-lottery__list-item a,
.page-lottery__link-highlight {
  color: var(--primary-color); /* Use primary color for links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-lottery__paragraph a:hover,
.page-lottery__list-item a:hover,
.page-lottery__link-highlight:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-lottery__text-white .page-lottery__paragraph a,
.page-lottery__text-white .page-lottery__list-item a,
.page-lottery__text-white .page-lottery__link-highlight {
  color: var(--accent-color); /* Lighter accent for links on dark background */
}

.page-lottery__text-white .page-lottery__paragraph a:hover,
.page-lottery__text-white .page-lottery__list-item a:hover,
.page-lottery__text-white .page-lottery__link-highlight:hover {
  color: var(--light-text-color);
  text-decoration: underline;
}

/* Lists */
.page-lottery__list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-lottery__list-item {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.6;
}

/* Content blocks for better structure */
.page-lottery__content-block {
  background-color: var(--light-bg-2);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.page-lottery__dark-bg .page-lottery__content-block {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-lottery__text-white {
  color: var(--light-text-color);
}


/* Images */
.page-lottery img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-lottery__image-full-width {
  width: 100%;
  max-height: 400px; /* Example height for a banner-like image */
}

.page-lottery__image-content {
  max-width: 800px; /* Max width for content images */
}

/* CTA Buttons */
.page-lottery__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--primary-color);
  color: var(--light-text-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
}

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

.page-lottery__btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
}

.page-lottery__btn-primary:hover {
  background: linear-gradient(135deg, var(--secondary-color), #218838);
}


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

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: var(--light-bg-2); /* White background for FAQ items */
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.page-lottery__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px; /* Adjust padding for better look */
  opacity: 0;
  color: var(--dark-text-color);
  background: var(--light-bg-1); /* Slightly off-white for answer background */
  border-top: 1px solid var(--border-color);
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px !important; /* Apply padding when active */
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--light-bg-2);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--dark-text-color);
}

.page-lottery__faq-question:hover {
  background: var(--light-bg-1);
  border-color: #d0d0d0;
}

.page-lottery__faq-question:active {
  background: #eeeeee;
}

.page-lottery__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--dark-text-color);
}

.page-lottery__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Rotate '+' to 'x' or use '-' directly in JS */
}

/* Responsive design */
@media (max-width: 992px) {
  .page-lottery__main-heading {
    font-size: 32px;
  }
  .page-lottery__section-heading {
    font-size: 26px;
  }
  .page-lottery__sub-heading {
    font-size: 20px;
  }
  .page-lottery__paragraph,
  .page-lottery__list-item {
    font-size: 15px;
  }
  .page-lottery__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-lottery__faq-question h3 {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-lottery__intro-section {
    padding-top: 100px !important; /* Mobile: Adjust based on shared header height */
    padding-bottom: 30px;
  }
  .page-lottery__section {
    padding: 30px 0;
  }
  .page-lottery__container {
    padding: 0 15px;
  }
  .page-lottery__main-heading {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .page-lottery__section-heading {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .page-lottery__sub-heading {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
  }
  .page-lottery__paragraph,
  .page-lottery__list-item {
    font-size: 15px;
    line-height: 1.6;
  }
  .page-lottery__content-block {
    padding: 20px;
    margin-bottom: 20px;
  }
  .page-lottery__cta-button {
    width: 100%;
    padding: 10px 20px;
    font-size: 15px;
  }
  
  /* Mobile image responsiveness */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
  }
  
  .page-lottery__section,
  .page-lottery__container,
  .page-lottery__content-block,
  .page-lottery__faq-list,
  .page-lottery__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-lottery__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-lottery__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-lottery__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-lottery__faq-answer {
    padding: 0 15px;
  }
  .page-lottery__faq-item.active .page-lottery__faq-answer {
    padding: 15px !important;
  }
}