/*
 * AKTS site-specific overrides, layered on top of Bootstrap 5.3.x + Font Awesome 4.
 *
 * This replaces the old assets/css/abp.css, which used to bundle Bootstrap 3 core CSS +
 * inlined Font Awesome + these same custom rules into one 9000-line file. The old file is
 * left on disk (unreferenced) for reference. Bootstrap's own visual defaults (colors,
 * spacing, navbar) are intentionally NOT re-themed here anymore - only rules that add
 * genuinely custom/institutional styling, or adapt old Bootstrap 3 markup assumptions to
 * Bootstrap 5's structure, are kept.
 */

.ds-link {
    float: left;
    padding: 0 10px 0 0;
    line-height: 24px;
    width: 30%;
}

/* Footer'ı içerik kısa olsa bile viewport altına yapıştırır (esnek, piksel tahmini gerektirmez:
   #wrapper (nav + sayfa içeriği) büyür, footer doğal yüksekliğinde en altta kalır). */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    font-family: var(--akts-body-font), serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.428571429;
}

#wrapper {
    flex: 1 0 auto;
}

/* Başlıklarda ve marka/navbar metninde kurumsal karakteri olan Quicksand kullanılır,
   gövde metni (paragraf, tablo, liste) okunabilirlik için Inter ile kalır. */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.navbar-brand {
    font-family: var(--akts-font), sans-serif;
    font-weight: 600;
}

#main-content {
    margin-top: 40px;
}

ul li {
    list-style: none;
}

h2, .h2 {
    font-size: 18px;
}

.jumbotron {
    font-size: 14px;
}

