/* style/lottery.css */

/* Base Styles for the Lottery Page */
.page-lottery {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background handled by shared.css */
    padding-top: 0; /* Handled by shared.css or hero section if not in body */
}

/* Ensure the main content area has the header offset if shared.css doesn't apply to body */
.page-lottery__hero-section {
    padding-top: var(--header-offset, 120px);
}

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

.page-lottery__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-lottery__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

/* Hero Section */
.page-lottery__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: #017439; /* Brand color as hero background */
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.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;
    opacity: 0.3; /* Slightly dim the background image */
}

.page-lottery__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-lottery__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-lottery__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* CTA Buttons */
.page-lottery__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-lottery__btn-primary {
    background-color: #C30808; /* Red for primary action */
    color: #FFFF00; /* Yellow for text contrast */
    border: 2px solid #C30808;
}

.page-lottery__btn-primary:hover {
    background-color: #e02020;
    transform: translateY(-2px);
}

.page-lottery__btn-secondary {
    background-color: transparent;
    color: #017439; /* Brand green for secondary action text */
    border: 2px solid #017439;
    margin-left: 20px;
}

.page-lottery__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
    transform: translateY(-2px);
}

.page-lottery__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}


/* About Section */
.page-lottery__about-section {
    padding: 80px 0;
    background-color: #0a0a0a; /* Body background color */
    color: #ffffff;
}

/* Types Section */
.page-lottery__types-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-lottery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-lottery__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff; /* Ensure text is white on dark card background */
}

.page-lottery__dark-bg {
    background-color: #017439; /* Brand green for a strong card */
    color: #ffffff;
}

.page-lottery__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: bold;
}

.page-lottery__card-description {
    font-size: 1em;
    color: #f0f0f0;
}

.page-lottery__image-container {
    text-align: center;
    margin-top: 40px;
}

.page-lottery__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure it behaves as a block element for max-width/height auto */
    margin: 0 auto;
}

/* Benefits Section */
.page-lottery__benefits-section {
    padding: 80px 0;
    background-color: #017439; /* Brand color as section background */
    color: #ffffff;
    text-align: center;
}

.page-lottery__dark-section .page-lottery__section-title {
    color: #ffffff;
}

.page-lottery__benefit-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    text-align: left;
    color: #ffffff;
}

.page-lottery__benefit-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: bold;
}

.page-lottery__benefit-description {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* How to Play Section */
.page-lottery__how-to-play-section {
    padding: 80px 0;
    background-color: #0a0a0a;
    color: #ffffff;
}

.page-lottery__numbered-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.page-lottery__numbered-list li {
    counter-increment: step-counter;
    margin-bottom: 30px;
    position: relative;
    padding-left: 60px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-lottery__numbered-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: #017439;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

.page-lottery__list-title {
    font-size: 1.4em;
    margin-bottom: 5px;
    color: #ffffff;
    font-weight: bold;
}

/* FAQ Section */
.page-lottery__faq-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #ffffff;
}

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

.page-lottery__faq-item {
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.page-lottery__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.page-lottery__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-lottery__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #017439; /* Brand green for the toggle icon */
}

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

.page-lottery__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background-color: rgba(255, 255, 255, 0.02);
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 20px;
}

.page-lottery__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: #f0f0f0;
}

/* CTA Section at the bottom */
.page-lottery__cta-section {
    padding: 80px 0;
    background-color: #017439; /* Brand color */
    color: #ffffff;
    text-align: center;
}

.page-lottery__cta-content {
    max-width: 900px;
    margin: 0 auto;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .page-lottery__main-title {
        font-size: 3em;
    }
    .page-lottery__hero-description {
        font-size: 1.1em;
    }
    .page-lottery__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-lottery {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Fixed header offset for mobile */
    .page-lottery__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-lottery__main-title {
        font-size: 2.5em;
    }

    .page-lottery__hero-description {
        font-size: 1em;
    }

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

    .page-lottery__btn-secondary {
        margin-left: 0;
        margin-top: 15px; /* Stack buttons vertically */
    }

    .page-lottery__button-group {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to button group container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-lottery__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-lottery__card {
        padding: 25px;
    }

    .page-lottery__grid {
        grid-template-columns: 1fr;
    }

    .page-lottery__numbered-list li {
        padding-left: 50px;
        font-size: 1em;
    }

    .page-lottery__numbered-list li::before {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }

    .page-lottery__list-title {
        font-size: 1.2em;
    }

    .page-lottery__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-lottery__faq-answer {
        padding: 0 15px;
    }

    .page-lottery__faq-item.active .page-lottery__faq-answer {
        padding: 15px;
    }
    
    /* Image responsiveness */
    .page-lottery img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Container responsiveness for images and other content */
    .page-lottery__section,
    .page-lottery__card,
    .page-lottery__container,
    .page-lottery__hero-section,
    .page-lottery__about-section,
    .page-lottery__types-section,
    .page-lottery__benefits-section,
    .page-lottery__how-to-play-section,
    .page-lottery__faq-section,
    .page-lottery__cta-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__hero-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-lottery__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-lottery__main-title {
        font-size: 2em;
    }
    .page-lottery__section-title {
        font-size: 1.5em;
    }
    .page-lottery__hero-section {
        min-height: 500px;
    }
}