/* style/lottery.css */
/* 页面特定样式 - Tất cả các selector phải sử dụng quy tắc đặt tên BEM (page-lottery__element-name) */

/* Body background is dark (from shared.css), so default text color should be light */
.page-lottery {
  color: #ffffff; /* Default text color for the page */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: var(--dark-bg-1); /* Assuming shared.css defines --dark-bg-1 as a dark color */
}

/* --- HERO Banner Section (for Lottery Page, not the Homepage HERO module) --- */
.page-lottery__hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    /* 🚨 Fixed header padding */
    padding-top: 10px; /* Ensure content is not hidden by fixed header */
    margin-top: 0;
    background-color: #1A202C; /* Dark background for the banner section */
}

.page-lottery__hero-image-wrapper {
    width: 100%;
    height: 500px; /* Adjust height as needed */
    overflow: hidden;
    position: relative;
}

.page-lottery__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.7; /* Slightly dim the image to make text more readable */
}

.page-lottery__hero-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text contrast */
}

.page-lottery__main-heading {
    font-size: 48px;
    color: #FFD700; /* Gold color for main heading */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    max-width: 900px;
}

.page-lottery__lead-text {
    font-size: 20px;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 800px;
}

.page-lottery__highlight {
    color: #FF4500; /* Orange highlight for keywords */
    font-weight: bold;
}

/* --- General Sections --- */
.page-lottery__section {
  padding: 60px 20px;
  background-color: var(--dark-bg-2, #1A202C); /* A slightly different dark background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-lottery__section:last-of-type {
  border-bottom: none;
}

.page-lottery__section--intro {
    background-color: var(--dark-bg-3, #0d0d0d); /* Even darker for intro */
}

.page-lottery__section--contact-cta {
    background-color: #0d0d0d;
    padding: 80px 20px;
}

.page-lottery__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-lottery__section-title {
  font-size: 36px;
  color: #FF4500; /* Orange for section titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-lottery__section-title--centered {
    text-align: center;
}

.page-lottery__paragraph {
  font-size: 18px;
  color: #f0f0f0; /* Light text for readability on dark background */
  margin-bottom: 20px;
  text-align: justify;
}

.page-lottery__paragraph--centered {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* --- Buttons --- */
.page-lottery__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.page-lottery__button--primary {
  background-color: #FF4500; /* Main brand color */
  color: #ffffff;
  border: 2px solid #FF4500;
}

.page-lottery__button--primary:hover {
  background-color: #e63900;
  border-color: #e63900;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 69, 0, 0.4);
}

.page-lottery__button--secondary {
  background-color: transparent;
  color: #FF4500;
  border: 2px solid #FF4500;
}

.page-lottery__button--secondary:hover {
  background-color: #FF4500;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 69, 0, 0.4);
}

.page-lottery__button--large {
    padding: 18px 35px;
    font-size: 20px;
}

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

/* --- Cards --- */
.page-lottery__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent light background on dark body */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in a row have same height */
}

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

.page-lottery__card-image-wrapper {
    width: 100%;
    max-width: 300px; /* Constrain image width for consistent look */
    height: 200px; /* Fixed height for card images */
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-lottery__card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-lottery__card-title {
  font-size: 24px;
  color: #FFD700; /* Gold for card titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-lottery__card-text {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to grow and push button to bottom */
}

/* --- Features Grid --- */
.page-lottery__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.page-lottery__feature-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-lottery__feature-title {
    font-size: 22px;
    color: #FF4500;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-lottery__feature-description {
    font-size: 16px;
    color: #cccccc;
}

/* --- Guide Steps --- */
.page-lottery__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.page-lottery__guide-step {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-lottery__step-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-color: transparent; /* Changed to transparent, assuming icons are light-colored */
    border: 2px solid #FF4500; /* Added a border in brand color */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-lottery__step-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    /* filter: invert(100%); REMOVED due to strict rule against filter for color change */
}

.page-lottery__step-title {
    font-size: 22px;
    color: #FFD700;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-lottery__step-description {
    font-size: 16px;
    color: #cccccc;
}

.page-lottery__cta-block {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    margin-top: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-lottery__cta-text {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 30px;
    font-weight: bold;
}

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

.page-lottery__tip-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-lottery__tip-title {
    font-size: 22px;
    color: #FF4500;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-lottery__tip-description {
    font-size: 16px;
    color: #cccccc;
}

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

.page-lottery__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for FAQ items */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #1A202C; /* Dark blue background for question */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-lottery__faq-question:hover {
  background: #2a3344;
  border-color: rgba(255, 255, 255, 0.2);
}

.page-lottery__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff; /* White text for question */
  pointer-events: none;
}

.page-lottery__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FF4500; /* Orange for toggle icon */
  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: 32px;
  height: 32px;
}

.page-lottery__faq-item.active .page-lottery__faq-toggle {
  color: #FFD700; /* Gold when active */
  transform: rotate(45deg); /* Rotate for 'minus' effect */
}

.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 25px;
  opacity: 0;
  background-color: rgba(255, 255, 255, 0.02); /* Very subtle background for answer */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain content */
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

.page-lottery__faq-answer p {
  font-size: 16px;
  color: #cccccc; /* Light gray text for answer */
  margin: 0;
}

/* --- Links within text --- */
.page-lottery__paragraph a,
.page-lottery__card-text a,
.page-lottery__faq-answer a {
    color: #FFD700; /* Gold for links in text */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-lottery__paragraph a:hover,
.page-lottery__card-text a:hover,
.page-lottery__faq-answer a:hover {
    color: #FF4500; /* Orange on hover */
}