.card-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(290px, 100vw));
	gap: 48px 24px;
}

@media only screen and (max-width: 1875px) {
	.card-grid {
		grid-template-columns: repeat(4, minmax(290px, 100vw));
	}
}

@media only screen and (max-width: 1550px) {
	.card-grid {
		grid-template-columns: repeat(3, minmax(290px, 100vw));
	}
}

@media only screen and (max-width: 1200px) {
	.card-grid {
		grid-template-columns: repeat(3, minmax(250px, 100vw));
	}
}

@media only screen and (max-width: 990px) {
	.card-grid {
		grid-template-columns: repeat(2, minmax(175px, 100vw));
		gap: 10px;
	}
}

@media only screen and (max-width: 450px) {
	.card-grid {
		grid-template-columns: repeat(1, minmax(155px, 100vw));
		gap: 10px;
	}
}

.news-card {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	text-decoration: none;
	color: inherit;
	border-radius: 20px;
	background: #fff;
	transition: transform 0.2s ease;
	box-shadow: none;
	padding: 0;
	margin: 0;

	&:hover {
		transform: translateY(-6px);
	}

	.news-card-image {
		width: 100%;
		aspect-ratio: 1 / 1;
		object-fit: cover;
		margin-bottom: 12px;
		border-radius: 8px;
	}

	.news-card-body {
		flex: 1;
		display: flex;
		flex-direction: column;
		gap: 8px;
		padding: 0;
		height: 125px;

		.news-card-title {
			display: -webkit-box;
			-webkit-box-orient: vertical;
			overflow: hidden;
			text-overflow: ellipsis;
			-webkit-line-clamp: 2;
			line-clamp: 2;
			font-size: 18px;
			font-weight: 700;
			margin: 0;
		}

		.news-card-excerpt {
			display: -webkit-box;
			-webkit-box-orient: vertical;
			overflow: hidden;
			text-overflow: ellipsis;
			-webkit-line-clamp: 3;
			line-clamp: 3;
			font-size: 14px;
			color: var(--normalGray);
			margin: 0;
		}

		.news-card-date {
			font-size: 16px;
			font-weight: 700;
			color: #000;
		}
	}
}

.single-news {
	.single-news-layout {
		.single-news-title {
			color: #000;
			font-size: 40px;
			font-weight: 700;
			margin-bottom: 24px;
			overflow-wrap: anywhere;
		}

		.single-news-gallery {
			margin-bottom: 2rem;

			.gallery-main-image {
				margin-bottom: 1rem;
				overflow: hidden;
				height: 450px;
				display: flex;
				align-items: center;
				justify-content: center;
				border-radius: 8px;
				overflow: hidden;

				img {
					height: 100%;
					display: block;
					object-fit: cover;
				}
			}

			.gallery-thumbnails {
				display: flex;
				flex-wrap: wrap;
				gap: 0.5rem;

				.thumbnail-item {
					flex: 0 0 auto;
					width: 75px;
					height: 75px;
					overflow: hidden;
					cursor: pointer;
					transition: border-color 0.3s ease, opacity 0.3s ease;

					&:hover {
						opacity: 0.8;
					}

					&.active {
						border-color: var(--mainColor);
					}

					img {
						width: 100%;
						height: 100%;
						object-fit: cover;
						border-radius: 8px;
					}
				}

				@media (max-width: 768px) {
					.thumbnail-item {
						width: 60px;
						height: 60px;
					}
				}
			}
		}

		.single-news-date {
			font-size: 16px;
			font-weight: 600;
			padding: 4px 14px;
			background: #000;
			width: max-content;
			max-width: 100%;
			border-radius: 25px;
			color: #fff;
			margin-bottom: 24px;
		}

		.single-news-body {
			color: var(--darkGray);

			p {
				margin: 0;
			}
		}
	}
}

@media only screen and (max-width: 769px) {
	.news-card {
		.news-card-image {
			margin-bottom: 0;
		}

		.news-card-body {
			padding-inline: 10px;

			.news-card-title {
				font-size: 16px;
			}

			.news-card-excerpt {
				font-size: 12px;
				margin-bottom: 0;
			}
		}
	}
}
