:root {
    /* Custom Colors */
    --page-lottery-bg: #08160F;
    --page-lottery-card-bg: #11271B;
    --page-lottery-text-main: #F2FFF6;
    --page-lottery-text-secondary: #A7D9B8;
    --page-lottery-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-lottery-border: #2E7A4E;
    --page-lottery-glow: #57E38D;
    --page-lottery-gold: #F2C14E;
    --page-lottery-divider: #1E3A2A;
    --page-lottery-deep-green: #0A4B2C;
}

.page-lottery {
    background-color: var(--page-lottery-bg); /* Dark background */
    color: var(--page-lottery-text-main); /* Light text for contrast */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-lottery__section {
    padding: 60px 0;
    text-align: center;
}

.page-lottery__dark-section {
    background-color: var(--page-lottery-deep-green); /* Slightly different dark green for contrast */
}

.page-lottery__section-title {
    font-size: 2.8em;
    color: var(--page-lottery-gold); /* Gold for important titles */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-lottery__text-block {
    font-size: 1.1em;
    color: var(--page-lottery-text-secondary);
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Hero Section */
.page-lottery__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Stack image and content vertically */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--page-lottery-bg);
    overflow: hidden;
    padding-bottom: 60px; /* Add some padding below content */
}

.page-lottery__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-lottery__hero-content-bottom {
    position: relative;
    z-index: 10;
    padding: 40px 20px;
    text-align: center;
    max-width: 900px;
    margin-top: 40px; /* Separated from image by margin */
    background: var(--page-lottery-card-bg); /* Use card background for clarity */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-lottery__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    color: var(--page-lottery-gold);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.page-lottery__description {
    font-size: 1.2em;
    color: var(--page-lottery-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-lottery__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

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

.page-lottery__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-lottery__btn--primary {
    background: var(--page-lottery-btn-gradient);
    color: var(--page-lottery-text-main);
    border: none;
    box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

.page-lottery__btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(42, 209, 111, 0.6);
}

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

.page-lottery__btn--secondary:hover {
    background: var(--page-lottery-glow);
    color: var(--page-lottery-bg);
    transform: translateY(-3px);
}

.page-lottery__btn--small {
    padding: 10px 20px;
    font-size: 0.95em;
    border-radius: 6px;
    margin-top: 20px;
}

/* Card styles */
.page-lottery__card {
    background-color: var(--page-lottery-card-bg); /* Dark card background */
    color: var(--page-lottery-text-main); /* Light text on card */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
    box-sizing: border-box;
}

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

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

.page-lottery__feature-icon {
    width: 100%;
    height: 200px; /* Fixed height for feature images */
    object-fit: cover;
    border-radius: 8px;
}

.page-lottery__feature-title {
    font-size: 1.5em;
    color: var(--page-lottery-gold);
    margin-bottom: 10px;
}

.page-lottery__feature-description {
    font-size: 0.95em;
    color: var(--page-lottery-text-secondary);
}

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

.page-lottery__game-card {
    text-align: center;
}

.page-lottery__game-image {
    width: 100%;
    height: 220px; /* Fixed height for game images */
    object-fit: cover;
}

.page-lottery__game-title {
    font-size: 1.6em;
    color: var(--page-lottery-gold);
    margin-top: 15px;
    margin-bottom: 10px;
}

.page-lottery__game-description {
    font-size: 0.95em;
    color: var(--page-lottery-text-secondary);
    margin-bottom: 20px;
}

/* How to Play Section */
.page-lottery__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-lottery__step-item {
    background-color: var(--page-lottery-card-bg);
    color: var(--page-lottery-text-main);
    border-radius: 10px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    border-left: 5px solid var(--page-lottery-glow);
}

.page-lottery__step-title {
    font-size: 1.4em;
    color: var(--page-lottery-gold);
    margin-bottom: 10px;
}

.page-lottery__step-description {
    font-size: 0.95em;
    color: var(--page-lottery-text-secondary);
}

/* Promotions Section */
.page-lottery__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-lottery__promo-card {
    text-align: left;
    border-left: 5px solid var(--page-lottery-gold);
}

.page-lottery__promo-title {
    font-size: 1.5em;
    color: var(--page-lottery-gold);
    margin-bottom: 10px;
}

.page-lottery__promo-description {
    font-size: 0.95em;
    color: var(--page-lottery-text-secondary);
}

/* FAQ Section */
.page-lottery__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

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

.page-lottery__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--page-lottery-text-main);
    cursor: pointer;
    background-color: var(--page-lottery-deep-green); /* Slightly darker background for question */
    border-bottom: 1px solid var(--page-lottery-divider);
}

.page-lottery__faq-item[open] .page-lottery__faq-question {
    border-bottom: 1px solid var(--page-lottery-border);
}

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

.page-lottery__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-lottery-glow);
}

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

.page-lottery__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--page-lottery-text-secondary);
    background-color: var(--page-lottery-card-bg);
}

/* Bottom CTA Section */
.page-lottery__cta-bottom-content {
    padding: 60px 20px;
    background-color: var(--page-lottery-deep-green);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-lottery__hero-content-bottom {
        margin-top: 30px;
        padding: 30px;
    }
    .page-lottery__section-title {
        font-size: 2.2em;
    }
}

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

    .page-lottery__hero-content-bottom {
        padding: 25px;
        margin-top: 25px;
    }

    .page-lottery__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em); /* Further responsive for mobile */
    }

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

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

    .page-lottery__section-title {
        font-size: 1.8em;
    }

    .page-lottery__text-block {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

    .page-lottery__btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-lottery__container,
    .page-lottery__hero-section,
    .page-lottery__about-section,
    .page-lottery__types-section,
    .page-lottery__how-to-play-section,
    .page-lottery__promotions-section,
    .page-lottery__faq-section,
    .page-lottery__cta-bottom-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

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

    .page-lottery__hero-image-wrapper {
        max-height: 400px; /* Adjust hero image height for mobile */
    }

    .page-lottery__feature-item,
    .page-lottery__game-card,
    .page-lottery__promo-card {
        padding: 20px;
    }

    .page-lottery__feature-icon,
    .page-lottery__game-image {
        height: 180px; /* Adjust card image height for mobile */
    }

    .page-lottery__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-lottery__faq-answer {
        padding: 15px 20px;
        font-size: 0.9em;
    }
}

/* Ensure no filter is used on images */
.page-lottery img {
    filter: none; /* Prohibit any filter effects */
}