/* =========================================================
   TYBHD — Yerleşim stilleri (header + footer)
   Konum: child-tema/yerlesim/style.css
   Her sayfada yüklenir (yerlesim/_kurulum.php).
   Bölümler: 1) Footer · 2) Header · 3) Mobil menü · 4) Yukarı çık
   ========================================================= */

/* =========================================================
   1) Footer (yerlesim/yerlesim-footer.php)
   Sınıflar tybhd-ft__*, değişkenler --ft-*.
   Tema link/başlık/liste stillerine karşı .tybhd-ft.tybhd-ft korumalı.
   ========================================================= */

.tybhd-ft {
	--ft-ana: var(--tybhd-ana, #c10020);
	--ft-koyu: var(--tybhd-ana-koyu, #9a001a);
	--ft-acik: #ff4d62;                     /* koyu zeminde okunur kırmızı */
	--ft-zemin: #161616;
	--ft-yazi: #ffffff;
	--ft-metin: rgba(255, 255, 255, .68);
	--ft-soluk: rgba(255, 255, 255, .45);
	--ft-cizgi: rgba(255, 255, 255, .1);
	--ft-genis: 1640px;                     /* Haberler/Duyurular sayfalarıyla aynı */
	--ft-kenar: clamp(24px, 4vw, 80px);
	position: relative;
	margin: 0;
	padding: 0;
	background:
		radial-gradient(50% 320px at 50% 0, rgba(193, 0, 32, .14), transparent 70%),
		linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 40px 40px,
		linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 40px 40px,
		var(--ft-zemin);
	color: var(--ft-metin);
	font-size: 15px;
	line-height: 1.6;
}

.tybhd-ft,
.tybhd-ft * {
	box-sizing: border-box;
}

.tybhd-ft .tybhd-ft__kap {
	width: 100%;
	max-width: var(--ft-genis);
	margin: 0 auto;
	padding: 0 var(--ft-kenar);
}

.tybhd-ft .tybhd-ft__ust {
	display: grid;
	grid-template-columns: minmax(0, 1.75fr) repeat(3, minmax(max-content, 165px)) minmax(0, 1fr);
	gap: clamp(24px, 2.4vw, 36px);
	padding: clamp(48px, 5vw, 80px) 0 clamp(40px, 4vw, 64px);
}

/* Tema listelerine karşı sıfırlama */
.tybhd-ft.tybhd-ft ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tybhd-ft.tybhd-ft li {
	margin: 0;
	padding: 0;
}

.tybhd-ft.tybhd-ft li::before,
.tybhd-ft.tybhd-ft li::marker {
	content: none;
}

.tybhd-ft.tybhd-ft a {
	text-decoration: none !important;
	box-shadow: none;
}

/* --- Üst vitrin: ortada büyük logo + söz --- */
.tybhd-ft .tybhd-ft__vitrin {
	padding: clamp(48px, 5vw, 72px) 0 clamp(40px, 4vw, 56px);
	border-bottom: 1px solid var(--ft-cizgi);
	text-align: center;
}

.tybhd-ft.tybhd-ft .tybhd-ft__logo {
	display: inline-grid;
	place-items: center;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 6px rgba(255, 255, 255, .06), 0 18px 40px rgba(0, 0, 0, .35);
	transition: transform .3s;
}

.tybhd-ft.tybhd-ft .tybhd-ft__logo:hover {
	transform: translateY(-3px);
}

.tybhd-ft.tybhd-ft .tybhd-ft__logo img {
	width: 168px;
	height: 168px;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	object-fit: contain;
}

/* Söz: kutu yazı kadar geniş; ilk satır dolu, ikinci kısa (KASK gibi) */
.tybhd-ft .tybhd-ft__soz {
	position: relative;
	width: fit-content;
	max-width: min(1040px, 100%);
	margin: 30px auto 0;
	padding: 0 64px;                    /* iki yandaki tırnakların yeri */
	color: var(--ft-yazi);
	font-size: clamp(20px, 1.9vw, 28px);
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: -.01em;
	text-wrap: pretty;
}

.tybhd-ft .tybhd-ft__soz mark {
	padding: 0 .12em;
	background: linear-gradient(transparent 60%, rgba(193, 0, 32, .65) 60%);
	color: inherit;
}

/* Tırnaklar bloğun iki yanında, soluk */
.tybhd-ft .tybhd-ft__tirnak {
	position: absolute;
	top: -.08em;
	color: var(--ft-acik);
	opacity: .55;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 2.6em;
	font-weight: 700;
	line-height: 1;
	pointer-events: none;
}

.tybhd-ft .tybhd-ft__tirnak:first-child {
	left: 0;
}

.tybhd-ft .tybhd-ft__tirnak:last-child {
	right: 0;
}

.tybhd-ft .tybhd-ft__tanim {
	max-width: 380px;
	margin: 0 0 22px;
	color: var(--ft-metin);
	font-size: 14.5px;
	line-height: 1.75;
}

.tybhd-ft .tybhd-ft__sosyal {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tybhd-ft.tybhd-ft .tybhd-ft__sosyal a {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--ft-cizgi);
	border-radius: 50%;
	color: var(--ft-yazi) !important;
	transition: background .2s, border-color .2s;
}

.tybhd-ft.tybhd-ft .tybhd-ft__sosyal a:hover {
	border-color: var(--ft-ana);
	background: var(--ft-ana);
}

.tybhd-ft .tybhd-ft__sosyal svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

/* --- Sütun başlıkları --- */
.tybhd-ft.tybhd-ft .tybhd-ft__baslik {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 6px 0 20px;
	padding: 0;
	color: var(--ft-yazi);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.tybhd-ft .tybhd-ft__baslik::before {
	content: "";
	flex: none;
	width: 14px;
	height: 2px;
	border-radius: 2px;
	background: var(--ft-ana);
}

/* --- Menüler --- */
.tybhd-ft.tybhd-ft .tybhd-ft__menu li {
	margin: 0 0 12px;
}

.tybhd-ft.tybhd-ft .tybhd-ft__menu a {
	display: inline-block;
	color: var(--ft-metin) !important;
	font-size: 14.5px;
	font-weight: 400;
	line-height: 1.5;
	transition: color .2s, transform .2s;
}

.tybhd-ft.tybhd-ft .tybhd-ft__menu a:hover,
.tybhd-ft.tybhd-ft .tybhd-ft__menu .current-menu-item > a {
	color: var(--ft-yazi) !important;
	transform: translateX(4px);
}

.tybhd-ft .tybhd-ft__not {
	margin: 0;
	padding: 10px 12px;
	border: 1px dashed var(--ft-acik);
	border-radius: 8px;
	color: var(--ft-metin);
	font-size: 13px;
}

/* --- 4) İletişim --- */
.tybhd-ft .tybhd-ft__iletisim {
	margin: 0;
}

.tybhd-ft.tybhd-ft .tybhd-ft__iletisim li {
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	gap: 12px;
	margin: 0 0 14px;
	font-size: 14.5px;
	line-height: 1.6;
}

.tybhd-ft .tybhd-ft__iletisim svg {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	fill: none;
	stroke: var(--ft-acik);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tybhd-ft .tybhd-ft__iletisim address {
	margin: 0;
	color: var(--ft-metin);
	font-style: normal;
}

.tybhd-ft.tybhd-ft .tybhd-ft__iletisim a {
	color: var(--ft-yazi) !important;
	word-break: break-word;
}

.tybhd-ft.tybhd-ft .tybhd-ft__iletisim a:hover {
	color: var(--ft-acik) !important;
}

.tybhd-ft.tybhd-ft .tybhd-ft__buton {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	padding: 0 22px;
	border-radius: 999px;
	background: var(--ft-ana);
	color: #fff !important;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1;
	transition: background .2s;
}

.tybhd-ft.tybhd-ft .tybhd-ft__buton:hover {
	background: var(--ft-koyu);
}

.tybhd-ft .tybhd-ft__buton svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .2s;
}

.tybhd-ft .tybhd-ft__buton:hover svg {
	transform: translateX(3px);
}

.tybhd-ft a:focus-visible {
	outline: 2px solid var(--ft-acik);
	outline-offset: 3px;
	border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
	.tybhd-ft *,
	.tybhd-ft *:hover {
		transition: none !important;
		transform: none !important;
	}
}

/* --- Tablet: 2 sütun --- */
@media (max-width: 1100px) {
	.tybhd-ft .tybhd-ft__ust {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* --- Telefon: marka ve iletişim tam genişlik, iki menü yan yana --- */
@media (max-width: 640px) {
	.tybhd-ft .tybhd-ft__ust {
		gap: 36px 24px;
	}

	.tybhd-ft .tybhd-ft__sutun--marka,
	.tybhd-ft .tybhd-ft__sutun--iletisim {
		grid-column: 1 / -1;
	}

	.tybhd-ft.tybhd-ft .tybhd-ft__menu a {
		font-size: 14px;
	}

	.tybhd-ft.tybhd-ft .tybhd-ft__logo {
		width: 140px;
		height: 140px;
	}

	.tybhd-ft.tybhd-ft .tybhd-ft__logo img {
		width: 130px;
		height: 130px;
	}

	.tybhd-ft .tybhd-ft__soz {
		padding: 0 36px;
	}

	.tybhd-ft .tybhd-ft__tirnak {
		font-size: 2em;
	}
}

/* =========================================================
   2) Header (Politicia header stili 4 — temanın kendi HTML'i)
   Yalnızca logo + menü satırı (.dsvy-header-height-wrapper) stillenir.
   Kırmızı üst bar (.dsvy-pre-header-wrapper) child style.css'te; buraya dokunulmaz.
   Temanın açılır menü, mobil menü, arama penceresi ve sabit header işlevleri aynen çalışır.
   Kaydırınca incelme: _kurulum.php html'e "tybhd-kaydirildi" sınıfını ekler.
   Masaüstü kuralları 1201 px ve üstü; altında temanın mobil düzeni geçerli.
   ========================================================= */

#masthead {
	--hd-ana: var(--tybhd-ana, #c10020);
	--hd-koyu: var(--tybhd-ana-koyu, #9a001a);
	--hd-yazi: #1a1a1a;
	--hd-metin: #5a5a5a;
	--hd-cizgi: #ececec;
	--hd-pembe: #fbeef0;
	--hd-yuk: 92px;                      /* header yüksekliği */
	--hd-yuk-kucuk: 72px;                /* kaydırınca */
}

/* Yükseklik ve zemin */
#masthead .dsvy-header-height-wrapper {
	min-height: var(--hd-yuk) !important;
}

#masthead .dsvy-main-header-area {
	border-bottom: 1px solid var(--hd-cizgi);
	background: #fff;
	transition: box-shadow .25s;
}

html.tybhd-kaydirildi #masthead .dsvy-main-header-area {
	border-bottom-color: transparent;
	box-shadow: 0 8px 24px rgba(26, 26, 26, .08);
}

#masthead .dsvy-main-header-area .d-flex {
	min-height: var(--hd-yuk);
	gap: 28px;
	transition: min-height .25s;
}

html.tybhd-kaydirildi #masthead .dsvy-main-header-area .d-flex {
	min-height: var(--hd-yuk-kucuk);
}

/* --- Logo + dernek adı --- */
#masthead .dsvy-main-header-area .site-title {
	margin: 0;
	padding: 0;
	line-height: 1;
}

