/* ========================================================
   BLOG & CATEGORY LISTING PAGE (MODULAR SCOPED STYLESHEET)
   Scoped under #blog-page to guarantee zero style collisions.
   Standard Media Portal 1080px (Main 750px + Sidebar 300px + Gap 30px)
   ======================================================== */

#blog-page {
    margin-top: 1.25rem;
    margin-bottom: 3.5rem;
}

#blog-page.layout-two-column > .row {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    margin-left: 0;
    margin-right: 0;
}

#blog-page .layout-main {
    flex: 1 1 0;
    min-width: 0;
    max-width: 750px;
    padding-left: 0;
    padding-right: 0;
}

#blog-page .layout-sidebar {
    flex: 0 0 300px;
    width: 300px;
    padding-left: 0;
    padding-right: 0;
}

#blog-page .sticky-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
}

/* ========================================================
   BREADCRUMBS
   ======================================================== */
#blog-page .blog-breadcrumb {
    margin-bottom: 1rem;
}

#blog-page .blog-breadcrumb .breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0.8125rem;
    font-weight: 500;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

#blog-page .blog-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "/" !important;
    color: #94a3b8 !important;
    padding: 0 0.5rem !important;
}

#blog-page .blog-breadcrumb .breadcrumb-item a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

#blog-page .blog-breadcrumb .breadcrumb-item a:hover {
    color: #ed1c24;
}

#blog-page .blog-breadcrumb .breadcrumb-item.active {
    color: #0f172a;
    font-weight: 600;
}

/* ========================================================
   CATEGORY HERO HEADER
   ======================================================== */
#blog-page .category-header {
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

#blog-page .category-header .category-kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #ed1c24;
    margin-bottom: 0.35rem;
}

#blog-page .category-header .category-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

#blog-page .category-header .category-title-text {
    position: relative;
    padding-left: 14px;
}

#blog-page .category-header .category-title-text::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 2px;
    background: #ed1c24;
}

#blog-page .category-header .category-counter {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 9999px;
}

/* ========================================================
   ARTICLE CARDS LISTING
   ======================================================== */
#blog-page .blog-listing {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#blog-page .blog-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    transition: transform 0.15s ease;
}

#blog-page .blog-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

#blog-page .blog-thumb-wrap {
    flex-shrink: 0;
    width: 230px;
    height: 145px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

#blog-page .blog-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
}

#blog-page .blog-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

#blog-page .blog-card:hover .blog-thumb {
    transform: scale(1.04);
}

#blog-page .blog-body {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

#blog-page .blog-category-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ed1c24;
    margin-bottom: 6px;
    text-decoration: none;
    display: inline-block;
}

#blog-page .blog-category-badge:hover {
    text-decoration: underline;
}

#blog-page .blog-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    color: #18181b;
    margin: 0 0 8px 0;
    text-wrap: balance;
}

#blog-page .blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

#blog-page .blog-title a:hover {
    color: #ed1c24;
}

#blog-page .blog-meta {
    font-size: 0.775rem;
    color: #71717a;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

#blog-page .blog-meta i {
    color: #94a3b8;
    margin-right: 4px;
}

#blog-page .blog-meta .meta-dot {
    color: #cbd5e1;
    font-size: 8px;
}

#blog-page .blog-excerpt {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #52525b;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================================
   EMPTY STATE
   ======================================================== */
#blog-page .blog-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    margin: 1.5rem 0;
}

#blog-page .blog-empty-icon {
    font-size: 2.5rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

#blog-page .blog-empty-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

#blog-page .blog-empty-desc {
    font-size: 0.9375rem;
    color: #64748b;
    max-width: 440px;
    margin: 0 auto 1.25rem;
    line-height: 1.6;
}

#blog-page .blog-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #ed1c24;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s ease;
}

#blog-page .blog-empty-btn:hover {
    background: #c8151b;
    color: #ffffff;
    text-decoration: none;
}

/* ========================================================
   PAGINATION
   ======================================================== */
#blog-page .blog-pagination {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: center;
}

#blog-page .pagination {
    margin: 0;
    gap: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#blog-page .pagination .page-item .page-link {
    border-radius: 6px !important;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 8px 16px;
    background: #ffffff;
    transition: all 0.15s ease;
}

#blog-page .pagination .page-item .page-link:hover {
    border-color: #ed1c24;
    color: #ed1c24;
    background: #fef2f2;
}

#blog-page .pagination .page-item.active .page-link {
    background: #ed1c24 !important;
    border-color: #ed1c24 !important;
    color: #ffffff !important;
}

#blog-page .pagination .page-item.disabled .page-link {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
}

/* ========================================================
   RESPONSIVE MEDIA QUERIES
   ======================================================== */
@media (max-width: 991px) {
    #blog-page.layout-two-column > .row {
        flex-direction: column !important;
        gap: 40px !important;
    }

    #blog-page .layout-main {
        max-width: 100% !important;
    }

    #blog-page .layout-sidebar {
        flex: 0 0 100% !important;
        width: 100% !important;
    }

    #blog-page .sticky-sidebar {
        position: static !important;
    }
}

@media (max-width: 640px) {
    #blog-page .category-header .category-title {
        font-size: 1.35rem;
    }

    #blog-page .blog-card {
        flex-direction: column;
        gap: 12px;
    }

    #blog-page .blog-thumb-wrap {
        width: 100%;
        height: 200px;
    }

    #blog-page .blog-title {
        font-size: 1rem;
    }
}
