/* ==========================================================================
   END — Kart tasarım sistemi (Online İşlemler'den türetildi)
   .end-oi : bağlantı kartları (Online İşlemler, Güncel, Projeler, Kurumsal, Başkanın Ofisi)
   .end-ic : içerik kartları (Haberler, Video Haberler, Proje listeleri, Duyurular, Etkinlikler, Basında END)
   Ad alanları sitenin diğer bileşenlerine dokunmaz.
   Katmanlar: fotoğraf (z1) → mavi örtü (z2) → içerik (z3)
   Fotoğraf yalnızca :hover / :focus-visible ile görünür; JavaScript yok.
   Fotoğraflar: Unsplash License (ücretsiz, ticari kullanım) + END'in kendi görselleri.
   İkonlar: Lucide (ISC). Yazı tipi: Inter (SIL OFL), yerel.
   ========================================================================== */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/inter/inter-latin-ext-400-normal.woff2?v=2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/inter/inter-latin-400-normal.woff2?v=2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/inter/inter-latin-ext-600-normal.woff2?v=2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/inter/inter-latin-600-normal.woff2?v=2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/inter/inter-latin-ext-700-normal.woff2?v=2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/inter/inter-latin-700-normal.woff2?v=2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.end-oi {
    --oi-bg: #FFFFFF;
    --oi-lacivert: #153753;
    --oi-metin: #20384F;
    --oi-metin2: #788696;
    --oi-ikon-bg: #EDF2F6;
    --oi-kenar: #DCE3EA;
    --oi-mavi: #2167A5;
    --oi-mavi-acik: #2E89D3;
    --oi-cizgi: #81CAFF;
    --oi-ease: cubic-bezier(0.22, 1, 0.36, 1);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.end-oi *, .end-oi *::before, .end-oi *::after { box-sizing: border-box; }

.end-oi-baslik { margin: 0 0 18px; font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: var(--oi-metin); }

.end-oi-izgara { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.end-oi-izgara > li { margin: 0; padding: 0; list-style: none; }

/* ── Kart ─────────────────────────────────────────────────────────────── */
.end-oi-kart {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
    height: 152px; padding: 20px;
    border: 1px solid var(--oi-kenar); border-radius: 10px; background: var(--oi-bg);
    color: var(--oi-metin); text-decoration: none !important;
    transition: border-color 350ms var(--oi-ease), box-shadow 450ms var(--oi-ease);
}
.end-oi-kart:hover, .end-oi-kart:focus { color: var(--oi-metin); text-decoration: none; }

/* z1: fotoğraf — normalde görünmez */
.end-oi-foto {
    position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; transform: scale(1);
    transition: opacity 450ms var(--oi-ease), transform 850ms var(--oi-ease);
    pointer-events: none;
}
/* z2: kurumsal mavi örtü (siyah karartma yok) */
.end-oi-kart::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(15deg, rgba(14, 65, 115, .94) 0%, rgba(19, 91, 154, .65) 55%, rgba(46, 137, 211, .35) 100%);
    opacity: 0; transition: opacity 450ms var(--oi-ease);
}
/* alt kenar: soldan sağa açılan çizgi */
.end-oi-kart::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 1;
    background: var(--oi-cizgi); transform: scaleX(0); transform-origin: left center;
    transition: transform 450ms var(--oi-ease);
}

/* z3: içerik */
.end-oi-ust { display: flex; align-items: flex-start; justify-content: space-between; }
.end-oi-ikon {
    display: flex; align-items: center; justify-content: center; flex: 0 0 42px; width: 42px; height: 42px;
    border-radius: 9px; background: var(--oi-ikon-bg); color: var(--oi-lacivert);
    transition: background-color 350ms var(--oi-ease), color 350ms var(--oi-ease), transform 350ms var(--oi-ease);
}
.end-oi-ikon svg { width: 24px; height: 24px; display: block; }
.end-oi-ok { width: 18px; height: 18px; color: var(--oi-metin2); transition: color 350ms var(--oi-ease), transform 350ms var(--oi-ease); }
.end-oi-ok svg { width: 18px; height: 18px; display: block; }
.end-oi-ad { display: block; margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--oi-metin); transition: color 350ms var(--oi-ease); }
.end-oi-aciklama { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; line-height: 1.4; color: var(--oi-metin2); transition: color 350ms var(--oi-ease); }

