/* Havadis Manşet — Haber7 tarzı çift slider */

.hms-duo {
	--hms-red: #016CB1;
	--hms-red-dark: #015a96;
	--hms-yellow: #fff200;
	--hms-ink: #111;
	--hms-green: #016CB1;
	--hms-dark: #1a1a1a;
	--hms-brand: #016CB1;
	--hms-gap: 8px;
	display: grid;
	grid-template-columns: minmax(0, 1.85fr) minmax(260px, 1fr);
	gap: var(--hms-gap);
	width: 100%;
	max-width: 1400px;
	margin: 0 auto 8px;
	font-family: "Segoe UI", Tahoma, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}

/* Büyük (sol) slider — marka mavisi */
.hms-slider--main,
.hms-slider--side {
	--hms-red: #016CB1;
	--hms-red-dark: #015a96;
	--hms-green: #016CB1;
}

.hms-duo *,
.hms-duo *::before,
.hms-duo *::after {
	box-sizing: border-box;
}

.hms-duo__main,
.hms-duo__side {
	min-width: 0;
}

.hms-slider {
	position: relative;
	width: 100%;
	background: #fff;
}

.hms-slider.is-loading {
	opacity: .55;
	pointer-events: none;
}

/* ---------- Sekmeler (sağ panel) ---------- */
.hms-tabs {
	display: flex;
	gap: 0;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	background: var(--hms-dark);
	border: 0;
}

.hms-tabs::-webkit-scrollbar {
	display: none;
}

.hms-slider--main .hms-tabs {
	display: none;
}

.hms-tabs__item {
	flex: 1 1 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 11px 8px;
	cursor: pointer;
	white-space: nowrap;
	line-height: 1.2;
	text-align: center;
	transition: background .15s ease;
}

.hms-tabs__item:hover {
	background: #2a2a2a;
}

.hms-tabs__item.is-active {
	background: #016CB1;
	color: #fff;
}

/* ---------- Sahne ---------- */
.hms-slider__stage {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #111;
}

.hms-slider--main .hms-slider__stage {
	aspect-ratio: 16 / 9;
	min-height: 320px;
	max-height: 480px;
}

.hms-slider--side .hms-slider__stage {
	aspect-ratio: 4 / 5;
	min-height: 280px;
	max-height: 420px;
}

.hms-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .4s ease, visibility .4s ease;
	z-index: 1;
}

.hms-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

.hms-slide__link {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
	position: relative;
}

.hms-slide__media {
	position: absolute;
	inset: 0;
	background-color: #222;
	background-size: cover;
	background-position: center center;
	transform: scale(1.03);
	transition: transform 7s ease;
}

.hms-slide.is-active .hms-slide__media {
	transform: scale(1);
}

.hms-slide__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(0deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .35) 38%, rgba(0, 0, 0, .08) 62%, transparent 100%);
}

.hms-slider--side .hms-slide__shade {
	background:
		linear-gradient(0deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .2) 50%, transparent 100%);
}

/* Üst şerit — sol slider */
.hms-slide__ribbon {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 4;
	pointer-events: none;
	background: var(--hms-red);
	min-height: 34px;
	display: flex;
	align-items: center;
	padding: 6px 14px;
}

.hms-slide__ribbon-label {
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.hms-slider--main .hms-slide__ribbon,
.hms-slider--side .hms-slide__ribbon {
	background: #016CB1;
}

.hms-slider--main .hms-pager__btn.is-active,
.hms-slider--side .hms-pager__btn.is-active {
	background: #016CB1 !important;
	border-color: #016CB1 !important;
	color: #fff !important;
}

.hms-slider--main .hms-pager__btn:hover,
.hms-slider--side .hms-pager__btn:hover {
	color: #016CB1;
}

.hms-slider--side .hms-pager__btn:hover {
	background: #333;
	color: #fff;
}

.hms-slider--main .hms-pager__more {
	background: #016CB1;
}

.hms-slider--main .hms-pager__more:hover {
	background: #015a96;
}

.hms-slider--main .hms-nav:hover,
.hms-slider--side .hms-nav:hover {
	color: #7ec8f0;
}

.hms-slide__content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	top: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 24px 48px 28px;
	max-width: 88%;
}