#masthead .dsvy-main-header-area .site-title,
#masthead .dsvy-main-header-area .site-title a {
	text-align: left !important;
}

#masthead .dsvy-main-header-area .site-title a {
	display: flex !important;
	align-items: center;
	gap: 12px;
	text-decoration: none !important;
}

/* Temanın başlık yazısı ekran okuyucular için kalır, görünmez */
#masthead .dsvy-main-header-area .site-title-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

#masthead .dsvy-main-header-area .site-title img {
	width: 60px !important;
	height: 60px !important;
	max-height: none !important;
	object-fit: contain;
	transition: width .25s, height .25s;
}

html.tybhd-kaydirildi #masthead .dsvy-main-header-area .site-title img {
	width: 48px !important;
	height: 48px !important;
}

/* Logonun yanındaki dernek adı */
#masthead .dsvy-main-header-area .site-title a::after {
	content: "Türk Yoğun Bakım\A Hemşireleri Derneği";
	color: var(--hd-yazi);
	font-family: "Outfit", sans-serif;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.25;
	text-transform: none;
	white-space: pre;
}

/* --- Sağ taraf: arama + Üye Girişi --- */
#masthead .dsvy-right-box {
	display: flex;
	align-items: center;
	gap: 14px;
}

#masthead .dsvy-header-search-btn a {
	display: grid !important;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid #e3e3e3;
	border-radius: 50%;
	background: #fff;
	color: var(--hd-yazi) !important;
	font-size: 17px;
	line-height: 1;
	transition: border-color .2s, color .2s;
}

