/* ==========================================================================
   Post Listing module
   ========================================================================== */

.post-listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 40px 0 80px;
}
.post-listing-grid.cols-1 { grid-template-columns: 1fr; }
.post-listing-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.post-listing-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.post-listing-card {
    background: var(--skin-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.post-listing-card a:hover img,
.post-listing-card a:focus img {
	transform: scale(1.03);
 	transition: all ease-in-out 0.3s;
}
.post-listing-img-wrap {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--skin-grey-5);
}
.post-listing-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.post-listing-body { padding: 24px; }
.post-listing-date {
    font-family: var(--font-copy);
    font-size: 14px;
    color: var(--skin-grey-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.post-listing-body h3 { font-size: 22px; line-height: 28px; margin: 8px 0 12px; }
.post-listing-body h3 a { color: var(--skin-black); text-decoration: none; }
.post-listing-body p {
    font-family: var(--font-copy);
    font-size: 16px;
    line-height: 24px;
    color: var(--skin-dark-grey);
    margin-bottom: 16px;
}
.post-listing .no-results { text-align: center; color: var(--skin-dark-grey); }

.post-listing-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.post-listing-pagination a,
.post-listing-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--skin-grey-5);
    color: var(--skin-black);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
}
.post-listing-pagination .current { background: var(--skin-red); color: var(--skin-white); }
.post-listing-pagination a:hover { background: var(--skin-red); color: var(--skin-white); }

@media (max-width: 991.98px) {
    .post-listing-grid,
    .post-listing-grid.cols-3,
    .post-listing-grid.cols-4 {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 767px) {
    .post-listing-grid,
    .post-listing-grid.cols-2,
    .post-listing-grid.cols-3,
    .post-listing-grid.cols-4 {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   Post Details
   ========================================================================== */

.post-header {
	display: flex;
    gap: 80px;
    align-items: center;
	background: var(--skin-grey-5);
} 

.post-summary {
	display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
	gap: 20px;
	padding: 50px 0 50px 50px;  
}

.post-details-image {
	flex-shrink: 0;
	width: 52.5%;
}

.post-details-image img {
	display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-details-content .skin-wrapper {
	padding-bottom: 0;
}

.post-details-content .skin-inner {
	padding: 0;
}

.post-details-content .post-btn,
.post-details-content .elementor-button,
.post-details-content .post-btn span {
	font-size: var(--font-size);
	font-weight: 600;
}

.post-details-content .post-btn a.elementor-button {
	background: var(--skin-red);
	border: 1px solid var(--skin-red);
}

.post-details-content .post-btn a.elementor-button:after {
	content: "\f105";
	font-weight: 900;
	font-family: "Font Awesome 6 Free";
    padding-left: 5px;
	margin-top: -3px;
}

.post-details-content .post-btn a.elementor-button:hover,
.post-details-content .post-btn a.elementor-button:focus {
	background: var(--skin-white);
	color: var(--skin-red);
}
.post-details-content .post-btn a.elementor-button:hover:after svg,
.post-details-content .post-btn a.elementor-button:focus:after {
	color: var(--skin-red);
}

.post-details-category-pill {
	background: var(--skin-red);
	line-height: 1.4em;
	font-size: 0.875em;
	padding: 8px 20px 6px;
	display: inline-flex;
	margin: 0 10px 10px 0;
	text-decoration: none;
	color: var(--skin-white);
	border-radius: 22px;
}

.post-details-footer {
	margin-top: var(--t40);
	padding-top: 20px;
	border-top: 1px solid var(--skin-grey-5);
}

@media (max-width: 767px) {
	.post-header {
		flex-direction: column;
		gap: 40px;
	}
	
	.post-header .post-details-image {
		order: 1;
		width: 100%;
	}
	.post-header .post-summary {
		order: 2;
		padding: 10px 20px;
	}
	
	.post-details-content .skin-inner {
		padding: 0;
	}
}
