/* GSÜ AKTS Tasarım Dili — components/bundle.css (sürüm 1791882290-63ba).
   Bu projede Bootstrap 5 (Metronic) yüklü olduğu için kaynak dosyanın başındaki
   asgari Bootstrap bloğu ve Archivo @import satırı çıkarıldı; yazı tipi layout içinde <link> ile yüklenir.
   Dosyayı elle değiştirmeyin; mezun sitesine özel stiller mezun.css içindedir. */

/* =============================================================================
   Public site stili (Views/Shared/_LayoutSite.cshtml ve onu kullanan tüm sayfalar).
   Bootstrap 5.3 (Content/bs5) üzerine GSÜ kimliği: password.gsu.edu.tr paleti,
   köşesiz kutular, 2px koyu çizgiler, Archivo yazı tipi.
   Yönetim paneli (Areas/Yonetim) eski Bootstrap 3 temasını kullanmaya devam eder.
   ============================================================================= */


body {
    margin: 0;
    background: var(--gsu-white);
    color: var(--gsu-ink);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--gsu-red); text-decoration: none; }
a:hover { color: var(--gsu-red-dark); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--gsu-red); outline-offset: 2px; }
::selection { background: var(--gsu-red-14); }

.gsu-page { min-height: 100vh; display: flex; flex-direction: column; }
html, body { overflow-x: hidden; }

/* Satır içi ikonlar (SVG sprite, _LayoutHome.cshtml) */
.ic { width: 16px; height: 16px; flex: none; }
.ic-lg { width: 22px; height: 22px; }
.ic-md { width: 18px; height: 18px; }

/* ---------- Üst şerit ---------- */
.gsu-top {
    background: var(--gsu-top-bg);
    color: var(--gsu-top-ink);
    font-size: 12.5px;
    letter-spacing: .02em;
    border-bottom: 1px solid var(--gsu-top-line);
}
.gsu-top .container { min-height: 38px; }
.gsu-top a { color: var(--gsu-top-ink); }
.gsu-top a:hover { color: var(--gsu-red); text-decoration: none; }
.gsu-top .sep { opacity: .4; }
.gsu-top-lang a { padding: 4px 10px; text-transform: uppercase; }
.gsu-top-lang a.on { color: var(--gsu-white); background: var(--gsu-red); font-weight: 600; }
.gsu-top-lang a.on:hover { color: var(--gsu-white); }

/* ---------- Başlık ---------- */
.gsu-header {
    background: var(--gsu-white);
    border-bottom: 2px solid var(--gsu-ink);
    position: sticky;
    top: 0;
    z-index: 30;
}
.gsu-header > .container { padding-top: 16px; padding-bottom: 16px; }
.gsu-brand { color: inherit; }
.gsu-brand:hover { color: inherit; text-decoration: none; }
.gsu-brand img { height: 54px; width: auto; }
.gsu-brand-txt { border-left: 2px solid var(--gsu-line); padding-left: 14px; line-height: 1.2; }
.gsu-brand-uni { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.gsu-brand-sys { display: block; font-size: 12.5px; font-weight: 600; color: var(--gsu-red); letter-spacing: .09em; }

.gsu-search { position: relative; display: block; margin: 0; }
.gsu-search .ic { position: absolute; left: 12px; top: 50%; margin-top: -8px; color: var(--gsu-muted); pointer-events: none; }
.gsu-search input {
    border: 1.5px solid var(--gsu-line);
    background: var(--gsu-ground);
    padding: 9px 14px 9px 36px;
    width: 290px;
    max-width: 100%;
    font: inherit;
    font-size: 14px;
    border-radius: 0;
    color: var(--gsu-ink);
}
.gsu-search input:focus { border-color: var(--gsu-red); outline: none; }
/* Tarayıcının kendi temizleme düğmesi gizlenir; yerine aşağıdaki düğme kullanılır. */
.gsu-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
/* Arama kutusundaki temizleme düğmesi: yalnızca kutuda metin varken görünür. */
.gsu-q-clear {
    position: absolute;
    right: 4px;
    top: 50%;
    margin-top: -14px;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gsu-muted);
}
.gsu-q-clear:hover { color: var(--gsu-red); }
.gsu-q-clear .ic { width: 15px; height: 15px; }
.gsu-search input { padding-right: 34px; }
.gsu-search-list input { background: var(--gsu-white); padding-top: 11px; padding-bottom: 11px; width: 340px; }

.gsu-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--gsu-red);
    color: var(--gsu-white);
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 16px;
    white-space: nowrap;
}
.gsu-btn:hover { background: var(--gsu-red-dark); color: var(--gsu-white); text-decoration: none; }
.gsu-btn-lg { font-size: 14.5px; padding: 13px 20px; }
.gsu-btn-ghost { background: transparent; border: 1.5px solid var(--on-dark-45); }
.gsu-btn-ghost:hover { background: var(--on-dark-12); }