.hms-slider--main .hms-slide__content {
	padding-top: 48px;
}

.hms-slider--side .hms-slide__content {
	justify-content: flex-end;
	padding: 20px 18px 22px;
	max-width: 100%;
}

.hms-slide__title {
	margin: 0 0 10px;
	padding: 0;
	color: #fff;
	font-size: clamp(16px, 1.9vw, 26px);
	font-weight: 800;
	line-height: 1.28;
	text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hms-slider--side .hms-slide__title {
	font-size: clamp(14px, 1.35vw, 20px);
	margin-bottom: 8px;
	-webkit-line-clamp: 3;
}

.hms-slide__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin: 0;
	padding: 0;
	color: rgba(255, 255, 255, .92);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}

.hms-slide__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
}

.hms-slide__meta-item--cat {
	color: var(--hms-yellow);
	text-transform: uppercase;
	letter-spacing: .04em;
	font-weight: 800;
	font-size: 11px;
}

.hms-slide__meta-item--date::before,
.hms-slide__meta-item--author::before {
	content: "";
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .7);
	display: inline-block;
}

.hms-slide__meta-item:first-child::before {
	display: none;
}

.hms-slider--side .hms-slide__meta {
	font-size: 11px;
	gap: 4px 10px;
}

.hms-slide__title-mobile {
	display: none;
	margin: 0 0 8px;
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.3;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}

/* Oklar — ince chevron */
.hms-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 36px;
	height: 56px;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 42px;
	font-weight: 300;
	line-height: 1;
	padding: 0;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .65);
	transition: color .15s ease, transform .15s ease;
}

.hms-nav:hover {
	color: var(--hms-yellow);
	transform: translateY(-50%) scale(1.08);
}

.hms-nav--prev {
	left: 4px;
}

.hms-nav--next {
	right: 4px;
}

/* Numara çubuğu — sol açık, sağ koyu */
.hms-pager {
	display: flex;
	align-items: stretch;
	overflow: hidden;
	min-height: 38px;
}

.hms-slider--main .hms-pager {
	background: #f0f0f0;
	border: 1px solid #e2e2e2;
	border-top: 0;
}

.hms-slider--side .hms-pager {
	background: #2a2a2a;
	border: 0;
}

.hms-pager__track {
	display: flex;
	flex: 1 1 auto;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.hms-pager__track::-webkit-scrollbar {
	display: none;
}

.hms-pager__btn {
	flex: 1 0 auto;
	min-width: 34px;
	height: 38px;
	border: 0;
	border-right: 1px solid #e2e2e2;
	background: #fff;
	color: #222;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	line-height: 1;
	padding: 0 6px;
	transition: background .15s ease, color .15s ease;
}

.hms-slider--side .hms-pager__btn {
	background: transparent;
	color: #fff;
	border-right: 1px solid #3a3a3a;
}

.hms-pager__btn:hover {
	color: var(--hms-red);
}

.hms-slider--side .hms-pager__btn:hover {
	background: #333;
	color: #fff;
}

.hms-pager__btn.is-active {
	background: var(--hms-red) !important;
	color: #fff !important;
	border-color: var(--hms-red);
}

.hms-pager__more {
	flex: 0 0 42px;
	width: 42px;
	border: 0;
	background: var(--hms-green);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
}

.hms-pager__more:hover {
	background: #1b5e20;
}

.hms-slide--hidden,
.hms-pager__btn--hidden {
	display: none !important;
}

/* Mobil gizleme: varsayılan gizli, masaüstünde aç (UCSS max-width bloklarını silebiliyor) */
.hms-mobile-hide {
	display: none !important;
}
@media (min-width: 1025px) {
	.hms-slide.hms-mobile-hide {
		display: block !important;
	}
	.hms-pager__btn.hms-mobile-hide {
		display: block !important;
	}
}

/* VC / tema sarmalayıcı boşluklarını sıkıştır */
.penci-text-block:has(.hms-duo),
.penci-block-vc:has(.hms-duo) {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}
.penci-text-block:has(.hms-duo) .penci-block_content,
.penci-block-vc:has(.hms-duo) .penci-block_content {
	margin: 0 !important;
	padding: 0 !important;
}
.wpb_wrapper > .penci-text-block:has(.hms-duo),
.wpb_wrapper > .penci-block-vc:has(.hms-duo) {
	margin-bottom: 6px !important;
}
.vc_row:has(.hms-duo) {
	margin-bottom: 0 !important;
}

/* Sağ panel yükseklik hizası: tab + stage + pager ≈ sol stage + pager */
@media (min-width: 901px) {
	.hms-duo__side {
		display: flex;
		flex-direction: column;
	}

	.hms-duo__side .hms-slider {
		display: flex;
		flex-direction: column;
		flex: 1 1 auto;
		height: 100%;
	}

	.hms-duo__side .hms-slider__stage {
		flex: 1 1 auto;
		aspect-ratio: auto;
		min-height: 0;
		max-height: none;
	}
}

/* Tablet */
@media (max-width: 1100px) {
	.hms-duo {
		grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr);
	}

	.hms-slide__content {
		padding: 40px 44px 32px;
	}

	.hms-tabs__item {
		font-size: 11px;
		padding: 10px 6px;
	}
}

