:root {
    --site-color: #1f4e79;
    --ink: #1b1f24;
    --muted: #66707a;
    --line: #e5e7eb;
    --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body { background: #f2f3f5; color: var(--ink); }
a { color: var(--site-color); }
.btn-site { background: var(--site-color); color: #fff; border: 0; }
.btn-site:hover { filter: brightness(1.1); color: #fff; }

/* ---------- Üst kısım ---------- */
.site-header { background: #fff; }
.topbar { background: #1b1f24; color: #c9ced4; font-size: .8rem; padding: .35rem 0; }
.topbar a { color: #c9ced4; text-decoration: none; }
.topbar a:hover { color: #fff; }

.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 12px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1.05; }
.brand-name { font-size: 2rem; font-weight: 900; letter-spacing: -.03em; color: var(--site-color); }
.brand-tagline { font-size: .85rem; color: var(--muted); margin-top: .15rem; }
.search-form { gap: 0; width: 320px; }
.search-form .form-control { border-radius: .4rem 0 0 .4rem; border-right: 0; }
.search-form .btn-site { border-radius: 0 .4rem .4rem 0; padding: 0 .9rem; }
.icon-btn { background: none; border: 0; color: var(--ink); padding: .25rem; line-height: 0; }

/* Masaüstü menü */
.main-nav { background: var(--site-color); position: relative; z-index: 1020; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.main-nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; }
.main-nav-list > li { position: relative; }
.main-nav-list > li > a { display: block; padding: .8rem .85rem; color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; text-transform: uppercase; letter-spacing: .01em; }
.main-nav-list > li > a:hover, .main-nav-list > li:hover > a { background: rgba(0,0,0,.18); }
.main-nav-list .home-link { padding-left: .5rem !important; padding-right: .7rem !important; }
.main-nav-list .sub { display: none; position: absolute; left: 0; top: 100%; min-width: 220px; background: #fff; list-style: none; margin: 0; padding: .35rem 0; box-shadow: 0 8px 24px rgba(0,0,0,.15); border-top: 3px solid var(--site-color); z-index: 1030; }
.main-nav-list .sub-right { left: auto; right: 0; }
.main-nav-list li:hover > .sub, .main-nav-list li:focus-within > .sub { display: block; }
.main-nav-list .sub a { display: block; padding: .45rem 1rem; color: var(--ink); text-decoration: none; font-size: .9rem; }
.main-nav-list .sub a:hover { background: #f3f4f6; color: var(--site-color); }

/* Mobil yandan açılan menü */
.mobile-menu { width: 300px; background: #1b1f24; color: #fff; }
.mobile-menu .offcanvas-header { background: var(--site-color); }
.mobile-menu .brand-name-sm { color: #fff; font-weight: 900; font-size: 1.4rem; text-decoration: none; }
.m-list, .m-sub { list-style: none; margin: 0; padding: 0; }
.m-list > li { border-bottom: 1px solid rgba(255,255,255,.08); }
.m-list a { display: block; padding: .8rem 1.1rem; color: #e9ecef; text-decoration: none; font-weight: 500; }
.m-list a:hover { background: rgba(255,255,255,.06); color: #fff; }
.m-row { display: flex; align-items: stretch; }
.m-row > a { flex: 1; }
.m-toggle { background: none; border: 0; border-left: 1px solid rgba(255,255,255,.08); color: #fff; width: 52px; font-size: 1.3rem; }
.m-toggle:not(.collapsed) { transform: rotate(45deg); }
.m-sub { background: rgba(0,0,0,.25); }
.m-sub a { padding-left: 2rem; font-size: .92rem; color: #c9ced4; }

/* ---------- Son dakika bandı ---------- */
.breaking { display: flex; align-items: stretch; background: #fff; border-radius: .4rem; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.breaking-label { background: #d32f2f; color: #fff; font-weight: 800; font-size: .8rem; padding: .55rem .8rem; white-space: nowrap; display: flex; align-items: center; letter-spacing: .03em; }
.breaking-track { overflow: hidden; flex: 1; position: relative; }
.breaking-items { display: inline-flex; gap: 2.5rem; white-space: nowrap; padding: .55rem 1rem; animation: ticker 60s linear infinite; }
.breaking-track:hover .breaking-items { animation-play-state: paused; }
.breaking-items a { color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500; }
.breaking-items a:hover { color: var(--site-color); }
.breaking-items .t { color: #d32f2f; font-weight: 700; margin-right: .25rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .breaking-items { animation: none; } }

/* ---------- Manşet ---------- */
.manset { background: #111; border-radius: .5rem; overflow: hidden; }
.manset-link { display: block; position: relative; aspect-ratio: 16 / 9; color: #fff; text-decoration: none; }
.manset-link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.manset-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 4rem 1.4rem 1.2rem; background: linear-gradient(transparent, rgba(0,0,0,.88)); }
.manset-title { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1.2; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.manset .carousel-control-prev, .manset .carousel-control-next { width: 8%; bottom: 44px; }
.manset-pager { display: flex; background: #1b1f24; overflow-x: auto; scrollbar-width: none; }
.manset-pager::-webkit-scrollbar { display: none; }
.manset-pager button { flex: 1 0 auto; min-width: 36px; border: 0; background: transparent; color: #aeb4bb; font-weight: 700; font-size: .9rem; padding: .55rem .4rem; border-right: 1px solid rgba(255,255,255,.06); }
.manset-pager button:hover { color: #fff; }
.manset-pager button.active { background: var(--site-color); color: #fff; }

.no-image-bg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--site-color), #0f172a); }
.no-image-bg span { color: rgba(255,255,255,.35); font-weight: 900; font-size: 2.2rem; letter-spacing: -.02em; }

/* ---------- Kutular ---------- */
.box { background: #fff; border-radius: .5rem; padding: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.box-title { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--line); margin-bottom: .8rem; }
.box-title h2 { font-size: 1rem; font-weight: 800; text-transform: uppercase; margin: 0; padding-bottom: .45rem; border-bottom: 3px solid var(--site-color); margin-bottom: -2px; color: var(--ink); }
.box-title a { font-size: .8rem; text-decoration: none; font-weight: 600; }
/* eski sayfalarda kullanılan başlık */
.section-title { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--site-color); margin-bottom: .9rem; }
.section-title h2 { font-size: 1.05rem; font-weight: 800; text-transform: uppercase; margin: 0 0 .35rem; color: var(--site-color); }
.section-title a { font-size: .85rem; text-decoration: none; }

.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li + li { border-top: 1px solid #f0f1f3; }
.side-list a { display: flex; gap: .7rem; padding: .55rem 0; color: var(--ink); text-decoration: none; }
.side-list a:hover .ttl { color: var(--site-color); }
.side-list .thumb { flex: 0 0 96px; height: 60px; border-radius: .3rem; overflow: hidden; background: #e9ecef; }
.side-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-list .ttl { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: .92rem; line-height: 1.3; }
.side-list .meta { display: block; font-size: .75rem; color: var(--muted); margin-top: .2rem; }
.side-list.compact .thumb { flex-basis: 84px; height: 54px; }

.block-lead { display: block; color: var(--ink); text-decoration: none; }
.block-lead .img-wrap { position: relative; border-radius: .4rem; overflow: hidden; background: #e9ecef; }
.block-lead img { width: 100%; height: 100%; object-fit: cover; }
.block-lead:hover .lead-title { color: var(--site-color); }
.lead-title { font-size: 1.1rem; line-height: 1.3; }
.lead-sum { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.article-card { border: 0; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.card-img-wrap { background: #e9ecef; overflow: hidden; }
.card-img-wrap img { object-fit: cover; width: 100%; height: 100%; transition: transform .25s; }
.article-card:hover .card-img-wrap img { transform: scale(1.04); }
.article-card .card-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.popular-list { margin: 0; padding: 0; list-style: none; counter-reset: pop; }
.popular-list li { counter-increment: pop; display: flex; gap: .7rem; padding: .55rem 0; border-top: 1px solid #f0f1f3; }
.popular-list li:first-child { border-top: 0; }
.popular-list li::before { content: counter(pop); flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--site-color); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.popular-list a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; line-height: 1.3; }
.popular-list a:hover { color: var(--site-color); }

.author-list { list-style: none; margin: 0; padding: 0; }
.author-list li + li { border-top: 1px solid #f0f1f3; }
.author-list a { display: flex; gap: .75rem; align-items: center; padding: .6rem 0; color: var(--ink); text-decoration: none; }
.author-list .avatar { flex: 0 0 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--site-color); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem; }
.author-list .avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-list .name { display: block; font-weight: 800; font-size: .88rem; color: var(--site-color); }
.author-list .ttl { display: block; font-size: .9rem; line-height: 1.3; }

/* eski liste stilleri (diğer sayfalar) */
.list-news { list-style: none; padding: 0; margin: 0; background: #fff; border-radius: .5rem; }
.list-news li { padding: .6rem .8rem; border-bottom: 1px solid #eef0f2; }
.list-news li:last-child { border-bottom: 0; }
.list-news a { color: var(--ink); text-decoration: none; font-weight: 500; }
.list-news a:hover { color: var(--site-color); }
.list-news .small { display: block; }

/* ---------- Haber detay ---------- */
.article-detail { background: #fff; border-radius: .5rem; padding: 1.5rem; }
.article-title { font-size: 2rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.article-summary { font-size: 1.15rem; color: #3d4650; font-weight: 500; }
.article-body { font-size: 1.07rem; line-height: 1.75; overflow-wrap: anywhere; }
.article-body img { max-width: 100%; height: auto; border-radius: .35rem; }
.article-body iframe { max-width: 100%; aspect-ratio: 16 / 9; height: auto; width: 100%; }
.article-body table { max-width: 100%; }

/* ---------- Alt kısım ---------- */
.site-footer { background: #1b1f24; color: #c9ced4; padding: 2.5rem 0 1.5rem; margin-top: 2rem; border-top: 4px solid var(--site-color); }
.site-footer a { color: #e6edf3; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Mobil ---------- */
@media (max-width: 991.98px) {
    .site-header { position: sticky; top: 0; z-index: 1020; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
    .brand-row { padding: .6rem 12px; border-bottom: 3px solid var(--site-color); }
    .brand { align-items: center; text-align: center; }
    .brand-name { font-size: 1.6rem; }
    .brand-tagline { font-size: .72rem; }
    .manset-title { font-size: 1.2rem; }
    .manset-caption { padding: 2.5rem 1rem .9rem; }
}
@media (max-width: 575.98px) {
    .article-title { font-size: 1.5rem; }
    .article-detail { padding: 1rem; }
    .manset { border-radius: 0; margin: 0 -12px; }
    .manset-title { font-size: 1.05rem; }
    .box { padding: .8rem; }
}

/* ---------- Üye paneli ---------- */
.account-btn { color: var(--ink); }
.account-btn:hover { color: var(--site-color); }
.member-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--site-color); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex: 0 0 46px; }
.member-nav .list-group-item { border-left: 3px solid transparent; }
.member-nav .list-group-item.active { background: #f3f4f6; color: var(--site-color); border-left-color: var(--site-color); font-weight: 600; border-top-color: var(--bs-list-group-border-color); }
.members-lock { background: #fafafa; }

/* ---------- Reklam / sponsor ---------- */
.ad-slot { margin-bottom: 1rem; text-align: center; }
.ad-item { position: relative; display: inline-block; max-width: 100%; margin-bottom: .5rem; }
.ad-item img { max-width: 100%; height: auto; border-radius: .35rem; display: block; }
.ad-label { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.45); color: #fff; font-size: .62rem; padding: 0 .35rem; border-radius: .2rem; letter-spacing: .03em; }
.ad-sidebartop .ad-item, .ad-sidebarbottom .ad-item { display: block; }
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .75rem; }
.sponsor { display: flex; align-items: center; justify-content: center; height: 76px; padding: .5rem; border: 1px solid var(--line); border-radius: .4rem; background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .85rem; text-align: center; }
.sponsor img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(.2); transition: filter .2s; }
.sponsor:hover img { filter: none; }

/* ---------- Firmalarımız ---------- */
.company-logo { width: 64px; height: 64px; border-radius: .5rem; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; font-weight: 900; font-size: 1.5rem; color: var(--site-color); }
.company-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.company-logo.big { width: 96px; height: 96px; flex: 0 0 96px; }
.company-card:hover .fw-bold { color: var(--site-color); }
.company-sum { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: #3d4650; }
.company-contact li { padding: .5rem 0; border-top: 1px solid #f0f1f3; overflow-wrap: anywhere; }
.company-contact li:first-child { border-top: 0; }
.company-contact li > span { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.company-mini { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .5rem; border: 1px solid var(--line); border-radius: .4rem; text-decoration: none; color: var(--ink); text-align: center; height: 100%; }
.company-mini .logo { width: 56px; height: 40px; display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--site-color); }
.company-mini .logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.company-mini .name { font-size: .78rem; font-weight: 600; line-height: 1.2; }

/* ---------- Popup ---------- */
.site-popup .modal-content { border: 0; border-radius: .6rem; }

/* ---------- Beğen / beğenme ---------- */
.reactions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .75rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.react-btn { border: 1px solid var(--line); background: #fff; border-radius: 2rem; padding: .3rem .9rem; font-weight: 600; }
.react-btn:hover { border-color: var(--site-color); }
.react-btn.active { background: var(--site-color); color: #fff; border-color: var(--site-color); }
.react-btn.down.active { background: #6b7280; border-color: #6b7280; }

/* ---------- Öğrenci köşesi ---------- */
.student-hero { border-left: 4px solid var(--site-color); }
.student-tile { transition: transform .12s, box-shadow .12s; }
.student-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.listing-facts dt { font-weight: 600; color: #6c757d; margin-top: .4rem; }
.listing-facts dd { margin-bottom: 0; }
.qa-count { min-width: 58px; border: 1px solid var(--line, #dee2e6); border-radius: .4rem; padding: .25rem .4rem; line-height: 1.1; color: #6c757d; align-self: flex-start; }
.qa-count.answered { border-color: #198754; color: #198754; }
.qa-count.accepted { background: #198754; border-color: #198754; color: #fff; }
.answer-accepted { border: 2px solid #198754; }

/* ---------- Paylaşım düğmeleri ---------- */
.share-btn { border: 1px solid var(--line, #dee2e6); background: #fff; font-weight: 600; }
.share-btn:hover { filter: brightness(.96); }
.share-wa { color: #128c4b; } .share-fb { color: #1877f2; } .share-x { color: #111; } .share-tg { color: #229ed9; } .share-in { color: #0a66c2; }

/* ---------- Foto galeri ---------- */
.gallery-thumb { display: block; overflow: hidden; border-radius: .4rem; background: #e9ecef; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery-thumb:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lb-stage { margin: 0; max-width: 92vw; max-height: 92vh; display: flex; flex-direction: column; align-items: center; }
.lb-stage img { max-width: 92vw; max-height: 84vh; object-fit: contain; opacity: 0; transition: opacity .2s; border-radius: .25rem; }
.lb-stage img.ready { opacity: 1; }
.lb-stage figcaption { color: #e5e7eb; font-size: .9rem; margin-top: .5rem; text-align: center; }
.lb-count { color: #9ca3af; margin-left: .5rem; }
.lb-btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; display: flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 12px; right: 12px; font-size: 1.3rem; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 576px) { .lb-prev, .lb-next { width: 40px; height: 40px; top: auto; bottom: 16px; transform: none; } }
