.download-button-wrapper .s3mvlink a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073aa; /* Button color */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    transition: background-color 0.3s ease;
    position: relative;
}
.download-button-wrapper i{
    display:none;
}
/** 
 * .download-button-wrapper .s3mvlink a::before {
        content: "Download"; 
        display: block;
    }
*/

.download-button-wrapper .s3mvlink a:hover {
    background-color: #005a8e; /* Darker button on hover */
}


.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    list-style: none;
}

.pagination .page-numbers {
    display: inline-block;
    margin: 0 3px;
    padding: 6px 12px;
    color: #0075be;
    background-color: #fff;
    border: 1px solid #0075be;
    border-radius: 0;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.pagination .page-numbers.current {
    color: #fff;
    background-color: #0075be;
    border-color: #0075be;
    pointer-events: none; /* Disable click on the current page */
}

.pagination .page-numbers:hover {
    color: #fff;
    background-color: #0056b3;
    border-color: #0056b3;
    text-decoration: none;
}

.pagination .next,
.pagination .prev {
    font-weight: bold;
}

.pagination .next.page-numbers,
.pagination .prev.page-numbers {
    padding: 6px 12px;
}

.pagination .next.page-numbers:hover,
.pagination .prev.page-numbers:hover {
    background-color: #0075be;
    color: #fff;
    border-color: #0075be;
}


.s3m-wrapper {
	width: var(--theme-container-width)!important;
	max-width: var(--theme-normal-container-max-width);
	margin-left: auto;
	margin-right: auto;
}
.s3m-container {
	margin-top: 40px;
    display: flex;
    flex-direction: row;
}
.s3m-container .s3m-sidebar {
	flex: 1 1 25%;
}
.s3m-container .s3m-main {
	flex: 1 1 75%;
}
.s3m-container .s3m-sidebar-menu {
	position: sticky;
	top: 120px;
}
.s3m-container .s3m-sidebar-menu a {
	display: block;
	font-weight: bold;
	margin-bottom: 10px;
}
.s3m-container .s3m-sidebar-menu a.active {
	color: var(--theme-link-hover-color);
}
.s3m-container .s3m-search {
    margin-bottom: var(--wp--preset--spacing--60);
	display: flex;
	gap: 0.5rem;
}
.s3m-container .s3m-search input[type="text"] {
	background: #f1f1f1;
	border: none;
	min-height: auto!important;
	height: 3rem;
	line-height: 3rem;
	vertical-align: middle;
	flex: 8 1 0;
}
.s3m-container .s3m-search button {
	min-height: auto!important;
	padding: 0;
	height: 3rem;
	line-height: 3rem;
	vertical-align: middle;
	flex: 2 1 0;
}
.s3m-container .s3m-main .custom-post {
	display: block;
	background: #f8f8f8;
	padding: var(--theme-content-spacing);
    margin-bottom: var(--wp--preset--spacing--50);
}
.s3m-container .s3m-main .custom-post h3 {
	margin-bottom: 0;
}
.s3m-container .s3m-main .custom-post.type-video {
	background: #005b941a;
}
.s3m-container .s3m-main .custom-post:hover {
	background: #ececec;
}
.s3m-container .s3m-main .custom-post.type-video:hover {
	background: #005b9429;
}
.s3m-container .s3m-main .custom-post:hover .badge,
.s3m-container .s3m-main .custom-post.type-video:hover .badge {
	/* background: #fff; */
	/* color: var(--theme-heading-color); */
}
.s3m-container .s3m-main .custom-post .badge {
	vertical-align: middle;
    font-size: 16px;
    background: #838383;
	color: #fff;
    padding: 5px 10px;
    margin-right: 10px;
    font-weight: normal;
    border-radius: 4px;
}
.s3m-container .s3m-main .custom-post.type-video .badge {
    background: #4da8e3;
}
.s3m-container .s3m-single {
	background: #f8f8f8;
	padding: 20px 30px;
}
.s3m-container .s3m-single.type-video {
	background: #005b941a;
}
.s3m-container .s3m-single iframe {
	border: 0;
}
.s3m-container .s3m-back a {
	display: inline-block;
	margin-bottom: 10px;
}
	
@media only screen and (max-width: 767px) {
	.s3m-container {
		flex-direction: column;
	}
	.s3m-container .s3m-sidebar-menu {
		text-align: center;
		margin-bottom: var(--wp--preset--spacing--60);
	}
	.s3m-container .s3m-sidebar-menu a {
		font-size: 24px;
	}
	.s3m-container .s3m-search input[type="text"] {
		flex: 7 1 0;
	}
	.s3m-container .s3m-search button {
		flex: 3 1 0;
	}
}