.gsu-nav {
    border-top: 1px solid var(--gsu-line);
    padding-top: 11px;
    padding-bottom: 11px;
    font-size: 13.5px;
    font-weight: 600;
}
.gsu-nav a { color: var(--gsu-ink); }
.gsu-nav a:hover { color: var(--gsu-red); text-decoration: none; }

/* Menü düğmesi yalnızca dar ekranda görünür (aşağıdaki mobil bloğu açar). */
.gsu-burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1.5px solid var(--gsu-line);
    background: var(--gsu-white);
    color: var(--gsu-ink);
    cursor: pointer;
}
.gsu-burger:hover { border-color: var(--gsu-red); color: var(--gsu-red); }
.gsu-burger .gsu-burger-close { display: none; }
.gsu-header.acik .gsu-burger .gsu-burger-open { display: none; }
.gsu-header.acik .gsu-burger .gsu-burger-close { display: block; }

/* ---------- Dar ekran: üst şerit + başlık ---------- */
@media (max-width: 991.98px) {
    /* Üst şerit: bağlantılar tek satırda kaydırılır, diller sabit kalır. */
    .gsu-top { font-size: 12px; }
    .gsu-top .container { min-height: 34px; }
    .gsu-top-links {
        flex-wrap: nowrap;
        white-space: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        min-width: 0;
    }
    .gsu-top-links::-webkit-scrollbar { display: none; }
    .gsu-top-lang { flex: none; }

    /* Bootstrap yardımcı sınıfları (d-flex, flex-wrap) !important taşıdığı için burada da gerekiyor. */
    .gsu-header > .container { padding-top: 10px; padding-bottom: 10px; flex-wrap: nowrap !important; }
    .gsu-brand { min-width: 0; gap: 10px !important; }
    .gsu-brand img { height: 40px; }
    .gsu-brand-txt { padding-left: 10px; }
    .gsu-brand-uni { font-size: 13.5px; }
    .gsu-brand-sys { font-size: 10.5px; letter-spacing: .06em; }

    .gsu-burger { display: flex; }

    /* Arama ve menü varsayılanda kapalı; düğmeye basınca tam genişlikte açılır. */
    .gsu-hsearch { display: none !important; }
    .gsu-header.acik > .container { flex-wrap: wrap !important; }
    .gsu-header.acik .gsu-hsearch {
        display: flex !important;
        flex: 0 0 100%;
        gap: 8px;
        padding-top: 10px;
        border-top: 1px solid var(--gsu-line);
    }
    .gsu-header.acik .gsu-hsearch .gsu-search { flex: 1 1 180px; }
    .gsu-header.acik .gsu-hsearch .gsu-search input { width: 100%; }
    .gsu-header.acik .gsu-hsearch .gsu-btn { flex: none; }

    .gsu-nav { display: none !important; }
    .gsu-header.acik .gsu-nav {
        display: flex !important;
        flex-direction: column;
        gap: 0 !important;
        padding-top: 0;
        padding-bottom: 8px;
        max-height: 60vh;
        overflow-y: auto;
    }
    .gsu-header.acik .gsu-nav a { padding: 12px 0; border-bottom: 1px solid var(--gsu-line); font-size: 15px; }
    .gsu-header.acik .gsu-nav a:last-child { border-bottom: 0; }
}

/* ---------- Hero ---------- */
.gsu-hero { position: relative; background: var(--gsu-ink); color: var(--gsu-white); overflow: hidden; }
.gsu-hero-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    opacity: .34;
}
.gsu-hero-shade {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--ink-shade-95) 0%, var(--ink-shade-74) 55%, var(--ink-shade-38) 100%);
}
.gsu-hero > .container { position: relative; }
.gsu-hero-body { padding-top: 76px; padding-bottom: 64px; }
.gsu-hero-body > div { max-width: 760px; }
.gsu-kicker-gold {
    display: inline-block;
    background: var(--gsu-gold);
    color: var(--gsu-ink);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 5px 10px;
}
.gsu-hero h1 {
    font-size: clamp(30px, 4.4vw, 50px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.025em;
    margin: 18px 0 0;
    max-width: 780px;
}
.gsu-hero p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--on-dark-82);
    max-width: 620px;
    margin: 18px 0 0;
    text-wrap: pretty;
}
.gsu-hero-actions { margin-top: 26px; }
.gsu-stats { border-top: 1px solid var(--on-dark-20); }
.gsu-stat { padding: 20px 0 20px 24px; border-right: 1px solid var(--on-dark-20); }
.gsu-stat:first-child { padding-left: 0; }
.gsu-stat:last-child { border-right: 0; }
.gsu-stat-n { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.gsu-stat-l { font-size: 12.5px; color: var(--on-dark-70); letter-spacing: .06em; }
@media (max-width: 991.98px) {
    .gsu-stat:nth-child(2) { border-right: 0; }
    .gsu-stat:nth-child(3) { padding-left: 0; }
}

/* ---------- Bölümler ---------- */
.gsu-sec > .container { padding-top: 56px; padding-bottom: 56px; }
.gsu-sec-ground { background: var(--gsu-ground); border-bottom: 2px solid var(--gsu-ink); }
.gsu-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; color: var(--gsu-red); text-transform: uppercase; }
.gsu-h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -.02em; margin: 8px 0 0; line-height: 1.1; }
.gsu-sec-head { margin-bottom: 22px; }
.gsu-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; }