#masthead .dsvy-header-search-btn a:hover {
	border-color: var(--hd-ana);
	color: var(--hd-ana) !important;
}

#masthead .dsvy-header-search-btn a i::before {
	margin: 0;
}

#masthead .dsvy-header-button {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 0;
}

/* Arama ile düğme arasındaki ince ayraç */
#masthead .dsvy-header-button::before {
	content: "";
	width: 1px;
	height: 28px;
	background: #e6e6e6;
}

#masthead .dsvy-header-button a {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center;
	gap: 0 !important;
	width: auto !important;
	min-width: 0 !important;
	height: 46px !important;
	margin: 0 !important;
	padding: 0 22px 0 49px !important;   /* solda kişi simgesine yer */
	white-space: nowrap !important;
	border: 0 !important;
	border-radius: 999px !important;
	/* Kişi simgesi düğmenin zemininde: temanın efektleri kaydıramaz */
	background: var(--hd-ana) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") no-repeat left 22px center / 18px 18px !important;
	box-shadow: 0 8px 18px rgba(193, 0, 32, .22);
	color: #fff !important;
	line-height: 1 !important;
	text-decoration: none !important;
	transform: none !important;
	transition: background-color .2s;
}

#masthead .dsvy-header-button a:hover,
#masthead .dsvy-header-button a:focus-visible {
	background-color: var(--hd-koyu) !important;
}

/* Temanın düğmedeki ok ve hover efektleri */
#masthead .dsvy-header-button a::before,
#masthead .dsvy-header-button a::after,
#masthead .dsvy-header-button .dsvy-header-button-text-1::before,
#masthead .dsvy-header-button a > :not(.dsvy-header-button-text-1) {
	display: none !important;
}

/* "ÜYE GİRİŞİ" yazısı gizli, yerine aşağıdaki "Üye Girişi" */
#masthead .dsvy-header-button .dsvy-header-button-text-1 {
	display: block !important;
	position: static !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 0 !important;
	line-height: 1 !important;
	white-space: nowrap !important;
	transform: none !important;
	animation: none !important;
}

