/* style/lottery.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --btn-register: #C30808;
    --btn-login: #C30808;
    --font-login-register: #FFFF00;
    --border-color: #e0e0e0;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
}

.page-lottery {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--secondary-color); /* Assuming body background is light */
}

.page-lottery__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-lottery__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-lottery__text-block {
    color: var(--text-light);
}

.page-lottery__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-sm);
}

.page-lottery__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: inherit; /* Inherit color from parent section */
    line-height: 1.2;
}

.page-lottery__main-title {
    font-weight: bold;
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
    line-height: 1.2;
    font-size: clamp(2em, 4vw, 3em); /* Responsive font size */
}

.page-lottery__paragraph {
    margin-bottom: var(--spacing-md);
    text-align: justify;
}

.page-lottery__text-center {
    text-align: center;
}

.page-lottery__mt-40 {
    margin-top: var(--spacing-lg);
}

/* Hero Section */
.page-lottery__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: var(--spacing-sm); /* Small top padding, assuming shared.css handles body padding */
    padding-bottom: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.page-lottery__hero-image-container {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
}

.page-lottery__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover, but will be contain on mobile */
    display: block;
}

.page-lottery__hero-content {
    position: relative;
    z-index: 1;
    padding: var(--spacing-md);
    max-width: 800px;
    text-align: center;
}

.page-lottery__hero-description {
    font-size: 1.1em;
    margin-bottom: var(--spacing-lg);
    color: var(--text-light);
}

.page-lottery__cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.page-lottery__btn-primary,
.page-lottery__btn-secondary,
.page-lottery__btn-play {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.page-lottery__btn-primary {
    background-color: var(--btn-register);
    color: var(--font-login-register);
    border: 2px solid var(--btn-register);
}

.page-lottery__btn-primary:hover {
    background-color: darken(var(--btn-register), 10%);
    border-color: darken(var(--btn-register), 10%);
}

.page-lottery__btn-secondary {
    background-color: transparent;
    color: var(--font-login-register);
    border: 2px solid var(--font-login-register);
}

.page-lottery__btn-secondary:hover {
    background-color: var(--font-login-register);
    color: var(--primary-color);
}

.page-lottery__btn-play {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-lottery__btn-play:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

/* Intro Section */
.page-lottery__intro-section {
    padding: var(--spacing-lg) 0;
}

/* Benefits Section */
.page-lottery__benefits-section {
    padding: var(--spacing-lg) 0;
}

.page-lottery__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.page-lottery__benefit-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-md);
    text-align: center;
    transition: transform 0.3s ease;
    color: var(--text-dark);
}

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

.page-lottery__benefit-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: var(--spacing-sm);
    min-width: 200px;
    min-height: 200px;
}

.page-lottery__card-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.page-lottery__card-description {
    font-size: 0.95em;
}

/* Game Types Section */
.page-lottery__game-types-section {
    padding: var(--spacing-lg) 0;
}

.page-lottery__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.page-lottery__game-tile {
    background-color: var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-lottery__game-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-lottery__game-title {
    font-size: 1.3em;
    font-weight: bold;
    margin: var(--spacing-sm) 0;
    padding: 0 var(--spacing-sm);
    color: var(--font-login-register);
}

.page-lottery__game-description {
    font-size: 0.9em;
    padding: 0 var(--spacing-sm) var(--spacing-sm);
    flex-grow: 1;
}

/* How to Play Section */
.page-lottery__how-to-play-section {
    padding: var(--spacing-lg) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-lottery__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.page-lottery__step-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-md);
    text-align: center;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-lottery__step-card .page-lottery__card-title {
    color: var(--primary-color);
}

.page-lottery__image-how-to-play {
    margin-top: var(--spacing-lg);
    max-width: 800px;
    width: 100%;
}

.page-lottery__how-to-play-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

/* Promotions Section */
.page-lottery__promotions-section {
    padding: var(--spacing-lg) 0;
}

.page-lottery__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.page-lottery__promotion-card {
    background-color: var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-md);
    text-align: center;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-lottery__promotion-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: var(--spacing-sm);
    min-width: 200px;
    min-height: 200px;
}

.page-lottery__promotion-card .page-lottery__card-title {
    color: var(--font-login-register);
}

