/* Blog Page Specific Styles */

/* Add your blog page specific CSS here */
.c-cat-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    z-index: 1 !important;
    align-self: flex-start;
}

.categories-list a.category-filter-item:before {
    content: "";
    width: 100%;
    height: 100%;
    background: linear-gradient(9deg, #1129477a, #11294700);
    position: absolute;
    z-index: 0;
}
.categories-list a.category-filter-item:after,
.categories-list a.category-filter-item.active:after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    background: linear-gradient(9deg, #112947, #11294780);
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.categories-list a.category-filter-item:hover:after,
.categories-list a.category-filter-item.active:after {
    opacity: 1;
}

.categories-filter {
    padding: 20px;
    background-color: #f7f7f7;
    border-radius: 12px;
}
.category-image {
    min-height: 80px;
    background-size: 100%;
}
a.category-filter-item {
    position: relative;
}
.categories-filter .category-item:not(:last-child) {
    margin-bottom: 12px;
}
span.category-name {
    color: #fff;
    font-size: 20px !important;
    font-weight: 500;
    line-height: 1em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100%;
    text-align: center;
    padding: 20px;
    line-height: 1.1em;
}
.categories-list a.category-filter-item:not(:last-child) {
    margin-bottom: 12px;
}
.categories-list a.category-filter-item {
    display: inherit;
    border-radius: 12px;
    overflow: hidden;
}

a.category-filter-item.active {
	scale: 1.02;
	transition: all .3s;
}
a.category-filter-item, a.category-filter-item.active {
    transition: all .3s;
}
a.category-filter-item:hover {
    scale: 1.02;
    transition: all .3s;
}

.categories-list a.category-filter-item:before {
    background-color: rgb(19 56 104 / 50%);
}
.categories-filter h2.categories-title {
    font-size: 24px;
    color: #2c2a2a;
    font-weight: 500;
    letter-spacing: -1px;
    margin: 0;
    padding-bottom: 15px;
}

/* ************ */

.post-grid article {
    margin-bottom: 30px;
}
.post-grid .post-cat a.post-category-link {
    background: hsl(221deg 97% 54% / 11%);
    border-radius: 100px;
    color: #82B4FF;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
    border: 1px solid transparent;
    padding: 5px 20px;
    transition: all 0.2s ease-in-out;
}
.post-grid .post-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.post-grid .post-featured-image {
    margin-bottom: 20px;
}
.post-grid  img.post-image {
    aspect-ratio: 8 / 5.3;
    object-fit: cover;
    border-radius: 10px;
}
.post-grid .post-title-wrap a h2.post-title {
    font-size: 20px;
    color: #2A303A;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 20px;
}
.post-grid p.post-excerpt {
    color: #4A5565;
    font-size: 16px;
    margin-bottom: 20px !important;
}
.post-grid .post-meta {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 5px;
}
.post-grid .post-author {
    font-size: 16px;
    color: #2A303A;
    font-weight: 500;
}
.post-grid .post-date {
    color: #4A5565;
    line-height: 1em;
}
.post-grid-pagination {
    margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}
.post-grid-pagination a.load-more-btn {
    font-size: 16px;
    color: #fff;
	font-weight: 600;
    background-color: #273E5B;
    padding: 11px 29px;
    border-radius: 100px;
    border: 1px solid #273e5b;
	transition: all 0.2s ease-in-out;
}
.post-grid-pagination a.load-more-btn:hover {
    color: #273E5B;
    background-color: #fff;
    border: 1px solid #273e5b;
}
.post-grid-pagination a.older-entries-btn {
	color: #273E5B;
	font-size: 16px;
	padding: 11px 29px;
	font-weight: 600;
	border-radius: 100px;
	border: 1px solid #273e5b;
	transition: all 0.2s ease-in-out;
}
.post-grid-pagination a.older-entries-btn:hover {
	color: #fff;
	background-color: #273E5B;
}


.post-grid-pagination {
	display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    row-gap: 20px;
    column-gap: 30px;
    flex-wrap: wrap;
}
.post-grid-pagination .pagination-showing-text {
    width: 100%;
    text-align: center;
    font-size: 16px;
    line-height: 1.1em;
    color: #2A303A;
	font-weight: 500;
}
.post-grid-pagination .pagination-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}
.post-grid-pagination .pagination-buttons a.pagination-btn, 
.post-grid-pagination .pagination-buttons span.pagination-btn.pagination-page {
    padding: 6px 16px;
    border: 1px solid #273e5b29;
    color: #273E5B;
    font-size: 15px;
    font-weight: 500;
    border-radius: 2px;
    transition: all 0.2s ease-in-out;
}
.post-grid-pagination .pagination-buttons span.pagination-btn.pagination-active {
    background-color: #273E5B;
    color: #fff;
}
.post-grid-pagination .pagination-buttons .pagination-btn:hover {
    background-color: #F3F4F8;
}
.post-grid-pagination .pagination-buttons .pagination-disabled {
    display: none;
}
span.pagination-ellipsis {
    font-size: 25px;
}
@media screen and (max-width: 1024px) {
	span.category-name {
		font-size: 17px !important;
	}
	.category-image {
		min-height: 65px;
	}

}

@media screen and (max-width: 767px) {
	.category-image {
		min-height: 80px;
	}
    .categories-filter h2.categories-title {
        text-align: center;
    }
	.post-grid .post-title-wrap a h2.post-title {
		text-align: center;
	}
	.post-grid p.post-excerpt {
		text-align: center;
	}
	.post-grid .post-meta {
		align-items: center;
	}
	.post-grid .post-cat {
		justify-content: center;
	}
	.post-grid-pagination {
		margin-top: 45px;
		gap: 20px;
	}
	.post-grid-pagination a.load-more-btn {
		font-size: 15px;
		padding: 10px 25px;
	}
	.post-grid-pagination a.older-entries-btn {
		font-size: 15px;
		padding: 10px 25px;
	}
	.categories-list {
		display: grid;
		grid-template-columns: 48% 48%;
		column-gap: 30px;
		justify-content: space-around;
	}
	.categories-filter h2.categories-title {
		text-align: center;
		padding-bottom: 30px;
	}
	.categories-list {
		column-gap: 20px;
	}
}

@media screen and (max-width: 555px) {
	.post-grid-pagination .pagination-buttons a.pagination-btn, 
	.post-grid-pagination .pagination-buttons span.pagination-btn.pagination-page {
		padding: 6px 12px;
		font-size: 12px;
	}
	.post-grid-pagination .pagination-showing-text {
		font-size: 14px;
	}
	.post-grid .post-cat a.post-category-link {
		font-size: 12px;
		padding: 4px 12px;
	}
}

@media screen and (max-width: 530px) {
	.categories-list {
		grid-template-columns: 100%;
	}

}