#masthead .dsvy-header-button .dsvy-header-button-text-1::after {
	content: "Üye Girişi" !important;
	display: block !important;
	position: static !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	color: #fff !important;
	font-family: "Outfit", sans-serif !important;
	font-size: 14.5px !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	line-height: 1 !important;
	text-transform: none !important;
	white-space: nowrap !important;
	opacity: 1 !important;
	transform: none !important;
	animation: none !important;
	transition: none !important;
}

/* --- Masaüstü menü --- */
@media (min-width: 1201px) {
	#masthead .dsvy-menuarea {
		margin-left: auto;
	}

	#masthead #dsvy-top-menu > li {
		position: relative;
		margin: 0 !important;
		padding: 0 !important;
	}

	#masthead #dsvy-top-menu > li > a {
		display: flex !important;
		align-items: center;
		gap: 6px;
		height: var(--hd-yuk);
		margin: 0 !important;
		padding: 0 14px !important;
		color: var(--hd-yazi) !important;
		font-family: "Outfit", sans-serif;
		font-size: 14.5px !important;
		font-weight: 600 !important;
		letter-spacing: .03em !important;
		line-height: 1 !important;
		text-decoration: none !important;
		/* Kırmızı alt çizgi: üzerine gelince ortadan açılır */
		background: linear-gradient(var(--hd-ana), var(--hd-ana)) no-repeat center bottom 22px / 0 2px !important;
		transition: background-size .25s, color .2s, height .25s;
	}

	html.tybhd-kaydirildi #masthead #dsvy-top-menu > li > a {
		height: var(--hd-yuk-kucuk);
		background-position: center bottom 16px !important;
	}

	#masthead #dsvy-top-menu > li:hover > a,
	#masthead #dsvy-top-menu > li.current-menu-item > a,
	#masthead #dsvy-top-menu > li.current-menu-ancestor > a,
	#masthead #dsvy-top-menu > li.current-menu-parent > a {
		color: var(--hd-ana) !important;
		background-size: calc(100% - 28px) 2px !important;
	}

	/* Temanın kendi alt çizgi / vurgu efektleri */
	#masthead #dsvy-top-menu > li > a::before {
		display: none !important;
	}

	/* Açılır menü oku: temanın oku (nerede olursa olsun) gizlenir, yazının yanına kendi okumuz */
	#masthead #dsvy-top-menu > li.menu-item-has-children::before,
	#masthead #dsvy-top-menu > li.menu-item-has-children::after,
	#masthead #dsvy-top-menu > li.menu-item-has-children > :not(a):not(.sub-menu),
	#masthead #dsvy-top-menu > li.menu-item-has-children > a > i,
	#masthead #dsvy-top-menu > li.menu-item-has-children > a > svg {
		display: none !important;
	}

	#masthead #dsvy-top-menu > li.menu-item-has-children > a {
		gap: 7px;
	}

	#masthead #dsvy-top-menu > li.menu-item-has-children > a::after {
		content: "" !important;
		display: block !important;
		flex: none;
		position: static !important;
		width: 10px !important;
		height: 10px !important;
		margin: 1px 0 0 !important;
		padding: 0 !important;
		border: 0 !important;
		background: currentColor !important;
		font-size: 0 !important;
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 4.25 3.5 3.5 3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2.5 4.25 3.5 3.5 3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
		transform: none !important;
		transition: transform .2s;
	}

	#masthead #dsvy-top-menu > li.menu-item-has-children:hover > a::after {
		transform: rotate(180deg) !important;
	}

	/* Açılır menü: yuvarlak köşeli kart */
	#masthead #dsvy-top-menu .sub-menu {
		min-width: 230px;
		margin: 0;
		padding: 8px !important;
		border: 1px solid #eee !important;
		border-top: 2px solid var(--hd-ana) !important;
		border-radius: 0 0 12px 12px !important;
		background: #fff !important;
		box-shadow: 0 18px 40px rgba(26, 26, 26, .12) !important;
	}

	#masthead #dsvy-top-menu .sub-menu li {
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
	}

	#masthead #dsvy-top-menu .sub-menu a {
		display: block;
		margin: 0 !important;
		padding: 10px 14px !important;
		border-radius: 8px;
		background: transparent !important;
		color: #333 !important;
		font-family: "Outfit", sans-serif;
		font-size: 14px !important;
		font-weight: 500 !important;
		letter-spacing: 0 !important;
		line-height: 1.4 !important;
		text-transform: none !important;
	}

	#masthead #dsvy-top-menu .sub-menu a::before {
		display: none !important;
	}

	#masthead #dsvy-top-menu .sub-menu a:hover,
	#masthead #dsvy-top-menu .sub-menu .current-menu-item > a {
		background: var(--hd-pembe) !important;
		color: var(--hd-ana) !important;
	}

	/* Açılır menü: temanın öğe çizgileri ve gölgeleri kaldırıldı, düz liste */
	#masthead #dsvy-top-menu .sub-menu li,
	#masthead #dsvy-top-menu .sub-menu a {
		border: 0 !important;
		box-shadow: none !important;
		outline: 0;
	}

	#masthead #dsvy-top-menu .sub-menu li {
		background: transparent !important;
	}

	#masthead #dsvy-top-menu .sub-menu li::before,
	#masthead #dsvy-top-menu .sub-menu li::after,
	#masthead #dsvy-top-menu .sub-menu a::after {
		display: none !important;
	}

	#masthead #dsvy-top-menu .sub-menu li + li {
		margin-top: 2px !important;
	}
}

