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

.msp-main-container {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-sizing: border-box;
}

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

.sermon-group-main-container {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-sizing: border-box;
}

.msp-media-container {
    display: flex;
    flex-direction: column;
}

.msp-media-row, .msp-media-sermon-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

/* sermon card styles */
.msp-media-card {
    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;
}

.resource-title {
    font-weight: bold;
    margin: 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-wrap: wrap;
}

.media-title {
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: 10px;
    text-wrap: wrap;
}

/* sermon card styles */

/* sermon group */
.sermon-group-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sermon-group {
    box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.25);
    height: auto;
}

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

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

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

.media-date {
    margin: 10px;
}
/* sermon group */

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

}

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

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

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

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

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

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

.msp-sermon-detail-img {
    min-width: 250px;
    max-width: 650px;
    min-height: 145px;
    max-height: 455px;
    height: 360px;
    margin: 10px;
    padding-bottom: 12px;
}

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

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

.msp-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%;
}

.msp-filters-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.msp-filter-group {
    font-size: 14px;
    flex-grow: 1;
    padding: 8px;
}

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

.msp-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 */
.msp-filter-dropdown-toggle::after {
    content: "▼";
    font-size: 10px;
    margin-left: 8px;
}

.msp-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 */
.msp-filter-dropdown:hover .msp-filter-dropdown-content {
    display: block;
}

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

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

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

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

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

/* filters styles */

/* pagination styles */
.msp-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;
    padding: 20px;
}

.msp-pagination-info {
    margin-left: auto;
}

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

.msp-page-link {
    min-width: 32px;
    padding: 8px 12px;
}

.msp-page-link.msp-active {
}

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

.msp-page-link:not(.msp-active):hover {
}

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

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

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

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

    .msp-page-link.prev-next {
        padding: 6px 8px;
    }
}
/* pagination styles */

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

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

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

/* styles for no results message */
.msp-error {
    background-color: #fdecea;
    color: #b71c1c;
    border: 1px solid #f5c2c7;
    border-left: 5px solid #d32f2f;
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 6px;
    font-size: 14px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

@media (min-width: 1080px) {
    .msp-filter-group {
        width: calc(33.33% - 8px);
        max-width: calc(33.33% - 8px);
    }
}

@media (max-width: 1079px) and (min-width: 768px) {
    .msp-filter-group {
        width: calc(50% - 5px);
        max-width: calc(50% - 5px);
    }
}

@media (max-width: 767px) {
    .msp-media-row, .msp-media-sermon-row {
        flex-direction: column;
    }

    .msp-filter-group {
        width: 100%;
    }
}