/* Programlar: segment düğmeleri + gruplar */
.gsu-seg {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    background: var(--gsu-ground);
    border: 1px solid var(--gsu-line);
    padding: 4px;
    max-width: 100%;
}
.gsu-tab {
    flex: 0 1 auto;
    padding: 12px 22px;
    font: inherit;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: -.01em;
    background: transparent;
    color: var(--gsu-muted);
    border: 0;
    cursor: pointer;
    transition: .15s ease;
}
.gsu-tab:hover { background: var(--gsu-white); color: var(--gsu-ink); }
.gsu-tab.on { background: var(--gsu-ink); color: var(--gsu-white); font-weight: 700; }
.gsu-tab.on:hover { background: var(--gsu-ink); color: var(--gsu-white); }
.gsu-tab small { font-weight: 500; opacity: .7; margin-left: 6px; }

/* Arama tüm düzeylerde çalışırken görünen bilgi satırı */
.gsu-allmode {
    margin-top: 18px;
    font-size: 13.5px;
    color: var(--gsu-muted);
}

/* Arama modunda her düzey bloğunun başlığı (hangi düzeyin sonucu olduğu belli olsun) */
.gsu-level-h {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gsu-red);
    margin: 30px 0 0;
}
.gsu-noresult { padding: 36px 0; color: var(--gsu-muted); font-size: 15px; }
.gsu-group { margin-top: 34px; }
.gsu-group-h { margin-bottom: 14px; }
.gsu-group-h h3 { font-size: 15px; font-weight: 700; letter-spacing: .02em; margin: 0; }
.gsu-group-h .line { flex: 1; height: 1px; background: var(--gsu-line); }
.gsu-group-n { font-size: 12px; color: var(--gsu-muted); white-space: nowrap; flex: 0 0 auto; }
.gsu-prog {
    height: 100%;
    background: var(--gsu-white);
    border: 1.5px solid var(--gsu-line);
    padding: 12px 14px;
    color: inherit;
    transition: .15s ease;
}
.gsu-prog:hover { border-color: var(--gsu-red); color: inherit; text-decoration: none; }
.gsu-prog:hover .gsu-prog-t { color: var(--gsu-red); }
.gsu-prog-t { font-size: 14px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.gsu-prog-i { width: 15px; height: 15px; flex: 0 0 auto; color: var(--gsu-muted); }

/* Genel bilgiler kartları */
.gsu-gb-row { row-gap: 40px; }
.gsu-gb p { font-size: 15.5px; line-height: 1.65; color: var(--gsu-muted); text-wrap: pretty; }
.gsu-card {
    display: block;
    height: 100%;
    border: 1.5px solid var(--gsu-line);
    padding: 22px;
    color: inherit;
    transition: .18s ease;
}
.gsu-card:hover { border-color: var(--gsu-red); transform: translateY(-2px); color: inherit; text-decoration: none; }
.gsu-card .ic { color: var(--gsu-red); }
.gsu-card-t { font-size: 17px; font-weight: 700; margin-top: 14px; letter-spacing: -.01em; }
.gsu-card-d { font-size: 14px; line-height: 1.55; color: var(--gsu-muted); margin-top: 6px; }

/* Uluslararası (sarı bant) */
.gsu-gold { background: var(--gsu-gold); color: var(--gsu-ink); }
.gsu-gold > .container { padding-top: 52px; padding-bottom: 52px; }
.gsu-gold .gsu-h2 { font-size: clamp(24px, 3.2vw, 38px); margin: 10px 0 12px; }
.gsu-gold p { font-size: 16px; line-height: 1.6; max-width: 620px; margin: 0; text-wrap: pretty; }
.gsu-ybtn, .gsu-ybtn-o {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 17px;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid var(--gsu-ink);
    color: var(--gsu-ink);
}
.gsu-ybtn { background: var(--gsu-ink); color: var(--gsu-white); }
.gsu-ybtn:hover { background: var(--gsu-red); border-color: var(--gsu-red); color: var(--gsu-white); text-decoration: none; }
.gsu-ybtn-o:hover { background: var(--gsu-ink); color: var(--gsu-white); text-decoration: none; }

/* Büyütme katmanı (kampüs görselleri). Dış kütüphane kullanılmaz. */
.gsu-buyut {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--overlay-94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 20px;
}
.gsu-buyut img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.gsu-buyut button {
    position: absolute;
    border: 0;
    background: var(--on-dark-10);
    color: var(--gsu-white);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .15s ease;
}
.gsu-buyut button:hover { background: var(--gsu-red); }
.gsu-buyut .kapat { top: 14px; right: 14px; }
.gsu-buyut .onceki { left: 14px; top: 50%; margin-top: -22px; }
.gsu-buyut .sonraki { right: 14px; top: 50%; margin-top: -22px; }
.gsu-buyut .sayac {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--on-dark-75);
    font-size: 13px;
    letter-spacing: .04em;
}
.gsu-buyut .ic { width: 20px; height: 20px; }
body.gsu-kilitli { overflow: hidden; }
/* Fotoğraflar tıklanabilir olduğunu belli etsin */
a.gsu-photo { display: block; cursor: zoom-in; }
a.gsu-photo:hover img { opacity: .92; }
a.gsu-photo img { transition: opacity .15s ease; }

