/* ==========================================================================
   Single News Page Styles
   ========================================================================== */

/* Main Layout: 85% Content / 15% Sidebar */
/* Main Layout: 75% Content / 25% Sidebar */
.single-content-wrapper .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    align-items: flex-start;
    /* Prevent sidebar from stretching if content is short */
}

.col-content {
    flex: 0 0 75%;
    max-width: 75%;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
}

.col-sidebar {
    flex: 0 0 25%;
    max-width: 25%;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
}

/* Responsive: Stack on mobile/tablet */
@media (max-width: 991px) {
    .single-content-wrapper .row {
        flex-direction: column;
    }

    .col-content,
    .col-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .col-sidebar {
        margin-top: 40px;
        padding-top: 40px;
        border-top: 1px solid #eee;
    }
}

/* Entry Header */
.entry-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
    position: relative;
}

.entry-meta-top {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #666;
    align-items: center;
}

.entry-category {
    font-weight: 700;
    color: var(--tema-anarenk);
    text-transform: uppercase;
}

.entry-title {
    font-size: 2.2rem;
    color: var(--tema-metinrenk);
    margin: 0.5rem 0;
    line-height: 1.3;
}

/* Post Thumbnail */
.entry-thumbnail {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.entry-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Typography */
.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--tema-metinrenk);
}

/* Share Area */
.share-area {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-area span {
    font-weight: 700;
    color: #555;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    font-size: 14px;
}

.share-btn.fb {
    background-color: #3b5998;
}

.share-btn.tw {
    background-color: #000;
}

.share-btn.wa {
    background-color: #25D366;
}

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: #fff;
}

/* Sidebar Widgets */
.widget {
    margin-bottom: 3rem;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--tema-anarenk);
    color: var(--tema-metinrenk);
}

.widget_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_categories li {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 0.5rem;
}

.widget_categories li:last-child {
    border-bottom: none;
}

.widget_categories a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: 0.2s;
    display: block;
}

.widget_categories a:hover {
    color: var(--tema-anarenk);
    padding-left: 5px;
}

/* Sidebar Socials */
.sidebar-social-icons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: 0.3s;
}

.social-icon:hover {
    background: var(--tema-anarenk);
    color: #fff;
}

/* ==========================================================================
   DSI Sidebar Custom Styles (Category List)
   ========================================================================== */
.dsi-sidebar-wrapper {
    padding: 0 0 20px 20px;
    position: sticky;
    top: 30px;
}

.dsi-sidebar-section {
    margin-bottom: 50px;
}

.dsi-sidebar-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--tema-baslikrenk);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    letter-spacing: -0.5px;
}

.dsi-sidebar-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background-color: var(--tema-anarenk);
    border-radius: 2px;
}

/* Base UL Reset */
.dsi-cat-list-root,
.dsi-cat-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Root Category Items */
.dsi-cat-item {
    position: relative;
    margin: 0;
}

/* Root items style */
.dsi-cat-list-root>.dsi-cat-item>a {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 12px;
    color: var(--tema-baslikrenk);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 4px;
}

/* Right arrow icon before category name */
.dsi-cat-list-root>.dsi-cat-item>a::before {
    content: "\203A";
    font-size: 1.3rem;
    margin-right: 8px;
    color: #999;
    transition: color 0.3s;
    flex-shrink: 0;
}

.dsi-cat-list-root>.dsi-cat-item>a .cat-name {
    flex: 1;
}

.dsi-cat-list-root>.dsi-cat-item>a .cat-count {
    margin-left: auto;
    padding-left: 8px;
}

.dsi-cat-list-root>.dsi-cat-item>a:hover {
    color: var(--tema-anarenk);
}

.dsi-cat-list-root>.dsi-cat-item>a:hover::before {
    color: var(--tema-anarenk);
}

/* Counts */
.dsi-cat-item>a .cat-count {
    color: #aaa;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s;
}