/* Homepage banner carousel */
.carousel {
    background: #e7e7e7;
    padding: 0 10px;
    margin-bottom: 20px;
    height: 200px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.carousel h1, .carousel .h1 {
    font-size: 28px;
}

.carousel-control-prev, .carousel-control-next {
    width: 30px;
}

.carousel img {
    margin: 0 10px 0 30px;
}

.static-banner {
    margin-bottom: 20px;
}

.page-header {
    font-size: 20px;
    padding-bottom: 9.5px;
    margin: 0 0 21px;
    border-bottom: 1px solid #ecf0f1;
}

.breadcrumb {
    --bs-breadcrumb-divider: '›';
    align-items: center;
    padding: 10px 14px;
    margin-bottom: 24px;
    background: var(--estu-gray-100, #f3f3f3);
    border-radius: 6px;
    font-size: 13px;
}

.breadcrumb-item a {
    color: var(--estu-gray-500, #2e2e2e);
    text-decoration: none;
    transition: color .15s ease;
}

.breadcrumb-item a:hover {
    color: var(--estu-red-500, #870c0b);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--estu-red-500, #870c0b);
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--estu-gray-300, #969696);
    font-weight: 700;
}

.content {
    text-align: justify;
    padding-bottom: 20px;
    padding-right: 0;
}

.content img {
    display: block;
    max-width: 100%;
    height: auto;
}


.content h4 {
    font-weight: bold;
    font-size: 18px;
    border-bottom: 1px solid #841a0d;
    padding-bottom: 5px;
    margin-bottom: 5px;
    color: #911d0e;
}

.side-nav {
    padding-left: 0;
}

/* Sol menü (side-nav): Bootstrap list-group kutucuk/kart görünümü yerine
   açık, modern bir "pill" menü — kutu/çerçeve yok, hover'da kırmızı vurgulu
   yuvarlak arkaplan ve kayarak beliren bir ok işareti (breadcrumb'daki
   ayraç okuyla aynı motif, site genelinde görsel tutarlılık için). */
.side-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.side-nav-link {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    font-family: var(--akts-font), sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--estu-gray-500, #2e2e2e);
    background: transparent;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.side-nav-link:hover,
.side-nav-link:focus {
    background: var(--estu-red-100, #eddada);
    color: var(--estu-red-700, #5e0807);
    text-decoration: none;
}

/* Menü Bootstrap'ın col-md-3/col-md-9 oranı yerine sabit dar genişlik alır,
   içerik kalan tüm alanı doldurur; menü scroll'da navbar'ın altında sabit kalır. */
@media (min-width: 768px) {
    /* Satır sarmasını kapat — Bootstrap .row varsayılanı wrap'tir,
       bu yüzden çocuklar genişlik aşımında alta düşer. */
    #main-content .row {
        flex-wrap: nowrap;
        gap: 0;
    }

    #main-content .row > .side-nav {
        flex: 0 0 260px;
        width: 260px;
        max-width: 260px;
        /* Bootstrap col-* sınıfları varsa bunları ez: */
        min-width: 260px;
        align-self: flex-start;
        position: sticky;
        top: 70px;
        padding-right: 24px;
    }

    #main-content .row > .content {
        flex: 1 1 0%;   /* 0% basis: kalan alanı doldur, içerikten bağımsız */
        width: 0;       /* flex-basis ile uyumlu: taşmayı engeller */
        max-width: none;
        min-width: 0;
    }
}

footer {
    flex-shrink: 0;
    background: var(--estu-gray-500, #2E2E2E);
    border-top: 3px solid var(--estu-red-500, #870c0b);
    margin: 0;
    padding: 48px 0 24px;
}

footer ul {
    margin-bottom: 32px;
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, .08);
}

/* İlk sütunun sol tarafında ayraç çizgisine gerek yok. */
footer .row > ul:first-child {
    border-left: 0;
    padding-left: 0;
}

footer li {
    font-size: 13px;
    list-style: none;
    margin-bottom: 10px;
    line-height: 1.5;
}

footer li.menu-title {
    color: #fff;
    font-family: var(--akts-font), sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .02em;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--estu-red-500, #870c0b);
}

footer li a {
    color: #c9c9c9;
    text-decoration: none;
    transition: color .15s ease;
}

footer li a:hover {
    color: #fff;
    text-decoration: underline;
}

footer p {
    clear: left;
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    footer ul {
        border-left: 0;
        padding-left: 0;
        margin-bottom: 24px;
    }
}

ul.akademik-program-list li {
    padding: 10px 0;
}

ul.default-list li {
    padding: 5px 0;
}

ul.akademik-list li {
    padding: 5px 0;
}

ul.akademik-list > li.list-title {
    margin-top: 10px;
}

ul.akademik-list li.bolum {
    padding: 5px 0 5px 10px;
}

ul.akademik-list li.program {
    padding: 5px 0 5px 20px;
}

ul.akademik-list li.altProgram {
    padding: 5px 0 5px 30px;
}

.content h4 {
    font-weight: bold;
    border-bottom: 1px solid var(--estu-red-700, #841a0d);
    padding-bottom: 5px;
    margin-bottom: 5px;
    color: var(--estu-red-500, #911d0e);
}

/* ── Kurumsal Tablo (genel amaçlı) ── */
/* border-radius + overflow sarmalayıcıda */
.table-akts-wrapper {
    border-radius: 8px;
    overflow: hidden;
}

.table-akts {
    font-family: var(--akts-body-font), sans-serif;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #dee2e6;
}

.table-akts thead th {
    background: var(--estu-red-500, #870c0b);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 14px;
    border-bottom: none;
    border-color: rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}

/* Tek thead satırı varsa koyu arka plan uygulanmaz;
   birden fazla satır varsa alt satırlar biraz daha koyu olur */
.table-akts thead tr + tr th {
    background: var(--estu-red-700, #5e0807);
    padding: 6px 14px;
}

.table-akts tbody td {
    padding: 12px 14px;
    font-size: 13px;
    vertical-align: middle;
    border-color: #ececec;
}

.table-akts tbody tr:nth-of-type(even) {
    background-color: #fafbfc;
}

.table-akts tbody tr:hover,
.table-akts tbody tr:nth-of-type(even):hover {
    background-color: var(--estu-red-100, #eddada);
}

/* tfoot varsa */
.table-akts tfoot td,
.table-akts tfoot th {
    background: #f4f6f9;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 14px;
    border-color: #ececec;
}

/* ── Ders Tab Navigasyonu ── */
.ders-tabs {
    margin: 16px 0;
    gap: 4px;
    border-bottom: 2px solid #ececec;
    padding-bottom: 0;
    --bs-nav-pills-border-radius: 6px 6px 0 0;
    --bs-nav-pills-link-active-bg: transparent;
    --bs-nav-pills-link-active-color: var(--estu-red-500, #870c0b);
}

.ders-tabs .nav-link {
    font-family: var(--akts-body-font), sans-serif;
    color: var(--estu-gray-500, #2e2e2e);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px 6px 0 0;
    border: 1px solid transparent;
    border-bottom: none;
    transition: color .15s ease, background-color .15s ease;
}

.ders-tabs .nav-link:hover {
    color: var(--estu-red-700, #5e0807);
    background-color: var(--estu-red-100, #eddada);
}

.ders-tabs .nav-link.active {
    color: var(--estu-red-500, #870c0b);
    font-weight: 600;
    background-color: #fff;
    border-color: #ececec;
    margin-bottom: -2px;
    border-bottom: 2px solid #fff;
}
