/* Haberler / Duyurular / Makaleler: kategori arşivi (templates/archive.html), yazı detayı (templates/single.html), kenar sütunu (patterns/haber-kenar.php). Kullanıcının onayladığı "kurumsal" tasarım, prototip haberler-kurumsal.html. */

/* === arşiv başlık bandı === */
.hb-bant { padding-block: 48px 0; }
.hb-bant__ic > * + * { margin-block-start: 0; }
.hb-yol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 16px; font-size: 15px; color: #C9CBE6; }
.hb-bant .hb-yol a, .hb-bant .hb-yol a:hover { color: inherit; text-decoration: none; }
.hb-bant .hb-yol a:hover { color: #fff; }
.hb-baslik { margin: 0; font-size: 44px; font-weight: 600; line-height: 1.12; letter-spacing: -.02em; color: #fff; }
.hb-aciklama { margin-top: 12px; }
.hb-aciklama p { margin: 0; max-width: 60ch; font-size: 19px; color: #E3E4F3; }
.hb-filtre.wp-block-group { margin-top: 36px; gap: 16px 24px; }
.hb-sekmeler.wp-block-group { gap: 4px; }
.hb-sekme { margin: 0; }
.hb-sekme a { display: block; padding: 14px 20px; border-radius: 6px 6px 0 0; font-size: 16px; font-weight: 600; line-height: 1; color: #C9CBE6; text-decoration: none; }
.hb-sekme a:hover { color: #fff; }
.hb-sekme a[aria-current] { background: #fff; color: var(--wp--preset--color--primary); }
.hb-sekme .sayi { margin-left: 6px; font-size: 14px; font-weight: 500; opacity: .75; }
.hb-ara { margin: 0 0 10px; }
.hb-ara .wp-block-search__inside-wrapper { width: 280px; padding: 0; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; background: rgba(255,255,255,.08); }
.hb-ara .wp-block-search__input { padding: 10px 14px; border: 0; background: none; color: #fff; font: inherit; font-size: 16px; }
.hb-ara .wp-block-search__input::placeholder { color: #C9CBE6; }
.hb-ara .wp-block-search__button { margin: 0; padding: 0 12px; background: none; color: #C9CBE6; }
.hb-ara .wp-block-search__button svg { width: 20px; height: 20px; fill: currentColor; }

/* === iki sütun düzeni === */
.hb-sayfa { padding-block: 48px 96px; }
.hb-duzen.wp-block-group { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.hb-duzen > * { margin-block-start: 0 !important; }

/* tür · tarih satırı */
.hb-ust.wp-block-group { gap: 10px; align-items: center; font-size: 15px; color: var(--wp--preset--color--muted); }
.hb-ust > * { margin: 0; }
.hb-tur a { font-weight: 600; color: var(--wp--preset--color--accent); text-decoration: none; }
.hb-tur a[href*="/duyurular/"] { color: var(--wp--preset--color--signal); }
.hb-tarih::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 10px 0 0; border-radius: 50%; background: currentColor; vertical-align: middle; }

/* === yazı listesi === */
.hb-liste { list-style: none; margin: 0; padding: 0; }
.hb-liste > li { margin: 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.hb-oge.wp-block-group { position: relative; display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 28px; padding-block: 28px; }
.hb-oge:not(:has(.hb-oge__gorsel)) { grid-template-columns: minmax(0, 1fr); }
.hb-oge > *, .hb-oge__metin > * { margin: 0; }
.hb-oge__gorsel { align-self: start; overflow: hidden; border: 1px solid var(--wp--preset--color--line); border-radius: 6px; background: var(--wp--preset--color--surface); }
.hb-oge__gorsel img { object-position: 50% 20%; }
/* shortcut: logo görseli dosya adından tanınıyor; derneğin logolu yazıları gerçek görselle değişince kaldırılabilir. */
.hb-oge__gorsel img[src*="logo"] { object-fit: contain !important; padding: 18px; background: #fff; }
.hb-oge__baslik { margin-top: 8px !important; font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.hb-oge__baslik a { color: var(--wp--preset--color--primary); text-decoration: none; }
.hb-oge__baslik a::after { content: ""; position: absolute; inset: 0; }
.hb-oge:hover .hb-oge__baslik a { color: var(--wp--preset--color--accent); }
.hb-oge__ozet { margin-top: 8px !important; }
.hb-oge__ozet p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--wp--preset--color--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hb-devam { display: none; }

/* ilk yazı: manşet */
.hb-liste > li:first-child { border-bottom: 2px solid var(--wp--preset--color--primary); }
.hb-liste > li:first-child .hb-oge { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-block: 0 40px; }
.hb-liste > li:first-child .hb-oge:not(:has(.hb-oge__gorsel)) { grid-template-columns: minmax(0, 1fr); }
.hb-liste > li:first-child .hb-oge__baslik { margin-top: 14px !important; font-size: 32px; line-height: 1.2; letter-spacing: -.015em; }
.hb-liste > li:first-child .hb-oge__ozet { margin-top: 14px !important; }
.hb-liste > li:first-child .hb-oge__ozet p { font-size: 18px; -webkit-line-clamp: 4; }
.hb-liste > li:first-child .hb-devam { position: relative; z-index: 1; display: inline-block; margin-top: 20px; font-weight: 600; color: var(--wp--preset--color--accent); text-decoration: none; }

/* sayfalama */
.hb-sayfalama { margin-top: 40px !important; gap: 6px; }
.hb-sayfalama a, .hb-sayfalama .page-numbers { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 14px; border: 1px solid var(--wp--preset--color--line); border-radius: 6px; font-weight: 600; color: var(--wp--preset--color--primary); text-decoration: none; }
.hb-sayfalama .page-numbers.current { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff; }
.hb-sayfalama a:hover { border-color: var(--wp--preset--color--primary); }

/* === kenar sütunu === */
.hb-kenar.wp-block-group { position: sticky; top: calc(var(--mb-top, 0px) + var(--mb-header-h, 40px) + 32px); display: grid; gap: 40px; }
.hb-kenar > *, .hb-kenar__bolum > * { margin: 0; }
.hb-kenar__baslik { margin: 0; padding-bottom: 12px; border-bottom: 2px solid var(--wp--preset--color--primary); font-size: 20px; font-weight: 600; }
.hb-kenar__liste { list-style: none; margin: 0; padding: 0; }
.hb-kenar__liste > li { position: relative; margin: 0; padding-block: 16px; border-bottom: 1px solid var(--wp--preset--color--line); }
.hb-kenar__oge { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; }
.hb-kenar__oge a { color: var(--wp--preset--color--ink); text-decoration: none; }
.hb-kenar__oge a::after { content: ""; position: absolute; inset: 0; }
.hb-kenar__liste > li:hover .hb-kenar__oge a { color: var(--wp--preset--color--accent); }
.hb-kenar__tarih { margin: 4px 0 0; font-size: 15px; color: var(--wp--preset--color--muted); }
.hb-kenar__tumu { margin-top: 14px !important; font-size: 16px; font-weight: 600; }
.hb-kenar__tumu a { color: var(--wp--preset--color--accent); text-decoration: none; }
.hb-kenar__egitim > li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: start; }
.hb-kenar__egitim-metin > * { margin: 0; }
.hb-yaprak { overflow: hidden; border: 1px solid var(--wp--preset--color--line); border-radius: 6px; text-align: center; background: #fff; }
.hb-yaprak > * { margin: 0; }
.hb-yaprak__ay { background: var(--wp--preset--color--primary); color: #fff; font-size: 11px; font-weight: 600; line-height: 20px; text-transform: uppercase; }
.hb-yaprak__gun { font-size: 22px; font-weight: 600; line-height: 32px; color: var(--wp--preset--color--primary); }
.hb-kenar__uyelik { padding: 24px; border-radius: 6px; }
.hb-kenar__uyelik > * + * { margin-top: 8px; }
.hb-kenar__uyelik .hb-kenar__baslik { padding: 0; border: 0; }
.hb-kenar__uyelik p { font-size: 16px; }
.hb-kenar__uyelik .wp-block-buttons { margin-top: 16px; }

/* === yazı detayı === */
.hb-yazi-bas { padding-block: 48px 0; }
.hb-yazi-bas .hb-yol.wp-block-group { gap: 4px 8px; margin-bottom: 20px; color: var(--wp--preset--color--muted); }
.hb-yazi-bas .hb-yol > * { margin: 0; }
.hb-yazi-bas .hb-yol a { color: var(--wp--preset--color--muted); text-decoration: none; }
.hb-yazi-bas .hb-yol a:hover { color: var(--wp--preset--color--primary); }
.hb-yazi-bas .hb-yol > * + *::before { content: "/"; margin-right: 8px; }
.hb-yazi-baslik { margin: 14px 0 0; max-width: 24ch; font-size: 44px; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.hb-giris { margin-top: 16px; }
.hb-giris p { margin: 0; max-width: 52ch; font-size: 21px; line-height: 1.5; color: var(--wp--preset--color--ink); }
.hb-giris.is-gizli { display: none; }

.hb-yazi > * { margin: 0; }
.hb-icerik { max-width: 720px; font-size: 18px; line-height: 1.75; }
.hb-icerik > * { margin-block: 0; }
.hb-icerik > * + * { margin-block-start: 20px; }
.hb-icerik h2, .hb-icerik h3 { margin-block-start: 44px; font-size: 25px; font-weight: 600; line-height: 1.3; }
.hb-icerik h3 { font-size: 21px; }
/* Eski içerikte ara başlıklar yalnızca kalın paragraf. */
.hb-icerik > .hb-ara-baslik { margin-block-start: 40px; font-size: 21px; line-height: 1.35; color: var(--wp--preset--color--primary); }
.hb-icerik a { color: var(--wp--preset--color--accent); text-decoration: underline; text-underline-offset: 3px; }
.hb-icerik ul { padding-left: 0; list-style: none; }
.hb-icerik ul > li { position: relative; padding-left: 22px; }
.hb-icerik ul > li + li { margin-top: 12px; }
.hb-icerik ul > li::before { content: ""; position: absolute; left: 0; top: .85em; width: 8px; height: 2px; background: var(--wp--preset--color--primary); }
.hb-icerik table { width: 100%; border-collapse: collapse; font-size: 17px; }
.hb-icerik th { text-align: left; padding: 10px 16px 10px 0; border-bottom: 2px solid var(--wp--preset--color--primary); font-size: 15px; font-weight: 600; color: var(--wp--preset--color--muted); }
.hb-icerik td { padding: 14px 16px 14px 0; border: 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.hb-icerik .wp-block-table thead { border-bottom: 0; }
.hb-icerik img { height: auto; border-radius: 6px; }
.hb-icerik blockquote, .hb-icerik .is-style-not { padding: 20px 24px; border-left: 3px solid var(--wp--preset--color--primary); border-radius: 0 6px 6px 0; background: var(--wp--preset--color--surface); }

.hb-komsu.wp-block-group { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 720px; margin-top: 56px !important; padding-top: 32px; border-top: 1px solid var(--wp--preset--color--line); }
.hb-komsu > * { margin: 0; }
.hb-komsu__oge a { display: block; height: 100%; padding: 20px 24px; border: 1px solid var(--wp--preset--color--line); border-radius: 6px; text-decoration: none; transition: border-color .18s ease-out; }
.hb-komsu__oge a:hover { border-color: var(--wp--preset--color--primary); }
.hb-komsu .post-navigation-link__label { display: block; font-size: 15px; color: var(--wp--preset--color--muted); }
.hb-komsu .post-navigation-link__title { display: block; margin-top: 6px; font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--wp--preset--color--primary); }
.hb-komsu__sonraki { grid-column: 2; text-align: right; }

/* === duyarlı === */
@media (max-width: 1000px) {
	.hb-duzen.wp-block-group { grid-template-columns: minmax(0, 1fr); gap: 56px; }
	.hb-kenar.wp-block-group { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 781px) {
	.hb-bant { padding-top: 32px; }
	.hb-baslik, .hb-yazi-baslik { font-size: 32px; }
	.hb-aciklama p, .hb-giris p { font-size: 17px; }
	.hb-filtre.wp-block-group { flex-direction: column-reverse; align-items: stretch; }
	.hb-ara .wp-block-search__inside-wrapper { width: 100%; }
	.hb-sekme a { padding: 12px 14px; font-size: 15px; }
	.hb-sayfa { padding-block: 32px 64px; }
	.hb-yazi-bas { padding-top: 32px; }
	.hb-kenar.wp-block-group { grid-template-columns: minmax(0, 1fr); }
	.hb-oge.wp-block-group { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding-block: 22px; }
	.hb-oge__baslik { font-size: 18px; }
	.hb-oge__ozet { display: none; }
	.hb-liste > li:first-child .hb-oge { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.hb-liste > li:first-child .hb-oge__baslik { font-size: 26px; }
	.hb-liste > li:first-child .hb-oge__ozet { display: block; }
	.hb-komsu.wp-block-group { grid-template-columns: 1fr; }
	.hb-komsu__sonraki { grid-column: auto; text-align: left; }
}

/* çekirdek tablo kenarlıklarını kaldır, yatay çizgi düzenine uy */
.hb-icerik .wp-block-table th, .hb-icerik .wp-block-table td { border: 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.hb-icerik .wp-block-table thead th { border-bottom: 2px solid var(--wp--preset--color--primary); }
.hb-icerik .wp-block-table tfoot { border-top: 0; }
.hb-icerik .wp-block-table tfoot td { border-top: 2px solid var(--wp--preset--color--primary); border-bottom: 0; font-weight: 600; color: var(--wp--preset--color--primary); }
.hb-icerik .wp-block-table td:first-child, .hb-icerik .wp-block-table td:last-child { white-space: nowrap; }
.hb-icerik .wp-block-table { overflow-x: auto; }
@media (max-width: 781px) { .hb-icerik .wp-block-table table { min-width: 560px; font-size: 15px; } }
