/* style/lottery.css */

/* Base styles for the lottery page content */
.page-lottery {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark background */
    background-color: transparent; /* Inherit from body or shared, will be dark */
}

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

/* Section styling */
.page-lottery__section {
    padding: 60px 0;
    text-align: center;
}

/* Dark background sections */
.page-lottery__dark-bg {
    background-color: var(--background, #121212); /* Inherit from shared or default dark */
    color: #ffffff;
}

/* Light background sections */
.page-lottery__light-bg {
    background-color: #ffffff;
    color: #333333;
}

/* Headings */
.page-lottery__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
    font-weight: bold;
}

.page-lottery__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #017439; /* Brand color for titles on light backgrounds */
    font-weight: bold;
}

.page-lottery__dark-bg .page-lottery__section-title {
    color: #ffffff; /* White for titles on dark backgrounds */
}

.page-lottery__card-title,
.page-lottery__feature-title,
.page-lottery__list-title,
.page-lottery__faq-title,
.page-lottery__feature-card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439; /* Brand color for sub-titles */
    font-weight: bold;
}

.page-lottery__dark-bg .page-lottery__card-title,
.page-lottery__dark-bg .page-lottery__feature-title,
.page-lottery__dark-bg .page-lottery__list-title,
.page-lottery__dark-bg .page-lottery__faq-title,
.page-lottery__dark-bg .page-lottery__feature-card-title {
    color: #ffffff; /* White for sub-titles on dark backgrounds */
}


/* Text blocks */
.page-lottery__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-lottery__hero-section {
    position: relative;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background-color: #017439; /* Brand color for hero background */
}

.page-lottery__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: 1;
}

.page-lottery__hero-section .page-lottery__container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-lottery__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-lottery__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

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

/* Buttons */
.page-lottery__btn-primary,
.page-lottery__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-lottery__btn-primary {
    background-color: #C30808; /* Red for primary action like register/login */
    color: #FFFF00; /* Yellow for text on red button */
    border: 2px solid #C30808;
}

.page-lottery__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-lottery__btn-secondary {
    background-color: #017439; /* Brand green for secondary action */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-lottery__btn-secondary:hover {
    background-color: #005f2e;
    border-color: #005f2e;
}

/* Image content */
.page-lottery__image-content {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: block; /* Ensure it behaves as a block element */
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

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

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

/* Card styling */
.page-lottery__card {
    background-color: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-lottery__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-lottery__card-text {
    font-size: 1em;
    margin-bottom: 0;
    text-align: center;
}

/* Feature items */
.page-lottery__feature-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark bg */
    color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-lottery__feature-item .page-lottery__feature-title {
    color: #ffffff; /* White title on dark feature card */
}

/* Numbered list for guide */
.page-lottery__numbered-list {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 900px;
    margin: 40px auto;
    counter-reset: list-item;
}

.page-lottery__numbered-list li {
    background-color: #f9f9f9;
    color: #333333;
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    padding-left: 70px;
}

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

.page-lottery__numbered-list .page-lottery__list-title {
    color: #017439;
    margin-top: 0;
}

/* 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-card {
    background-color: #f9f9f9;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.page-lottery__feature-card-title {
    color: #017439;
}

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

.page-lottery__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-lottery__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-lottery__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
    color: #ffffff;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-lottery__faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly darker for question */
    transition: background-color 0.3s ease;
}

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

.page-lottery__faq-title {
    margin: 0;
    font-size: 1.2em;
    color: #ffffff;
}

.page-lottery__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #ffffff;
    transition: transform 0.3s ease;
}

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

.page-lottery__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
    font-size: 1em;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show all content */
    padding: 15px 25px 25px;
}

/* Links within content */
.page-lottery a {
    color: #017439; /* Brand color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-lottery a:hover {
    color: #005f2e;
}

.page-lottery__dark-bg a {
    color: #90ee90; /* Lighter green for links on dark background */
}

.page-lottery__dark-bg a:hover {
    color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-lottery__hero-title {
        font-size: 3em;
    }

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

    .page-lottery__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-lottery__hero-section {
        padding: 80px 0;
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
    }

    .page-lottery__hero-title {
        font-size: 2.2em;
    }

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

    .page-lottery__section {
        padding: 40px 0;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

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

    .page-lottery__card-title,
    .page-lottery__feature-title,
    .page-lottery__list-title,
    .page-lottery__faq-title,
    .page-lottery__feature-card-title {
        font-size: 1.3em;
    }

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

    .page-lottery__btn-primary,
    .page-lottery__btn-secondary {
        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;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

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

    .page-lottery__grid-3-cols,
    .page-lottery__grid-2-cols,
    .page-lottery__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-lottery__numbered-list li {
        padding: 20px 20px 20px 60px;
    }

    .page-lottery__numbered-list li::before {
        width: 35px;
        height: 35px;
        font-size: 1.1em;
        left: 15px;
        top: 15px;
    }

    .page-lottery__cta-section {
        padding: 60px 0;
    }

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

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

    .page-lottery__container {
        padding: 0 15px;
    }

    /* Mobile image responsiveness */
    .page-lottery img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-lottery__section,
    .page-lottery__card,
    .page-lottery__container,
    .page-lottery__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Specific image handling to ensure min size for content images */
    .page-lottery__image-content,
    .page-lottery__card-image,
    .page-lottery__feature-image {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}