/* style/lottery.css */

:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #000080; /* Dark Blue */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f8f9fa;
    --bg-dark: var(--dark-bg-1, #0d0d0d); /* Inherit from shared, fallback to dark grey */
    --card-bg-light: #ffffff;
    --card-bg-dark: rgba(255, 255, 255, 0.1);
    --border-color: #e0e0e0;
}

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

.page-lottery__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    color: var(--text-light);
    background-color: var(--secondary-color);
    overflow: hidden;
}

.page-lottery__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
}

.page-lottery__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.page-lottery__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

.page-lottery__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-lottery__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

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

.page-lottery__btn-primary,
.page-lottery__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    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; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

.page-lottery__btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

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

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

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

.page-lottery__intro-section,
.page-lottery__guide-section,
.page-lottery__promotions-section,
.page-lottery__faq-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 60px 0;
}

.page-lottery__game-types,
.page-lottery__tips-section,
.page-lottery__security-section,
.page-lottery__conclusion-section {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 60px 0;
}

.page-lottery__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.page-lottery__section-text {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.page-lottery__video-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-lottery__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

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

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

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

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

.page-lottery__card-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-lottery__cta-text {
    margin-top: 40px;
    font-style: italic;
}

.page-lottery__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-lottery__guide-item {
    background-color: var(--card-bg-light);
    color: var(--text-dark);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-lottery__guide-step-title {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-lottery__guide-step-description {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.page-lottery__guide-btn {
    align-self: flex-end;
}

.page-lottery__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-lottery__tips-item {
    background-color: var(--card-bg-dark);
    color: var(--text-light);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-lottery__tips-heading {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-lottery__tips-description {
    font-size: 1em;
}

.page-lottery__tips-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-lottery__promo-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-lottery__promo-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

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

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

.page-lottery__feature-item {
    background-color: var(--card-bg-dark);
    color: var(--text-light);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-lottery__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: brightness(1.2);
}

.page-lottery__feature-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-lottery__feature-description {
    font-size: 1em;
}

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

.page-lottery__faq-item {
    background-color: var(--card-bg-light);
    color: var(--text-dark);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.page-lottery__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--secondary-color);
    transition: background-color 0.3s ease;
}

.page-lottery__faq-question:hover {
    background-color: #f0f0f0;
}

.page-lottery__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-lottery__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 1em;
    color: var(--text-dark);
}

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

.page-lottery__conclusion-section {
    text-align: center;
    padding: 80px 0;
}

.page-lottery__conclusion-cta {
    margin-top: 40px;
    font-size: 1.2em;
    padding: 18px 35px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-lottery__hero-title {
        font-size: 2.8em;
    }

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

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

    .page-lottery__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-lottery__hero-title {
        font-size: 2.2em;
    }

    .page-lottery__hero-description {
        font-size: 1em;
    }

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

    .page-lottery__btn-primary,
    .page-lottery__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-lottery__intro-section,
    .page-lottery__game-types,
    .page-lottery__guide-section,
    .page-lottery__tips-section,
    .page-lottery__promotions-section,
    .page-lottery__security-section,
    .page-lottery__faq-section,
    .page-lottery__conclusion-section {
        padding: 40px 0;
    }

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

    .page-lottery__section-text {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .page-lottery__video-wrapper {
        margin: 30px auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
        overflow: hidden !important;
    }

    .page-lottery__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-lottery__grid-3-cols,
    .page-lottery__promotion-grid,
    .page-lottery__security-features,
    .page-lottery__tips-list {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .page-lottery__card,
    .page-lottery__promo-card,
    .page-lottery__feature-item,
    .page-lottery__tips-item,
    .page-lottery__guide-item {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-lottery__card-image,
    .page-lottery__promo-image,
    .page-lottery__feature-icon,
    .page-lottery__tips-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-lottery__card-title,
    .page-lottery__promo-title,
    .page-lottery__feature-title,
    .page-lottery__tips-heading {
        font-size: 1.3em;
    }

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

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

    .page-lottery__faq-item.active .page-lottery__faq-answer {
        padding: 15px 20px;
    }
    
    .page-lottery__cta-buttons,
    .page-lottery__button-group,
    .page-lottery__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;
    }
}

@media (max-width: 480px) {
    .page-lottery__hero-title {
        font-size: 1.8em;
    }

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