/* Gerçek içerikli bülten ve proje sayfaları (tools/bulten_proje_uret.mjs üretir)
   Tasarımdaki bulten-detay / proje-detay / projeler / bulten düzeni (icerik.css) aynen kullanılır;
   burada yalnız uzun ve değişken uzunluktaki gerçek metnin sığması için eklemeler var. */

/* ---------- Bülten listesi: başlık/özet uzunluğu değişken ---------- */
.icerik--bulten-liste .bulten-izgara li { display: flex; }
.icerik--bulten-liste .bulten-kart { flex: 1; height: auto; min-height: 414px; }
.icerik--bulten-liste .bulten-kart__govde { padding-bottom: 44px; }
.icerik--bulten-liste .bulten-kart h2 { font-size: 18px; line-height: 22px; }
.icerik--bulten-liste .bulten-kart__govde > p:not(.bulten-kart__alt) {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden;
}
.bulten-kart__alt .bulten-kart__tarih { color: #8e98a3; }

/* ---------- Bülten iç ---------- */
.bulten-yazi--gercek .bulten-yazi__tarih { position: static; display: block; margin: -15px -7px 10px 0; text-align: right; }
.bulten-yazi--gercek > p + p { margin-top: 12px; }
.icerik--bulten-ic .ilgili-kart { height: auto; padding-bottom: 14px; }
.icerik--bulten-ic .ilgili-kart h3 { margin-right: 12px; font-size: 16px; line-height: 20px; }
.icerik--bulten-ic .ilgili-kart p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }

/* Galerinin altında devam eden bölümler (bülten ve proje) */
.yazi-bolumler { display: grid; gap: 34px; margin-top: 44px; }
.yazi-bolumler h2, .yazi-bolumler h3 { font-size: 15px; line-height: 26px; font-weight: 800; color: var(--mavi); }
.yazi-bolumler h4 { margin-top: 22px; font-size: 14px; line-height: 20px; font-weight: 800; color: var(--lacivert); }
.yazi-bolumler p { max-width: 855px; font-size: 14px; line-height: 17px; }
.yazi-bolumler h2 + p, .yazi-bolumler h3 + p, .yazi-bolumler h4 + p { margin-top: 9px; }
.yazi-bolumler p + p { margin-top: 14px; }
.yazi-bolumler > .yazi-vurgu { margin-top: -10px; }
.yazi-ust { margin-bottom: 2px; font-size: 12px; line-height: 15px; font-weight: 800; letter-spacing: .04em; color: #0c83dd; }
.yazi-vurgu { padding-left: 12px; border-left: 3px solid #fcb813; font-weight: 700; color: var(--lacivert); }
.yazi-govde p.yazi-vurgu { margin-top: 17px; }

/* Hayaller Engel Tanımaz: dikey fotoğraf, kırpılmadan */
.yazi-govde--foto { align-items: start; }
.proje-foto { margin: 4px 0 0; }
.proje-foto img, .proje-kart__foto img { display: block; width: 100%; height: auto; border-radius: 12px; }
.proje-kart__foto { flex: none; width: 458px; margin: -2px -2px -2px 0; }
.proje-kart__foto img { border-radius: 0 12px 12px 0; }

/* ---------- Proje listesi ve sol menü: 9 proje, uzun adlar ---------- */
.proje-liste--uzun a { height: auto; padding: 10px 12px; line-height: 18px; white-space: normal; }
.projem-var--kisa { height: auto; padding-bottom: 26px; }
.projem-var--kisa a { margin-top: 18px; }
.proje-kart--liste h2 { margin-left: 1px; font-size: 15px; line-height: 26px; font-weight: 800; color: var(--mavi); }
.proje-kart--liste h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.proje-kart--liste .proje-kart__alt { margin-top: 4px; font-weight: 700; }
.proje-kart--liste .proje-kart__alt + p { margin-top: 12px; }
.icerik--projeler .proje-kart--liste:first-child { margin-top: 0; }
.proje-kart--liste .galeri { width: 340px; grid-template-rows: 250px auto; }
.proje-kart--liste .galeri__seritler li { height: 62px; }
.proje-kart--liste .yer-tutucu:not(.yer-tutucu--kucuk) { background-size: 120px 91px; }
.proje-kart--liste .yer-tutucu--kucuk { background-size: 46px 35px; }
.proje-kart--liste .proje-kart__foto { width: 300px; }
/* Proje listesi: dikey/yatay fotoğraf kartı uzatmasın — yer tutucu galeriyle aynı kutu, fotoğraf kutuyu doldurur */
.proje-kart--liste .proje-kart__foto { position: relative; width: 340px; min-height: 330px; align-self: stretch; }
.proje-kart--liste .proje-kart__foto img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.proje-kart__devam { position: absolute; left: 66px; bottom: 17px; font-size: 12px; line-height: 15px; font-weight: 700; color: var(--mavi); }
.proje-kart__devam:hover { text-decoration: underline; }

/* Hayal kutuları: belgedeki uzun metinle */
.hayal--uzun .hayal__kutu { height: auto; padding: 34px 26px 38px; }
.hayal--uzun .hayal__kutu > img { left: auto; top: auto; right: -18px; bottom: -18px; opacity: .22; }
.hayal--uzun .hayal__kutu p { width: auto; max-width: 460px; transform: none; font-size: 13px; line-height: 17px; }
.hayal--uzun .hayal__kutu p + p { margin-top: 8px; }
.hayal--uzun .hayal__ust { margin: 0 auto 6px; font-size: 12px; line-height: 15px; font-weight: 800; letter-spacing: .04em; }
.hayal--uzun .hayal__kutu .yazi-vurgu { padding: 0; border: 0; color: inherit; margin-top: 14px; }
.hayal--uzun .hayal__kutu a { width: auto; min-width: 190px; padding: 0 22px; margin-top: 24px; }
.hayal--uzun .hayal__kutu .hayal__not { margin-top: 14px; font-size: 11px; line-height: 14px; opacity: .9; }

@media (max-width: 1239px) {
  .proje-kart__foto { width: auto; max-width: 458px; margin: 0 auto 16px; padding: 0 16px; }
  .proje-kart__foto img { border-radius: 12px; }
  .yazi-govde--foto .proje-foto { max-width: 458px; }
}
@media (max-width: 767px) {
  .proje-kart__devam { left: 16px; bottom: 18px; }
  .icerik--bulten-liste .bulten-kart { min-height: 0; }
  .bulten-yazi--gercek .bulten-yazi__tarih { margin: -26px 0 12px; text-align: left; }
  .yazi-bolumler { gap: 26px; margin-top: 32px; }
  .yazi-bolumler h2, .yazi-bolumler h3 { line-height: 20px; }
  .hayal--uzun .hayal__kutu { padding: 28px 16px 32px; }
}
/* Hayal kutusu başlığı: bölüm başlığı rengi (mavi) kutunun zeminiyle aynı olmasın */
.hayal--uzun .hayal__kutu h3 { color: #fff; font-size: 20px; line-height: 25px; }
.hayal--uzun .hayal__kutu--acik h3 { color: #0c83dd; }
/* Liste kartı galerisi: dar ekranda tasarımın tam genişlik düzenine dön */
@media (max-width: 1239px) {
  .proje-kart--liste .galeri { width: auto; grid-template-rows: auto auto; }
  .proje-kart--liste .galeri__seritler li { height: auto; }
  .proje-kart--liste .proje-kart__foto { width: auto; min-height: 0; align-self: auto; }
  .proje-kart--liste .proje-kart__foto img { position: static; aspect-ratio: 4 / 3; }
}

/* ---------- Bülten listesi sayfalama (site.js [data-sayfala] kurar; tasarımdaki .sayfalama görünümü, 2'den çok sayfa) ---------- */
.icerik--bulten-liste .bulten-izgara li[hidden] { display: none; }
.sayfalama--cok { width: max-content; transform: none; }
.sayfalama--cok .sayfalama__oklar span { opacity: .35; }
.sayfalama--cok .sayfalama__sayilar { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 25px; }
.sayfalama--cok .sayfalama__oklar { gap: 7px; }
@media (max-width: 767px) {
  .sayfalama--cok { margin-top: 40px; }
  .sayfalama--cok .sayfalama__sayilar { grid-auto-columns: 40px; }
  .sayfalama--cok .sayfalama__sayilar a, .sayfalama--cok .sayfalama__sayilar span { padding: 10px 0; }
  .sayfalama--cok .sayfalama__oklar a, .sayfalama--cok .sayfalama__oklar span { width: 44px; height: 40px; }
}

/* ---------- Uzun proje sayfası: içindekiler + başa dön ---------- */
.icindekiler { margin: 0 0 26px; padding: 14px 18px 16px; background: var(--gri-zemin); border: 1px solid var(--gri-cizgi); border-radius: 12px; }
.icindekiler summary { cursor: pointer; font-size: 14px; line-height: 20px; font-weight: 800; color: var(--lacivert); }
.icindekiler ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; margin-top: 10px; padding-left: 20px; list-style: decimal; font-size: 13px; line-height: 18px; }
.icindekiler a { color: var(--mavi); }
.icindekiler a:hover { text-decoration: underline; }
.proje-detay [id^="bolum-"] { scroll-margin-top: 16px; }
.basa-don { position: fixed; z-index: 30; right: 20px; bottom: 20px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--mavi); color: #fff; font-size: 22px; line-height: 1; font-weight: 800; box-shadow: 0 4px 14px rgba(0, 25, 70, .25); }
.basa-don:hover { filter: brightness(1.1); }
.basa-don[hidden] { display: none; }
@media (max-width: 767px) {
  .icindekiler ol { grid-template-columns: minmax(0, 1fr); }
  .basa-don { right: 14px; bottom: 14px; }
}

/* Proje iç: dar ekranda 9'lu proje menüsü içerikten SONRA gelir (önce okunacak şey projenin kendisi) */
@media (max-width: 1023px) {
  .icerik--proje-ic .proje-yan { order: 2; }
}