/* Kampüs görselleri */
.gsu-photo { position: relative; overflow: hidden; background: var(--gsu-ground); }
.gsu-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.gsu-photo-wide { aspect-ratio: 16 / 9; }
.gsu-photo-4x3 { aspect-ratio: 4 / 3; }
.gsu-photo-fill { flex: 1; min-height: 150px; }

/* ---------- Alt bilgi ---------- */
.gsu-foot { background: var(--gsu-ink); color: var(--on-dark-72); margin-top: auto; }
.gsu-foot > .container { padding-top: 52px; padding-bottom: 28px; }
.gsu-foot a { color: var(--on-dark-72); }
.gsu-foot a:hover { color: var(--gsu-white); text-decoration: none; }
.gsu-foot img { height: 48px; width: auto; }
.gsu-foot-brand { color: var(--gsu-white); font-size: 15px; font-weight: 700; line-height: 1.25; }
.gsu-foot p { font-size: 14px; line-height: 1.6; margin: 16px 0 0; max-width: 340px; }
.gsu-foot h3 { color: var(--gsu-white); font-size: 13px; font-weight: 700; letter-spacing: .08em; margin: 0 0 14px; }
.gsu-foot-links { font-size: 14px; }
.gsu-foot-social a {
    border: 1px solid var(--on-dark-25);
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
}
.gsu-foot-social a:hover { border-color: var(--gsu-white); }
.gsu-foot-bottom { border-top: 1px solid var(--on-dark-15); }
.gsu-foot-bottom .container { padding-top: 16px; padding-bottom: 16px; font-size: 12.5px; }

@media (max-width: 767.98px) {
    .gsu-header { position: static; }
    .gsu-search input { width: 100%; }
    .gsu-hero-body { padding-top: 48px; padding-bottom: 40px; }
    .gsu-sec > .container { padding-top: 40px; padding-bottom: 40px; }
}

@media (max-width: 575.98px) {
    /* Başlık ile arama kutusu yan yana sığmıyor: alt alta, tam genişlik */
    .gsu-sec-head { flex-direction: column; align-items: flex-start !important; }
    .gsu-search-list, .gsu-search-list input { width: 100%; }
    .gsu-top .sep { display: none; }
    .gsu-header > .container > div:last-child { width: 100%; }
    .gsu-header .gsu-search { flex: 1 1 100%; }
    .gsu-btn { flex: 1; justify-content: center; }
}


/* =============================================================================
   İç sayfalar (içerik, program, ders)
   ============================================================================= */

/* Sayfa başlığı bandı */
.gsu-head { background: var(--gsu-ground); border-bottom: 2px solid var(--gsu-ink); }
.gsu-head > .container { padding-top: 22px; padding-bottom: 28px; }
.gsu-crumb { font-size: 12.5px; color: var(--gsu-muted); }
.gsu-crumb > * { min-width: 0; overflow-wrap: anywhere; }
.gsu-crumb a { color: var(--gsu-muted); }
.gsu-crumb a:hover { color: var(--gsu-red); }
.gsu-h1 {
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 800;
    letter-spacing: -.025em;
    margin: 8px 0 0;
    max-width: 900px;
}
.gsu-head-alt { font-size: 15px; color: var(--gsu-muted); margin-top: 6px; }
.gsu-head-note { font-size: 12.5px; color: var(--gsu-muted); margin-top: 16px; }

/* Künye şeridi (ders/program üst bilgileri) */
.gsu-meta { margin: 26px 0 0; border-top: 1px solid var(--gsu-line); }
.gsu-meta > div { padding: 16px; border-right: 1px solid var(--gsu-line); }
.gsu-meta > div:first-child { padding-left: 0; }
.gsu-meta > div:last-child { border-right: 0; }
.gsu-meta dt { font-size: 11.5px; letter-spacing: .08em; color: var(--gsu-muted); font-weight: 600; text-transform: uppercase; }
.gsu-meta dd { font-size: 16px; font-weight: 700; margin: 2px 0 0; }

