/* Birim Sayfası Ana Stilleri */
.unit-page {
    /*padding-top: 85px;*/
    background-color: #f8f9fa;
}

/* Grid Yapısı */
.unit-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Sol Menü */
.unit-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Ana İçerik */
.unit-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Genel Section Stilleri */
.unit-section {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.75rem;
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
    position: relative;
    padding-bottom: 0.75rem;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 3px;
        background: var(--selcuk-blue);
    }

/* Haberler Grid - eski birim şablonu: doğrudan kartlar grid içinde */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* TumIcerikler / all-news yapısı: .news-grid > .news-grid__container > .news-grid__row
   Üst .news-grid'e grid vermek tek çocuğu dar hücreye sıkıştırıp kartları keser */
.news-grid:has(.news-grid__container) {
    display: block;
    grid-template-columns: unset;
    gap: unset;
    margin-bottom: 0;
}

.news-grid:has(.news-grid__container) .news-grid__container {
    width: 100%;
    max-width: 100%;
}

    .news-grid a {
        text-decoration: none;
    }

.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    }

.news-image {
    position: relative;
    height: 200px;
}

    .news-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7));
}

.news-content {
    padding: 1.5rem;
}

.news-category {
    display: inline-block;
    background: var(--selcuk-blue);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-title {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-date {
    color: #999;
    font-size: 0.85rem;
}

/* Duyurular Grid */
.announcements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.announcement-column {
    display: flex;
    flex-direction: column;
}

.announcement-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.announcement-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

    .announcement-card:hover {
        transform: translateX(10px);
    }

.announcement-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #E3F2FD;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--selcuk-blue);
}

.announcement-content {
    flex: 1;
}

.announcement-date {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.announcement-title {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

    .announcement-title a {
        color: #2c3e50;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .announcement-title a:hover {
            color: var(--selcuk-blue);
        }

/* Etkinlikler */
.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.event-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

    .event-card:hover {
        transform: translateX(10px);
    }

.event-date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--selcuk-blue);
    color: #fff;
    padding: 1.5rem;
    min-width: 120px;
    text-align: center;
}

    .event-date .month {
        font-size: 0.85rem;
        text-transform: uppercase;
    }

    .event-date .day {
        font-size: 2rem;
        font-weight: 700;
        line-height: 1;
        margin: 0.5rem 0;
    }

    .event-date .year {
        font-size: 0.85rem;
    }

.event-details {
    flex: 1;
    padding: 1.5rem;
}

.event-type {
    display: inline-block;
    color: var(--selcuk-blue);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-title {
    color: #2c3e50;
    font-size: 1.1rem;
    margin: 0 0 1rem;
}

.event-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

    .event-location i {
        color: var(--selcuk-blue);
    }

.event-action {
    display: flex;
    align-items: center;
    padding-right: 1.5rem;
    color: var(--selcuk-blue);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-card:hover .event-action {
    opacity: 1;
}

/* Buton Stilleri */
.unit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.unit-btn-outline {
    color: var(--selcuk-blue);
    border: 2px solid var(--selcuk-blue);
}

    .unit-btn-outline:hover {
        background: var(--selcuk-blue);
        color: #fff;
    }

.unit-btn-text {
    color: var(--selcuk-blue);
    padding: 0.5rem;
}

    .unit-btn-text:hover {
        background: #E3F2FD;
        border-radius: 6px;
    }

.section-footer {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

/* Responsive Tasarım */
@media (max-width: 1200px) {
    .unit-grid {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .unit-grid {
        grid-template-columns: 1fr;
    }

    .unit-sidebar {
        position: relative;
        top: 0;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .unit-page {
        padding-top: 5px;
    }

    .unit-grid {
        padding: 1rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .announcements-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .event-date {
        padding: 1rem;
        min-width: 100px;
    }

        .event-date .day {
            font-size: 1.75rem;
        }

    .event-details {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .unit-section {
        padding: 1.25rem;
    }

    .announcement-card {
        padding: 0.75rem;
    }

    .event-card {
        flex-direction: row;
    }

    .event-date {
        min-width: 90px;
        padding: 0.75rem;
    }

        .event-date .day {
            font-size: 1.5rem;
        }

    .event-title {
        font-size: 1rem;
    }
}

/* Animasyonlar */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card, .announcement-card, .event-card {
    animation: slideIn 0.6s ease both;
}

/* Print Styles */
@media print {
    .unit-page {
        padding-top: 0;
    }

    .unit-grid {
        display: block;
    }

    .unit-sidebar {
        display: none;
    }

    .unit-section {
        box-shadow: none;
        break-inside: avoid;
    }

    .news-grid, .announcements-grid, .events-grid {
        break-inside: avoid;
    }

    .unit-btn {
        display: none;
    }

    .event-action {
        display: none;
    }
}

/* Page Header - Birim sayfası başlık: sol mavi gradient (kurumsal), ortada başlık + ince çizgiler, breadcrumb */
.unit-page-header {
    --unit-header-accent: var(--primary, var(--selcuk-blue));
    --unit-header-gradient-start: var(--selcuk-blue-hover);
    --unit-header-gradient-mid: var(--primary, var(--selcuk-blue));
    --unit-header-gradient-end: rgba(255, 255, 255, 0);
    display: flex;
    align-items: stretch;
    border-bottom: none;
    padding: 0;
    position: relative;
    background: #fff;
}

/* Sol turkuaz gradient (darker → açık, yaklaşık sayfa genişliğinin 1/5’i) */
.unit-page-header__gradient {
    width: 20%;
    max-width: 280px;
    min-width: 120px;
    flex-shrink: 0;
    background: linear-gradient(to right, var(--unit-header-gradient-start) 0%, var(--unit-header-gradient-mid) 40%, var(--unit-header-gradient-mid) 70%, var(--unit-header-gradient-end) 100%);
}

.unit-page-header__container {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 1.75rem 2rem;
    max-width: 1400px;
}

.unit-page-header__content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

/* Başlık: sol kısa çizgi + metin + sağ uzun çizgi */
.unit-page-header__title {
    color: #1e293b;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.unit-page-header__title-text {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Başlığın solundaki ve sağındaki ince açık mavi çizgiler */
.unit-page-header__title-line {
    height: 2px;
    background: var(--unit-header-accent);
    flex-shrink: 0;
}

.unit-page-header__title-line--left {
    width: 24px;
}

.unit-page-header__title-line--right {
    flex: 1;
    min-width: 20px;
}

.unit-page-header__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--unit-header-accent);
    padding-left: 0;
}

.unit-page-header__link {
    color: var(--unit-header-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

    .unit-page-header__link:hover {
        color: var(--primary, var(--selcuk-blue-hover));
    }

.unit-page-header__separator {
    color: var(--unit-header-accent);
    opacity: 0.8;
    font-size: 0.85rem;
}

.unit-page-header__current {
    color: #64748b;
    font-weight: 500;
}

.unit-page-header::before,
.unit-page-header::after {
    content: none;
}

/* Responsive - Birim header */
@media (max-width: 768px) {
    .unit-page-header__gradient {
        width: 12%;
        min-width: 60px;
    }

    .unit-page-header__container {
        padding: 1.25rem 1rem;
    }

    .unit-page-header__title {
        font-size: 1.35rem;
        gap: 0.75rem;
    }

    .unit-page-header__title-line--left {
        width: 18px;
    }

    .unit-page-header__breadcrumb {
        font-size: 0.8125rem;
    }
}

@media (max-width: 576px) {
    .unit-page-header__gradient {
        width: 8%;
        min-width: 40px;
    }

    .unit-page-header__container {
        padding: 1rem 0.75rem;
    }

    .unit-page-header__title {
        font-size: 1.25rem;
        gap: 0.5rem;
    }

    .unit-page-header__title-line--left {
        width: 14px;
    }

    .unit-page-header__breadcrumb {
        font-size: 0.75rem;
    }
}


/* Mevcut CSS dosyanızın sonuna bu kodları ekleyin */

/* Mobil Header - Ayrı Yapı */
.unit-page-header-mobile {
    display: none; /* Varsayılan olarak gizli */
    padding: 1rem;
    background: #fff;
}

.unit-page-header-mobile__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.unit-page-header-mobile__title {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.3;
}

    .unit-page-header-mobile__title::before {
        content: '';
        width: 20px;
        height: 2px;
        background: var(--selcuk-blue);
        display: block;
        margin-top: 0.6rem;
        flex-shrink: 0;
    }

.unit-page-header-mobile__title-text {
    word-break: break-word;
    line-height: 1.3;
}

.unit-page-header-mobile__breadcrumb {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--selcuk-blue);
}

.unit-page-header-mobile__nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.unit-page-header-mobile__nav-item {
    display: block;
}

.unit-page-header-mobile__home {
    color: var(--selcuk-blue);
    text-decoration: none;
    font-weight: 500;
}

.unit-page-header-mobile__parent {
    color: var(--selcuk-blue);
    text-decoration: none;
    font-weight: 500;
}

.unit-page-header-mobile__separator {
    display: none; /* Artık gerek yok */
}

.unit-page-header-mobile__current {
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.4;
    word-break: break-word;
    margin-top: 0.3rem;
    padding-top: 0.3rem;
    border-top: 1px solid #e2e8f0;
}

/* Mobil görünümde göster, desktop'ta gizle */
@media (max-width: 768px) {
    .unit-page-header {
        display: none;
    }

    .unit-page-header-mobile {
        display: block;
    }
}

@media (max-width: 576px) {
    .unit-page-header-mobile {
        padding: 0.75rem;
    }

    .unit-page-header-mobile__title {
        font-size: 1.2rem;
        gap: 0.5rem;
    }

        .unit-page-header-mobile__title::before {
            width: 18px;
            margin-top: 0.5rem;
        }

    .unit-page-header-mobile__nav {
        font-size: 0.75rem;
    }

    .unit-page-header-mobile__current {
        font-size: 0.7rem;
    }
}

/* Birim sayfaları: Etkinlik sekmelerinde Bootstrap nav-pills mavi arka planını kaldır */
.unit-page .events-component__nav.nav-pills .nav-link.active,
.unit-page .events-component__nav.nav-pills .show > .nav-link {
    background-color: transparent !important;
    background-image: none !important;
    color: var(--selcuk-blue, #1c458b) !important;
    border-radius: 0;
    border: none;
    border-bottom: 3px solid var(--selcuk-blue, #1c458b);
    margin-bottom: -2px;
}

.unit-page .events-component__nav.nav-pills .nav-link:not(.active) {
    background-color: transparent !important;
    color: #6c757d;
}