/* flaged posts */

.container {
	width: 90%;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 100px auto 50px;
	max-width: 1340px;
}

.container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--border-radius);
}




@media screen and (max-width:800px) {
	.container {
		flex-flow: column;
		align-items: center;
	}


}

.featured-post-card {
	width: 100%;
	height: 500px;
	display: block;
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: var(--primary-header-and-footer-logo);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.card-image {
	height: auto;
	display: block;
	object-fit: cover;
}


.card-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 24px;
	background: rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.overlay-top-content {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 20px;
}

.text-content h2 {
	font-family: var(--font);
	font-size: 24px;
	font-weight: 600;
	margin: 0 0 8px 0;
	line-height: 1.3;
}

.text-content p {
	font-family: var(--font);
	font-size: 14px;
	margin: 0;
	opacity: 0.8;
}

.arrow-icon {
	flex-shrink: 0;
}

.overlay-bottom-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 13px;
	opacity: 0.9;
}

.meta-left {
	display: flex;
	align-items: center;
	gap: 20px;
}

.author-info,
.date-info {
	display: flex;
	align-items: center;
	font-family: var(--font);
	gap: 8px;
}

.author-avatar {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.5);
}

.card-tags {
	display: flex;
	gap: 8px;
}

.tag {
	font-family: var(--font);
	padding: 4px 12px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.1);
	border-radius: 20px;
	font-size: 12px;
}


@media (max-width: 600px) {
	.text-content h2 {
		font-size: 20px;
	}

	.featured-post-card {
		width: 100%;
		height: 400px;

	}

	.overlay-bottom-meta {
		flex-direction: column;
		align-items: flex-start;
	}
}


.section-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
}


.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 40px;
	color: var(--primary-dark-text);
}

.section-header h2 {
	font-family: var(--font);
	font-size: 28px;
	font-weight: 600;
	margin: 0;
}

.view-all-button {
	font-family: var(--font);
	background-color: var(--primary-button-color);
	color: var(--primary-background);
	text-decoration: none;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	transition: background-color 0.2s ease;
}

.view-all-button:hover {
	filter: brightness(1.2);
}


.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}


.post-card {
	background-color: var(--primary-header-and-footer-logo);
	border-radius: 13px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.card-link {
	display: block;
	text-decoration: none;
}

.card-image-wrapper img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.card-content {
	padding: 20px;
}

.card-category {
	font-family: var(--font);
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
	color: var(--primary-button-color);
	text-transform: uppercase;
	margin-bottom: 12px;
}


.category-card-title {
	font-family: var(--font);
	font-size: 20px;
	font-weight: 600;
	color: var(--primary-dark-text);
	margin: 0 0 12px 0;
	line-height: 1.7;
	transition: color 0.2s ease;
}

.card-excerpt {
	font-family: var(--font);
	font-size: 14px;
	color: #6B7280;
	line-height: 1.7;
	margin: 0 0 20px 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card-meta {
	font-family: var(--font);
	font-size: 13px;
	color: #6B7280;
	display: flex;
	align-items: center;
}

.meta-separator {
	margin: 0 8px;
}


@media (max-width: 992px) {
	.posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.posts-grid article.post-card:nth-child(1) {
		grid-column: 1 / -1;
	}

}

@media (max-width: 600px) {
	.posts-grid {
		grid-template-columns: 1fr;
	}

	.section-header h2 {
		font-size: 24px;
	}
}

.gradient_border {
	border-radius: var(--border-radius);
	background: var(--border-gradient);
	position: relative;
	z-index: 0;
	padding: 5px;
}

.gradient_border::after {
	content: ' ';
	background: var(--secondary-background);
	border-radius: var(--border-radius);
	width: calc(100% - 2px);
	height: calc(100% - 2px);
	position: absolute;
	z-index: -1;
	top: 1px;
	left: 1px;
}




/* splide for scroll */

.title-part {
	font-family: var(--font);
	font-size: 24px;
	font-weight: 600;
}

.splide__arrow {
	width: 42px !important;
	height: 42px !important;
	border-radius: 4px !important;
	color: var(--primary-background) !important;
	background: var(--primary-button-color) !important;
	top: unset !important;
	bottom: 10px !important;

}


#post-slider {
	display: flex;
	width: 100%;
	flex-direction: column;
	align-items: center;
}

.post-slider {
	width: 100%;
}


.splide__track--draggable {
	width: 100% !important;
}

.splide__slide {
	overflow: hidden;
	width: calc(100% - 20px) !important;
	height: 380px;
	margin: 0 10px !important;
	padding: 15px;
	display: flex;
	justify-content: center;
	color: var(--primary-text-color);
	font-family: var(--font);
}

.splide__slide a {
	display: flex;
	flex-direction: column;
	color: var(--primary-text-color);
	text-decoration: none;
}

.splide__track {
	max-width: 1295px;
}

.post-thumbnail {
	width: 100%;
	height: 180px;
}

.post-thumbnail img {
	border-radius: 12px;
	width: 98%;

	object-fit: cover;
}

.post-content {
	margin: 10px 20px;
}

.post-content h2 {
	margin: 0;
	margin-bottom: 10px;
	font-size: 20px !important;
	line-height: 1.8;
}

.image_holder {
	height: 150px;
}

.post-content p {
	overflow: hidden;
	margin: 0;
	font-size: 14px !important;
	text-overflow: ellipsis;
	font-weight: 200;
	display: -webkit-box;
	-webkit-line-clamp: 5;
	/* number of lines to show */
	line-clamp: 5;
	line-height: 1.8;
	-webkit-box-orient: vertical;
}

.splide__pagination {

	position: relative !important;
	padding: 2em 1em !important;
}

.splide__pagination__page {
	background: var(--disable-button-color) !important;
}

.splide__pagination__page.is-active {
	width: 25px;
	border-radius: 4px;
	margin: 0px 5px;
	background: var(--primary-button-color) !important;
}


@media only screen and (min-width: 500px) {
	.splide__slide {
		width: 44% !important;
	}
}

@media only screen and (min-width: 750px) {
	.splide__slide {
		width: 31% !important;
	}

	.splide__arrow {

		bottom: 30px !important;

	}

}

@media only screen and (min-width: 1080px) {
	.splide__slide {
		width: 23% !important;
	}

	.splide__arrow {
		width: 42px !important;
		height: 42px !important;
		border-radius: 4px !important;
		background: var(--primary-button-color) !important;
		top: 50% !important;
		bottom: unset !important;

	}


	.splide__arrows--rtl .splide__arrow--prev {

		right: -4em !important;
	}

	.splide__arrows--rtl .splide__arrow--next {

		left: -4em !important;
	}

}



.title {
	width: 100%;
	color: var(--primary-text-color);
	position: relative;
	font-family: var(--font);
	z-index: 2;
	font-size: 12px;
	padding: 10px 10px 0;
	line-height: 30px;
}

.button {
	border: 1px solid var(--primary-button-color);
	border-radius: var(--border-radius);
	width: 100px;
	position: absolute;
	left: 10px;
	bottom: 10px;
	padding: 10px 0;
	background: none;
	color: var(--primary-button-color);
	font-family: var(--font);
	cursor: pointer;
}

@media only screen and (min-width: 1100px) {
	.splide__track {
		width: 70%;
	}
}

/* category list */

.category-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.category-box {
	width: calc(100% - 20px);
	margin: 10px;
}

@media only screen and (min-width: 500px) {
	.category-box {
		width: calc(33% - 20px);

	}
}

@media only screen and (min-width: 960px) {
	.category-box {
		width: calc(24% - 20px);

	}
}