/**
 * Tüm istemci sayfaları — görüntü/taşma iyileştirmeleri (tema all.css üzerine).
 */

/* Header ile ana içerik arası boş şerit — all.css kaynağında col-2 margin-top kaldırıldı; eski önbellek için !important */
@media (min-width: 921px) {
	#page .container .col-2 {
		margin-top: 0 !important;
	}
	/*
	 * Klasik M2 düzeni: container-bg-top (ahşap kiriş) header-bg ile tek parça gibi birleşsin.
	 * Girişsiz: daha alçak kutu; girişli: .header-box-login ile başlık daha yüksek — overlap farkı.
	 */
	#page .header-wrapper:not(:has(.header-box-login)) ~ .container-wrapper {
		margin-top: -31px;
	}
	#page .header-wrapper:has(.header-box-login) ~ .container-wrapper {
		margin-top: -30px;
	}
	#page .container-wrapper {
		padding-top: 0;
		background-repeat: no-repeat;
		background-position: center top;
	}
}

.content .content-bg-bottom img,
.page_article img,
.inner-content img {
	max-width: 100%;
	height: auto;
}

.content .content-bg-bottom table,
.page_article table {
	max-width: 100%;
}

@media (max-width: 920px) {
	.content .content-bg-bottom,
	.page_article {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* Anasayfa — Haberler ve güncellemeler kartı + kapak görseli */
.index-news-section .index-news-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px 16px;
	align-items: start;
}
@media (min-width: 560px) {
	.index-news-section .index-news-card--with-image {
		grid-template-columns: 160px minmax(0, 1fr);
	}
}
.index-news-card__thumb {
	display: block;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: #0b0f18;
}
.index-news-card__thumb img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 200px;
	object-fit: cover;
}

.index-news-card__body {
	min-width: 0;
}

.index-news-all-wrap {
	text-align: center;
	margin: 18px 0 8px;
}

.index-news-all-btn {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 8px;
	border: 1px solid rgba(123, 19, 0, 0.45);
	background: linear-gradient(180deg, rgba(255, 248, 230, 0.95), rgba(230, 210, 175, 0.9));
	color: #5a0e00 !important;
	font-family: Georgia, "Times New Roman", Palatino, serif;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.index-news-all-btn:hover {
	background: linear-gradient(180deg, #fffdf5, #e8d4a8);
	color: #3d0800 !important;
}

.haber-index-wrap .haber-index-back {
	margin-top: 18px;
	text-align: center;
}

/* Haber listesi — ana sayfa: üst nav ile aynı GIF, metin ortada */
.haber-index-home-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
	line-height: 1;
	transition: filter 0.15s ease, transform 0.12s ease;
}

.haber-index-home-btn:hover {
	filter: brightness(1.08);
}

.haber-index-home-btn:active {
	transform: translateY(1px);
	filter: brightness(1.03);
}

.haber-index-home-btn__img {
	display: block;
	width: auto;
	height: auto;
	max-height: 52px;
	max-width: min(100%, 280px);
	vertical-align: middle;
}

.haber-index-home-btn__label {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	box-sizing: border-box;
	font-family: Georgia, "Times New Roman", Palatino, serif;
	font-size: clamp(12px, 2.8vw, 15px);
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #4a0a00;
	text-shadow: 0 0 3px rgba(255, 248, 230, 0.9), 0 1px 0 rgba(255, 255, 255, 0.4);
	pointer-events: none;
}