/* --- Tablet ve telefon (temanın mobil menüsü) --- */
@media (max-width: 1200px) {
	#masthead {
		--hd-yuk: 76px;
		--hd-yuk-kucuk: 68px;
	}

	#masthead .dsvy-main-header-area .site-title img {
		width: 48px !important;
		height: 48px !important;
	}

	#masthead .dsvy-main-header-area .site-title a::after {
		font-size: 13.5px;
	}

	/* Menü düğmesi en sağda: logo · arama · üye · menü */
	#masthead .dsvy-main-header-area .d-flex {
		gap: 12px;
	}

	/* Menü düğmesi akışa alınır: Üye Girişi'nin üstüne binmez */
	#masthead .dsvy-main-header-area .container {
		position: relative;              /* açılan mobil menü header'ın altına hizalanır */
	}

	#masthead .dsvy-menuarea,
	#masthead .navigation-top {
		position: static !important;
		width: auto !important;
		margin: 0 !important;
		padding: 0 !important;
		transform: none !important;
	}

	#masthead .dsvy-menuarea {
		order: 3;
		flex: none;
	}

	#masthead .dsvy-right-box {
		margin-left: auto;
		gap: 8px;
	}

	#masthead #menu-toggle {
		display: grid !important;
		place-items: center;
		position: static !important;
		float: none !important;
		flex: none;
		width: 42px !important;
		height: 42px !important;
		margin: 0 !important;
		padding: 0 !important;
		transform: none !important;
		border: 0;
		border-radius: 50%;
		background: var(--hd-yazi);
		color: #fff;
		font-size: 18px;
		line-height: 1;
	}

	#masthead .dsvy-header-button::before {
		display: none;
	}
}

@media (max-width: 480px) {
	#masthead .dsvy-main-header-area .d-flex {
		gap: 10px;
	}

	#masthead .dsvy-main-header-area .site-title a::after {
		font-size: 12.5px;
	}

	/* Telefonda Üye Girişi yalnızca simge */
	#masthead .dsvy-header-button a {
		width: 42px !important;
		height: 42px !important;
		padding: 0 !important;
		background-position: center !important;
		box-shadow: none;
	}

	#masthead .dsvy-header-button .dsvy-header-button-text-1 {
		display: none !important;
	}
}

/* Logo + dernek adı düğmelerle ve menüyle aynı hizada (her ekran genişliğinde) */
#masthead .dsvy-logo-area,
#masthead .dsvy-logo-area .wrap,
#masthead .dsvy-main-header-area .site-title {
	display: flex !important;
	align-items: center !important;
	align-self: center !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1 !important;
	position: static !important;
	top: auto !important;
	bottom: auto !important;
	transform: none !important;
}

#masthead .dsvy-main-header-area .site-title a {
	position: static !important;
	top: auto !important;
	transform: none !important;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1 !important;
}

#masthead .dsvy-main-header-area .site-title img {
	margin: 0 !important;
	vertical-align: middle;
}

/* =========================================================
   3) Mobil menü: iletişim bilgileri ve sosyal medya
   _kurulum.php hamburger menünün (#site-navigation) sonuna .tybhd-mm ekler.
   ========================================================= */

.tybhd-mm {
	display: none;
}

