/* style/lottery-games.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --accent-color: #EA7C07; /* For login/action buttons */
    --border-color: #e0e0e0;
}

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

.page-lottery-games__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

.page-lottery-games__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
    text-align: center;
    overflow: hidden;
    min-height: 500px;
}

.page-lottery-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
}

.page-lottery-games__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
}

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

.page-lottery-games__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-lottery-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7); /* Darken image for better text contrast */
}

.page-lottery-games__btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.page-lottery-games__btn-primary:hover {
    background-color: darken(var(--accent-color), 10%);
}

.page-lottery-games__btn-secondary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    font-size: 0.9em;
}

.page-lottery-games__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-lottery-games__btn-center {
    display: block;
    margin: 40px auto 20px auto;
    max-width: 250px;
}

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

.page-lottery-games__section-title {
    font-size: 2.2em;
    margin-bottom: 30px;
    text-align: center;
    color: inherit;
}

.page-lottery-games__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-lottery-games__game-card, .page-lottery-games__promo-card, .page-lottery-games__step-card {
    background-color: var(--secondary-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
    color: var(--text-dark);
}

.page-lottery-games__game-card:hover, .page-lottery-games__promo-card:hover, .page-lottery-games__step-card:hover {
    transform: translateY(-5px);
}

.page-lottery-games__game-card .page-lottery-games__card-image, 
.page-lottery-games__promo-card .page-lottery-games__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-lottery-games__card-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: inherit;
}

.page-lottery-games__card-description {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-lottery-games__step-card {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-lottery-games__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.page-lottery-games__content-image {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-lottery-games__list-item {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    color: inherit;
}

.page-lottery-games__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
}

.page-lottery-games__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    box-sizing: border-box;
}

.page-lottery-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
}

.page-lottery-games__faq-list {
    margin-top: 40px;
}

.page-lottery-games__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-light);
}

.page-lottery-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-lottery-games__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-lottery-games__faq-question h3 {
    margin: 0;
    color: inherit;
}

.page-lottery-games__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.page-lottery-games__faq-item.active .page-lottery-games__faq-toggle {
    transform: rotate(45deg);
}

.page-lottery-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 1.05em;
}

.page-lottery-games__faq-item.active .page-lottery-games__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 20px 20px 20px;
}

.page-lottery-games__cta-section {
    text-align: center;
    padding: 60px 20px;
}

.page-lottery-games__cta-content {
    max-width: 800px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-lottery-games__hero-title {
        font-size: 2.5em;
    }
    .page-lottery-games__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-lottery-games__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure space below fixed header for mobile */
    }
    .page-lottery-games__hero-content {
        padding: 15px;
    }
    .page-lottery-games__hero-title {
        font-size: 2em;
    }
    .page-lottery-games__hero-description {
        font-size: 1em;
    }
    .page-lottery-games__container {
        padding: 30px 15px;
    }
    .page-lottery-games__section-title {
        font-size: 1.8em;
    }
    .page-lottery-games__text-block, .page-lottery-games__list-item, .page-lottery-games__card-description {
        font-size: 0.95em;
    }
    .page-lottery-games__game-grid, .page-lottery-games__promo-grid, .page-lottery-games__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-lottery-games__game-card, .page-lottery-games__promo-card, .page-lottery-games__step-card {
        padding: 20px;
    }
    .page-lottery-games__card-title {
        font-size: 1.2em;
    }
    .page-lottery-games__step-number {
        font-size: 2em;
    }

    /* Mobile image responsiveness */
    .page-lottery-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-lottery-games__container,
    .page-lottery-games__hero-section,
    .page-lottery-games__introduction-section,
    .page-lottery-games__game-types-section,
    .page-lottery-games__how-to-play-section,
    .page-lottery-games__tips-section,
    .page-lottery-games__promotions-section,
    .page-lottery-games__why-choose-section,
    .page-lottery-games__video-section,
    .page-lottery-games__faq-section,
    .page-lottery-games__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }
    .page-lottery-games__game-card .page-lottery-games__card-image, 
    .page-lottery-games__promo-card .page-lottery-games__card-image {
        height: auto;
        min-height: 200px;
    }

    /* Mobile video responsiveness */
    .page-lottery-games video,
    .page-lottery-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-lottery-games__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }

    /* Mobile button responsiveness */
    .page-lottery-games__btn-primary,
    .page-lottery-games__btn-secondary,
    .page-lottery-games a[class*="button"],
    .page-lottery-games 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-games__cta-buttons,
    .page-lottery-games__button-group,
    .page-lottery-games__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;
        display: flex;
        flex-direction: column;
    }
    .page-lottery-games__btn-center {
        max-width: 100%;
    }
    .page-lottery-games__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-lottery-games__faq-answer {
        padding: 0 15px;
    }
    .page-lottery-games__faq-item.active .page-lottery-games__faq-answer {
        padding: 10px 15px 15px 15px;
    }
}

@media (max-width: 480px) {
    .page-lottery-games__hero-title {
        font-size: 1.8em;
    }
    .page-lottery-games__section-title {
        font-size: 1.5em;
    }
    .page-lottery-games__hero-description {
        font-size: 0.95em;
    }
    .page-lottery-games__btn-primary {
        padding: 12px 25px;
        font-size: 0.9em;
    }
}