/* Mobil: alt alta + marka renklerini zorla (UCSS) */
@media (max-width: 1024px) {
	.hms-duo,
	.hms-slider--main,
	.hms-slider--side {
		--hms-red: #016CB1;
		--hms-red-dark: #015a96;
		--hms-green: #016CB1;
	}

	.hms-tabs__item.is-active {
		background: #016CB1 !important;
		color: #fff !important;
	}

	.hms-pager__btn.is-active,
	.hms-slider--main .hms-pager__btn.is-active,
	.hms-slider--side .hms-pager__btn.is-active {
		background: #016CB1 !important;
		border-color: #016CB1 !important;
		color: #fff !important;
	}

	.hms-slide__ribbon,
	.hms-slider--main .hms-slide__ribbon {
		background: #016CB1 !important;
	}

	.hms-pager__more,
	.hms-slider--main .hms-pager__more {
		background: #016CB1 !important;
	}
}

/* Mobil: alt alta */
@media (max-width: 900px) {
	.hms-duo {
		grid-template-columns: 1fr;
		gap: 8px;
		margin-bottom: 6px;
	}

	.hms-slider--main .hms-slider__stage {
		aspect-ratio: 16 / 10;
		min-height: 220px;
		max-height: 360px;
	}

	.hms-slider--side .hms-slider__stage {
		aspect-ratio: 16 / 10;
		min-height: 200px;
		max-height: 300px;
	}

	.hms-slide__content {
		justify-content: flex-end;
		padding: 16px 14px 18px;
		max-width: 100%;
	}

	.hms-slider--main .hms-slide__title {
		font-size: clamp(15px, 4.2vw, 20px);
	}

	.hms-slide__meta {
		font-size: 11px;
	}

	.hms-slide__meta-item--date {
		display: none !important;
	}

	.hms-nav {
		width: 30px;
		height: 48px;
		font-size: 34px;
	}

	.hms-pager__btn {
		min-width: 32px;
		height: 36px;
		font-size: 12px;
	}
}

@media (max-width: 560px) {
	.hms-slide__ribbon {
		min-height: 28px;
		padding: 4px 10px;
	}

	.hms-slide__ribbon-label {
		font-size: 11px;
	}

	.hms-slide__title {
		display: none;
	}

	.hms-slide__title-mobile {
		display: block;
	}

	.hms-slide__meta {
		font-size: 10px;
		gap: 4px 10px;
	}

	.hms-tabs__item {
		flex: 0 0 auto;
		padding: 10px 12px;
		font-size: 11px;
	}
}