@media (max-width: 1200px) {
	#masthead #site-navigation .tybhd-mm {
		display: block !important;
		position: static !important;
		inset: auto !important;
		width: auto !important;
		height: auto !important;
		max-height: none !important;
		overflow: visible !important;
		transform: none !important;
		box-sizing: border-box;
		margin: 24px 0 8px;
		padding: 18px;
		border-radius: 14px;
		background: #fbeef0;
		font-family: "Outfit", sans-serif;
		text-align: left;
	}

	#masthead #site-navigation .tybhd-mm__baslik {
		margin: 0 0 8px !important;
		padding: 0 !important;
		color: #c10020;
		font-size: 12px;
		font-weight: 600;
		letter-spacing: .08em;
		line-height: 1.2;
		text-transform: uppercase;
	}

	#masthead #site-navigation .tybhd-mm__satir {
		display: flex !important;
		align-items: center;
		gap: 12px;
		margin: 0 !important;
		padding: 7px 0 !important;
		border: 0 !important;
		background: none !important;
		color: #1a1a1a !important;
		font-family: "Outfit", sans-serif !important;
		font-size: 15px !important;
		font-weight: 500 !important;
		letter-spacing: 0 !important;
		line-height: 1.3 !important;
		text-decoration: none !important;
		text-transform: none !important;
		word-break: break-word;
	}

	#masthead #site-navigation .tybhd-mm__satir::before,
	#masthead #site-navigation .tybhd-mm__satir::after {
		display: none !important;
	}

	#masthead #site-navigation .tybhd-mm__simge {
		display: grid;
		place-items: center;
		flex: none;
		width: 36px;
		height: 36px;
		border-radius: 50%;
		background: #fff;
		color: #c10020;
	}

	#masthead #site-navigation .tybhd-mm__simge svg {
		width: 16px;
		height: 16px;
		fill: none;
		stroke: currentColor;
		stroke-width: 2;
		stroke-linecap: round;
		stroke-linejoin: round;
	}

	#masthead #site-navigation .tybhd-mm__sosyal {
		display: block;
		margin-top: 12px;
		padding-top: 14px;
		border-top: 1px solid rgba(193, 0, 32, .15);
	}

	/* Üst bardan kopyalanan sosyal medya listesi */
	#masthead #site-navigation .tybhd-mm__sosyal ul {
		display: flex !important;
		flex-wrap: wrap;
		gap: 8px;
		margin: 0 !important;
		padding: 0 !important;
		list-style: none !important;
	}

	#masthead #site-navigation .tybhd-mm__sosyal li {
		display: block !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		background: none !important;
		list-style: none !important;
	}

	#masthead #site-navigation .tybhd-mm__sosyal li::before,
	#masthead #site-navigation .tybhd-mm__sosyal li::after,
	#masthead #site-navigation .tybhd-mm__sosyal a::after {
		display: none !important;
	}

	/* Üst bardaki gibi: beyaz daire, kırmızı simge */
	#masthead #site-navigation .tybhd-mm__sosyal a {
		display: grid !important;
		place-items: center;
		width: 40px !important;
		height: 40px !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		border-radius: 50% !important;
		background: #fff !important;
		color: #c10020 !important;
		font-size: 16px !important;
		font-style: normal !important;
		line-height: 1 !important;
		text-decoration: none !important;
		text-transform: none !important;
		transition: background .2s, color .2s;
	}

	#masthead #site-navigation .tybhd-mm__sosyal a:hover {
		background: #c10020 !important;
		color: #fff !important;
	}

	#masthead #site-navigation .tybhd-mm__sosyal a i,
	#masthead #site-navigation .tybhd-mm__sosyal a svg {
		display: block !important;
		width: auto !important;
		height: auto !important;
		margin: 0 !important;
		border-radius: 0 !important;
		background: none !important;
		color: inherit !important;
		fill: currentColor;
		font-size: 16px !important;
		line-height: 1 !important;
	}

	#masthead #site-navigation .tybhd-mm__sosyal a svg {
		width: 16px !important;
		height: 16px !important;
	}
}

/* =========================================================
   4) Yukarı çık düğmesi (temanın .scroll-to-top'ı)
   Beyaz yuvarlak düğme, kırmızı ok; çevresindeki kırmızı halka sayfanın ne kadarının
   okunduğunu gösterir (--ilerleme: 0–1, _kurulum.php "5)" günceller).
   Görünüp gizlenmesi ve tıklayınca yukarı kayma temanın işi; buraya dokunulmaz.
   ========================================================= */