/* Yan menü */
.gsu-side-h { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--gsu-muted); margin-bottom: 10px; text-transform: uppercase; }
.gsu-side a {
    display: block;
    padding: 10px 14px;
    border-left: 2px solid var(--gsu-line);
    color: var(--gsu-ink);
    font-size: 14px;
    font-weight: 500;
}
.gsu-side a:hover { border-left-color: var(--gsu-red); color: var(--gsu-red); background: var(--gsu-ground); text-decoration: none; }
.gsu-side a.on { border-left-color: var(--gsu-red); color: var(--gsu-red); font-weight: 700; background: var(--gsu-ground); }
.gsu-side-box { border: 1.5px solid var(--gsu-line); padding: 16px; margin-top: 22px; }
.gsu-side-box-h { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.gsu-side-box-b { font-size: 13.5px; color: var(--gsu-muted); line-height: 1.55; }
.gsu-side-box-b a { display: inline; padding: 0; border: 0; }
@media (min-width: 992px) {
    .gsu-sticky { position: sticky; top: 150px; }
}

/* Program ağacı: yan menüdeki düzey > fakülte > program listesi (details/summary, JS'siz açılır-kapanır) */
.gsu-tree { padding: 0; }
.gsu-tree .gsu-side-box-h {
    margin: 0;
    padding: 11px 12px;
    background: var(--gsu-ground);
    border-bottom: 1.5px solid var(--gsu-line);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gsu-muted);
}
.gsu-tree-body { max-height: 62vh; overflow-y: auto; }
.gsu-tree summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.gsu-tree summary::-webkit-details-marker { display: none; }
/* Açılınca 90° dönen küçük ok */
.gsu-tree summary::before {
    content: "";
    flex: none;
    width: 0;
    height: 0;
    border-left: 5px solid currentColor;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transition: transform .15s ease;
}
.gsu-tree details[open] > summary::before { transform: rotate(90deg); }
.gsu-tree summary:hover { color: var(--gsu-red); }
.gsu-tree-t { flex: 1; overflow-wrap: anywhere; }
.gsu-tree-n { font-size: 11px; font-weight: 600; color: var(--gsu-muted); }
.gsu-tree-l > summary { padding: 10px 12px; font-size: 13px; font-weight: 700; border-top: 1px solid var(--gsu-line); }
.gsu-tree-l:first-of-type > summary { border-top: 0; }
.gsu-tree-g > summary { padding: 7px 12px 7px 26px; font-size: 12.5px; font-weight: 600; color: var(--gsu-muted); }
.gsu-tree-p { list-style: none; margin: 0; padding: 0 0 6px; }
/* .gsu-side a kuralları (kalın sol çizgi, büyük dolgu) ağaç bağlantıları için geçersiz kılınır. */
.gsu-side .gsu-tree-p a {
    display: block;
    padding: 6px 12px 6px 40px;
    border-left: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}
.gsu-side .gsu-tree-p a:hover { background: var(--gsu-ground); color: var(--gsu-red); }
.gsu-side .gsu-tree-p a.on {
    background: var(--gsu-ground);
    color: var(--gsu-red);
    font-weight: 700;
    box-shadow: inset 2px 0 0 var(--gsu-red);
}

/* İçerik gövdesi (CMS HTML'i ve elle yazılan bölümler aynı kurallarla) */
.gsu-prose { font-size: 16px; }
.gsu-prose > :first-child { margin-top: 0; }
.gsu-prose p { font-size: 14px; line-height: 1.7; color: var(--gsu-muted); margin: 0 0 16px; text-wrap: pretty; }
.gsu-prose h2 { font-size: 22px; font-weight: 800; letter-spacing: -.015em; margin: 34px 0 12px; color: var(--gsu-ink); }
.gsu-prose h3 { font-size: 17px; font-weight: 700; margin: 26px 0 10px; color: var(--gsu-ink); }
.gsu-prose h4, .gsu-prose h5, .gsu-prose h6 { font-size: 15.5px; font-weight: 700; margin: 22px 0 8px; color: var(--gsu-ink); }
.gsu-prose ul, .gsu-prose ol { padding-left: 20px; margin: 0 0 18px; }
.gsu-prose li { font-size: 16px; line-height: 1.65; color: var(--gsu-muted); margin-bottom: 8px; }
.gsu-prose img { max-width: 100%; height: auto; }
.gsu-prose strong, .gsu-prose b { color: var(--gsu-ink); }
/* CMS içeriğindeki geniş tablolar sayfayı taşırmasın */
.gsu-prose table { max-width: 100%; }