/* Responsible Gaming Section */
.page-lottery__responsible-gaming-section {
    padding: var(--spacing-lg) 0;
}

.page-lottery__responsible-gaming-content {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.page-lottery__responsible-gaming-text {
    flex: 1;
}

.page-lottery__responsible-gaming-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-lottery__responsible-gaming-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    min-width: 200px;
    min-height: 200px;
}

.page-lottery__list {
    list-style: disc inside;
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.page-lottery__list li {
    margin-bottom: var(--spacing-sm);
}

/* FAQ Section */
.page-lottery__faq-section {
    padding: var(--spacing-lg) 0;
}

.page-lottery__faq-list {
    margin-top: var(--spacing-lg);
}

.page-lottery__faq-item {
    background-color: var(--primary-color);
    border-radius: 8px;
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    color: var(--text-light);
}

.page-lottery__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--font-login-register);
    list-style: none; /* For details/summary */
}

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

.page-lottery__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
}

.page-lottery__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
    color: var(--text-light);
}

/* CTA Bottom Section */
.page-lottery__cta-bottom-section {
    padding: var(--spacing-lg) 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-lottery__container {
        padding: var(--spacing-md) 20px;
    }

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

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

    .page-lottery__responsible-gaming-content {
        flex-direction: column;
    }
}

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

    .page-lottery__container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-lottery__section-title {
        font-size: 1.8em;
        margin-bottom: var(--spacing-md);
    }

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

    /* Hero Section */
    .page-lottery__hero-section {
        padding-top: var(--spacing-sm) !important; /* Small top padding */
    }

    .page-lottery__hero-image {
        object-fit: contain !important; /* Ensure image is fully visible on mobile */
        height: auto !important;
        max-height: 300px !important; /* Limit height for better mobile display */
        aspect-ratio: unset !important;
        width: 100% !important;
    }

    .page-lottery__hero-content {
        padding: var(--spacing-sm);
    }

    .page-lottery__cta-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-lottery__btn-primary,
    .page-lottery__btn-secondary,
    .page-lottery__btn-play,
    .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;
    }

    /* Benefits Section */
    .page-lottery__benefits-grid {
        grid-template-columns: 1fr;
    }

    .page-lottery__benefit-card {
        padding: var(--spacing-sm);
    }

    .page-lottery__benefit-image {
        height: auto;
    }

    /* Game Types Section */
    .page-lottery__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Two columns on mobile */
        gap: var(--spacing-sm);
        overflow-x: hidden !important;
    }

    .page-lottery__game-tile {
        padding-bottom: var(--spacing-sm);
    }

    .page-lottery__game-image {
        height: 150px; /* Smaller square for mobile */
        object-fit: cover;
        aspect-ratio: 1/1;
        min-width: unset !important;
        min-height: unset !important;
    }

    .page-lottery__game-title {
        font-size: 1.1em;
    }

    .page-lottery__game-description {
        font-size: 0.85em;
    }

    /* How to Play Section */
    .page-lottery__steps-grid {
        grid-template-columns: 1fr;
    }

    .page-lottery__step-card {
        padding: var(--spacing-sm);
    }

    .page-lottery__how-to-play-image {
        height: auto;
    }

    /* Promotions Section */
    .page-lottery__promotions-grid {
        grid-template-columns: 1fr;
    }

    .page-lottery__promotion-card {
        padding: var(--spacing-sm);
    }

    .page-lottery__promotion-image {
        height: auto;
    }

    /* Responsible Gaming Section */
    .page-lottery__responsible-gaming-content {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .page-lottery__responsible-gaming-image {
        height: auto;
    }

    /* FAQ Section */
    .page-lottery__faq-question {
        font-size: 1em;
        padding: 10px 15px;
    }

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

    /* General image and container responsiveness */
    .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__benefits-section,
    .page-lottery__game-types-section,
    .page-lottery__how-to-play-section,
    .page-lottery__promotions-section,
    .page-lottery__responsible-gaming-section,
    .page-lottery__faq-section,
    .page-lottery__cta-bottom-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Winner List - Not present in this page, but if it were: */
    /* .page-lottery__winner-list { grid-template-columns: 1fr !important; } */
    /* .page-lottery__winner-item { flex-direction: column; align-items: flex-start; } */
    /* .page-lottery__winner-thumbnail { width: 70px; height: 70px; } */
}