/* Header Styles */
.unit-page-header {
    border-bottom: none;
    padding: 1.5rem 0;
    position: relative;
    /* margin-top: 60px; */
}

    .unit-page-header::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 4px;
        height: 100%;
        background: var(--selcuk-blue);
    }

.unit-page-header__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.unit-page-header__content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.unit-page-header__title {
    color: #1E293B;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .unit-page-header__title::before {
        content: '';
        width: 30px;
        height: 2px;
        background: var(--selcuk-blue);
        display: inline-block;
        vertical-align: middle;
    }

.unit-page-header__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #64748B;
    padding-left: 2.75rem;
}

.unit-page-header__link {
    color: var(--selcuk-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.unit-page-header__separator {
    color: #94A3B8;
}

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

/* Page Layout */
.page-container {
    background: #F8FAFC;
    min-height: calc(100vh - 120px);
    padding: 3rem 0;
}

.page-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Content Styles */
.content-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Birim etkinlik detayı: görselin üstünde tür etiketi ile tarih aynı satırda */
.content-event-lead {
    padding: 1.25rem 1.5rem 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
}

.content-event-lead__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: var(--selcuk-blue, #1a4188);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
}

    .content-event-lead__badge i {
        font-size: 0.7rem;
        opacity: 0.95;
    }

.content-event-lead__date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

    .content-event-lead__date i {
        color: var(--selcuk-blue, #1a4188);
        font-size: 0.85rem;
    }

/* Etiket/tarih satırı ile kapak görseli arasında boşluk */
.content-event-lead + .content-image {
    margin-top: 1rem;
}

.content-image {
    width: 100%;
    /*max-height: 500px;*/
    overflow: hidden;
}

    .content-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
        vertical-align: middle;
    }

.content-text {
    padding: 2rem;
    color: #1E293B;
    line-height: 1.7;
}

    .content-text p {
        margin-bottom: 1.5rem;
    }

    .content-text img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 1.5rem 0;
    }

    .content-text a {
        color: var(--selcuk-blue);
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .content-text a:hover {
            color: var(--selcuk-blue-hover);
            text-decoration: underline;
        }

    .content-text h2,
    .content-text h3,
    .content-text h4 {
        color: #1E293B;
        margin: 2rem 0 1rem;
        font-weight: 600;
    }

    .content-text h2 {
        font-size: 1.5rem;
    }

    .content-text h3 {
        font-size: 1.25rem;
    }

    .content-text h4 {
        font-size: 1.125rem;
    }

    .content-text ul,
    .content-text ol {
        margin: 1.5rem 0;
        padding-left: 1.5rem;
    }

    .content-text li {
        margin-bottom: 0.5rem;
    }

    /* Editörde eklenen tablolar: çizgilerin sitede görünmesi (yenilemede kaybolmasın diye spesifik) */
    .content-text table {
        border-collapse: collapse !important;
        border: none !important; /* Editörden gelen tablo border'ı kaldırır; dış kenarlar çift çizgi olmasın */
        width: 100%;
        max-width: 100%;
        margin: 1.5rem 0;
        box-sizing: border-box;
    }

    .content-text table th,
    .content-text table td {
        border: 1px solid #333 !important;
        padding: 0.5rem 0.75rem;
        text-align: left;
    }

    .content-text table th {
        background: #f1f5f9;
        font-weight: 600;
    }

/* Responsive Design */
@media (max-width: 1200px) {
    .page-grid {
        gap: 1.5rem;
    }
}

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

    .unit-page-header__container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .unit-page-header {
        padding: 1.25rem 0;
    }

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

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

    .page-container {
        padding: 2rem 0;
    }

    .content-text {
        padding: 1.5rem;
    }
}

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

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

    .unit-page-header__container,
    .page-grid {
        padding: 0 1rem;
    }

    .content-text {
        padding: 1.25rem;
    }
}

/* Print Styles */
@media print {
    .page-container {
        background: none;
        padding: 0;
    }

    .content-card {
        box-shadow: none;
        border: none;
    }

    .unit-page-header::before {
        display: none;
    }
}
