/* sermon-list.css */

.sermon-buttons {
    display: flex;
    flex-direction: row;
    margin-top: 20px;
    gap: 20px;
}

@media (max-width: 768px) {
    .sermon-buttons {
        flex-direction: column;
        align-items: center;
    }
}

.sermon-buttons a,
.sermon-buttons .sermon-button {
    width: fit-content ;
    min-width: 250px;
    text-align: center;
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sermon-button {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sermon-list-wrapper {
    max-width: var(--wp--style--global--content-size);
    margin: 2rem auto;
    padding: 20px;
}

/* Filter Form */
.sermon-filter {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    flex-direction: row;
}

.sermon-filter-row {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.sermon-filter label {
    font-size: 14px;
    font-weight: 500;
    margin-right: 0.5rem;
    white-space: nowrap;
}

.sermon-filter select {
    padding: 5px 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    flex: 1;
    min-width: 120px;
}

/* Sermon List Table */
.sermon-list {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.sermon-header, .sermon-row {
    display: flex;
    width: 100%;
}

.sermon-header {
    background-color: #3a3a3a;
    font-weight: bold;
    border-bottom: 1px solid #e8e8e8;
    color: #fff;
}

.date .play {
    margin-left: .6rem;
}

.sermon-row:nth-child(even) {
    background-color: #d5d5d5;
}

.sermon-col {
    flex: 1;
    padding: 4px 10px;
    min-width: 120px;
    word-wrap: break-word;
    align-items: center;
    display: flex;
}

.sermon-col a {
    color: #0073aa !important;
    text-decoration: none !important;
}

.sermon-col a:hover {
    text-decoration: underline !important;
}

/* Pagination */
.sermon-pagination {
    margin-top: 20px;
    text-align: center;
}

.sermon-pagination .page-numbers {
    display: inline-block !important;
    padding: 5px 10px !important;
    margin: 0 5px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    color: #0073aa !important;
}

.sermon-pagination .page-numbers.current {
    background-color: #0073aa !important;
    color: #fff !important;
    border-color: #0073aa !important;
}

.sermon-pagination .page-numbers:hover {
    background-color: #f5f5f5 !important;
}

/* Single Sermon Page */
.sermon-description {
    margin: 10px 0;
}

.sermon-single {
    max-width: 1080px;
    margin: 20px auto;
    padding: 20px;
}

.sermon-single p {
    padding-bottom: 1rem !important;
}

.sermon-title {
    margin-top: 0;
}

.sermon-date, .sermon-speaker, .sermon-topic {
    margin: 5px 0;
}

/* Responsive Adjustments */
@media (max-width: 996px) {
    .sermon-header, .sermon-col.topics {
        display: none;
    }
    .sermon-row {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1rem 0;
    }
    .sermon-filter {
        flex-direction: row;
        justify-content: flex-start;
    }

    .sermon-filter-row {
        flex: 0 0 calc(50% - 10px);
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .sermon-buttons {
        flex-direction: column;
        align-items: center;
    }
    .sermon-filter-row {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
/* Sermon video (1.3) */
.sermon-video {
    margin: 20px 0;
}

.sermon-video-youtube iframe,
.sermon-video-oembed iframe {
    display: block;
    width: 100%;
    max-width: 960px;
    height: auto;
    aspect-ratio: 16 / 9;
}

.sermon-filter-clear a {
    font-size: 14px;
}