/* Tablolar */
.gsu-scroll { overflow-x: auto; }
.gsu-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.gsu-table th {
    background: var(--gsu-ink); color: var(--gsu-white); text-align: left;
    padding: 11px 14px; font-weight: 600; font-size: 12.5px; letter-spacing: .04em;
    text-transform: uppercase; white-space: nowrap;
}
.gsu-table td { padding: 12px 14px; border-bottom: 1px solid var(--gsu-line); vertical-align: top; color: var(--gsu-ink); }
.gsu-table tbody tr:hover { background: var(--gsu-ground); }
.gsu-table td a { font-weight: 600; }
.gsu-table .num { text-align: center; white-space: nowrap; }
.gsu-table .kod { font-weight: 700; white-space: nowrap; }
.gsu-table tfoot td, .gsu-table tr.toplam td { font-weight: 700; background: var(--gsu-ground); }

/* Ders planı tablosu: sütun genişlikleri sabit, böylece her yarıyıl tablosunda
   kolonlar aynı hizada kalır ve uzun bir ön koşul metni tabloyu genişletemez. */
.gsu-plan { table-layout: fixed; min-width: 980px; }
/* Dar sütunlarda başlık metni taşmasın diye yatay dolgu ve punto küçültülür.
   Fransızca başlıklar ("Travaux Pratiques (TP)") uzun olduğu için sütuna sığmayan
   tek bir kelime de kırılır; aksi hâlde komşu başlığın üstüne taşıyor. */
.gsu-plan th { white-space: normal; font-size: 11.5px; padding: 10px 8px; overflow-wrap: anywhere; }
.gsu-plan td { padding: 11px 8px; }
/* Ön koşul sütunu kırpılmaz: uzun ders adları alt alta sarar. Sütun genişliği sabit
   olduğu için (table-layout: fixed) satırlar sarsa da tablo yana kaymaz. */
.gsu-plan td.onkosul {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.45;
}
.gsu-plan td.ad { overflow-wrap: anywhere; }

/* Yarıyıl / ortak ders açıklaması (yönetim panelinden gelen serbest HTML).
   Ders satırlarının önüne geçmemesi için tablodan küçük punto ve silik renk;
   içeriğin tamamı <strong> yazılmış olsa bile ağırlık yarı kalında tutulur. */
.gsu-aciklama {
    font-size: 12px;
    line-height: 1.6;
    font-weight: 400;
    color: var(--gsu-muted);
}
.gsu-aciklama strong, .gsu-aciklama b, .gsu-aciklama th { font-weight: 600; color: inherit; }
.gsu-aciklama h1, .gsu-aciklama h2, .gsu-aciklama h3,
.gsu-aciklama h4, .gsu-aciklama h5, .gsu-aciklama h6 {
    font-size: 13px;
    font-weight: 600;
    color: var(--gsu-ink);
    margin: 12px 0 6px;
}
.gsu-aciklama p { margin: 0 0 8px; }
.gsu-aciklama p:last-child, .gsu-aciklama > :last-child { margin-bottom: 0; }
.gsu-aciklama ul, .gsu-aciklama ol { padding-left: 18px; margin: 0 0 8px; }
.gsu-aciklama li { margin-bottom: 4px; }
.gsu-plan tr.aciklama td { background: var(--gsu-ground); padding: 14px; }
.gsu-table caption {
    caption-side: top; text-align: left; padding: 11px 14px;
    background: var(--gsu-ground); border: 1.5px solid var(--gsu-line); border-bottom: 0;
    font-weight: 700; font-size: 14.5px; color: var(--gsu-ink);
}
.gsu-table caption .sag { float: right; font-size: 12.5px; font-weight: 500; color: var(--gsu-muted); }

/* Bölüm başlığı + eylem düğmeleri */
.gsu-btn-o {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1.5px solid var(--gsu-ink); color: var(--gsu-ink);
    font-weight: 600; font-size: 13.5px; padding: 11px 16px; background: transparent;
}
.gsu-btn-o:hover { background: var(--gsu-ink); color: var(--gsu-white); text-decoration: none; }

/* Bilgi kutusu (veri yok / uyarı) */
.gsu-note { border: 1.5px solid var(--gsu-line); background: var(--gsu-ground); padding: 16px 18px; font-size: 14.5px; color: var(--gsu-muted); }

/* Açılır liste (akademik yıl) */
.gsu-select {
    border: 1.5px solid var(--gsu-line);
    background: var(--gsu-white);
    color: var(--gsu-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 12px;
    border-radius: 0;
    max-width: 100%;
}
.gsu-select:focus { border-color: var(--gsu-red); outline: none; }

/* Rozet */
.gsu-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--gsu-gold); color: var(--gsu-ink);
    font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 4px 9px;
}

