.ocg-section {
	position: relative;
	margin: 24px 0;
	padding: 0 4px;
}

.ocg-rail__track {
	display: flex;
	align-items: stretch;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 2px 0 6px;
}

.ocg-rail__track::-webkit-scrollbar {
	display: none;
}

.ocg-card {
	flex: 0 0 calc((100% - 48px) / 4);
	width: calc((100% - 48px) / 4);
	min-width: 0;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid #e8eef6;
	border-radius: 14px;
	transition: box-shadow .18s ease, transform .18s ease;
}

.ocg-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(15, 23, 42, .10);
}

.ocg-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
}

.ocg-card__media {
	display: block;
	width: 100%;
	background: #f7faff;
}

.ocg-card__media img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

.ocg-card__title {
	display: block;
	padding: 10px 12px;
	color: #1f2937;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
}

/* Ortada, dikey konumlanmış yuvarlak ok butonları. */
.ocg-rail__btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 44px;
	height: 44px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #e6edf5;
	border-radius: 50%;
	background: #ffffff;
	color: #1e5bdb;
	box-shadow: 0 6px 18px rgba(15, 23, 42, .12);
	cursor: pointer;
	transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.ocg-rail__btn--prev {
	left: -18px;
}

.ocg-rail__btn--next {
	right: -18px;
}

.ocg-rail__btn:hover {
	background: #1e5bdb;
	border-color: #1e5bdb;
	color: #ffffff;
}

.ocg-rail__btn:disabled {
	opacity: 0;
	pointer-events: none;
}

@media (max-width: 991.98px) {
	.ocg-card {
		flex-basis: calc((100% - 32px) / 3);
		width: calc((100% - 32px) / 3);
	}
}

@media (max-width: 767.98px) {
	.ocg-card {
		flex-basis: calc((100% - 16px) / 2);
		width: calc((100% - 16px) / 2);
	}

	.ocg-rail__btn {
		width: 38px;
		height: 38px;
	}

	.ocg-rail__btn--prev {
		left: -10px;
	}

	.ocg-rail__btn--next {
		right: -10px;
	}
}
