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

/* Base styles for the page content */
.page-lottery {
    background-color: var(--page-lottery-bg); /* Dark background */
    color: var(--page-lottery-text-main); /* Light text for contrast */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 10px; /* Small top padding, body handles header offset */
}

/* Hero Section */
.page-lottery__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-bottom: 40px; /* Separates image from content */
    background-color: var(--page-lottery-bg); /* Ensure consistent background */
}

.page-lottery__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 700px; /* Limit height for aesthetic reasons */
}

.page-lottery__hero-content {
    max-width: 900px;
    margin: 40px auto 0 auto; /* Margin from image */
    padding: 0 20px;
}

.page-lottery__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* H1 font size with clamp */
    color: var(--page-lottery-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.05em;
}

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

.page-lottery__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-lottery__btn-primary,
.page-lottery__btn-secondary,
.page-lottery__btn-card {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-lottery__btn-primary {
    background: var(--page-lottery-button-gradient);
    color: var(--page-lottery-text-main);
    border: 2px solid transparent;
}

.page-lottery__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 100, 0.3);
}

.page-lottery__btn-secondary {
    background: transparent;
    color: var(--page-lottery-glow);
    border: 2px solid var(--page-lottery-glow);
}

.page-lottery__btn-secondary:hover {
    background: var(--page-lottery-glow);
    color: var(--page-lottery-bg);
    transform: translateY(-3px);
}

/* General Section Styling */
.page-lottery__section-title {
    font-size: 2.5em;
    color: var(--page-lottery-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-lottery__sub-title {
    font-size: 1.8em;
    color: var(--page-lottery-text-main);
    margin-top: 30px;
    margin-bottom: 15px;
}

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

.page-lottery__text-block {
    font-size: 1.1em;
    color: var(--page-lottery-text-secondary);
    margin-bottom: 20px;
}

.page-lottery__highlight {
    color: var(--page-lottery-gold);
    font-weight: bold;
}

.page-lottery__text-link {
    color: var(--page-lottery-glow);
    text-decoration: none;
    font-weight: bold;
}

.page-lottery__text-link:hover {
    text-decoration: underline;
}

/* Card Styling */
.page-lottery__card {
    background-color: var(--page-lottery-card-bg);
    border: 1px solid var(--page-lottery-border);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    height: 100%; /* Ensure cards in a grid have equal height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-lottery__card:hover {
    transform: translateY(-5px);
}

.page-lottery__card-title {
    font-size: 1.5em;
    color: var(--page-lottery-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-lottery__card-text {
    color: var(--page-lottery-text-secondary);
    font-size: 1em;
    flex-grow: 1; /* Allows text to take available space */
}

.page-lottery__btn-card {
    margin-top: 20px;
    background: var(--page-lottery-button-gradient);
    color: var(--page-lottery-text-main);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    align-self: flex-start; /* Align button to start of card */
}

.page-lottery__btn-card:hover {
    opacity: 0.9;
}

/* Feature List */
.page-lottery__feature-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-lottery__feature-list li {
    background-color: var(--page-lottery-card-bg);
    border-left: 5px solid var(--page-lottery-glow);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    color: var(--page-lottery-text-secondary);
    font-size: 1.1em;
}

.page-lottery__feature-list li strong {
    color: var(--page-lottery-text-main);
}

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

/* Steps Grid (How to Play) */
.page-lottery__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

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

/* Strategy List */
.page-lottery__strategy-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-lottery__strategy-list li {
    background-color: var(--page-lottery-card-bg);
    border-left: 5px solid var(--page-lottery-gold);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

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

.page-lottery__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--page-lottery-card-bg);
    border: 1px solid var(--page-lottery-border);
}

.page-lottery__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2em;
    color: var(--page-lottery-text-main);
    background-color: var(--page-lottery-deep-green); /* Slightly darker for question */
    border-bottom: 1px solid var(--page-lottery-divider);
}

/* Remove default details arrow */
.page-lottery__faq-item summary {
    list-style: none;
}
.page-lottery__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-lottery__faq-toggle {
    font-size: 1.5em;
    color: var(--page-lottery-glow);
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.page-lottery__faq-item[open] .page-lottery__faq-toggle {
    transform: rotate(45deg); /* Rotate for minus sign */
}

.page-lottery__faq-answer {
    padding: 20px;
    background-color: var(--page-lottery-card-bg);
    color: var(--page-lottery-text-secondary);
    font-size: 1.1em;
}

/* Image styles within content */
.page-lottery__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-height: 200px; /* Enforce min size */
    min-width: 200px; /* Enforce min size */
}

/* Section Backgrounds */
.page-lottery__dark-section {
    background-color: var(--page-lottery-deep-green);
    color: var(--page-lottery-text-main);
}

/* Conclusion Section */
.page-lottery__conclusion-section {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-lottery__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-lottery__section-title {
        font-size: 2em;
    }
}

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

    .page-lottery__hero-content {
        margin-top: 20px;
    }

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

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

    .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;
    }

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

    .page-lottery__sub-title {
        font-size: 1.4em;
    }

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

    .page-lottery__card {
        padding: 20px;
    }

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

    /* Mobile video responsiveness (if any video) */
    .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; /* Small top padding */
    }
    
    .page-lottery__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile button responsiveness */
    .page-lottery__cta-button,
    .page-lottery__btn-primary,
    .page-lottery__btn-secondary,
    .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-buttons,
    .page-lottery__button-group,
    .page-lottery__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    
    .page-lottery__cta-buttons {
        flex-direction: column;
    }

    /* General container responsiveness */
    .page-lottery__section,
    .page-lottery__card,
    .page-lottery__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* No CSS filters on images */
.page-lottery img {
    filter: none !important;
}

/* Content area image size check (min 200px) */
.page-lottery img:not(.shared-header__logo-image):not(.shared-footer__payment-icon):not(.shared-footer__social-icon) {
    min-width: 200px;
    min-height: 200px;
}
@media (min-width: 769px) {
    .page-lottery img:not(.shared-header__logo-image):not(.shared-footer__payment-icon):not(.shared-footer__social-icon) {
        width: auto;
        height: auto;
        max-width: 100%;
    }
}