/* Yeterlilik-ders matrisi: renk skalası (mevcut sistemdeki puan renkleri korunur) */
/* Çok sütunlu olabildiği için hücreler dar; ders kodu kaydırırken sabit kalır. */
.gsu-matris { table-layout: fixed; width: 100%; }
.gsu-matris th, .gsu-matris td { padding: 8px 3px; font-size: 12.5px; }
.gsu-matris th:first-child, .gsu-matris td:first-child {
    width: 116px;
    padding-left: 14px;
    padding-right: 10px;
    text-align: left;
    position: sticky;
    left: 0;
    z-index: 1;
}
.gsu-matris thead th:first-child { background: var(--gsu-ink); }
.gsu-matris tbody td:first-child { background: var(--gsu-white); }
.gsu-matris tbody tr:hover td:first-child { background: var(--gsu-ground); }
.gsu-matris td.p { text-align: center; font-weight: 700; }
.gsu-matris td.p0 { background: var(--matris-p0); }
.gsu-matris td.p1 { background: var(--matris-p1); }
.gsu-matris td.p2 { background: var(--matris-p2); }
.gsu-matris td.p3 { background: var(--matris-p3); }
.gsu-matris td.p4 { background: var(--matris-p4); }
.gsu-matris td.p5 { background: var(--matris-p5); color: var(--gsu-white); }
.gsu-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; font-size: 12.5px; }
.gsu-legend span { display: inline-flex; align-items: center; gap: 7px; }
.gsu-legend i { width: 16px; height: 16px; display: inline-block; border: 1px solid var(--gsu-line); }

/* TYYÇ matrisi */
.gsu-tyyc td.x { text-align: center; font-weight: 700; color: var(--gsu-red); }
.gsu-tyyc th.no { text-align: center; }

/* =============================================================================
   Yönetim panelinden gelen içerikler (CMS) — eski tema uyumluluğu
   Editör hâlâ Bootstrap 3 işaretlemesi üretiyor (panel/accordion, table-responsive,
   img-responsive, .collapse + .in). Bootstrap 5'te bu sınıfların karşılığı yok ya da
   farklı (.in yerine .show), bu yüzden burada karşılanır.
   Kapsam bilerek .gsu-prose / .gsu-aciklama içiyle sınırlı tutulmamıştır: aynı
   işaretleme yarıyıl açıklamalarında ve sayfa gövdesinde de geçiyor.
   ============================================================================= */

/* Açılır kapanır bölümler (accordion). Bootstrap 5 yalnızca .show biliyor. */
/* Kapalı bölümlerde kayıtlı "height: 0" satır içi stili açıkken devre dışı kalmalı. */
.collapse.in { display: block !important; height: auto !important; }

/* Kutu kutu paneller yerine ince çizgilerle ayrılmış sade liste. */
.panel-group { border-top: 1px solid var(--gsu-line); margin: 18px 0; }
.panel { border: 0; border-bottom: 1px solid var(--gsu-line); margin: 0; background: transparent; }
.panel-flat { border: 0; }
.panel-heading { background: transparent; border: 0; padding: 0; }
/* .gsu-prose h4 kuralı panel başlığını aşağı itiyordu; özgüllük burada eşitleniyor. */
.panel-title, .gsu-prose .panel-title, .gsu-aciklama .panel-title { margin: 0; font-size: 15px; font-weight: 600; }
.panel-title > a {
    display: block;
    padding: 14px 46px 14px 14px;
    position: relative;
    color: var(--gsu-ink);
    font-weight: 600;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: .15s ease;
}
.panel-title > a:hover { color: var(--gsu-red); background: var(--gsu-ground); text-decoration: none; }
/* Açık bölümün başlığı işaretli kalır */
.panel-title > a:not(.collapsed) { color: var(--gsu-red); background: var(--gsu-ground); border-left-color: var(--gsu-red); }
/* Gösterge: kapalıyken artı, açıkken eksi */
.panel-title > a::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 11px;
    height: 2px;
    margin-top: -1px;
    background: currentColor;
}
.panel-title > a::before {
    content: "";
    position: absolute;
    right: 21px;
    top: 50%;
    width: 2px;
    height: 11px;
    margin-top: -6px;
    background: currentColor;
    opacity: 0;
}
.panel-title > a.collapsed::before { opacity: 1; }
.panel-collapse > .panel-body { padding: 6px 14px 22px; }
.panel > .panel-body { padding: 14px; }
/* Editörde başlık şeridi olarak kullanılan tek hücrelik tablonun yerini alır. */
.gsu-cms-serit {
    background: var(--gsu-ground);
    border: 1px solid var(--gsu-line);
    padding: 12px 16px;
    margin: 0 0 18px;
    text-align: center;
    font-weight: 600;
}
.gsu-cms-blok { margin: 0 0 18px; }
.gsu-cms-blok > :last-child { margin-bottom: 0; }
.gsu-cms-serit > :first-child { margin-top: 0; }
.gsu-cms-serit > :last-child { margin-bottom: 0; }
.gsu-cms-serit h1, .gsu-cms-serit h2, .gsu-cms-serit h3,
.gsu-cms-serit h4, .gsu-cms-serit h5, .gsu-cms-serit h6,
.gsu-cms-serit p { margin: 0; font-size: 15px; font-weight: 600; color: var(--gsu-ink); }

