/* style/lottery.css */
:root {
    --primary-color: #1A2B4C;
    --secondary-color: #FFD700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #121212;
    --bg-card-dark: rgba(255, 255, 255, 0.08);
    --border-color-dark: rgba(255, 255, 255, 0.15);
}

.page-lottery {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Light text for dark body background */
    background-color: var(--bg-dark); /* Ensure body background is dark */
    padding-top: 120px; /* Desktop: Space for fixed header */
}

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

.page-lottery__hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0F1D36 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-lottery__main-title {
    font-size: 3.2em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    font-weight: 700;
}

.page-lottery__description {
    font-size: 1.2em;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

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

.page-lottery__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
}

.page-lottery__cta-button--primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.page-lottery__cta-button--primary:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-lottery__cta-button--secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--secondary-color);
}

.page-lottery__cta-button--secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-lottery__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 50px;
    padding-top: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

.page-lottery__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    color: var(--text-light);
}

.page-lottery__why-choose-section {
    padding: 80px 0;
}

.page-lottery__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light); /* Forced white text for dark background */
    padding: 80px 0;
}

.page-lottery__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light); /* Forced white text for dark background */
    padding: 80px 0;
}

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

.page-lottery__feature-card {
    background-color: var(--bg-card-dark);
    border: 1px solid var(--border-color-dark);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-light);
}

.page-lottery__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-lottery__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-lottery__feature-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-lottery__feature-text {
    font-size: 1em;
    color: var(--text-light);
}

.page-lottery__types-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

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

.page-lottery__game-card {
    background-color: var(--bg-card-dark);
    border: 1px solid var(--border-color-dark);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-lottery__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-lottery__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    max-width: 100%;
    height: auto;
    display: block;
}

.page-lottery__game-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    padding: 0 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-lottery__game-description {
    font-size: 0.95em;
    color: var(--text-light);
    padding: 0 20px 20px;
    flex-grow: 1;
}

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

.page-lottery__how-to-play-section {
    padding: 80px 0;
}

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

.page-lottery__step-item {
    background-color: var(--bg-card-dark);
    border: 1px solid var(--border-color-dark);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: var(--text-light);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-lottery__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-lottery__step-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-lottery__step-description {
    font-size: 1em;
    color: var(--text-light);
    margin-bottom: 20px;
}

.page-lottery__button-inline {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
}

.page-lottery__button-inline:hover {
    background-color: #e6c200;
}

.page-lottery__tips-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

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

.page-lottery__tip-card {
    background-color: var(--bg-card-dark);
    border: 1px solid var(--border-color-dark);
    border-radius: 10px;
    padding: 30px;
    color: var(--text-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-lottery__tip-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-lottery__mobile-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.page-lottery__mobile-text {
    flex: 1;
}

.page-lottery__mobile-advantages {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    font-size: 1.1em;
}

.page-lottery__mobile-advantages li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
    color: var(--text-light);
}

.page-lottery__mobile-advantages li::before {
    content: '✓';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
}

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

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

.page-lottery__cta-buttons--mobile {
    justify-content: flex-start;
    margin-top: 40px;
}

.page-lottery__final-cta-section {
    padding: 100px 0;
    background: linear-gradient(45deg, #0F1D36 0%, var(--primary-color) 100%);
    text-align: center;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.3);
}

.page-lottery__final-cta-content {
    max-width: 900px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-lottery__main-title {
        font-size: 2.8em;
    }
    .page-lottery__section-title {
        font-size: 2.2em;
    }
    .page-lottery__mobile-content {
        flex-direction: column;
        text-align: center;
    }
    .page-lottery__mobile-text {
        order: 2;
    }
    .page-lottery__mobile-image-wrapper {
        order: 1;
        margin-bottom: 40px;
    }
    .page-lottery__cta-buttons--mobile {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-lottery {
        padding-top: 100px !important; /* Mobile: Space for fixed header */
        font-size: 16px;
        line-height: 1.6;
    }
    .page-lottery__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-lottery__hero-section,
    .page-lottery__why-choose-section,
    .page-lottery__dark-section,
    .page-lottery__dark-bg,
    .page-lottery__types-section,
    .page-lottery__how-to-play-section,
    .page-lottery__tips-section,
    .page-lottery__mobile-section,
    .page-lottery__final-cta-section {
        padding: 50px 0;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-lottery__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-lottery__description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-lottery__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-lottery__cta-button,
    .page-lottery__button-inline,
    .page-lottery a[class*="button"],
    .page-lottery a[class*="btn"] {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-lottery__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding-top: 20px;
    }
    .page-lottery__text-block {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-lottery__features-grid,
    .page-lottery__game-cards-grid,
    .page-lottery__steps-list,
    .page-lottery__tips-grid {
        gap: 20px;
        margin-top: 30px;
    }
    .page-lottery__feature-card,
    .page-lottery__game-card,
    .page-lottery__step-item,
    .page-lottery__tip-card {
        padding: 20px;
    }
    .page-lottery__feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    .page-lottery__feature-title,
    .page-lottery__game-title,
    .page-lottery__step-title,
    .page-lottery__tip-title {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    .page-lottery__game-image {
        height: 160px;
    }
    .page-lottery__step-number {
        width: 40px;
        height: 40px;
        font-size: 1.5em;
        margin-bottom: 15px;
    }
    .page-lottery__mobile-advantages {
        margin: 20px 0;
        font-size: 1em;
    }
    .page-lottery__mobile-advantages li {
        padding-left: 25px;
    }
    .page-lottery__cta-buttons--mobile {
        margin-top: 30px;
    }
    .page-lottery__cta-button--large {
        padding: 15px 30px;
        font-size: 1.1em;
        margin-top: 30px;
    }
    .page-lottery img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-lottery__mobile-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-lottery__main-title {
        font-size: 1.8em;
    }
    .page-lottery__section-title {
        font-size: 1.6em;
    }
    .page-lottery__cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-lottery__cta-button--large {
        padding: 12px 25px;
        font-size: 1em;
    }
}