/* style/lottery.css */
/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

/* Base styles for the lottery page, ensuring contrast with body background */
.page-lottery {
    background-color: var(--color-background); /* Dark background */
    color: var(--color-text-main); /* Light text for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

.page-lottery__section-title {
    color: var(--color-text-main);
    font-size: clamp(1.8rem, 2.5vw, 2.5rem); /* Using clamp for responsive font size */
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.page-lottery__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-gold);
    border-radius: 2px;
}

.page-lottery__text-block {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    text-align: center;
}

/* Hero Section */
.page-lottery__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: var(--color-deep-green);
    overflow: hidden;
}

.page-lottery__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.page-lottery__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-lottery__hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.page-lottery__main-title {
    color: var(--color-gold);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
}

.page-lottery__hero-description {
    color: var(--color-text-main);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.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.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-lottery__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-lottery__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--color-glow-rgb), 0.5);
}

.page-lottery__btn-secondary {
    background-color: transparent;
    color: var(--color-button-gradient-start);
    border: 2px solid var(--color-button-gradient-start);
}

.page-lottery__btn-secondary:hover {
    background-color: var(--color-button-gradient-start);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--color-button-gradient-start-rgb), 0.3);
}

/* Introduction Section */
.page-lottery__introduction-section,
.page-lottery__dark-section {
    background-color: var(--color-deep-green);
    padding: 60px 20px;
    text-align: center;
}

.page-lottery__introduction-section .page-lottery__image-content {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Types Section */
.page-lottery__types-section {
    padding: 60px 20px;
    background-color: var(--color-background);
}

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

.page-lottery__card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-lottery__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

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

.page-lottery__card-description {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* Guide Section */
.page-lottery__guide-section {
    padding: 60px 20px;
    background-color: var(--color-deep-green);
}

.page-lottery__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-lottery__guide-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-lottery__guide-step-title {
    color: var(--color-gold);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.page-lottery__guide-item p {
    color: var(--color-text-secondary);
}

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

/* Benefits Section */
.page-lottery__benefits-section {
    padding: 60px 20px;
    background-color: var(--color-background);
}

.page-lottery__benefits-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-lottery__benefits-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-lottery__icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-lottery__benefits-title {
    color: var(--color-gold);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.page-lottery__benefits-item p {
    color: var(--color-text-secondary);
}

/* Strategy Section */
.page-lottery__strategy-section {
    padding: 60px 20px;
    background-color: var(--color-deep-green);
}

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

.page-lottery__strategy-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

/* FAQ Section */
.page-lottery__faq-section {
    padding: 60px 20px;
    background-color: var(--color-background);
}

.page-lottery__faq-list {
    margin-top: 40px;
}

.page-lottery__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.page-lottery__faq-item[open] .page-lottery__faq-question {
    border-bottom-color: transparent;
}

.page-lottery__faq-question::-webkit-details-marker,
.page-lottery__faq-question::marker {
    display: none;
}

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

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

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

/* Final CTA Section */
.page-lottery__cta-final-section {
    padding: 60px 20px;
    background-color: var(--color-deep-green);
    text-align: center;
}

.page-lottery__cta-final-content {
    max-width: 900px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-lottery__card-image {
        height: 180px;
    }
}

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

    .page-lottery__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-lottery__hero-section,
    .page-lottery__introduction-section,
    .page-lottery__types-section,
    .page-lottery__guide-section,
    .page-lottery__benefits-section,
    .page-lottery__strategy-section,
    .page-lottery__faq-section,
    .page-lottery__cta-final-section {
        padding: 40px 15px;
    }

    .page-lottery__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .page-lottery__hero-description {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }

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

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

    .page-lottery__card-grid,
    .page-lottery__benefits-list,
    .page-lottery__strategy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-lottery__card-image {
        height: 150px;
    }

    /* Mobile image adaptation */
    .page-lottery img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-lottery__section,
    .page-lottery__card,
    .page-lottery__container,
    .page-lottery__hero-image-wrapper,
    .page-lottery__image-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Video adaptation (if any, though not present in this HTML) */
    .page-lottery video,
    .page-lottery__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-lottery__video-section,
    .page-lottery__video-container,
    .page-lottery__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-lottery__video-section {
        padding-top: 10px !important;
    }

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

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

@media (max-width: 480px) {
    .page-lottery__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .page-lottery__card-title {
        font-size: 1.3rem;
    }

    .page-lottery__guide-step-title,
    .page-lottery__benefits-title,
    .page-lottery__strategy-title {
        font-size: 1.2rem;
    }
}