/* ESGO Haber — haber.esgoeskisehir.com.tr */
:root {
  --red: #d7261e; --red-2: #ff5a1f; --navy: #0b2a5b; --ink: #111827; --ink-2: #374151; --ink-3: #6b7280;
  --line: #e5e7eb; --bg: #f4f5f7; --card: #fff;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* üst */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .78); font-size: 12.5px; }
.topbar .wrap { display: flex; justify-content: space-between; height: 32px; align-items: center; }
.mast { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.mast-in { display: flex; align-items: center; gap: 24px; height: 74px; }
.logo { display: inline-flex; align-items: baseline; font-weight: 900; font-size: 34px; letter-spacing: -.04em; line-height: 1; }
.logo .es { color: var(--navy); }
.logo .go { background: linear-gradient(135deg, var(--red), var(--red-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo .hb { margin-left: 10px; font-size: 13px; font-weight: 800; letter-spacing: .22em; color: #fff; background: var(--red); padding: 5px 8px 4px; border-radius: 4px; align-self: center; }
.search { margin-left: auto; display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px 0 16px; width: min(340px, 40vw); }
.search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 14px; padding: 10px 0; outline: none; color: var(--ink); }
.search button { border: 0; background: none; width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink-3); cursor: pointer; border-radius: 50%; }
.search button:hover { color: var(--red); }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; }
.cats { border-top: 1px solid var(--line); background: #fff; }
.cats .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.cats .wrap::-webkit-scrollbar { display: none; }
.cats a { flex: none; padding: 13px 14px; font-size: 14.5px; font-weight: 700; color: var(--ink-2); border-bottom: 3px solid transparent; }
.cats a:hover { color: var(--red); }
.cats a[aria-current] { color: var(--red); border-bottom-color: var(--red); }

/* son dakika */
.flash { background: var(--red); color: #fff; }
.flash .wrap { display: flex; align-items: center; gap: 16px; height: 44px; overflow: hidden; }
.flash b { flex: none; font-size: 12.5px; letter-spacing: .12em; background: #fff; color: var(--red); padding: 5px 10px; border-radius: 4px; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .55 } }
.flash-track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.flash-run { display: flex; gap: 48px; width: max-content; animation: run 40s linear infinite; }
.flash-run:hover { animation-play-state: paused; }
.flash-run a { font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.flash-run time { opacity: .8; margin-right: 6px; font-variant-numeric: tabular-nums; }
@keyframes run { to { transform: translateX(-50%) } }

/* manşet */
.home-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.hero { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16 / 10; }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.slide.on { opacity: 1; z-index: 1; }
.slide img, .slide .noimg { width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .85)); }
.sl-txt { position: absolute; left: 0; right: 0; bottom: 56px; padding: 0 28px; z-index: 2; color: #fff; }
.sl-txt h2 { font-size: clamp(22px, 2.8vw, 36px); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; margin-top: 10px; text-wrap: balance; text-shadow: 0 2px 12px rgba(0, 0, 0, .4); }
.slide:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.dots { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; background: rgba(0, 0, 0, .55); }
.dots button { flex: 1; height: 40px; border: 0; background: none; color: rgba(255, 255, 255, .7); font: 700 14px Inter, sans-serif; cursor: pointer; border-top: 3px solid transparent; }
.dots button.on { color: #fff; border-top-color: var(--red); background: rgba(255, 255, 255, .08); }
.hero-side { display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 12px; }

/* kartlar */
.kat { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--red); padding: 3px 8px; border-radius: 3px; }
.card { background: var(--card); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 10px 24px rgba(17, 24, 39, .1); transform: translateY(-2px); }
.card .ph { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e5e7eb; }
.card .ph img, .card .ph .noimg { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .ph img { transform: scale(1.04); }
.card .cb { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .kat { align-self: flex-start; }
.card h3 { font-size: 17px; font-weight: 800; line-height: 1.3; letter-spacing: -.005em; }
.card h3 a:hover { color: var(--red); }
.card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.card time { margin-top: auto; font-size: 12.5px; color: var(--ink-3); }
.c-sm { flex-direction: row; }
.c-sm .ph { width: 42%; flex: none; aspect-ratio: auto; }
.c-sm .cb { padding: 10px 12px; gap: 6px; }
.c-sm h3 { font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.c-sm .kat { font-size: 10px; padding: 2px 6px; }
.c-lg h3 { font-size: 22px; }
.noimg { display: grid; place-items: center; background: linear-gradient(135deg, #0b2a5b, #13408a); }
.noimg .logo, .noimg { font-weight: 900; font-size: 26px; letter-spacing: -.04em; }
.noimg .es { color: #fff; } .noimg .go { color: var(--red-2); } .noimg .hb { display: none; }
span.noimg { display: grid; } span.noimg > span { display: inline; }

/* bölümler */
.home-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; margin-top: 30px; align-items: start; }
.home-cols { display: grid; gap: 36px; }
.sec-t { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--ink); margin-bottom: 16px; }
.sec-t span { font-size: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; padding-bottom: 8px; position: relative; }
.sec-t span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red); }
.sec-t a { font-size: 13px; font-weight: 700; color: var(--red); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-k { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; }
.grid-k-r { display: grid; gap: 12px; align-content: start; }
.grid-k-r .c-sm .ph { min-height: 88px; }
.home-side { position: sticky; top: 140px; display: grid; gap: 20px; }
.side-box { background: #fff; border-radius: 10px; padding: 18px 18px 8px; }
.box-t { font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; padding-bottom: 10px; border-bottom: 2px solid var(--red); margin-bottom: 4px; }
.pop { list-style: none; }
.pop li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.pop li:last-child { border-bottom: 0; }
.pop .n { font-size: 28px; font-weight: 900; color: var(--red); line-height: 1; min-width: 22px; }
.pop a { font-weight: 700; font-size: 14.5px; line-height: 1.35; }
.pop a:hover { color: var(--red); }

/* liste */
.page-head { margin-top: 28px; }
.page-head h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; letter-spacing: -.02em; border-left: 5px solid var(--red); padding-left: 14px; }
.muted { color: var(--ink-3); margin-top: 8px; }
.list { display: grid; gap: 14px; }
.row-item { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; background: #fff; border-radius: 10px; overflow: hidden; }
.row-item .ph { aspect-ratio: 16 / 10; background: #e5e7eb; }
.row-item .ph img, .row-item .ph .noimg { width: 100%; height: 100%; object-fit: cover; }
.row-item > div { padding: 16px 18px 16px 0; display: flex; flex-direction: column; gap: 8px; }
.row-item .kat { align-self: flex-start; }
.row-item h3 { font-size: 19px; font-weight: 800; line-height: 1.3; }
.row-item h3 a:hover { color: var(--red); }
.row-item p { font-size: 14.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-item time { font-size: 12.5px; color: var(--ink-3); margin-top: auto; }
.none { background: #fff; border-radius: 10px; padding: 40px; text-align: center; color: var(--ink-3); }
.pager { display: flex; gap: 6px; justify-content: center; margin: 28px 0; flex-wrap: wrap; }
.pager a { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: #fff; font-weight: 700; }
.pager a[aria-current] { background: var(--red); color: #fff; }

/* haber detayı */
.art-wrap { margin-top: 24px; }
.art { background: #fff; border-radius: 12px; padding: clamp(18px, 3.5vw, 40px); min-width: 0; }
.crumb { font-size: 13px; color: var(--ink-3); }
.crumb a { color: var(--red); font-weight: 600; }
.badge-flash { display: inline-block; margin-top: 14px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .1em; padding: 4px 10px; border-radius: 4px; }
.art h1 { font-size: clamp(28px, 3.8vw, 44px); line-height: 1.12; font-weight: 900; letter-spacing: -.02em; margin-top: 12px; text-wrap: balance; }
.spot { font-family: var(--serif); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); margin-top: 16px; font-weight: 600; }
.art-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13.5px; color: var(--ink-3); margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.share { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.share a { font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 6px; background: var(--bg); color: var(--ink-2); }
.share a:hover { background: var(--navy); color: #fff; }
.art-img { margin: 22px calc(-1 * clamp(18px, 3.5vw, 40px)) 0; }
.art-img img, .art-img .noimg { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.art-img figcaption { font-size: 13px; color: var(--ink-3); padding: 8px clamp(18px, 3.5vw, 40px) 0; }
.md { font-family: var(--serif); font-size: 19px; line-height: 1.75; color: #1f2937; margin-top: 26px; }
.md > * + * { margin-top: 1em; }
.md h2, .md h3, .md h4 { font-family: Inter, sans-serif; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); margin-top: 1.5em; }
.md h2 { font-size: 26px; } .md h3 { font-size: 21px; } .md h4 { font-size: 18px; }
.md a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.md strong { font-weight: 600; color: var(--ink); }
.md ul, .md ol { padding-left: 1.4em; }
.md li + li { margin-top: .35em; }
.md blockquote { border-left: 4px solid var(--red); padding: 6px 0 6px 18px; font-style: italic; color: var(--ink-2); }
.md figure img, .md p img { width: 100%; height: auto; border-radius: 8px; }
.md figcaption { font-family: Inter, sans-serif; font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.md code { font-size: .85em; background: var(--bg); padding: 2px 5px; border-radius: 4px; }
.md pre { background: #0f172a; color: #e2e8f0; padding: 16px; border-radius: 8px; overflow-x: auto; font-size: 14px; }
.md hr { border: 0; border-top: 1px solid var(--line); }
.md .video { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; }
.md .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.tags a { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--bg); color: var(--ink-2); }
.tags a:hover { background: var(--red); color: #fff; }
.related { margin-top: 32px; }

.empty { text-align: center; padding: 90px 16px; }
.empty h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; letter-spacing: -.02em; }
.empty p { color: var(--ink-3); margin: 14px auto 26px; max-width: 520px; font-size: 17px; }
.btn { display: inline-flex; padding: 13px 22px; border-radius: 10px; background: var(--red); color: #fff; font-weight: 800; }

/* alt */
.foot { margin-top: 56px; background: #0b1220; color: rgba(255, 255, 255, .7); padding: 44px 0 24px; }
.foot-in { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 32px; }
.foot .logo .es { color: #fff; }
.foot p { margin-top: 12px; font-size: 14px; max-width: 34ch; }
.foot h4 { color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.foot ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 8px 28px; font-size: 14px; }
.foot-in > div:last-child ul { grid-template-columns: 1fr; }
.foot a:hover { color: #fff; }
.legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }

@media (max-width: 1024px) {
  .home-main { grid-template-columns: minmax(0, 1fr); }
  .home-side { position: static; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .home-top { grid-template-columns: minmax(0, 1fr); }
  .hero-side { grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-side .c-sm { flex-direction: column; }
  .hero-side .c-sm .ph { width: 100%; aspect-ratio: 16 / 9; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-k { grid-template-columns: minmax(0, 1fr); }
  .foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .mast-in { height: 62px; gap: 12px; }
  .logo { font-size: 28px; }
  .search { display: none; }
  .menu-btn { display: block; margin-left: auto; }
  .cats { display: none; }
  .nav-open .cats { display: block; }
  .nav-open .cats .wrap { flex-direction: column; }
  .nav-open .cats a { border-bottom: 1px solid var(--line); }
  .nav-open .mast-in::after { content: none; }
  .nav-open .search { display: flex; position: absolute; top: 70px; left: 16px; right: 16px; width: auto; }
  .hero { aspect-ratio: 4 / 3.4; border-radius: 0; margin: 0 -16px; }
  .home-top { margin-top: 0; }
  .sl-txt { padding: 0 16px; bottom: 50px; }
  .grid-3, .grid-4, .hero-side { grid-template-columns: minmax(0, 1fr); }
  .hero-side .c-sm { flex-direction: row; }
  .hero-side .c-sm .ph { width: 38%; aspect-ratio: auto; }
  .row-item { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
  .row-item > div { padding: 10px 12px 10px 0; }
  .row-item h3 { font-size: 15.5px; }
  .row-item p { display: none; }
  .art { border-radius: 0; margin: 0 -16px; }
  .md { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .flash-run { animation: none; } .flash b { animation: none; } .slide { transition: none; } }
