/* style/lottery.css */
.page-lottery {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-lottery__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-lottery__section-subtitle {
    font-size: 1.2em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
}

.page-lottery__text-block {
    font-size: 1.1em;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-lottery a {
    color: #26A9E0;
    text-decoration: none;
}

.page-lottery a:hover {
    text-decoration: underline;
}

/* Hero Section */
.page-lottery__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

.page-lottery__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.page-lottery__hero-section .page-lottery__container {
    position: relative;
    z-index: 1;
}

.page-lottery__hero-title {
    font-size: 3.5em;
    color: #FFFFFF;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-lottery__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-lottery__btn-primary,
.page-lottery__btn-secondary,
.page-lottery__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
}

.page-lottery__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-lottery__btn-primary:hover {
    background-color: #1a7bbd;
    border-color: #1a7bbd;
    transform: translateY(-2px);
}

.page-lottery__btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.page-lottery__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #26A9E0;
    transform: translateY(-2px);
}

.page-lottery__btn-tertiary {
    background-color: #EA7C07; /* Login button color */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

.page-lottery__btn-tertiary:hover {
    background-color: #c96800;
    border-color: #c96800;
    transform: translateY(-2px);
}

/* Intro Section */
.page-lottery__intro-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Lighter dark background for contrast */
    color: #ffffff;
}

.page-lottery__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-lottery__content-wrapper p {
    flex: 1;
}

.page-lottery__image-content {
    flex: 1;
    border-radius: 10px;
    object-fit: cover;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Game Types Section */
.page-lottery__game-types-section {
    padding: 80px 0;
    background-color: #0a0a0a;
}

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

.page-lottery__card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: #ffffff;
    box-sizing: border-box;
}

.page-lottery__card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

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

.page-lottery__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-lottery__card-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* How to Play Section */
.page-lottery__how-to-play-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #ffffff;
}

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

.page-lottery__step-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    box-sizing: border-box;
}

.page-lottery__step-icon {
    width: 60px;
    height: 60px;
    background-color: #26A9E0;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin: 0 auto 20px auto;
}

.page-lottery__step-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-lottery__step-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Strategies Section */
.page-lottery__strategies-section {
    padding: 80px 0;
    background-color: #0a0a0a;
}

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

.page-lottery__strategy-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    box-sizing: border-box;
}

.page-lottery__strategy-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-lottery__strategy-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* Promotions Section */
.page-lottery__promotions-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #ffffff;
}

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

.page-lottery__promotion-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-lottery__promotion-image {
    max-width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-lottery__promotion-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-lottery__promotion-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-lottery__cta-bottom {
    text-align: center;
    margin-top: 40px;
}

/* Security Section */
.page-lottery__security-section {
    padding: 80px 0;
    background-color: #0a0a0a;
}

.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: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    box-sizing: border-box;
}

.page-lottery__feature-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-lottery__feature-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-lottery__faq-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-lottery__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-lottery__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-lottery__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFFFF;
    cursor: pointer;
    background-color: #26A9E0;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

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

.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;
    background-color: rgba(255, 255, 255, 0.05);
    color: #f0f0f0;
}

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

.page-lottery__faq-answer p {
    margin: 0;
    font-size: 1em;
}

/* Conclusion Section */
.page-lottery__conclusion-section {
    padding: 80px 0;
    background-color: #26A9E0;
    text-align: center;
    color: #FFFFFF;
}

.page-lottery__conclusion-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

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

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

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

    .page-lottery__content-wrapper {
        flex-direction: column;
    }

    .page-lottery__image-content {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .page-lottery__hero-section {
        min-height: 500px;
    }

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

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

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

    .page-lottery__btn-primary,
    .page-lottery__btn-secondary,
    .page-lottery__btn-tertiary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-lottery__container {
        padding: 0 15px;
    }

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

    .page-lottery__section-subtitle {
        font-size: 1em;
    }

    .page-lottery__text-block {
        font-size: 0.95em;
    }

    /* Mobile image responsive */
    .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__hero-section,
    .page-lottery__intro-section,
    .page-lottery__game-types-section,
    .page-lottery__how-to-play-section,
    .page-lottery__strategies-section,
    .page-lottery__promotions-section,
    .page-lottery__security-section,
    .page-lottery__faq-section,
    .page-lottery__conclusion-section,
    .page-lottery__content-wrapper,
    .page-lottery__grid-cards,
    .page-lottery__steps-grid,
    .page-lottery__strategy-grid,
    .page-lottery__promotion-grid,
    .page-lottery__security-features,
    .page-lottery__faq-list,
    .page-lottery__hero-buttons,
    .page-lottery__conclusion-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }

    .page-lottery__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    
    .page-lottery__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

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

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

}

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

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

    .page-lottery__btn-primary,
    .page-lottery__btn-secondary,
    .page-lottery__btn-tertiary {
        font-size: 0.9em;
        padding: 10px 15px;
    }
    .page-lottery__card-image,
    .page-lottery__promotion-image {
        height: 180px;
    }
}