/* style/lottery.css */

/* Variables for consistency */
:root {
    --page-lottery-primary-color: #003366;
    --page-lottery-secondary-color: #FFD700;
    --page-lottery-accent-color: #DC143C;
    --page-lottery-text-dark: #333;
    --page-lottery-text-light: #f4f4f4;
    --page-lottery-bg-light: #ffffff;
    --page-lottery-bg-dark: #002244;
    --page-lottery-card-bg: #f9f9f9;
    --page-lottery-border-color: #eee;
}

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

.page-lottery .highlight {
    color: var(--page-lottery-accent-color);
    font-weight: bold;
}

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

.page-lottery__section-title {
    font-size: 2.8em;
    color: var(--page-lottery-primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

.page-lottery__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--page-lottery-secondary-color);
    border-radius: 2px;
}

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

/* Buttons */
.page-lottery__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    cursor: pointer;
    border: none;
}

.page-lottery__btn--primary {
    background-color: var(--page-lottery-accent-color);
    color: var(--page-lottery-text-light);
    box-shadow: 0 4px 10px rgba(220, 20, 60, 0.3);
}

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

.page-lottery__btn--secondary {
    background-color: var(--page-lottery-secondary-color);
    color: var(--page-lottery-primary-color);
    border: 2px solid var(--page-lottery-secondary-color);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

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

.page-lottery__btn--cta {
    background-color: var(--page-lottery-accent-color);
    color: var(--page-lottery-text-light);
    font-size: 1.2em;
    padding: 15px 30px;
    box-shadow: 0 6px 15px rgba(220, 20, 60, 0.4);
}

.page-lottery__btn--cta:hover {
    background-color: #c71236;
    transform: translateY(-3px);
}

.page-lottery__btn--detail {
    background-color: var(--page-lottery-primary-color);
    color: var(--page-lottery-text-light);
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-lottery__btn--detail:hover {
    background-color: #002a52;
}

.page-lottery__text-link {
    color: var(--page-lottery-primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-lottery__text-link:hover {
    color: var(--page-lottery-accent-color);
}

/* Hero Section */
.page-lottery__hero-section {
    background: linear-gradient(135deg, var(--page-lottery-primary-color) 0%, #004488 100%);
    color: var(--page-lottery-text-light);
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
}

.page-lottery__hero-content {
    max-width: 600px;
    text-align: left;
    padding: 0 20px;
}

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

.page-lottery__hero-title .highlight {
    color: var(--page-lottery-secondary-color);
}

.page-lottery__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-lottery__hero-image {
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-lottery__intro-section {
    padding: 60px 0;
    background-color: var(--page-lottery-bg-light);
    text-align: center;
}

.page-lottery__intro-section .page-lottery__text-content {
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.page-lottery__intro-section .page-lottery__btn {
    margin-top: 20px;
}

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

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

.page-lottery__game-card {
    background-color: var(--page-lottery-bg-light);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-lottery__game-card-image {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-lottery__game-card-title {
    font-size: 1.8em;
    color: var(--page-lottery-primary-color);
    margin-bottom: 15px;
}

.page-lottery__game-card-description {
    font-size: 1em;
    margin-bottom: 15px;
    color: #555;
}

.page-lottery__game-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-lottery__game-features li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
    color: #555;
}

.page-lottery__game-features li::before {
    content: '✓';
    color: var(--page-lottery-accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* How to Play Section */
.page-lottery__how-to-play-section {
    padding: 80px 0;
    background-color: var(--page-lottery-bg-light);
    text-align: center;
}

.page-lottery__steps-list {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    max-width: 800px;
    margin: 40px auto;
}

.page-lottery__steps-list li {
    counter-increment: step-counter;
    background-color: var(--page-lottery-card-bg);
    border-left: 5px solid var(--page-lottery-primary-color);
    margin-bottom: 25px;
    padding: 25px 30px 25px 70px;
    text-align: left;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    font-size: 1.1em;
    color: var(--page-lottery-text-dark);
}

.page-lottery__steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--page-lottery-secondary-color);
    color: var(--page-lottery-primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.page-lottery__steps-list li strong {
    color: var(--page-lottery-primary-color);
}

/* Why Choose Section */
.page-lottery__why-choose-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--page-lottery-bg-dark) 0%, #002244 100%);
    color: var(--page-lottery-text-light);
    text-align: center;
}

.page-lottery__why-choose-section .page-lottery__section-title {
    color: var(--page-lottery-secondary-color);
}

.page-lottery__why-choose-section .page-lottery__section-title::after {
    background-color: var(--page-lottery-accent-color);
}

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

.page-lottery__benefit-card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-lottery__benefit-card:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

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

.page-lottery__benefit-description {
    font-size: 1em;
    color: #c0c0c0;
}

.page-lottery__why-choose-section .page-lottery__benefits-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    margin-top: 60px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Detail Pages Section */
.page-lottery__detail-pages-section {
    padding: 60px 0;
    background-color: var(--page-lottery-bg-light);
    text-align: center;
}

.page-lottery__detail-card {
    background-color: var(--page-lottery-card-bg);
    border: 1px solid var(--page-lottery-border-color);
    border-radius: 10px;
    padding: 30px;
    margin: 40px auto;
    max-width: 800px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-lottery__detail-card-title {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.page-lottery__detail-card-title a {
    color: var(--page-lottery-primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-lottery__detail-card-title a:hover {
    color: var(--page-lottery-accent-color);
    text-decoration: underline;
}

.page-lottery__detail-card-description {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 25px;
}

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

.page-lottery__faq-list {
    max-width: 800px;
    margin: 40px auto;
}

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

.page-lottery__faq-question {
    font-size: 1.3em;
    color: var(--page-lottery-primary-color);
    padding: 20px 25px;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--page-lottery-card-bg);
    transition: background-color 0.3s ease;
}

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

.page-lottery__faq-question::after {
    content: '+';
    font-size: 1.5em;
    font-weight: bold;
    color: var(--page-lottery-secondary-color);
    transition: transform 0.3s ease;
}

.page-lottery__faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-lottery__faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: var(--page-lottery-bg-light);
    color: #555;
}

.page-lottery__faq-answer.active {
    max-height: 200px; /* Adjust as needed for content length */
    padding: 15px 25px 25px;
}

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

/* CTA Section */
.page-lottery__cta-section {
    background: linear-gradient(90deg, var(--page-lottery-primary-color) 0%, #004488 100%);
    color: var(--page-lottery-text-light);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-lottery__cta-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    object-fit: cover;
    opacity: 0.1;
    z-index: 0;
}

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

.page-lottery__cta-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--page-lottery-secondary-color);
}

.page-lottery__cta-description {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-lottery__hero-section {
        flex-direction: column;
        text-align: center;
    }

    .page-lottery__hero-content {
        text-align: center;
    }

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

    .page-lottery__hero-image {
        max-width: 100%;
        margin-top: 40px;
    }

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

    .page-lottery__game-grid {
        grid-template-columns: 1fr;
    }

    .page-lottery__benefits-grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 768px) {
    .page-lottery__hero-section,
    .page-lottery__intro-section,
    .page-lottery__game-types-section,
    .page-lottery__how-to-play-section,
    .page-lottery__why-choose-section,
    .page-lottery__detail-pages-section,
    .page-lottery__faq-section,
    .page-lottery__cta-section {
        padding: 40px 0;
    }

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

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

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

    .page-lottery__text-content,
    .page-lottery__game-card-description,
    .page-lottery__benefit-description,
    .page-lottery__detail-card-description {
        font-size: 0.95em;
    }

    .page-lottery__btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .page-lottery__steps-list li {
        padding: 20px 20px 20px 60px;
        font-size: 1em;
    }

    .page-lottery__steps-list li::before {
        width: 35px;
        height: 35px;
        font-size: 1.3em;
        left: 15px;
    }

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

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

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

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

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

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

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

    .page-lottery__benefit-title {
        font-size: 1.4em;
    }

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