/* style/lottery.css */
/* Custom properties for colors */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color: #08160F; /* Main page background */
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* Base styles for the page content, considering shared.css body padding */
.page-lottery {
    background-color: var(--background-color); /* Main page background */
    color: var(--text-main); /* Default text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

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

/* Ensure proper text color for light background sections */
.page-lottery__light-bg {
    background-color: #f8f8f8; /* Default light background for contrast */
    color: #333333; /* Dark text for light background */
}

.page-lottery__dark-bg {
    background-color: var(--background-color); /* Dark background */
    color: var(--text-main); /* Light text for dark background */
}


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

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

.page-lottery__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-lottery__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -80px; /* Overlap slightly with image for visual flow */
    position: relative;
    z-index: 1;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background-color: var(--card-bg); /* Use card background for hero content */
    border: 1px solid var(--border-color);
}

.page-lottery__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    color: var(--gold-color);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-lottery__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

/* CTA Button */
.page-lottery__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--button-gradient);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-lottery__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-lottery__cta-button--large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Section Titles */
.page-lottery__section-title {
    font-size: clamp(2em, 4vw, 3em);
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

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

.page-lottery__text-block {
    font-size: 1.05em;
    margin-bottom: 20px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit; /* Inherit from section for contrast */
}

/* Cards */
.page-lottery__card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main); /* Default text for cards */
}

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

/* Why Choose Section */
.page-lottery__why-choose {
    background-color: #f8f8f8; /* Lighter background for contrast */
    color: #333333;
}

.page-lottery__why-choose .page-lottery__section-title,
.page-lottery__why-choose .page-lottery__text-block {
    color: #333333;
}

.page-lottery__why-choose .page-lottery__card {
    background-color: #ffffff; /* White background for cards in light section */
    color: #333333;
    border: 1px solid #e0e0e0;
}

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

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

.page-lottery__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-lottery__feature-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-lottery__feature-description {
    font-size: 1em;
    line-height: 1.6;
    color: #555555; /* Darker text for light background */
}

/* Game Types Section */
.page-lottery__game-types .page-lottery__section-title {
    color: var(--gold-color);
}

.page-lottery__game-type-card {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    gap: 30px;
    background-color: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.page-lottery__game-type-card:nth-child(odd) {
    flex-direction: row-reverse; /* Alternate image and text */
}

.page-lottery__game-type-image {
    width: 50%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-lottery__game-type-content {
    width: 50%;
    padding: 20px 0;
}

.page-lottery__game-type-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

.page-lottery__game-details-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.page-lottery__game-details-list li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
}

.page-lottery__game-details-list li::before {
    content: '✓';
    color: var(--gold-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* How to Play Section */
.page-lottery__how-to-play {
    background-color: #f8f8f8; /* Lighter background for contrast */
    color: #333333;
}

.page-lottery__how-to-play .page-lottery__section-title,
.page-lottery__how-to-play .page-lottery__text-block {
    color: #333333;
}

.page-lottery__how-to-play .page-lottery__card {
    background-color: #ffffff; /* White background for cards in light section */
    color: #333333;
    border: 1px solid #e0e0e0;
}

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

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

.page-lottery__step-icon {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    padding: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-lottery__step-description {
    font-size: 0.95em;
    color: #555555;
}

.page-lottery__cta-wrapper {
    text-align: center;
    margin-top: 50px;
}

/* Tips and Strategies Section */
.page-lottery__tips-strategies .page-lottery__section-title {
    color: var(--gold-color);
}

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

.page-lottery__tip-card {
    background-color: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.page-lottery__tip-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-lottery__tip-description {
    font-size: 1em;
    color: var(--text-secondary);
}

/* Promotions Section */
.page-lottery__promotions {
    background-color: #f8f8f8; /* Lighter background for contrast */
    color: #333333;
}

.page-lottery__promotions .page-lottery__section-title,
.page-lottery__promotions .page-lottery__text-block {
    color: #333333;
}

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

.page-lottery__promo-card {
    text-align: center;
    background-color: #ffffff; /* White background for cards in light section */
    color: #333333;
    border: 1px solid #e0e0e0;
}

.page-lottery__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

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

.page-lottery__promo-description {
    font-size: 0.95em;
    color: #555555;
}

/* Responsible Gambling Section */
.page-lottery__responsible-gambling .page-lottery__section-title {
    color: var(--gold-color);
}

/* FAQ Section */
.page-lottery__faq-section {
    background-color: #f8f8f8; /* Lighter background for contrast */
    color: #333333;
}

.page-lottery__faq-section .page-lottery__section-title {
    color: #333333;
}

.page-lottery__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-lottery__faq-item {
    background-color: #ffffff; /* White background for FAQ items in light section */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-lottery__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f0f0f0;
    color: var(--primary-color);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

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

.page-lottery__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

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

.page-lottery__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    line-height: 1.7;
    color: #555555;
}

/* Conclusion Section */
.page-lottery__conclusion .page-lottery__section-title {
    color: var(--gold-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-lottery__hero-content {
        margin-top: -60px;
        padding: 30px 20px;
    }

    .page-lottery__game-type-card {
        flex-direction: column;
        text-align: center;
    }

    .page-lottery__game-type-card:nth-child(odd) {
        flex-direction: column;
    }

    .page-lottery__game-type-image,
    .page-lottery__game-type-content {
        width: 100%;
    }

    .page-lottery__game-type-image {
        border-radius: 8px 8px 0 0;
    }
}

@media (max-width: 768px) {
    .page-lottery__section {
        padding: 40px 0;
    }

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

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

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

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

    .page-lottery__text-block {
        font-size: 0.95em;
    }

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

    .page-lottery__hero-image-wrapper,
    .page-lottery__features-grid,
    .page-lottery__steps-grid,
    .page-lottery__tips-grid,
    .page-lottery__promo-grid,
    .page-lottery__faq-list,
    .page-lottery__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    /* Specific image sizes for mobile, ensuring min 200x200 if possible */
    .page-lottery__feature-icon,
    .page-lottery__step-icon {
        width: 150px !important; /* Adjust if needed, but ensure min 200x200 rule */
        height: 150px !important; /* Adjust if needed, but ensure min 200x200 rule */
        min-width: 200px !important; /* Force min size if parent allows */
        min-height: 200px !important; /* Force min size if parent allows */
        max-width: 100% !important;
        height: auto !important;
    }

    /* Button responsiveness */
    .page-lottery__cta-button,
    .page-lottery a[class*="button"],
    .page-lottery a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-lottery__cta-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-lottery__cta-button--large {
        padding: 15px 25px;
        font-size: 1.1em;
    }

    /* FAQ */
    .page-lottery__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-lottery__faq-answer {
        padding: 0 20px 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-lottery__hero-content {
        margin-top: -20px;
        padding: 20px 10px;
    }

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

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

    .page-lottery__features-grid,
    .page-lottery__steps-grid,
    .page-lottery__tips-grid,
    .page-lottery__promo-grid {
        grid-template-columns: 1fr;
    }
}