/* ===== Blog Liste (izole alan) ===== */
#nx-blog {
    --nx-gap: 20px;
    --nx-radius: 16px;
    --nx-shadow: 0 10px 30px rgba(2, 8, 20, .06);
    --nx-card-bg: #fff;
}

#nx-blog * {
    box-sizing: border-box
}

/* Başlık & boş durumlar */
#nx-blog .section-title, #nx-blog .widget-title {
    font-weight: 800;
    letter-spacing: .2px
}

#nx-blog .alert {
    text-shadow: none;
    border-radius: 12px
}

/* Kart: dış iskelet */
#nx-blog .blog-post-style-one {
    background: var(--nx-card-bg);
    border: 1px solid var(--nx-border);
    border-radius: var(--nx-radius);
    box-shadow: var(--nx-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

#nx-blog .blog-post-style-one:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 38px rgba(2, 8, 20, .10);
    border-color: #e7e9ee;
}

/* Görsel alanı + oran */
#nx-blog .blog-post-style-one .blog-image {
    position: relative;
    overflow: hidden
}

#nx-blog .blog-post-style-one .blog-image figure {
    margin: 0;
    aspect-ratio: 16/10
}

#nx-blog .blog-post-style-one .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

#nx-blog .blog-post-style-one:hover .blog-image img {
    transform: scale(1.03)
}

/* Kategori etiketi: üstte sabit rozet */
#nx-blog .blog-post-style-one .category-tag {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .08);
    text-decoration: none;
}

#nx-blog .blog-post-style-one .category-tag:hover {
    background: #fff
}

/* İçerik alanı */
#nx-blog .blog-post-style-one .blog-content {
    padding: 16px 16px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px
}

#nx-blog .blog-post-style-one .blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--nx-muted);
    font-size: 13px
}

#nx-blog .blog-post-style-one .blog-meta i {
    margin-right: 6px
}

#nx-blog .blog-post-style-one .blog-title {
    margin: 0;
    font-weight: 800;
    font-size: clamp(18px, 2.1vw, 20px);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

#nx-blog .blog-post-style-one p {
    margin: 0;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* “Devamını Oku” butonu */
#nx-blog .blog-post-style-one .theme-btn-two {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    background: #0ea5e9;
    color: #fff;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: filter .2s ease, transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 8px 18px rgba(14, 165, 233, .22);
}

#nx-blog .blog-post-style-one .theme-btn-two i {
    font-size: 12px;
    transform: translateX(0);
    transition: transform .2s ease
}

#nx-blog .blog-post-style-one .theme-btn-two:hover {
    i {
        transform: translateX(2px)
    }

    filter: saturate(1.05);
    transform: translateY(-1px)
}

/* Grid boşlukları */
#nx-blog .row > [class*="col-"] {
    margin-bottom: var(--nx-gap)
}

/* Kenar Çubuğu */
#nx-blog .sidebar {
    position: sticky;
    top: 22px
}

#nx-blog .sidebar .widget {
    background: var(--nx-card-bg);
    border: 1px solid var(--nx-border);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--nx-shadow);
    margin-bottom: 18px;
}

#nx-blog .sidebar .widget-title {
    margin: 4px 0 14px 0;
    font-size: 16px
}

/* Arama kutusu */
#nx-blog .widget-search form {
    position: relative
}

#nx-blog .widget-search input[type="search"] {
    width: 100%;
    height: 44px;
    border: 1px solid var(--nx-border);
    border-radius: 999px;
    padding: 0 44px 0 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

#nx-blog .widget-search input[type="search"]:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .12)
}

#nx-blog .widget-search button {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    cursor: pointer;
}

/* Kategoriler */
#nx-blog .widget-categories ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px
}

#nx-blog .widget-categories li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--nx-border);
    border-radius: 10px;
    text-decoration: none;
    color: #111827;
    transition: background .2s ease, border-color .2s ease;
}

#nx-blog .widget-categories li a:hover {
    background: #f8fafc;
    border-color: #e2e8f0
}

#nx-blog .widget-categories li span {
    color: var(--nx-muted)
}

/* Son Yazılar */
#nx-blog .widget-recent-posts ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px
}

#nx-blog .widget-recent-posts li {
    display: grid;
    grid-template-columns:70px 1fr;
    gap: 10px;
    align-items: center;
}

#nx-blog .widget-recent-posts img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--nx-border)
}

#nx-blog .widget-recent-posts span {
    display: block;
    font-size: 12px;
    color: var(--nx-muted);
    margin-bottom: 4px
}

#nx-blog .widget-recent-posts h6 {
    margin: 0;
    font-weight: 700;
    line-height: 1.35
}

#nx-blog .widget-recent-posts a {
    text-decoration: none
}

#nx-blog .widget-recent-posts a:hover {
    text-decoration: underline
}

/* Etiket Bulutu */
#nx-blog .widget-tags .tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

#nx-blog .widget-tags .tags-cloud a {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 13px;
    color: #0f172a;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

#nx-blog .widget-tags .tags-cloud a:hover {
    background: #e2e8f0;
    transform: translateY(-1px)
}

/* Sayfalama (Bootstrap 5 override – sadece bu sayfada) */
#nx-blog .pagination {
    --bs-pagination-border-radius: 12px;
    --bs-pagination-padding-x: .9rem;
    --bs-pagination-padding-y: .5rem
}

#nx-blog .page-item .page-link {
    border-color: var(--nx-border);
    color: #111827;
}

#nx-blog .page-item.active .page-link {
    background: #111827;
    border-color: #111827;
    color: #fff;
    box-shadow: 0 8px 18px rgba(17, 24, 39, .18)
}

/* Mobil/Tablet düzenlemeleri */
@media (max-width: 991.98px) {
    #nx-blog .sidebar {
        position: static;
        top: auto
    }
}

@media (max-width: 575.98px) {
    #nx-blog .blog-post-style-one .blog-content {
        padding: 14px
    }
}

/* Karanlık mod uyumu */
@media (prefers-color-scheme: dark) {
    #nx-blog {
        --nx-border: #1c2537;
        --nx-muted: #93a3b8
    }

    #nx-blog .widget-search button {
        background: #2563eb
    }

    #nx-blog .blog-post-style-one .theme-btn-two {
        background: #2563eb
    }

    #nx-blog .widget-categories li a {
        color: #e5e7eb
    }

    #nx-blog .widget-tags .tags-cloud a {
        color: #e5e7eb;
        background: #0f172a;
        border-color: #1f2937
    }

    #nx-blog .widget-recent-posts a {
        color: #e5e7eb
    }
}
