/* Eğitim ve Seminerler: arşiv (templates/archive-egitim.html), detay (templates/single-egitim.html), kenar (patterns/egitim-kenar.php).
   Haberler tasarımının dili; bant, iki sütun, kenar ve yazı başı sınıfları haberler.css'ten (hb-*). */

/* sekmeler (egitimler.js oluşturur) */
.eg-sekmeler button { display: block; padding: 14px 20px; border: 0; border-radius: 6px 6px 0 0; background: none; font: inherit; font-size: 16px; font-weight: 600; line-height: 1; color: #C9CBE6; cursor: pointer; }
.eg-sekmeler button:hover { color: #fff; }
.eg-sekmeler button[aria-selected="true"] { background: #fff; color: var(--wp--preset--color--primary); }
.eg-sekmeler button small { margin-left: 6px; font-size: 14px; font-weight: 500; opacity: .75; }
.eg-uzem { margin: 0 0 14px; font-size: 16px; font-weight: 600; }
.hb-bant .eg-uzem a { color: #fff; text-decoration: none; }
.hb-bant .eg-uzem a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ay başlıkları */
.eg-ay { margin: 56px 0 0; padding-bottom: 14px; border-bottom: 2px solid var(--wp--preset--color--primary); font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.eg-ay:first-child { margin-top: 0; }

/* eğitim satırı */
.eg-liste { list-style: none; margin: 0; padding: 0; }
.eg-liste > li { margin: 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.eg-satir.wp-block-group { position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 32px; align-items: center; padding-block: 28px; }
.eg-satir > *, .eg-satir__tarih > *, .eg-satir__metin > * { margin: 0; }
.eg-gun { font-size: 22px; font-weight: 600; line-height: 1.2; color: var(--wp--preset--color--primary); }
.eg-hafta { margin-top: 4px !important; font-size: 16px; color: var(--wp--preset--color--muted); }
.eg-baslik { font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.eg-baslik a { color: var(--wp--preset--color--primary); text-decoration: none; }
.eg-baslik a::after { content: ""; position: absolute; inset: 0; }
.eg-satir:hover .eg-baslik a { color: var(--wp--preset--color--accent); }
.eg-iso { display: none; }
.eg-kayit { position: relative; z-index: 1; margin: 0; }
.eg-kayit .wp-block-button__link { padding: 12px 22px; font-size: 16px; white-space: nowrap; }
.eg-tamam { margin: 0; font-size: 16px; color: var(--wp--preset--color--muted); }

/* saat · yer · tarih satırı, SVG ikonlu */
.eg-meta.wp-block-group { gap: 8px 28px; margin-top: 10px; }
.eg-meta > * { margin: 0; }
.eg-meta p { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--wp--preset--color--ink); }
.eg-meta p:empty { display: none; }
.eg-meta p::before { content: ""; width: 18px; height: 18px; flex: none; background: var(--wp--preset--color--accent); -webkit-mask: var(--ikon) center / contain no-repeat; mask: var(--ikon) center / contain no-repeat; }
.eg-saat { --ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.4'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M8 4.5V8l2.5 1.5'/%3E%3C/svg%3E"); }
.eg-yer { --ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.4'%3E%3Cpath d='M8 14.5s4.5-4.2 4.5-7.8a4.5 4.5 0 0 0-9 0c0 3.6 4.5 7.8 4.5 7.8z'/%3E%3Ccircle cx='8' cy='6.7' r='1.6'/%3E%3C/svg%3E"); }
.eg-tarih { --ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.4'%3E%3Crect x='2' y='3' width='12' height='11' rx='1.5'/%3E%3Cpath d='M2 6.5h12M5.5 1.5v3M10.5 1.5v3'/%3E%3C/svg%3E"); }
.eg-meta--buyuk.wp-block-group { margin-top: 20px; }
.eg-meta--buyuk p { font-size: 18px; }

/* geçmiş */
.eg-satir.is-gecmis .eg-gun { color: var(--wp--preset--color--muted); }

/* kenar metni */
.eg-kenar__metin { margin-top: 16px !important; font-size: 17px; }
.eg-kenar__metin a { font-weight: 600; color: var(--wp--preset--color--accent); text-decoration: none; }

/* detay: afiş ve kayıt kutusu */
.eg-afis { margin: 0 0 32px; max-width: 720px; }
.eg-afis img { border-radius: 6px; }
.eg-kutu.wp-block-group { position: sticky; top: calc(var(--mb-top, 0px) + var(--mb-header-h, 40px) + 32px); overflow: hidden; border: 1px solid var(--wp--preset--color--line); border-radius: 6px; background: #fff; box-shadow: 0 1px 3px rgb(16 24 40 / .06); }
.eg-kutu > * { margin: 0; }
.eg-kutu__bas { padding: 22px 24px; }
.eg-kutu__bas > * { margin: 0; }
.eg-kutu__bas .eg-kutu__etiket { color: #D5D7EE; }
.eg-kutu__tarih { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.eg-kutu__satirlar { padding: 4px 24px; }
.eg-kutu__satir { padding-block: 14px; border-bottom: 1px solid var(--wp--preset--color--line); }
.eg-kutu__satir:last-child { border-bottom: 0; }
.eg-kutu__satir > * { margin: 0; }
.eg-kutu__satir:has(.eg-kutu__deger:empty) { display: none; }
.eg-kutu__etiket { font-size: 14px; font-weight: 600; color: var(--wp--preset--color--muted); }
.eg-kutu__deger { margin-top: 2px !important; font-size: 17px; line-height: 1.5; }
.eg-kutu__deger a { color: var(--wp--preset--color--ink); text-decoration: none; }
.eg-kutu__kayit { padding: 4px 24px 24px; }
.eg-kutu__kayit .wp-block-button__link { padding: 14px 22px; font-size: 17px; }

/* diğer eğitimler bandı */
.eg-diger { padding-block: 64px 96px; }
.eg-diger__baslik { margin: 0; padding-bottom: 14px; border-bottom: 2px solid var(--wp--preset--color--primary); font-size: 26px; font-weight: 600; }
.eg-diger .eg-takvim { margin-top: 0; }

@media (max-width: 1000px) {
	.eg-kutu.wp-block-group { position: static; order: -1; }
}
@media (max-width: 781px) {
	.eg-satir.wp-block-group { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-block: 24px; }
	.eg-satir__tarih { display: flex; align-items: baseline; gap: 10px; }
	.eg-gun { font-size: 19px; }
	.eg-hafta { margin: 0 !important; font-size: 15px; }
	.eg-baslik { font-size: 19px; }
	.eg-meta p { font-size: 15px; }
	.eg-meta--buyuk p { font-size: 16px; }
	.eg-kayit { justify-self: start; margin-top: 4px; }
	.eg-uzem { display: none; }
	.eg-diger { padding-block: 48px 64px; }
}
.eg-kutu__satirlar > * { margin-block: 0; }
.eg-kutu__kayit:not(:has(a)) { display: none; }
.hb-yazi > .eg-afis { margin-bottom: 40px; }

/* === Eğitim arşivi "B · Süzgeç paneli" (2026-11-13; yayin-arsiv.css'teki yp-* düzenini kullanır) === */
.egb-grup { margin: 0; padding: 0; border: 0; }
.egb-grup .yp-grup__baslik { display: block; width: 100%; padding: 0 0 10px; }
.egb-secim { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 15px; cursor: pointer; }
.egb-secim input { width: 17px; height: 17px; margin: 0; accent-color: var(--wp--preset--color--primary); }
.egb-secim input:checked + span { font-weight: 600; color: var(--wp--preset--color--primary); }
.egb-secim .sayi { margin-left: auto; font-size: 13px; color: var(--wp--preset--color--muted); }
.egb-uzem { padding: 18px; border-radius: 6px; background: var(--wp--preset--color--surface); }
.egb-uzem > * { margin: 0; }
.egb-uzem__metin { font-size: 15px; }
.egb-uzem__link { margin-top: 8px !important; font-size: 15px; font-weight: 600; }
.egb-uzem__link a { color: var(--wp--preset--color--accent); text-decoration: none; }

/* sonuç satırı: kare görsel | metin | detay */
.egb-oge.wp-block-group { grid-template-columns: 132px minmax(0, 1fr) auto; }
.egb-gorsel { aspect-ratio: 1; }
.egb-gorsel > * { margin: 0 !important; }
.egb-gorsel:has(.wp-block-post-featured-image) .egb-logo { display: none; }
.egb-logo { display: grid; place-items: center; height: 100%; border: 1px solid var(--wp--preset--color--line); border-radius: 6px; background: #fff; }
.egb-logo img { width: 68%; height: auto; }
.egb-ust.wp-block-group { gap: 8px 12px; }
.egb-tarih { font-weight: 600; color: var(--wp--preset--color--primary); }
.egb-oge .eg-meta.wp-block-group { margin-top: 10px; }
.egb-detay { position: relative; z-index: 1; align-self: start; display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 6px; background: var(--wp--preset--color--primary); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .2s; }
.egb-detay:hover { background: var(--wp--preset--color--accent); color: #fff; }
.egb-oge.is-gecti, .is-gecti .egb-oge { opacity: .85; }
.is-gecti .egb-detay { background: #fff; color: var(--wp--preset--color--primary); box-shadow: inset 0 0 0 1px var(--wp--preset--color--line); }

/* rozetler (arşiv + detay) */
.eg-rozet { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #EFEFF8; color: var(--wp--preset--color--primary); font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.eg-rozet--bugun { background: var(--wp--preset--color--signal); color: #fff; }
.eg-rozet--online { background: #E6F0FF; color: var(--wp--preset--color--accent); }
.eg-rozet--gecti { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--muted); }
.eg-rozetler { display: flex; gap: 8px; margin-bottom: 12px; }

/* detay: takvime ekle */
.eg-kutu__kayit { display: grid !important; gap: 8px; }
.eg-takvime { height: 46px; border: 1px solid var(--wp--preset--color--line); border-radius: 6px; background: #fff; font: inherit; font-size: 16px; font-weight: 600; color: var(--wp--preset--color--primary); cursor: pointer; }
.eg-takvime:hover { border-color: var(--wp--preset--color--primary); }

@media (max-width: 781px) {
	.egb-oge.wp-block-group { grid-template-columns: 84px minmax(0, 1fr); }
	.egb-detay { grid-column: 2; justify-self: start; }
}
/* yayin-arsiv.css bu dosyadan sonra yüklendiği için eğitim satırı daha belirgin seçiciyle */
.egb-liste .egb-oge.wp-block-group, .egb-liste .egb-oge:not(:has(.yp-oge__gorsel)) { grid-template-columns: 132px minmax(0, 1fr) auto; }
@media (max-width: 781px) { .egb-liste .egb-oge.wp-block-group, .egb-liste .egb-oge:not(:has(.yp-oge__gorsel)) { grid-template-columns: 84px minmax(0, 1fr); } }
