/* style/lottery.css */
.page-lottery {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--secondary-color, #FFFFFF); /* Body background from shared */
}

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

/* Sections */
.page-lottery__hero-section,
.page-lottery__intro-section,
.page-lottery__types-section,
.page-lottery__guide-section,
.page-lottery__benefits-section,
.page-lottery__tips-section,
.page-lottery__faq-section,
.page-lottery__cta-section {
    padding: 60px 0;
}

.page-lottery__dark-section {
    background-color: #017439;
    color: #ffffff;
}

.page-lottery__light-bg {
    background-color: #ffffff;
    color: #333333;
}

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

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

.page-lottery__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: inherit;
}

/* Hero Section */
.page-lottery__hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.page-lottery__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

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

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

.page-lottery__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.page-lottery__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image for text readability */
}

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

.page-lottery__btn-primary {
    background-color: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

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

.page-lottery__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

/* Specific button colors for CTA section */
.page-lottery__btn-register {
    background-color: #C30808;
    color: #FFFF00;
    border-color: #C30808;
}
.page-lottery__btn-register:hover {
    background-color: #e00b0b;
    border-color: #e00b0b;
}

.page-lottery__btn-login {
    background-color: #C30808;
    color: #FFFF00;
    border-color: #C30808;
}
.page-lottery__btn-login:hover {
    background-color: #e00b0b;
    border-color: #e00b0b;
}


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

.page-lottery__type-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
}

.page-lottery__card-image {
    max-width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

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

.page-lottery__card-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
    color: #555555;
}

/* Guide Section */
.page-lottery__guide-list {
    list-style: decimal;
    padding-left: 25px;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.page-lottery__guide-list li {
    margin-bottom: 15px;
    color: #333333;
}

.page-lottery__guide-list strong {
    color: #017439;
}

.page-lottery__guide-image-wrapper {
    text-align: center;
    margin-top: 30px;
}

.page-lottery__guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
}

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

.page-lottery__benefit-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #333333;
}

/* Tips Section */
.page-lottery__tips-list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 30px;
    font-size: 1.1em;
    color: #333333;
}

.page-lottery__tips-list li {
    margin-bottom: 10px;
}

.page-lottery__tips-list strong {
    color: #017439;
}

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

.page-lottery__faq-item {
    background-color: #ffffff;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    color: #333333;
}

.page-lottery__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f8f8f8;
    border-bottom: 1px solid #eee;
    color: #017439;
}

.page-lottery__faq-question:hover {
    background-color: #f0f0f0;
}

.page-lottery__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #017439;
}

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

.page-lottery__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

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

.page-lottery__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* CTA Section */
.page-lottery__cta-section {
    text-align: center;
    padding: 80px 0;
}

.page-lottery__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-lottery__hero-title {
        font-size: 2.8em;
    }
    .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;
    }
    .page-lottery__hero-section {
        flex-direction: column;
        text-align: center;
        padding-bottom: 60px; /* Adjust padding for mobile */
        padding-top: var(--header-offset, 120px) !important; /* Re-apply header offset for mobile */
    }
    .page-lottery__hero-content {
        order: 2;
        padding: 0 15px;
    }
    .page-lottery__hero-image-wrapper {
        order: 1;
        position: relative;
        height: 300px;
        margin-bottom: 30px;
    }
    .page-lottery__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-lottery__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-lottery__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-lottery__btn-primary,
    .page-lottery__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-lottery__section-title {
        font-size: 1.8em;
    }
    .page-lottery__types-grid,
    .page-lottery__benefits-grid {
        grid-template-columns: 1fr;
    }
    .page-lottery__card-image,
    .page-lottery__guide-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    /* Ensure all image containers are responsive */
    .page-lottery__hero-image-wrapper,
    .page-lottery__types-grid,
    .page-lottery__guide-image-wrapper,
    .page-lottery__benefits-grid,
    .page-lottery__cta-buttons,
    .page-lottery__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-lottery__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-lottery__faq-answer {
        padding: 0 20px;
    }
    .page-lottery__faq-item.active .page-lottery__faq-answer {
        padding: 15px 20px;
    }
    .page-lottery__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-lottery__hero-title {
        font-size: 1.8em;
    }
    .page-lottery__section-title {
        font-size: 1.5em;
    }
    .page-lottery__faq-question {
        font-size: 1em;
    }
    .page-lottery__btn-primary,
    .page-lottery__btn-secondary {
        font-size: 0.9em;
        padding: 10px 15px;
    }
}