.topics {
	margin-bottom: 50px;
}
.topics__inner {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 15px;
}

.topics__item {
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease,
		color 0.3s ease;
	display: flex;
	flex-direction: column-reverse;
}

.topics__item-img {
	height: 180px;
}

.topics__item-img span {
	position: absolute;
	top: 10px;
	left: 10px;
	background-color: #ffcc00;
	color: white;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}

.topics__item-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.topics__item:hover img {
	transform: scale(1.08);
}

.topics__item-title {
	padding: 10px;
	font-size: 14px;
	font-weight: 500;
	line-height: 170%;
	color: #222;
	flex-grow: 1;
	transition: color 0.3s ease;
}
.topics__item-title b {
	background-color: #ffcc00;
	width: 25px;
	height: 25px;
	font-size: 14px;
	border-radius: 50%;
	color: #fff;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	margin-right: 5px;
	margin-bottom: 2px;
}
.topics__item:hover {
	transform: translateY(-8px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.topics__item:hover .topics__item-title {
	color: #ffcc00;
}

@media (max-width: 1200px) {
	.topics__inner {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 992px) {
	.topics__inner {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 576px) {
	.topics__inner {
		grid-template-columns: repeat(2, 1fr);
	}
	.topics__title {
		font-size: 24px;
	}

	.topics__inner {
		grid-template-columns: 1fr;
	}

	.topics__item-img {
		height: 200px;
	}
}
