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

/* --- Base Styles --- */
.page-lottery {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--bg); /* Page background from custom colors */
    line-height: 1.6;
    font-size: 16px;
}

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

.page-lottery__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--gold); /* Use gold for main titles for emphasis */
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-lottery__text-block {
    margin-bottom: 20px;
    color: var(--text-secondary); /* Lighter text for paragraphs */
    text-align: justify;
}

.page-lottery__highlight {
    color: var(--text-main); /* Use brighter text main for highlights */
    font-weight: bold;
}

/* --- Hero Section --- */
.page-lottery__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    background-color: var(--deep-green); /* Use deep green for hero section background */
}

.page-lottery__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 30px; /* Space between image and text */
}

.page-lottery__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-lottery__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-lottery__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    color: var(--gold); /* Gold for H1 */
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-lottery__description {
    font-size: 1.2em;
    color: var(--text-main); /* Brighter text for description */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* --- Buttons --- */
.page-lottery__btn-primary,
.page-lottery__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-lottery__btn-primary {
    background: var(--button-gradient); /* Custom button gradient */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-lottery__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-lottery__btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--border); /* Custom border color */
}

.page-lottery__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: var(--gold);
}

/* --- Sections --- */
.page-lottery__intro-section,
.page-lottery__benefits-section,
.page-lottery__tips-section,
.page-lottery__cta-bottom {
    padding: 80px 0;
    text-align: center;
}

.page-lottery__dark-section {
    background-color: var(--bg); /* Main dark background */
    color: var(--text-secondary);
}

.page-lottery__dark-section .page-lottery__section-title {
    color: var(--gold);
}

.page-lottery__dark-section .page-lottery__text-block {
    color: var(--text-secondary);
}

.page-lottery__types-section,
.page-lottery__guide-section,
.page-lottery__faq-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--deep-green); /* Alternating section background */
    color: var(--text-secondary);
}

.page-lottery__types-section .page-lottery__section-title,
.page-lottery__guide-section .page-lottery__section-title,
.page-lottery__faq-section .page-lottery__section-title {
    color: var(--gold);
}

/* --- Content Images --- */
.page-lottery__content-image {
    max-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;
}

/* --- Grid Layout for Lottery Types --- */
.page-lottery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-lottery__card {
    background-color: var(--card-bg); /* Custom card background */
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border); /* Custom border color */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.page-lottery__card-title {
    font-size: 1.5em;
    color: var(--text-main); /* Card title color */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-lottery__card-text {
    color: var(--text-secondary); /* Card text color */
    line-height: 1.6;
}

/* --- Lists --- */
.page-lottery__benefits-list,
.page-lottery__guide-list,
.page-lottery__tips-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
    text-align: left;
}

.page-lottery__list-item {
    background-color: var(--card-bg); /* Use card background for list items */
    margin-bottom: 15px;
    padding: 20px 25px;
    border-radius: 8px;
    color: var(--text-main);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--glow); /* Accent border */
}

.page-lottery__list-item strong {
    color: var(--gold);
}

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

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

.page-lottery__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--divider);
    list-style: none; /* For details/summary */
}

.page-lottery__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome */
}

.page-lottery__faq-item[open] > .page-lottery__faq-question {
    border-bottom: 1px solid var(--glow); /* Highlight border when open */
}

.page-lottery__faq-qtext {
    flex-grow: 1;
    color: var(--text-main);
}

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

.page-lottery__faq-item[open] .page-lottery__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to '-' */
}

.page-lottery__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: justify;
}

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

/* --- Footer CTA --- */
.page-lottery__cta-bottom {
    background-color: var(--deep-green); /* Use deep green for bottom CTA */
    padding: 60px 0;
}

.page-lottery__cta-content {
    max-width: 900px;
    text-align: center;
}

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

@media (max-width: 768px) {
    .page-lottery {
        font-size: 15px;
    }

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

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

    .page-lottery__hero-section {
        padding: 10px 0 40px 0;
    }

    .page-lottery__hero-content {
        padding: 0 15px;
    }

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

    .page-lottery__description {
        font-size: 1.1em;
        margin-bottom: 25px;
    }

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

    .page-lottery__btn-primary,
    .page-lottery__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        min-width: unset;
    }

    /* 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__intro-section,
    .page-lottery__types-section,
    .page-lottery__benefits-section,
    .page-lottery__guide-section,
    .page-lottery__tips-section,
    .page-lottery__faq-section,
    .page-lottery__cta-bottom,
    .page-lottery__card,
    .page-lottery__list-item,
    .page-lottery__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Adjust padding for sections in mobile to be consistent with container */
    .page-lottery__intro-section,
    .page-lottery__benefits-section,
    .page-lottery__tips-section,
    .page-lottery__cta-bottom,
    .page-lottery__types-section,
    .page-lottery__guide-section,
    .page-lottery__faq-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .page-lottery__hero-section {
        padding-top: 10px !important; /* body already has padding-top */
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

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

    .page-lottery__grid {
        gap: 20px;
        margin-left: 0;
        margin-right: 0;
        padding: 0 15px; /* Add padding to grid itself */
    }
    .page-lottery__card {
        padding: 20px;
    }

    .page-lottery__list-item {
        padding: 15px 20px;
    }
}