/** Latest News Wrapper **/

.latest_news_wrapper {
	display: grid;
	grid-template-columns: repeat(auto-fit, var(--gtcw));
	grid-gap: 30px;
	justify-content: center;
}

.latest_news_holder {
	position: relative;
	border-radius: 16px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.08);
	border: none;
	overflow: hidden;
	background: white;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.latest_news_holder:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}

.latest_news_wrapper_img {
	width: 100%;
}

.latest_news_wrapper_img img {
	width: 100%;
	object-fit: cover;
	aspect-ratio: 16/9;
	margin: 0;
	display: block;
	border-radius: 0;
	transition: transform 0.4s ease;
}

.latest_news_holder:hover .latest_news_wrapper_img img {
	transform: scale(1.04);
}

.latest_news_wrapper_title h2 {
	font-size: 2rem;
	color: var(--bgdim);
	text-decoration: none;
	font-weight: 600;
	margin: 10px 7px;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	text-overflow: ellipse;
}

.latest_news_wrapper_footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 15px 7px;
	text-align: center;
	font-size: 14px;
}

.latest_footer_author p {
	color: var(--bgdim);
	width: 100%;
	display: flex;
	gap: 10px;
	justify-content: center;
	align-items: center;
	font-size: 15px;
}

.latest_footer_author p img {
	width: 25px;
	height: 25px;
	border-radius: 50%;
}

.latest_footer_category {
    width: max-content;
    font-size: 10px;
    background: var(--prigri);
    padding: 2px 9px;
    color: white;
    margin-left: 4px;
    position: absolute;
    top: 16px;
    left: 9px;
    border-radius: 23px;
}

.postgri {
	margin: 20px auto;
}

/**Pagination **/

.pagination {
	width: 50%;
	margin: 30px auto 0px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	height: 40px;
	font-size: 1.6rem;
	border-radius: var(--curve);
	color: var(--bgdim);
}

.pagination a,
.pagination span {
	display: inline-block;
	padding: 10px 18px;
	font-size: 15px;
	font-weight: 500;
	border: 1px solid #dcdcdc;
	border-radius: 6px;
	text-decoration: none;
	color: #333;
	background: #fff;
	transition: all 0.25s ease;
}

.pagination a:hover {
	border-color: #0074fc;
	color: #0074fc;
	background: #f0f8ff;
}

.pagination .current {
	background: #0074fc;
	color: #fff;
	border-color: #0074fc;
	cursor: default;
}

.pagination .prev,
.pagination .next {
	font-weight: 600;
	background: #f8f8f8;
}

.pagination .prev:hover,
.pagination .next:hover {
	background: #0074fc;
	color: #fff;
}

@media (max-width: 600px) {
	.pagination a,
	.pagination span {
		padding: 8px 12px;
		font-size: 14px;
	}
}

/* Small Mobile — max-width: 400px */

@media screen and (max-width: 400px) {

	:root {
		--gtcw: 321px;
	}

	.pagination {
		width: 90%;
		margin: 0px auto;
		display: flex;
		justify-content: center;
		align-items: center;
		gap: 10px;
		height: 40px;
		font-size: 1.6rem;
		border-radius: 39px;
		color: var(--bgdim);
	}

	/**Job Card **/

	.job_upper {
		margin: 0px 14px;
		max-width: 100%;
	}

	.job_upper img {
		max-width: 100% !important;
		border-radius: 12px;
	}

	.job_middle {
		align-items: center;
		text-align: center;
	}

	.job_bottom a button {
		background: var(--prigri);
		height: 40px;
		width: 86%;
		margin: 0px auto;
		text-align: center;
		justify-content: center;
		align-items: center;
		border: none;
		color: white;
		font-size: 1.6rem;
		font-weight: 600;
		border-radius: 45px;
		cursor: pointer;
		display: flex;
	}
}

.latest_news_wrapper_title h2 {
	font-size: 1.7rem;
}

.latest_news_wrapper_footer {
	padding: 0 12px 12px;
	margin: 8px 0 0;
}

.latest_news_wrapper_title {
	padding: 0 12px;
}

.lastes_news_middle {
	padding: 0 12px;
}
