
/* ==========================================================
   GLOBAL
========================================================== */

.main-blog-listing-wrapper {
	width: 100%;
	padding: 70px 0 100px;
	background: #ffffff;
}

.middledatampc {
	width: 90%;
	max-width: 1440px;
	margin: 0 auto;
}


/* ==========================================================
   ARCHIVE HEADER
========================================================== */

.sp-archive-header {
	margin-bottom: 48px;
}

.sp-archive-heading {
	margin-bottom: 15px;
}

.sp-archive-label {
	display: inline-block;
	margin-bottom: 10px;
	color: #F6850C;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.sp-archive-header .page-title {
	margin: 0;
	padding: 0;
	color: #1E295C;
	font-size: 42px;
	font-weight: 700;
	line-height: 1.15;
}

.archive-description {
	max-width: 760px;
	color: #667085;
	font-size: 16px;
	line-height: 1.7;
}

.archive-description p {
	margin: 0;
}

.sp-blog-views {
    display: flex !important;
    
}

.main-blog-listing-wrapper .middledatampc .page-title {
    margin-top: 0 !important;
    margin-bottom: 3.5rem !important;
}

.wrap-blog-listing-two-col .right-col {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.post-views.entry-meta>span {
    margin-right: 2px !important;
}

/* ==========================================================
   MAIN TWO COLUMN LAYOUT
========================================================== */

.wrap-blog-listing-two-col {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 45px;
	align-items: start;
}


/* ==========================================================
   LEFT BLOG GRID
========================================================== */

.sp-blog-post-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}


/* ==========================================================
   BLOG CARD
========================================================== */

.sp-blog-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: #ffffff;
	border: 1px solid #E6E9EF;
	border-radius: 14px;
	overflow: hidden;

	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease,
		border-color 0.25s ease;
}

.sp-blog-card:hover {
	transform: translateY(-5px);
	border-color: #D9DEE8;
	box-shadow: 0 18px 40px rgba(30, 41, 92, 0.10);
}


/* ==========================================================
   CARD IMAGE
========================================================== */

.sp-blog-card-image {
	position: relative;
	display: block;
	width: 100%;
	height: 205px;
	overflow: hidden;
	background: #F3F5F7;
}

.sp-blog-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;

	transition:
		transform 0.4s ease;
}

.sp-blog-card:hover .sp-blog-card-image img {
	transform: scale(1.05);
}


/* ==========================================================
   CARD CONTENT
========================================================== */

.sp-blog-card-content {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 22px;
}


/* ==========================================================
   CATEGORY
========================================================== */

.sp-blog-card-category {
	margin-bottom: 10px;
}

.sp-blog-card-category a {
	color: #F6850C;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 1.2px;
	text-decoration: none;
	text-transform: uppercase;
}

.sp-blog-card-category a:hover {
	color: #1E295C;
}


/* ==========================================================
   TITLE
========================================================== */

.sp-blog-card-title {
	margin: 0 0 11px;
	padding: 0;

	font-size: 19px;
	font-weight: 700;
	line-height: 1.4;
}

.sp-blog-card-title a {
	color: #1E295C;
	text-decoration: none;

	transition:
		color 0.2s ease;
}

.sp-blog-card-title a:hover {
	color: #F6850C;
}


/* ==========================================================
   META
========================================================== */

.sp-blog-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;

	margin-bottom: 14px;

	color: #8B93A3;
	font-size: 10px;
	font-weight: 400;
	line-height: 1.5;
}

.sp-blog-author {
	color: #667085;
	font-weight: 600;
}

.sp-meta-dot {
	color: #C5CAD3;
}


/* ==========================================================
   DESCRIPTION
========================================================== */

.sp-blog-card-description {
	margin-bottom: 20px;

	color: #667085;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.7;
}


/* ==========================================================
   READ MORE
========================================================== */

.sp-blog-read-more {
	display: inline-flex;
	align-items: center;
	gap: 7px;

	margin-top: auto;

	color: #1E295C;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;

	transition:
		color 0.2s ease;
}

.sp-blog-read-more svg {
	transition:
		transform 0.2s ease;
}

.sp-blog-read-more:hover {
	color: #F6850C;
    text-decoration: none;
}

.sp-blog-read-more:hover svg {
	transform: translateX(4px);
}


/* ==========================================================
   SIDEBAR
========================================================== */

.right-col {
	position: sticky;
	top: 30px;
}

.sp-sidebar {
	display: flex;
	flex-direction: column;
	gap: 24px;
}


/* ==========================================================
   SIDEBAR CARD
========================================================== */

.sp-sidebar-card {
	padding: 25px;

	background: #ffffff;
	border: 1px solid #E6E9EF;
	border-radius: 14px;

	box-shadow:
		0 6px 25px rgba(30, 41, 92, 0.04);
}


/* ==========================================================
   SIDEBAR HEADING
========================================================== */

.sp-sidebar-heading {
	margin-bottom: 22px;
}

.sp-sidebar-label {
	display: block;
	margin-bottom: 7px;

	color: #F6850C;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 1.8px;
	text-transform: uppercase;
}

.sp-sidebar-heading h3 {
	margin: 0;
	padding: 0;

	color: #1E295C;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}


/* ==========================================================
   POPULAR POSTS
========================================================== */

.sp-popular-posts {
	display: flex;
	flex-direction: column;
}

.sp-popular-post {
	display: flex;
	gap: 13px;

	padding: 15px 0;

	border-bottom: 1px solid #EDF0F4;

	text-decoration: none;
}

.sp-popular-post:first-child {
	padding-top: 0;
}

.sp-popular-post:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}