.dsi-cat-item>a:hover .cat-count {
    color: var(--tema-anarenk);
}

/* Active State - Root (15% opacity background) */
.dsi-cat-item.active>a,
.dsi-cat-item.active-parent>a {
    color: var(--tema-anarenk);
    background-color: rgba(var(--tema-anarenk-rgb), 0.15);
}

.dsi-cat-item.active>a::before,
.dsi-cat-item.active-parent>a::before {
    color: var(--tema-anarenk);
}

/* Sub Lists (Simple Indented) */
.dsi-cat-sub-list {
    padding-left: 30px;
    margin-top: 4px;
    margin-bottom: 8px;
}

.dsi-cat-sub-list .dsi-cat-item {
    margin: 0;
}

.dsi-cat-sub-list .dsi-cat-item>a {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin-bottom: 2px;
}

/* Right arrow for sub-categories */
.dsi-cat-sub-list .dsi-cat-item>a::before {
    content: "\203A";
    font-size: 1.1rem;
    margin-right: 6px;
    color: #ccc;
    transition: color 0.3s;
    flex-shrink: 0;
}

.dsi-cat-sub-list .dsi-cat-item>a .cat-name {
    flex: 1;
}

/* Hide count in sub-categories */
.dsi-cat-sub-list .dsi-cat-item>a .cat-count {
    display: none;
}

/* Sub Hover */
.dsi-cat-sub-list .dsi-cat-item>a:hover {
    color: var(--tema-anarenk);
}

.dsi-cat-sub-list .dsi-cat-item>a:hover::before {
    color: var(--tema-anarenk);
}

/* Sub Active */
.dsi-cat-sub-list .dsi-cat-item.active>a {
    color: var(--tema-anarenk);
    background-color: rgba(var(--tema-anarenk-rgb), 0.15);
    font-weight: 600;
}

.dsi-cat-sub-list .dsi-cat-item.active>a::before {
    color: var(--tema-anarenk);
}

/* Custom Socials */
.dsi-social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.dsi-social-link {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    color: #555;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 1.1rem;
}

.dsi-social-link:hover {
    background: var(--tema-anarenk);
    color: #fff;
    border-color: var(--tema-anarenk);
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Branch Top Area (Breadcrumb & Tabs)
   Copied from archive-news.css for Single Post View fidelity
   ========================================================================== */
/* Full Width Branch Header Wrapper */
.branch-header-full {
    width: 100%;
    background: var(--tema-anarenk);
    padding: 3rem 0;
    /* Vertical padding for the colored band */
    margin-bottom: 2rem;
    color: #fff;
}

/* Inner Breadcrumb Area (Container) */
.breadcrumb-area {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* No border, no extra padding here */
}

.branch-breadcrumb {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.breadcrumb-path {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    /* Semi-transparent white */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-path a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-path a:hover {
    color: #fff;
    /* Full white on hover */
    text-decoration: underline;
}

.breadcrumb-path .sep {
    font-size: 0.7rem;
    opacity: 0.6;
}

.breadcrumb-path .current {
    font-weight: 600;
    color: #fff;
    /* White current item */
}

.branch-page-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
    /* White Title */
    line-height: 1.1;
}

/* Branch Tabs */
.branch-tabs {
    display: flex;
    gap: 0.5rem;
}

.branch-tab-link {
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    /* Light text on green */
    background: rgba(255, 255, 255, 0.15);
    /* Glassy background */
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.branch-tab-link:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.branch-tab-link.active {
    background: #fff;
    /* White background for active */
    color: var(--tema-anarenk);
    /* Green text for active */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-color: #fff;
}

/* Responsive Branch Header */
@media screen and (max-width: 768px) {
    .branch-top-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .branch-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
        white-space: nowrap;
        /* Scrollable tabs on mobile */
    }

    .branch-tab-link {
        flex-shrink: 0;
    }
}