.main-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.main-container {
    width: 100%;
    max-width: 100%;
    margin-left: calc(-50vw + 50%);
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-sizing: border-box;
}

.media-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

/* sermon card styles */
.media-card {
    flex: 1 1 calc(33.333% - 16px);
    min-width: 250px;
    max-width: 450px;
    margin: 10px;
    position: relative;
    box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.25);
    height: auto;
    cursor: pointer;

    min-height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #a6cdcb;
    text-decoration: none;
}

.media-title {
    font-weight: bold;
}

/* sermon card styles */

/* sermon group */
.sermon-group-main-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.sermon-group-main-container {
    width: 100%;
    max-width: 100%;
    margin-left: calc(-50vw + 50%);
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-sizing: border-box;
}

.sermon-group-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.sermon-group {
    flex: 1 1 calc(33.333% - 16px);
    min-width: 250px;
    max-width: 450px;
    margin: 10px;
    position: relative;
    box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.25);
    height: auto;
    /*border-radius: 10px;*/
}

.sermon-img {
    min-width: 250px;
    max-width: 450px;
    min-height: 145px;
    max-height: 255px;
    height: 255px;
    margin: 10px;
}

.sermon-img iframe {
    width: 100%;
    height: 100%;
}

.sermon-details {
    text-decoration: none;
}

.media-title {
    /*font-weight: bold;*/
    /*color: #212529;*/
    /*font-size: 16px;*/
    margin: 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.media-date {
    margin: 10px;
    /*font-weight: normal;*/
    /*color: #8b8b8b;*/
    /*font-size: 14px;*/
}
/* sermon group */

/* sermon detail */
.sermon-detail-container {

}

.sermon-detail {
    flex: 1 1 calc(33.333% - 16px);
    min-width: 250px;
    max-width: 450px;
    margin: 16px;
    position: relative;
    box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.25);
    height: auto;
    border-radius: 10px;
}

.sermon-detail-title {
    font-weight: bold;
    color: #212529;
    font-size: 24px;
    margin: 12px 10px 10px;
}

.media-detail-speaker {
    font-weight: normal;
    color: #212529;
    font-size: 20px;
    margin: 10px;
}

.media-detail-speaker span {
    font-weight: bold;
}

.media-detail-date {
    font-weight: normal;
    color: #212529;
    font-size: 18px;
    margin: 10px;
}

.media-detail-date span {
    font-weight: bold;
}

.sermon-detail-img {
    min-width: 250px;
    max-width: 450px;
    min-height: 145px;
    max-height: 255px;
    height: 255px;
    margin: 10px;
    padding-bottom: 12px;
}

.sermon-detail-img iframe {
    width: 100%;
    height: 100%;
}
/* sermon detail */

/* filters styles */
.search-container {
    margin-top: 16px;
}

.search-box input {
    height: 40px !important;
    padding: 5px 10px !important;
    font-size: 16px !important;
    outline: none !important;
    background: transparent !important;
    border: 1px solid #8b8b8b !important;
    border-radius: 5px;
    margin: 3px 0;
    width: 100%;
}

.filters-container {
    margin: 16px 0;
    align-items: center;
    gap: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}


.filter-group {
    flex: 1 1 calc(33.333% - 16px);
    min-width: 250px;
    max-width: 450px;
    font-size: 14px;
}

.filter-dropdown {
    position: relative;
    width: 100%;
}

.filter-dropdown-toggle {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    font-size: inherit; /* Hereda el tamaño del grupo */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Flecha indicadora - opcional */
.filter-dropdown-toggle::after {
    content: "▼";
    font-size: 10px;
    margin-left: 8px;
}

.filter-dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* whit this hover works */
.filter-dropdown:hover .filter-dropdown-content {
    display: block;
}

.filter-checkbox-label {
    display: block;
    padding: 8px 0;
    cursor: pointer;
    font-size: inherit; /* Hereda el tamaño del grupo */
    align-items: center;
}

.filter-checkbox-label input {
    margin-right: 8px;
}

.clear-filters-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.clear-filters {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    padding: 5px 0;
    text-decoration: none;
}

.clear-filters:hover {
    background-color: #f5f5f5;
}

/* filters styles */

/* pagination styles */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    font-size: 14px;
    color: #666;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .pagination-info {
        text-align: center;
        order: 2;
        margin-top: 10px;
    }

    .pagination-controls {
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
    }

    .page-link {
        padding: 6px 10px;
        min-width: 28px;
        font-size: 13px;
    }

    .page-link.prev-next {
        padding: 6px 8px;
    }
}

.pagination-info {

    margin-left: auto;
}

.pagination-controls {
    display: flex;
    gap: 5px;
}

.page-link {
    padding: 6px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    min-width: 32px;
    text-align: center;
}

.page-link.active {
    background-color: #30a49c;
    color: white;
    border-color: #30a49c;
}

.page-link.prev-next {
    font-weight: bold;
    padding: 6px 10px;
}

.page-link:not(.active):hover {
    background-color: #f5f5f5;
}


.page-link {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}

/* pagination styles */

/* detail styles */
/* detail styles */

.small {
    font-size: 0.875em;
    font-weight: 400;
}

.text-muted {
    color: #6c757d;
}

@media (max-width: 768px) {
    .filters-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .filters-container {
        grid-template-columns: 1fr;
    }
    .filter-group {
    }
}
