/* Updated CSS for better compatibility with themes that don't support modern grid properties.
   We'll use float-based layout as a fallback.
*/

.bunny-sermons-grid::after {
    content: "";
    display: block;
    clear: both;
}

.bunny-sermon-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    width: 31%;
    margin: 1%;
    float: left;
}

/* Ensure responsive for smaller screens */
@media (max-width: 1024px) {
    .bunny-sermon-item { width: 48%; }
}
@media (max-width: 600px) {
    .bunny-sermon-item { width: 98%; }
}

.bunny-sermon-item .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.bunny-sermon-item .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.bunny-sermon-item h3 {
    font-size: 1.1em;
    margin: 10px 0 0 0;
}

.bunny-pagination {
    margin-top: 20px;
    text-align: center;
    clear: both;
}

.bunny-pagination a,
.bunny-pagination strong {
    display: inline-block;
    margin: 0 5px;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    background: #f0f0f0;
    color: #333;
}

.bunny-pagination strong {
    background: #333;
    color: #fff;
}