.scroll-to-top {
	--yk-ana: var(--tybhd-ana, #c10020);
	position: fixed !important;
	right: 24px !important;
	bottom: 24px !important;
	z-index: 999;
	width: 52px !important;
	height: 52px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #fff !important;
	box-shadow: 0 10px 26px rgba(26, 26, 26, .16), 0 2px 6px rgba(26, 26, 26, .08) !important;
	color: var(--yk-ana) !important;
	font-size: 0 !important;
	line-height: 0 !important;
	text-align: center;
	text-decoration: none !important;
	transition: background-color .2s, color .2s, box-shadow .2s, transform .2s;
}

/* İlerleme halkası */
.scroll-to-top::before {
	content: "" !important;
	position: absolute !important;
	inset: 3px !important;
	display: block !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: conic-gradient(var(--yk-ana) calc(var(--ilerleme, 0) * 360deg), rgba(193, 0, 32, .14) 0) !important;
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
	opacity: 1 !important;
	transform: none !important;
	transition: opacity .2s;
}

.scroll-to-top::after {
	display: none !important;
}

/* Ok: temanın simgesi yerine ince ok, düğmenin tam ortasında */
.scroll-to-top i {
	position: absolute !important;
	inset: 0 !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	font-size: 0 !important;
	line-height: 0 !important;
	transition: transform .2s;
}

.scroll-to-top i::before {
	content: "" !important;
	display: block !important;
	width: 18px;
	height: 18px;
	margin: 0 !important;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.scroll-to-top:hover,
.scroll-to-top:focus-visible {
	background: var(--yk-ana) !important;
	box-shadow: 0 12px 28px rgba(193, 0, 32, .32) !important;
	color: #fff !important;
}

.scroll-to-top:hover::before,
.scroll-to-top:focus-visible::before {
	opacity: 0 !important;
}

.scroll-to-top:hover i {
	transform: translateY(-3px);
}

.scroll-to-top:focus-visible {
	outline: 2px solid var(--yk-ana);
	outline-offset: 3px;
}

@media (max-width: 640px) {
	.scroll-to-top {
		right: 16px !important;
		bottom: 16px !important;
		width: 46px !important;
		height: 46px !important;
	}

	.scroll-to-top i::before {
		width: 16px;
		height: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.scroll-to-top,
	.scroll-to-top i {
		transition: none;
	}
}


/* =====================================================================
   Üyelik kapsülü — "Üye Ol" + "Üye Girişi" tek kapsülde  (yerlesim/uye-ol-butonu.php)
   ≥1360 px: Üye Ol | Üye Girişi · 1280–1359: Üye Ol yalnızca simge · 1201–1279: yalnızca Üye Girişi
   ≤1200 px: header çubuğunda temanın Üye Girişi butonu; menü panelinin altında tam genişlik kapsül
   Zemin: çok hafif EKG kâğıdı ızgarası. Üye Ol sayfasında kırmızı vurgu Üye Ol'a geçer.
   ===================================================================== */

/* ---- Ortak: Üye Ol bağlantısı ---- */
#masthead .tybhd-uyelik a.tybhd-uyelik__ol {
  display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important;
  width: auto !important; min-width: 0 !important; height: 44px !important; margin: 0 !important; padding: 0 16px 0 14px !important;
  border: 0 !important; border-radius: 999px !important; box-shadow: none !important;
  background: transparent !important; background-image: none !important; color: var(--tybhd-ana, #C10020) !important;
  font-family: Outfit, sans-serif !important; font-size: 14.5px !important; font-weight: 600 !important; line-height: 1 !important;
  letter-spacing: 0 !important; text-transform: none !important; text-decoration: none !important; white-space: nowrap !important;
  transform: none !important; transition: background-color .2s ease, box-shadow .2s ease !important;
}
#masthead .tybhd-uyelik a.tybhd-uyelik__ol::after { content: none !important; display: none !important; }
#masthead .tybhd-uyelik a.tybhd-uyelik__ol::before,
#masthead .tybhd-uyelik--panel a.tybhd-uyelik__giris::before {
  content: "" !important; display: block !important; position: static !important; flex: none !important;
  width: 18px !important; height: 18px !important; margin: 0 !important; padding: 0 !important; border: 0 !important;
  transform: none !important; opacity: 1 !important; animation: none !important; transition: none !important;
  background: currentColor !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2.5 20.5v-.5a6 6 0 0 1 6-6h1a6 6 0 0 1 6 6v.5'/%3E%3Cpath d='M19 8v6M16 11h6'/%3E%3C/svg%3E") center / 18px 18px no-repeat !important;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2.5 20.5v-.5a6 6 0 0 1 6-6h1a6 6 0 0 1 6 6v.5'/%3E%3Cpath d='M19 8v6M16 11h6'/%3E%3C/svg%3E") center / 18px 18px no-repeat !important;
}
#masthead .tybhd-uyelik a.tybhd-uyelik__ol:hover,
#masthead .tybhd-uyelik a.tybhd-uyelik__ol:focus-visible {
  background: #fff !important; box-shadow: 0 2px 8px rgba(193, 0, 32, .14) !important;
}

/* ---- Masaüstü header: kapsül ---- */
@media (min-width: 1201px) {
  #masthead .dsvy-header-button .tybhd-uyelik {
    display: inline-flex !important; align-items: center !important; gap: 2px !important;
    margin: 0 !important; padding: 4px !important; border-radius: 999px !important; border: 1px solid #F1D9DC !important;
    background-color: #FFF8F9 !important;
    background-image:
      linear-gradient(rgba(193, 0, 32, .05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(193, 0, 32, .05) 1px, transparent 1px) !important;
    background-size: 8px 8px !important; background-position: center !important;
  }
  #masthead .dsvy-header-button .tybhd-uyelik a.tybhd-uyelik__giris {
    height: 44px !important; box-shadow: 0 4px 12px rgba(193, 0, 32, .25) !important;
  }
}
@media (min-width: 1201px) and (max-width: 1359px) {
  #masthead .dsvy-header-button .tybhd-uyelik { padding: 3px !important; gap: 0 !important; }
  #masthead .dsvy-header-button .tybhd-uyelik a.tybhd-uyelik__ol { width: 40px !important; padding: 0 !important; gap: 0 !important; font-size: 0 !important; }
}
@media (max-width: 1279px) {
  #masthead .dsvy-header-button .tybhd-uyelik { display: contents !important; }
  #masthead .dsvy-header-button .tybhd-uyelik a.tybhd-uyelik__ol { display: none !important; }
}

