/* Yalnizca TumHaber icerigi: ortak navbar/footer siniflarini etkilemez. */
#th-modern {
    --th-navy: #192f5d;
    --th-muted: #7485a4;
    --th-line: #e2e8f2;
    color: var(--th-navy);
    padding: 12px 0 30px;
}

#th-modern *,
#th-modern *::before,
#th-modern *::after { box-sizing: border-box; }

#th-modern .th-crumb { font-size: 13px; color: #8a99b3; margin-bottom: 12px; }
#th-modern .th-crumb strong { color: var(--th-navy); }
#th-modern .th-title { font-size: clamp(27px, 3vw, 38px); font-weight: 800; letter-spacing: -.8px; margin: 0 0 4px; }
#th-modern .th-subtitle { font-size: 15px; color: #7788a6; margin: 0; }
#th-modern .th-heading { margin-bottom: 23px; }

#th-modern .th-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr) 145px;
    gap: 13px;
    padding: 13px;
    border: 1px solid var(--th-line);
    border-radius: 18px;
    background: white;
    box-shadow: 0 12px 34px rgba(22, 43, 84, .045);
    margin-bottom: 25px;
}

#th-modern .th-input-wrap { position: relative; min-width: 0; }
#th-modern .th-input-wrap .th-input-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #7284a5; z-index: 2; pointer-events: none; }
#th-modern .th-input-wrap .form-control { height: 46px; padding: 0 13px 0 42px; border: 1px solid #e0e7f2; border-radius: 11px; background: #f9fbfe; color: #253c67; font-size: 13px; box-shadow: none; width: 100%; }
#th-modern .th-input-wrap .form-control:focus { border-color: #708bbf; background: #fff; box-shadow: 0 0 0 3px rgba(40, 76, 145, .08); }
#th-modern .th-search-btn { border: 0; border-radius: 11px; background: #1d376f; color: white; font-weight: 650; font-size: 14px; min-height: 46px; width: 100%; transition: background .2s; }
#th-modern .th-search-btn:hover { background: #2d4e96; }
#th-modern .th-section { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 15px; }
#th-modern .th-section h2 { display: flex; align-items: center; gap: 11px; font-size: 21px; font-weight: 750; margin: 0; color: #1b315f; }
#th-modern .th-section h2:before { content: ''; display: block; height: 27px; width: 4px; border-radius: 6px; background: #c91249; }
#th-modern .th-section-hint { font-size: 12px; color: #8694ab; }

/* AJAX partial'daki mevcut Bootstrap grid yapisi korunur. */
#th-modern #TumHaberYeni > .th-card-grid { display: flex; flex-wrap: wrap; margin-left: -7px; margin-right: -7px; row-gap: 14px; }
#th-modern #TumHaberYeni > .th-card-grid > [class*='col-'] { flex: 0 0 25%; max-width: 25%; padding-left: 7px; padding-right: 7px; margin-bottom: 0 !important; min-width: 0; }
#th-modern .th-news-card { height: 100%; }
#th-modern .th-news-card > a { display: flex; flex-direction: column; height: 100%; min-height: 300px; background: #fff; border: 1px solid #e5eaf2; border-radius: 14px; box-shadow: 0 7px 20px rgba(24, 48, 94, .055); overflow: hidden; text-align: left; text-decoration: none !important; color: inherit !important; transition: transform .22s ease, box-shadow .22s ease; }
#th-modern .th-news-card > a:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(24, 48, 94, .12); }
#th-modern .th-card-media { position: relative; height: 168px; overflow: hidden; background: #eef2f8; }
#th-modern #TumHaberYeni .tumhaberImg { display: block; width: 100%; height: 100%; min-height: 0; max-height: none; object-fit: cover; border-radius: 0; box-shadow: none; transition: transform .35s ease; }
#th-modern .th-news-card > a:hover .tumhaberImg { transform: scale(1.035); }
#th-modern .th-card-badge { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 5px 9px; border-radius: 7px; background: #fff; color: #1b376c; box-shadow: 0 3px 10px rgba(19, 43, 86, .12); font-size: 10px; line-height: 1; font-weight: 800; letter-spacing: .25px; text-transform: uppercase; }
#th-modern #TumHaberYeni .tumHaberlerBaslik { display: flex; flex: 1; flex-direction: column; padding: 14px 14px 12px; min-height: 128px; width: 100%; text-align: left; }
#th-modern #TumHaberYeni .tumHaberlerBaslik h5 { font-size: 16px; line-height: 1.45; font-weight: 750; color: #1c315b; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-transform: none; }
#th-modern .th-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; color: #4d5d76; font-size: 15px; }
#th-modern .th-card-date { display: inline-flex; align-items: center; gap: 7px; }
#th-modern .th-card-arrow { display: inline-flex; flex: 0 0 30px; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: #f2f5fa; color: #234477; font-size: 12px; transition: background .2s, color .2s; }
#th-modern .th-news-card > a:hover .th-card-arrow { background: #1d376f; color: #fff; }
#th-modern .th-empty { padding: 32px; border: 1px dashed #d9e1ee; border-radius: 14px; text-align: center; color: #7283a0; }
#th-modern .th-pagination-wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 0 0; }
#th-modern .th-pagination-wrap .pagination { margin: 0; padding: 0 !important; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
#th-modern .th-pagination-wrap .page-item { padding: 0 !important; }
#th-modern .th-pagination-wrap .sayfala { border: 1px solid #e1e8f2 !important; background: white !important; color: #294577 !important; border-radius: 9px !important; height: 37px; min-width: 38px; box-shadow: none !important; }
#th-modern .th-pagination-wrap .sayfala:hover { background: #eaf0fa !important; }
#th-modern .th-page-numbers { display: flex; align-items: center; gap: 7px; }
#th-modern .th-page-number.is-active { border-color: #1d376f !important; background: #1d376f !important; color: #fff !important; }
#th-modern .th-page-ellipsis { display: inline-flex; height: 37px; min-width: 22px; align-items: center; justify-content: center; color: #8492a9; }
#th-modern .th-page-limit-item { display: none; }
#th-modern .th-pagination-wrap .page-limit { border: 1px solid #e1e8f2; border-radius: 9px; height: 37px; background: white; color: #294577; }
#th-modern .th-pagination-wrap .page-info { color: #7283a0; font-size: 13px; padding: 0 !important; }

@media (max-width: 1199.98px) {
    #th-modern #TumHaberYeni > .th-card-grid > [class*='col-'] { flex-basis: 33.3333%; max-width: 33.3333%; }
}

@media (max-width: 991.98px) {
    #th-modern .th-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #th-modern #TumHaberYeni > .th-card-grid > [class*='col-'] { flex-basis: 50%; max-width: 50%; }
}

@media (max-width: 575.98px) {
    #th-modern { padding-top: 6px; }
    #th-modern .th-toolbar { grid-template-columns: 1fr; gap: 9px; padding: 10px; }
    #th-modern #TumHaberYeni > .th-card-grid > [class*='col-'] { flex-basis: 100%; max-width: 100%; }
    #th-modern .th-card-media { height: 190px; }
    #th-modern .th-section h2 { font-size: 19px; }
    #th-modern .th-section-hint { display: none; }
    #th-modern .th-pagination-wrap { align-items: flex-start; }
    #th-modern .th-page-numbers { gap: 4px; }
    #th-modern .th-pagination-wrap .sayfala { min-width: 34px; }
}

@media (prefers-reduced-motion: reduce) {
    #th-modern #TumHaberYeni .tumhaberImg,
    #th-modern .th-news-card > a { transition: none; }
}
