/* Carousel Styles */
.lottery-carousel-wrapper-5e035efe {
    position: relative;
    padding: 20px 0 40px; /* space for pagination */
    max-width: 100%;
}

.lottery-swiper-5e035efe {
    padding: 20px 5px !important; /* give cards breathing room for shadows/badges */
}

.lottery-swiper-5e035efe .swiper-wrapper {
    align-items: stretch; /* MAKE CARDS EQUAL HEIGHT */
}

.lottery-swiper-5e035efe .swiper-slide {
    height: auto; /* ALLOW EQUAL HEIGHT */
}

.lottery-swiper-5e035efe .swiper-button-next,
.lottery-swiper-5e035efe .swiper-button-prev {
    color: #b90000;
    background: rgba(255,255,255,0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.lottery-swiper-5e035efe .swiper-button-next:after,
.lottery-swiper-5e035efe .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}
.lottery-swiper-5e035efe .swiper-pagination-bullet-active {
    background: #b90000;
}

/* Card Styles */
.lottery-card-5e035efe {
    position: relative;
    border-radius: 8px; /* Slightly smaller radius */
    overflow: hidden;
    background-color: #3b3e46;
    color: #fff;
    font-family: sans-serif;
    text-align: center;
    border: 1px solid #2a2a2a;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* Slightly smaller shadow */
    height: 100%; /* Important for equal heights */
    display: flex;
    flex-direction: column;
}
.lottery-badge-5e035efe {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #000066;
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 12px;
    z-index: 2;
    border: 2px solid #fff;
    white-space: nowrap;
}
.lottery-image-5e035efe {
    height: 160px; /* Reduced image height for overall smaller card */
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 1px solid #555;
    flex-shrink: 0;
}
.lottery-content-5e035efe {
    padding: 15px; /* Reduced padding */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.lottery-price-5e035efe {
    background: #fff;
    color: #000;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: bold;
    margin-bottom: 8px;
    margin-top: -25px; /* Adjust for smaller price badge */
    position: relative;
    z-index: 2;
    border: 2px solid #fff;
    align-self: center;
    font-size: 14px;
}
.lottery-price-5e035efe del {
    color: #999;
    font-weight: normal;
    margin-right: 5px;
    font-size: 0.9em;
}

/* Remove explicit font-size from CSS to let Elementor settings take over */
.lottery-title-5e035efe {
    margin: 8px 0;
    font-weight: bold;
    color: #fff;
}
.lottery-alt-5e035efe {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 15px;
    min-height: 18px;
}
.lottery-progress-wrap-5e035efe {
    text-align: left;
    margin-bottom: 15px;
    margin-top: auto;
}
.lottery-progress-text-5e035efe {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 6px;
}
.lottery-progress-bar-5e035efe {
    background: #fff;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 4px;
}
.lottery-progress-fill-5e035efe {
    background: #500000;
    height: 100%;
}
.lottery-progress-stats-5e035efe {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #aaa;
}
.lottery-btn-5e035efe {
    display: block;
    background: #b90000;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    transition: background 0.2s;
    margin-top: 10px;
}
.lottery-btn-5e035efe:hover {
    background: #900000;
}
.lottery-error-5e035efe {
    padding: 20px;
    background: #fff3f3;
    color: #d00;
    border-left: 4px solid #d00;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .lottery-swiper-5e035efe {
        padding: 5px 0 !important;
    }
    .lottery-image-5e035efe {
        height: 100px; /* shorter image for narrow cards */
    }
    .lottery-content-5e035efe {
        padding: 8px;
    }
    .lottery-badge-5e035efe {
        font-size: 8px;
        padding: 2px 6px;
        top: -6px;
    }
    .lottery-price-5e035efe {
        font-size: 8px; /* Further reduced */
        padding: 2px 6px;
        margin-top: -15px;
        margin-bottom: 6px;
    }
    /* Let Elementor Typography handle the title on mobile as well */
    .lottery-title-5e035efe {
        line-height: 1.1;
        margin: 4px 0;
        word-wrap: break-word;
        hyphens: auto;
    }
    .lottery-alt-5e035efe {
        font-size: 8px;
        margin-bottom: 6px;
    }
    .lottery-progress-text-5e035efe {
        font-size: 8px;
        margin-bottom: 2px;
    }
    .lottery-progress-bar-5e035efe {
        height: 6px;
    }
    .lottery-progress-stats-5e035efe {
        font-size: 7px;
    }
    .lottery-btn-5e035efe {
        font-size: 8px; /* Further reduced */
        padding: 6px 2px;
        margin-top: 6px;
    }
    /* Hide navigation arrows on mobile to save space */
    .lottery-swiper-5e035efe .swiper-button-next,
    .lottery-swiper-5e035efe .swiper-button-prev {
        display: none;
    }
}