/* ---- Mobil menü paneli: kapsül ---- */
#masthead #site-navigation ul.menu > li.tybhd-uyelik-menu { display: none !important; }
@media (max-width: 1200px) {
  #masthead #site-navigation ul.menu > li.tybhd-uyelik-menu {
    display: block !important; margin: 0 !important; padding: 16px !important; border: 0 !important; background: none !important;
  }
  #masthead #site-navigation ul.menu > li.tybhd-uyelik-menu::before,
  #masthead #site-navigation ul.menu > li.tybhd-uyelik-menu::after { content: none !important; display: none !important; }
  #masthead #site-navigation .tybhd-uyelik--panel {
    display: flex !important; gap: 4px !important; width: 100% !important; margin: 0 !important; padding: 4px !important;
    border-radius: 14px !important; border: 1px solid #F1D9DC !important; background-color: #FFF8F9 !important;
    background-image:
      linear-gradient(rgba(193, 0, 32, .05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(193, 0, 32, .05) 1px, transparent 1px) !important;
    background-size: 8px 8px !important;
  }
  #masthead #site-navigation .tybhd-uyelik--panel a.tybhd-uyelik__ol,
  #masthead #site-navigation .tybhd-uyelik--panel a.tybhd-uyelik__giris {
    flex: 1 1 0 !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important;
    width: auto !important; min-width: 0 !important; height: 46px !important; margin: 0 !important; padding: 0 10px !important;
    border: 0 !important; border-radius: 10px !important;
    font-family: Outfit, sans-serif !important; font-size: 15px !important; font-weight: 600 !important; line-height: 1 !important;
    letter-spacing: 0 !important; text-transform: none !important; text-decoration: none !important; white-space: nowrap !important;
  }
  #masthead #site-navigation .tybhd-uyelik--panel a.tybhd-uyelik__giris {
    background: var(--tybhd-ana, #C10020) !important; background-image: none !important; color: #fff !important;
    box-shadow: 0 4px 12px rgba(193, 0, 32, .25) !important;
  }
  #masthead #site-navigation .tybhd-uyelik--panel a.tybhd-uyelik__giris::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") !important;
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") !important;
  }
  #masthead #site-navigation .tybhd-uyelik--panel a.tybhd-uyelik__giris::after { content: none !important; display: none !important; }
  #masthead #site-navigation .tybhd-uyelik--panel a.tybhd-uyelik__giris:hover { background: var(--tybhd-ana-koyu, #9A001A) !important; }
}

/* ---- Üye Ol sayfasında: Üye Ol dolu kırmızı, Üye Girişi ikincil ---- */
#masthead .tybhd-uyelik.tybhd-uyelik--ol-aktif a.tybhd-uyelik__ol,
#masthead .tybhd-uyelik.tybhd-uyelik--ol-aktif a.tybhd-uyelik__ol:hover {
  background: var(--tybhd-ana, #C10020) !important; color: #fff !important;
  box-shadow: 0 4px 12px rgba(193, 0, 32, .25) !important;
}
@media (min-width: 1280px) {
  #masthead .dsvy-header-button .tybhd-uyelik--ol-aktif a.tybhd-uyelik__giris {
    background-color: transparent !important; box-shadow: none !important; color: var(--tybhd-ana, #C10020) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C10020' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") !important;
  }
  #masthead .dsvy-header-button .tybhd-uyelik--ol-aktif a.tybhd-uyelik__giris .dsvy-header-button-text-1::after {
    color: var(--tybhd-ana, #C10020) !important;
  }
  #masthead .dsvy-header-button .tybhd-uyelik--ol-aktif a.tybhd-uyelik__giris:hover,
  #masthead .dsvy-header-button .tybhd-uyelik--ol-aktif a.tybhd-uyelik__giris:focus-visible {
    background-color: #fff !important; box-shadow: 0 2px 8px rgba(193, 0, 32, .14) !important;
  }
}
@media (max-width: 1200px) {
  #masthead #site-navigation .tybhd-uyelik--panel.tybhd-uyelik--ol-aktif a.tybhd-uyelik__giris {
    background: transparent !important; color: var(--tybhd-ana, #C10020) !important; box-shadow: none !important;
  }
  #masthead #site-navigation .tybhd-uyelik--panel.tybhd-uyelik--ol-aktif a.tybhd-uyelik__giris:hover {
    background: #fff !important; box-shadow: 0 2px 8px rgba(193, 0, 32, .14) !important;
  }
}


/* --- Footer: Üyelik sütunu (5 sütun) --- */
.tybhd-ft .tybhd-ft__sutun--marka .tybhd-ft__tanim { max-width: 520px; }

@media (max-width: 1360px) {
	.tybhd-ft .tybhd-ft__ust { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.tybhd-ft .tybhd-ft__sutun--marka { grid-column: 1 / -1; }
	.tybhd-ft .tybhd-ft__sutun--marka .tybhd-ft__tanim { max-width: 680px; }
}
@media (max-width: 1100px) {
	.tybhd-ft .tybhd-ft__ust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}