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

.page-lottery {
    font-family: 'Arial', sans-serif;
    color: var(--text-color-light); /* Body background is dark, so use light text */
    background-color: var(--background-dark);
    line-height: 1.6;
}

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

.page-lottery__section-title {
    font-size: 2.8em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

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

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

.page-lottery__btn-primary {
    background: var(--primary-color);
    color: var(--text-color-dark);
}

.page-lottery__btn-primary:hover {
    background: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-lottery__btn-secondary {
    background: var(--secondary-color);
    color: var(--text-color-light);
}

.page-lottery__btn-secondary:hover {
    background: darken(var(--secondary-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Video Section */
.page-lottery__video-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
    background-color: #0a0a0a;
}

.page-lottery__video-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-lottery__video-link {
    display: block;
    text-decoration: none;
    position: relative;
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__video-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-lottery__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-lottery__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    object-fit: cover;
    pointer-events: none;
}

.page-lottery__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.page-lottery__video-link:hover .page-lottery__video-overlay {
    opacity: 1;
}

.page-lottery__video-click-hint {
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    padding: 12px 25px;
    background: rgba(30, 144, 255, 0.8);
    border-radius: 50px;
    white-space: nowrap;
}

.page-lottery__video-cta {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.page-lottery__play-now-button {
    display: inline-block;
    padding: 18px 50px;
    background: var(--primary-color);
    color: var(--text-color-dark);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.page-lottery__play-now-button:hover {
    background: darken(var(--primary-color), 10%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Title Section */
.page-lottery__title-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--background-dark);
}

.page-lottery__main-title {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.page-lottery__title-description {
    font-size: 1.4em;
    color: var(--text-color-light);
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.5;
}

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

/* Introduction Section */
.page-lottery__introduction-section {
    padding: 80px 20px;
    background-color: #1a1a1a;
}

/* Game Types Section */
.page-lottery__game-types-section {
    padding: 80px 20px;
    background-color: var(--background-dark);
}

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

.page-lottery__card {
    background-color: var(--card-background);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-lottery__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-lottery__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.page-lottery__card-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.page-lottery__card-description {
    font-size: 1em;
    color: var(--text-color-light);
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-lottery__card-button {
    display: block;
    width: 80%;
    margin: 0 auto;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-lottery__card-button:hover {
    background: darken(var(--secondary-color), 10%);
    transform: translateY(-2px);
}

/* Advantages Section */
.page-lottery__advantages-section {
    padding: 80px 20px;
    background-color: var(--secondary-color);
    color: var(--text-color-light);
}

.page-lottery__advantages-section .page-lottery__section-title {
    color: var(--primary-color);
    text-shadow: none;
}

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

.page-lottery__advantage-item {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-lottery__advantage-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

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

/* Brand Section */
.page-lottery__brand-section {
    padding: 80px 20px;
    background-color: #1a1a1a;
}

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

.page-lottery__brand-item {
    background-color: var(--card-background);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-lottery__brand-subtitle {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

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

/* FAQ Section */
.page-lottery__faq-section {
    padding: 80px 20px;
    background-color: var(--background-dark);
}

.page-lottery__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
}

.page-lottery__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-lottery__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #1e1e1e;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-lottery__faq-question:hover {
    background: #2a2a2a;
}

.page-lottery__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.3em;
    font-weight: 600;
    line-height: 1.5;
    color: var(--primary-color);
    pointer-events: none;
}

.page-lottery__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-lottery__faq-item.active .page-lottery__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(45deg); /* Changed to rotate for a 'x' effect */
}

.page-lottery__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background: #121212;
    color: var(--text-color-light);
    border-radius: 0 0 10px 10px;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
    max-height: 2000px !important;
    padding: 25px !important;
    opacity: 1;
}

/* Blog Section */
.page-lottery__blog-section {
    padding: 80px 20px;
    background-color: #1a1a1a;
}

.page-lottery__blog-section .page-lottery__text-block {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

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

.page-lottery__blog-item {
    background-color: var(--card-background);
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.page-lottery__blog-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-lottery__blog-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-lottery__blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    margin-bottom: 20px;
}

.page-lottery__blog-item-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin: 0 25px 10px 25px;
    font-weight: bold;
    line-height: 1.3;
}

.page-lottery__blog-item-excerpt {
    font-size: 0.95em;
    color: var(--text-color-light);
    margin: 0 25px 15px 25px;
    flex-grow: 1;
}

.page-lottery__blog-item-date {
    font-size: 0.85em;
    color: #aaa;
    margin: 0 25px 25px 25px;
    display: block;
}

.page-lottery__view-all-button-container {
    text-align: center;
    margin-top: 60px;
}

/* Final CTA Section */
.page-lottery__final-cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--secondary-color);
    color: var(--text-color-light);
}

.page-lottery__final-cta-section .page-lottery__section-title {
    color: var(--primary-color);
    text-shadow: none;
}

.page-lottery__final-cta-section .page-lottery__text-block {
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .page-lottery {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-lottery__section-title {
        font-size: 2.2em;
        margin-bottom: 30px;
    }

    .page-lottery__main-title {
        font-size: 2.5em;
        margin-bottom: 20px;
    }

    .page-lottery__title-description {
        font-size: 1.1em;
        margin-bottom: 30px;
    }

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

    .page-lottery__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-lottery__video-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .page-lottery__video-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }
    
    .page-lottery__video-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-lottery__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 8px;
        overflow: hidden !important;
    }
    
    .page-lottery__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 8px;
        object-fit: contain;
    }
    
    .page-lottery__video-cta {
        margin-top: 25px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .page-lottery__play-now-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 15px 30px !important;
        font-size: 1.1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-lottery__introduction-section,
    .page-lottery__game-types-section,
    .page-lottery__advantages-section,
    .page-lottery__brand-section,
    .page-lottery__faq-section,
    .page-lottery__blog-section,
    .page-lottery__final-cta-section {
        padding: 40px 15px;
    }

    .page-lottery__game-cards,
    .page-lottery__advantages-grid,
    .page-lottery__brand-content,
    .page-lottery__blog-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-lottery__card,
    .page-lottery__advantage-item,
    .page-lottery__brand-item,
    .page-lottery__blog-item {
        padding: 25px;
    }

    .page-lottery__card-image,
    .page-lottery__blog-image {
        height: 180px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-lottery__card-title {
        font-size: 1.5em;
    }

    .page-lottery__advantage-title,
    .page-lottery__brand-subtitle {
        font-size: 1.4em;
    }

    .page-lottery__blog-item-title {
        font-size: 1.3em;
        margin-left: 15px;
        margin-right: 15px;
    }

    .page-lottery__blog-item-excerpt,
    .page-lottery__blog-item-date {
        margin-left: 15px;
        margin-right: 15px;
    }

    .page-lottery__faq-question {
        padding: 18px 20px;
    }

    .page-lottery__faq-question h3 {
        font-size: 1.1em;
    }

    .page-lottery__faq-toggle {
        font-size: 24px;
        width: 25px;
        height: 25px;
    }

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

    .page-lottery__faq-item.active .page-lottery__faq-answer {
        padding: 20px !important;
    }

    /* Ensure all images are responsive and do not overflow */
    .page-lottery img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-lottery__container, .page-lottery__game-cards, .page-lottery__advantages-grid, .page-lottery__brand-content, .page-lottery__blog-list, .page-lottery__cta-buttons, .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-left: 0;
        padding-right: 0;
    }
    .page-lottery__video-container {
        padding-left: 15px;
        padding-right: 15px;
    }
}