/* ── Güvenli Teklif Al (aynı boyut, farklı vurgu) ───────────────────────── */
.end-oi-kart.end-oi-vurgu { background: var(--oi-lacivert); border-color: var(--oi-lacivert); }
.end-oi-vurgu .end-oi-ikon { background: rgba(255, 255, 255, .12); color: #fff; }
.end-oi-vurgu .end-oi-ok { color: rgba(255, 255, 255, .7); }
.end-oi-vurgu .end-oi-ad { font-size: 17.5px; font-weight: 700; color: #fff; }
.end-oi-vurgu .end-oi-aciklama { color: #9CD2FF; }
.end-oi-vurgu .end-oi-ad + .end-oi-aciklama { margin-top: 2px; }
.end-oi-vurgu .end-oi-alt { position: relative; }
.end-oi-vurgu .end-oi-alt::after { content: ""; position: absolute; left: 0; bottom: -20px; width: 36px; height: 3px; background: var(--oi-cizgi); }

/* ── Hover / klavye odağı (yalnızca gerçek fare olan cihazlarda fotoğraf) ── */
@media (hover: hover) and (pointer: fine) {
    .end-oi-kart:hover .end-oi-foto { opacity: 1; transform: scale(1.08); }
    .end-oi-kart:hover::before { opacity: 1; }
    .end-oi-kart:hover::after { transform: scaleX(1); }
    .end-oi-kart:hover { border-color: transparent; box-shadow: 0 16px 32px -16px rgba(33, 103, 165, .55); }
    .end-oi-kart:hover .end-oi-ad { color: #fff; }
    .end-oi-kart:hover .end-oi-aciklama { color: rgba(255, 255, 255, .88); }
    .end-oi-kart:hover .end-oi-ikon { background: rgba(255, 255, 255, .18); color: #fff; transform: translateY(-3px); }
    .end-oi-kart:hover .end-oi-ok { color: #fff; transform: translate(3px, -3px); }
    .end-oi-vurgu:hover .end-oi-alt::after { opacity: 0; }
}
.end-oi-kart:focus-visible { outline: 2px solid var(--oi-mavi-acik); outline-offset: 3px; border-color: transparent; box-shadow: 0 16px 32px -16px rgba(33, 103, 165, .55); }
.end-oi-kart:focus-visible .end-oi-foto { opacity: 1; transform: scale(1.08); }
.end-oi-kart:focus-visible::before { opacity: 1; }
.end-oi-kart:focus-visible::after { transform: scaleX(1); }
.end-oi-kart:focus-visible .end-oi-ad { color: #fff; }
.end-oi-kart:focus-visible .end-oi-aciklama { color: rgba(255, 255, 255, .88); }
.end-oi-kart:focus-visible .end-oi-ikon { background: rgba(255, 255, 255, .18); color: #fff; transform: translateY(-3px); }
.end-oi-kart:focus-visible .end-oi-ok { color: #fff; transform: translate(3px, -3px); }

/* ── Duyarlı yerleşim ─────────────────────────────────────────────────── */
@media (max-width: 1199px) { .end-oi-izgara { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
    .end-oi-baslik { font-size: 24px; }
    .end-oi-izgara { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .end-oi-kart { height: 146px; padding: 16px; }
    .end-oi-ikon { flex-basis: 40px; width: 40px; height: 40px; }
    .end-oi-ad { font-size: 14px; }
    .end-oi-vurgu .end-oi-ad { font-size: 16px; }
    .end-oi-vurgu .end-oi-alt::after { bottom: -16px; }
    .end-oi-foto { display: none; } /* dokunmatik cihazda fotoğraf indirilmez; kart doğrudan bağlantıdır */
}

@media (prefers-reduced-motion: reduce) {
    .end-oi-kart, .end-oi-kart::before, .end-oi-kart::after, .end-oi-foto, .end-oi-ikon, .end-oi-ok, .end-oi-ad, .end-oi-aciklama { transition-duration: 1ms !important; }
    .end-oi-kart:hover .end-oi-foto, .end-oi-kart:focus-visible .end-oi-foto { transform: none; }
    .end-oi-kart:hover .end-oi-ikon, .end-oi-kart:focus-visible .end-oi-ikon, .end-oi-kart:hover .end-oi-ok, .end-oi-kart:focus-visible .end-oi-ok { transform: none; }
}


/* ==========================================================================
   İçerik kartları (.end-ic)
   ========================================================================== */
.end-ic {
    --ic-lacivert: #153753; --ic-metin: #20384F; --ic-metin2: #788696; --ic-kenar: #DCE3EA;
    --ic-ikon-bg: #EDF2F6; --ic-mavi: #2167A5; --ic-mavi-acik: #2E89D3; --ic-cizgi: #81CAFF;
    --ic-ease: cubic-bezier(0.22, 1, 0.36, 1);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased;
}
.end-ic *, .end-ic *::before, .end-ic *::after { box-sizing: border-box; }
.end-ic a, .end-ic a:hover, .end-ic a:focus { text-decoration: none !important; }
.end-ic-izgara { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.end-ic-izgara > li { margin: 0; padding: 0; list-style: none; min-width: 0; }
.end-ic-izgara-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.end-ic-bos { padding: 48px 20px; border: 1px dashed var(--ic-kenar); border-radius: 10px; text-align: center; color: var(--ic-metin2); font-size: 14px; }

/* ── Görselli kart (haber, video, proje) ── */
.end-ic-kart { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--ic-kenar); border-radius: 10px; background: #fff; color: var(--ic-metin);
    transition: border-color 350ms var(--ic-ease), box-shadow 450ms var(--ic-ease), transform 450ms var(--ic-ease); }
.end-ic-kart::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ic-cizgi); transform: scaleX(0); transform-origin: left center; transition: transform 450ms var(--ic-ease); }
.end-ic-gorsel { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ic-lacivert); }
/* görsel yok / kırık: END filigranlı lacivert yedek */
.end-ic-gorsel::before { content: ""; position: absolute; inset: 0; background: url(/images/end-filigran.svg?v=2) center 58% / 62% auto no-repeat, linear-gradient(15deg, #0e4173 0%, #153753 55%, #1d5d96 100%); }
.end-ic-gorsel img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100% !important; max-width: none; object-fit: cover; transition: transform 850ms var(--ic-ease); }
.end-ic-gorsel.yok img { display: none; }
.end-ic-oynat { position: absolute; left: 50%; top: 50%; z-index: 2; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
    background: rgba(255,255,255,.92); color: var(--ic-mavi); box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); transition: transform 350ms var(--ic-ease), background-color 350ms var(--ic-ease), color 350ms var(--ic-ease); }
.end-ic-oynat svg { width: 24px; height: 24px; margin-left: 3px; fill: currentColor; }
.end-ic-govde { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
.end-ic-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12px; color: var(--ic-metin2); }
.end-ic-meta span { display: inline-flex; align-items: center; gap: 6px; }
.end-ic-meta svg { width: 14px; height: 14px; flex: 0 0 14px; }
.end-ic-baslik { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-family: inherit; font-size: 15.5px; font-weight: 600; line-height: 1.4; color: var(--ic-metin); transition: color 350ms var(--ic-ease); }
.end-ic-devam { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; font-size: 13px; font-weight: 600; color: var(--ic-mavi); }
.end-ic-devam svg { width: 16px; height: 16px; transition: transform 350ms var(--ic-ease); }
@media (hover: hover) and (pointer: fine) {
    .end-ic-kart:hover { border-color: #c9d7e6; box-shadow: 0 18px 36px -20px rgba(33, 103, 165, .55); transform: translateY(-3px); }
    .end-ic-kart:hover::after { transform: scaleX(1); }
    .end-ic-kart:hover .end-ic-gorsel img { transform: scale(1.06); }
    .end-ic-kart:hover .end-ic-baslik { color: var(--ic-mavi); }
    .end-ic-kart:hover .end-ic-devam svg { transform: translate(3px, -3px); }
    .end-ic-kart:hover .end-ic-oynat { transform: scale(1.1); background: var(--ic-mavi); color: #fff; }
}
.end-ic-kart:focus-visible { outline: 2px solid var(--ic-mavi-acik); outline-offset: 3px; }
.end-ic-kart:focus-visible::after { transform: scaleX(1); }
.end-ic-kart:focus-visible .end-ic-baslik { color: var(--ic-mavi); }

/* ── Metin kartı (duyuru, etkinlik, basın) — hover'da mavi örtü, yazılar beyaz ── */
.end-ic-metin { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 168px; padding: 20px; overflow: hidden;
    border: 1px solid var(--ic-kenar); border-radius: 10px; background: #fff; color: var(--ic-metin); transition: border-color 350ms var(--ic-ease), box-shadow 450ms var(--ic-ease); }
.end-ic-metin::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 450ms var(--ic-ease);
    background: linear-gradient(15deg, rgba(14, 65, 115, .97) 0%, rgba(19, 91, 154, .92) 55%, rgba(46, 137, 211, .88) 100%); }
.end-ic-metin::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ic-cizgi); transform: scaleX(0); transform-origin: left center; transition: transform 450ms var(--ic-ease); }
.end-ic-ust { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.end-ic-ikon { display: flex; align-items: center; justify-content: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 9px; background: var(--ic-ikon-bg); color: var(--ic-lacivert);
    transition: background-color 350ms var(--ic-ease), color 350ms var(--ic-ease), transform 350ms var(--ic-ease); }
.end-ic-ikon svg { width: 22px; height: 22px; }
.end-ic-ok { color: var(--ic-metin2); transition: color 350ms var(--ic-ease), transform 350ms var(--ic-ease); }
.end-ic-ok svg { width: 18px; height: 18px; display: block; }
.end-ic-metin .end-ic-meta { transition: color 350ms var(--ic-ease); }
.end-ic-metin .end-ic-baslik { margin-top: auto; }
.end-ic-kaynak { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ic-mavi); transition: color 350ms var(--ic-ease); }
/* takvim rozeti (etkinlik) */
.end-ic-tarih { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 56px; width: 56px; height: 60px; border-radius: 9px; background: var(--ic-ikon-bg); color: var(--ic-lacivert); line-height: 1;
    transition: background-color 350ms var(--ic-ease), color 350ms var(--ic-ease); }
.end-ic-tarih b { font-size: 22px; font-weight: 700; }
.end-ic-tarih small { margin-top: 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
@media (hover: hover) and (pointer: fine) {
    .end-ic-metin:hover { border-color: transparent; box-shadow: 0 16px 32px -16px rgba(33, 103, 165, .55); }
    .end-ic-metin:hover::before { opacity: 1; }
    .end-ic-metin:hover::after { transform: scaleX(1); }
    .end-ic-metin:hover .end-ic-baslik, .end-ic-metin:hover .end-ic-kaynak { color: #fff; }
    .end-ic-metin:hover .end-ic-meta { color: rgba(255,255,255,.85); }
    .end-ic-metin:hover .end-ic-ikon, .end-ic-metin:hover .end-ic-tarih { background: rgba(255,255,255,.18); color: #fff; }
    .end-ic-metin:hover .end-ic-ikon { transform: translateY(-3px); }
    .end-ic-metin:hover .end-ic-ok { color: #fff; transform: translate(3px, -3px); }
}
.end-ic-metin:focus-visible { outline: 2px solid var(--ic-mavi-acik); outline-offset: 3px; }
.end-ic-metin:focus-visible::before { opacity: 1; }
.end-ic-metin:focus-visible .end-ic-baslik, .end-ic-metin:focus-visible .end-ic-kaynak { color: #fff; }
.end-ic-metin:focus-visible .end-ic-meta { color: rgba(255,255,255,.85); }
.end-ic-metin:focus-visible .end-ic-ikon, .end-ic-metin:focus-visible .end-ic-tarih { background: rgba(255,255,255,.18); color: #fff; }

/* takvim yaprağı (etkinlik): üstte ay bandı, ortada gün, altta yıl */
.end-ic-takvim { display: flex; flex-direction: column; align-items: center; flex: 0 0 72px; width: 72px; overflow: hidden; border: 1px solid var(--ic-kenar); border-radius: 10px; background: #fff; line-height: 1;
    box-shadow: 0 6px 14px -10px rgba(21, 55, 83, .5); transition: border-color 350ms var(--ic-ease), background-color 350ms var(--ic-ease); }
.end-ic-takvim-ay { display: block; width: 100%; padding: 6px 2px 5px; background: var(--ic-lacivert); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-align: center; }
.end-ic-takvim b { display: block; padding: 8px 0 2px; font-size: 28px; font-weight: 700; color: var(--ic-lacivert); }
.end-ic-takvim small { display: block; padding-bottom: 8px; font-size: 11px; font-weight: 600; color: var(--ic-metin2); }
@media (hover: hover) and (pointer: fine) {
    .end-ic-metin:hover .end-ic-takvim { border-color: transparent; }
    .end-ic-metin:hover .end-ic-takvim-ay { background: #81CAFF; color: #0e4173; }
}
.end-ic-metin:focus-visible .end-ic-takvim-ay { background: #81CAFF; color: #0e4173; }

/* Bağlantı kartları sayfa içinde (sol menülü dar alan): 3 sütun */
.end-oi-sayfa .end-oi-izgara { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 991px) { .end-ic-izgara { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .end-oi-sayfa .end-oi-izgara { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) {
    .end-ic-izgara, .end-ic-izgara-2 { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .end-ic-metin { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .end-ic-kart, .end-ic-kart::after, .end-ic-gorsel img, .end-ic-metin, .end-ic-metin::before, .end-ic-metin::after, .end-ic-ikon, .end-ic-ok, .end-ic-oynat { transition-duration: 1ms !important; }
    .end-ic-kart:hover, .end-ic-kart:hover .end-ic-gorsel img { transform: none; }
}