/* Popular image */

.sp-popular-image {
	flex: 0 0 78px;

	width: 78px;
	height: 65px;

	overflow: hidden;

	border-radius: 8px;

	background: #F3F5F7;
}

.sp-popular-image img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;

	transition:
		transform 0.3s ease;
}

.sp-popular-post:hover .sp-popular-image img {
	transform: scale(1.06);
}


/* Popular content */

.sp-popular-content {
	min-width: 0;
	flex: 1;
}

.sp-popular-content h4 {
	margin: 0 0 7px;
	padding: 0;

	color: #1E295C;

	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;

	transition:
		color 0.2s ease;
}

.sp-popular-post:hover .sp-popular-content h4 {
	color: #F6850C;
}


/* Popular meta */

.sp-popular-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;

	color: #9299A8;

	font-size: 9px;
	line-height: 1.4;
}


/* ==========================================================
   CATEGORIES
========================================================== */

.sp-categories-list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sp-categories-list li {
	margin: 0;
	padding: 0;

	border-bottom: 1px solid #EDF0F4;
}

.sp-categories-list li:last-child {
	border-bottom: 0;
}

.sp-categories-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;

	padding: 13px 0;

	color: #344054;

	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;

	text-decoration: none;

	transition:
		color 0.2s ease,
		padding-left 0.2s ease;
}

.sp-categories-list li:first-child a {
	padding-top: 0;
}

.sp-categories-list li:last-child a {
	padding-bottom: 0;
}

.sp-categories-list a:hover {
	padding-left: 5px;
	color: #F6850C;
}


/* Category count */

.sp-category-count {
	display: flex;
	align-items: center;
	justify-content: center;

	min-width: 27px;
	height: 27px;

	padding: 0 7px;

	border-radius: 50px;

	background: #F4F6F8;

	color: #667085;

	font-size: 10px;
	font-weight: 600;

	transition:
		background 0.2s ease,
		color 0.2s ease;
}

.sp-categories-list a:hover .sp-category-count {
	background: #FFF1E4;
	color: #F6850C;
}


/* ==========================================================
   PAGINATION
========================================================== */

.sp-blog-pagination {
	margin-top: 45px;
}

.sp-blog-pagination ul {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;

	gap: 7px;

	margin: 0;
	padding: 0;

	list-style: none;
}

.sp-blog-pagination li {
	margin: 0;
	padding: 0;
}

.sp-blog-pagination a,
.sp-blog-pagination span {
	display: flex;
	align-items: center;
	justify-content: center;

	min-width: 40px;
	height: 40px;

	padding: 0 11px;

	border: 1px solid #E3E7ED;
	border-radius: 8px;

	background: #ffffff;

	color: #344054;

	font-size: 12px;
	font-weight: 600;

	text-decoration: none;

	transition:
		border-color 0.2s ease,
		background 0.2s ease,
		color 0.2s ease;
}

.sp-blog-pagination a:hover {
	border-color: #F6850C;
	color: #F6850C;
}

.sp-blog-pagination .current {
	border-color: #1E295C;
	background: #1E295C;
	color: #ffffff;
}


/* ==========================================================
   LARGE DESKTOP
========================================================== */

@media (max-width: 1300px) {

	.wrap-blog-listing-two-col {
		grid-template-columns: minmax(0, 1fr) 310px;
		gap: 32px;
	}

	.sp-blog-post-grid {
		gap: 22px;
	}

	.sp-blog-card-content {
		padding: 19px;
	}

}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1100px) {

	.main-blog-listing-wrapper {
		padding: 60px 0 80px;
	}

	.wrap-blog-listing-two-col {
		grid-template-columns: minmax(0, 1fr) 290px;
		gap: 25px;
	}

	.sp-blog-post-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.sp-blog-card-image {
		height: 210px;
	}

	.sp-archive-header .page-title {
		font-size: 38px;
	}

}

@media (max-width: 992px) {
    .wrap-blog-listing-two-col .left-col {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }
        .right-col {
        display: none !important;
    }
}


/* ==========================================================
   TABLET / SIDEBAR BELOW
========================================================== */

@media (max-width: 900px) {

	.wrap-blog-listing-two-col {
		grid-template-columns: 1fr;
	}

	.right-col {
		position: static;
	}

	.sp-sidebar {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
	}

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 650px) {

	.main-blog-listing-wrapper {
		padding: 45px 0 60px;
	}

	.middledatampc {
		width: calc(100% - 30px);
	}

	.sp-archive-header {
		margin-bottom: 35px;
	}

	.sp-archive-header .page-title {
		font-size: 32px;
	}

	.archive-description {
		font-size: 14px;
	}

	.sp-blog-post-grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.sp-blog-card-image {
		height: 220px;
	}

	.sp-blog-card-content {
		padding: 20px;
	}

	.sp-sidebar {
		grid-template-columns: 1fr;
	}

	.sp-sidebar-card {
		padding: 21px;
	}

    .main-blog-listing-wrapper .middledatampc .page-title {
    font-size: 25px !important;
    line-height: 1.2 !important;

    margin-top: 10px !important;
    margin-bottom: 0rem !important;
}

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 420px) {

	.sp-archive-header .page-title {
		font-size: 28px;
	}

	.sp-blog-card-image {
		height: 190px;
	}

	.sp-blog-card-title {
		font-size: 18px;
	}

	.sp-blog-card-content {
		padding: 18px;
	}

	.sp-blog-card-description {
		font-size: 12px;
	}

	.sp-sidebar-card {
		padding: 18px;
	}

}
