.page-lottery {
    font-family: Arial, sans-serif;
    color: #FFFFFF;
    background-color: #100224;
}

.page-lottery__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding as per global rule */
    background-color: #017439; /* Use main color for hero background */
    overflow: hidden;
}

.page-lottery__hero-visual {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.page-lottery__hero-visual img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/5; /* Adjust aspect ratio for a banner-like feel */
}

.page-lottery__hero-content {
    text-align: center;
    padding: 30px 20px 50px;
    max-width: 900px;
    position: relative; /* Ensure content is above any decorative elements if needed */
    z-index: 1; /* Ensure text is above image if image is part of the same block */
}

.page-lottery__main-title {
    font-size: clamp(2rem, 5vw, 3.2rem); /* Use clamp for H1 font size */
    font-weight: 700;
    line-height: 1.2;
    color: #FFFF00; /* Yellow for main title, as per login/register font color */
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-lottery__hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #E0E0E0;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-lottery__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.page-lottery__btn--register {
    background-color: #C30808;
    color: #FFFF00;
}

.page-lottery__btn--login {
    background-color: #C30808;
    color: #FFFF00;
}

.page-lottery__btn--register:hover,
.page-lottery__btn--login:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.page-lottery__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 25px;
    padding-top: 40px;
}

.page-lottery__section-title--gradient {
    background: linear-gradient(90deg, #ff9500, #ff5e3a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.page-lottery__section-description {
    font-size: 1.1rem;
    color: #E0E0E0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.page-lottery__features-section,
.page-lottery__games-section,
.page-lottery__how-to-play-section,
.page-lottery__promotions-section,
.page-lottery__security-section,
.page-lottery__faq-section,
.page-lottery__final-cta-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

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

.page-lottery__feature-card {
    background-color: rgba(1, 116, 57, 0.2); /* Semi-transparent main color */
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(1, 116, 57, 0.4);
}

.page-lottery__feature-card:hover {
    transform: translateY(-5px);
    background-color: rgba(1, 116, 57, 0.3);
}

.page-lottery__feature-card img {
    width: 100%;
    height: auto;
    max-width: 250px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
    object-fit: cover;
}

.page-lottery__feature-title {
    font-size: 1.5rem;
    color: #FFFF00;
    margin-bottom: 10px;
}

.page-lottery__feature-text {
    font-size: 1rem;
    color: #E0E0E0;
    line-height: 1.5;
}

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

.page-lottery__game-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-lottery__game-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-lottery__game-card img {
    width: 100%;
    height: 200px; /* Fixed height for game cards for uniformity */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
}

.page-lottery__game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: #FFFFFF;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
}

.page-lottery__cta-wrapper {
    text-align: center;
    margin-top: 50px;
}

.page-lottery__btn--play {
    background: linear-gradient(90deg, #ff9500, #ff5e3a);
    color: #FFFFFF;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 30px;
}

.page-lottery__btn--play:hover {
    background: linear-gradient(90deg, #ff5e3a, #ff9500);
}

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

.page-lottery__step-card {
    background-color: rgba(1, 116, 57, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(1, 116, 57, 0.3);
}

.page-lottery__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #017439;
    color: #FFFFFF;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-lottery__step-title {
    font-size: 1.4rem;
    color: #FFFF00;
    margin-bottom: 15px;
}

.page-lottery__step-text {
    font-size: 1rem;
    color: #E0E0E0;
    line-height: 1.5;
    margin-bottom: 20px;
}

.page-lottery__btn--small {
    padding: 8px 18px;
    font-size: 0.9rem;
    border-radius: 20px;
    background-color: #83a1f2; /* Blue pill button */
    color: #FFFFFF;
}

.page-lottery__btn--small:hover {
    background-color: #688cec;
    transform: translateY(-1px);
}

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

.page-lottery__promo-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-lottery__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-lottery__promo-card img {
    width: 100%;
    height: 220px; /* Fixed height for promo images */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
}

.page-lottery__promo-title {
    font-size: 1.5rem;
    color: #FFFF00;
    margin: 20px 15px 10px;
}

.page-lottery__promo-text {
    font-size: 1rem;
    color: #E0E0E0;
    padding: 0 15px 20px;
    line-height: 1.5;
}

.page-lottery__promo-card .page-lottery__btn {
    margin-bottom: 25px;
    background-color: #017439;
    color: #FFFFFF;
    padding: 10px 25px;
    border-radius: 25px;
}

.page-lottery__promo-card .page-lottery__btn:hover {
    background-color: #005a2b;
}

.page-lottery__btn--all-promos {
    background-color: #C30808;
    color: #FFFF00;
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 30px;
}

.page-lottery__btn--all-promos:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-lottery__security-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 5px solid #017439;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1rem;
    color: #E0E0E0;
    line-height: 1.5;
}

.page-lottery__btn--responsible {
    background-color: #017439;
    color: #FFFFFF;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
}

.page-lottery__btn--responsible:hover {
    background-color: #005a2b;
}

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

.page-lottery__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-lottery__faq-question {
    padding: 18px 25px;
    font-size: 1.2rem;
    color: #FFFF00;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(1, 116, 57, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-lottery__faq-question:hover {
    background-color: rgba(1, 116, 57, 0.3);
}

.page-lottery__faq-answer {
    padding: 0 25px 18px;
    font-size: 1rem;
    color: #E0E0E0;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-lottery__faq-item.active .page-lottery__faq-answer {
    max-height: 200px; /* Adjust as needed */
    padding: 18px 25px;
}

.page-lottery__final-cta-section {
    background-color: #017439;
    text-align: center;
    padding: 80px 20px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.page-lottery__final-cta-section .page-lottery__section-title {
    color: #FFFFFF;
    padding-top: 0;
    margin-bottom: 20px;
}

.page-lottery__final-cta-section .page-lottery__section-description {
    color: #E0E0E0;
    margin-bottom: 40px;
}

.page-lottery__btn--large {
    background: linear-gradient(90deg, #ff9500, #ff5e3a);
    color: #FFFFFF;
    padding: 18px 45px;
    font-size: 1.2rem;
    border-radius: 35px;
}

.page-lottery__btn--large:hover {
    background: linear-gradient(90deg, #ff5e3a, #ff9500);
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 849px) {
    .page-lottery__hero-section {
        flex-direction: column;
    }
    .page-lottery__hero-visual img {
        aspect-ratio: 4/3;
    }
    .page-lottery__hero-content {
        padding: 20px 15px 30px;
    }
    .page-lottery__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-lottery__hero-description {
        font-size: clamp(0.95rem, 3.5vw, 1.1rem);
        margin-bottom: 20px;
    }
    .page-lottery__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-lottery__btn {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-lottery__section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        padding-top: 30px;
    }
    .page-lottery__section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .page-lottery__feature-card,
    .page-lottery__promo-card,
    .page-lottery__step-card {
        padding: 20px;
    }
    .page-lottery__feature-title,
    .page-lottery__promo-title,
    .page-lottery__step-title {
        font-size: 1.3rem;
    }
    .page-lottery__game-card img {
        
    }
    .page-lottery__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    .page-lottery__faq-answer {
        padding: 0 20px 15px;
    }
}

@media (max-width: 768px) {
    .page-lottery__features-grid,
    .page-lottery__games-grid,
    .page-lottery__steps-grid,
    .page-lottery__promotions-grid,
    .page-lottery__security-list {
        grid-template-columns: 1fr;
    }
    .page-lottery__features-section,
    .page-lottery__games-section,
    .page-lottery__how-to-play-section,
    .page-lottery__promotions-section,
    .page-lottery__security-section,
    .page-lottery__faq-section,
    .page-lottery__final-cta-section {
        padding: 40px 15px;
    }
    .page-lottery__hero-visual img,
    .page-lottery__feature-card img,
    .page-lottery__game-card img,
    .page-lottery__promo-card img {
        max-width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px;
        width: 100%;
        object-fit: cover;
    }
}

@media (max-width: 549px) {
    .page-lottery__main-title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }
    .page-lottery__section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    .page-lottery__hero-actions {
        gap: 10px;
    }
    .page-lottery__btn {
        width: 100%;
    }
    .page-lottery__btn--play,
    .page-lottery__btn--all-promos,
    .page-lottery__btn--large {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .page-lottery__game-card img {
        
    }
}