.podcast-terms {
    display: flex;
    flex-wrap: wrap;
}

.podcast-archive-main {
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: var(--hmt-primary-color-alpha10);
}

.podcast-archive-main h1,
.podcasts-container h2 {
    font-size: 30px;
}

.podcast-term-container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.podcast-term-container h1 {
    z-index: 111;
}
.podcast-term-container img {
    z-index: 111;
    margin: 0;
    border-radius: 30px 0px 0px 15px;
    width: 25%;
}

.podcast-term-info .description {
    width: 70%;
    text-align: justify;
    z-index: 1111;
}

.podcasts-container {
    margin-top: 15px;
}

.podcast-term-info {
    position: relative;
    z-index: 11111;
}

.podcast-terms .podcast-term-outer {
    padding: 10px;
    width: 25%;
}

.podcast-terms .podcast-term {
    display: block;
    max-width: 300px;
    height: 170px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    padding: 15px;
    width: 100%;
}

.podcast-terms .podcast-term .overlay,
.podcast-terms .podcast-term .overlay-hover,
.podcast-term-container .overlay {
    background: linear-gradient(45deg, #ffffff6b, #e7e7e71a);
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    position: absolute;
    z-index: 1;
    transition: all 0.3s;
}

.podcast-terms .podcast-term .overlay-hover {
    opacity: 0;
    background: linear-gradient(45deg, #ffffffc2, #e7e7e71a);
}

.podcast-terms .podcast-term:hover .overlay-hover {
    opacity: 1;
}

.podcast-terms .podcast-term h2 {
    font-size: 20px;
    color: white;
    font-weight: 700;
    width: 40%;
    line-height: 1.4;
}

.podcast-terms .podcast-term img {
    position: absolute;
    width: 50%;
    left: -10px;
    bottom: -30px;
    top: 40px;
    transform: rotate(-20deg);
    border-radius: 10px;
    box-shadow: 0 0 10px 0 rgb(0 0 0 / 35%);
    transition: all 0.3s;
    z-index: 10;
}

.podcast-terms .podcast-term:hover img {
    left: 10px;
    bottom: 0px;
    top: 12px;
    transform: rotate(0deg);
}

.podcasts {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

.podcasts .podcast-item-container {
    width: 20%;
    padding: 10px;    
}

.podcasts .podcast-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px 0 #0000000f;
    border-radius: 10px;
    overflow: hidden;
    padding: 5px;
    transition: all 0.3s;
}

.podcasts .podcast-item:hover {
    box-shadow: 0 0 10px 0 #0000002e;
}

.podcasts .podcast-item a {
    color: black;
    text-align: center;
    display: block;
}

.podcasts .podcast-item .podcast-title {
    margin: 5px 0px;
    padding: 0px 10px;
    height: 30px;
    overflow: hidden; /* make sure it hides the content that overflows */
    white-space: nowrap; /* don't break the line */
    text-overflow: ellipsis;
    direction: ltr;
}

.podcasts .podcast-item img {
    aspect-ratio: 1;
    border-radius: 10px 10px 0px 0px;
}

.podcasts .podcast-item .mejs-horizontal-volume-slider,
.podcasts .podcast-item .mejs-controls .mejs-volume-button,
.podcasts .podcast-item .mejs-controls a.mejs-horizontal-volume-slider {
    display: none;
}

.podcasts .podcast-item .mejs-controls .mejs-playpause-button button {
    margin-left: 0px;
}

@media(max-width: 1399px) {
    .podcast-terms .podcast-term:hover img {
        top: 20px;
    }
}

@media(max-width: 1199px) {
    .podcast-terms .podcast-term:hover img {
        top: 30px;
    }
}

@media(max-width: 991px) {
    .podcast-terms .podcast-term:hover img {
        top: 50px;
    }
}

.podcasts-container .top-bar {
    margin-bottom: 10px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.podcasts-container .top-bar input {
    line-height: 1.5;
    font-size: 1em;
    padding: 8px;
}

@media(max-width: 768px) {
    .podcasts-container .top-bar {
        flex-direction: column;
        padding: 10px;
    }

    .podcasts-container h2 {
        margin-left: auto;
    }

    .podcasts-container .top-bar form {
        margin-right: auto;
        margin-top: 15px;
    }
    .podcast-terms .podcast-term-outer {
        width: 100%;
    }
    .podcast-term-container {
        padding-top: 10%;
        padding-bottom: 10%;
        flex-direction: column;
    }
    .podcast-term-info .description {
        width: 90%;
        margin-top: 12px;
    }
    .podcast-term-container h1 {
        font-size: 24px;
    }
    .podcast-term-info .description .text {
        font-size: 16px;
        line-height: 2;
    }
    .podcast-term-container img {
        width: 90%;
        border-radius: 10px;
    }
    .podcast-terms .podcast-term {
        max-width: 100%;
    }
    .podcast-terms .podcast-term:hover img {
        top: 10px;
    }
    .podcasts .podcast-item-container {
        width: 50%;
    }
}


.podcast-term-info .btn-back {
    font-weight: 500;
    font-size: 14px;
    background-color: darkslategray;
    color: white;
    margin-top: 10px;
}

.podcasts-container .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 30px;
    margin-bottom: 30px;
}

.podcasts-container .pagination .page-numbers {
    background-color: black;
    margin: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    line-height: 1;
    background-color: var(--hmt-accent-color);
    border: 2px solid var(--hmt-accent-color);
    border-radius: 7px;
    transition: background-color .3s ease-in-out;
}

.podcasts-container .pagination a.page-numbers:hover {
    background-color: #ffffff;
    color: var(--hmt-accent-color);
}

.podcasts-container .pagination .page-numbers.current {
    background-color: white;
    border: 2px solid var(--hmt-accent-color);
    color: var(--hmt-accent-color);
}

.podcasts-container .pagination .page-numbers.prev,
.podcasts-container .pagination .page-numbers.next {
    width: 60px;
}