/* JS çalışmazsa: tek satırlık tablolarda satır vurgusu olmasın. */
.gsu-prose .table-hover tbody tr:only-child:hover td,
.panel-body .table-hover tbody tr:only-child:hover td { background: transparent; }

/* Tablo hücresi içine konmuş başlıklar (CMS'te başlık şeridi olarak kullanılıyor) */
.gsu-prose td > h1, .gsu-prose td > h2, .gsu-prose td > h3,
.gsu-prose td > h4, .gsu-prose td > h5, .gsu-prose td > h6 { margin: 0; }

/* Geniş tablolar kabında kaysın */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* CMS tabloları site tablosuyla aynı görünsün */
.gsu-prose .table, .gsu-aciklama .table, .panel-body .table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    margin-bottom: 14px;
}
.gsu-prose .table th, .gsu-aciklama .table th, .panel-body .table th {
    background: var(--gsu-ground);
    color: var(--gsu-ink);
    text-align: left;
    padding: 9px 12px;
    font-weight: 600;
    border-bottom: 2px solid var(--gsu-line);
}
.gsu-prose .table td, .gsu-aciklama .table td, .panel-body .table td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--gsu-line);
    vertical-align: top;
}
.gsu-prose .table-bordered th, .gsu-prose .table-bordered td,
.panel-body .table-bordered th, .panel-body .table-bordered td { border: 1px solid var(--gsu-line); }
.gsu-prose .table-hover tbody tr:hover td, .panel-body .table-hover tbody tr:hover td { background: var(--gsu-ground); }
.gsu-prose .table-condensed th, .gsu-prose .table-condensed td,
.panel-body .table-condensed th, .panel-body .table-condensed td { padding: 6px 10px; }

/* Eski yardımcı sınıflar */
.img-responsive { display: block; max-width: 100%; height: auto; }
.img-thumbnail { padding: 4px; border: 1px solid var(--gsu-line); background: var(--gsu-white); max-width: 100%; height: auto; }
.img-rounded { border-radius: 0; }
.pull-right { float: right; }
.pull-left { float: left; }
/* ---------- Hata sayfaları (404 / 500, Views/Shared/_HataGovde.cshtml) ---------- */
.gsu-hata { flex: 1; display: flex; align-items: center; background: var(--gsu-ground); border-bottom: 2px solid var(--gsu-ink); }
.gsu-hata > .container { padding-top: 64px; padding-bottom: 72px; }

.gsu-hata-kutu { display: flex; align-items: flex-start; gap: 34px; }

/* Büyük durum kodu: dekoratif, ekran okuyucudan gizli (aria-hidden). */
.gsu-hata-kod {
    font-size: 118px; line-height: .84; font-weight: 800; letter-spacing: -.05em;
    color: var(--gsu-red); flex: none;
}

.gsu-hata-govde { max-width: 620px; padding-top: 6px; }
.gsu-hata-h1 { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; color: var(--gsu-ink); }
.gsu-hata-p { font-size: 15px; line-height: 1.7; color: var(--gsu-muted); margin: 0 0 22px; text-wrap: pretty; }
.gsu-hata-ref { margin-top: 20px; font-size: 12.5px; color: var(--gsu-muted); }
.gsu-hata-ref code { font-size: 12.5px; color: var(--gsu-ink); background: var(--gsu-white); border: 1px solid var(--gsu-line); padding: 2px 6px; }

/* Hata ayrıntısı yalnızca yerel isteklerde basılır (Helpers/HataFiltresi.cs). */
.gsu-hata-detay { margin-top: 22px; border: 1px solid var(--gsu-line); background: var(--gsu-white); }
.gsu-hata-detay > summary { cursor: pointer; padding: 10px 12px; font-size: 12.5px; font-weight: 600; }
.gsu-hata-detay pre {
    margin: 0; padding: 12px; border-top: 1px solid var(--gsu-line); background: var(--gsu-white);
    font-size: 11.5px; line-height: 1.5; max-height: 320px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
    .gsu-hata > .container { padding-top: 40px; padding-bottom: 48px; }
    .gsu-hata-kutu { flex-direction: column; gap: 10px; }
    .gsu-hata-kod { font-size: 76px; }
    .gsu-hata-h1 { font-size: 26px; }
}

.clearfix::after { content: ""; display: table; clear: both; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.hidden { display: none !important; }
