/* Layout Container */
.blog-dashboard-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    /* Sidebar width and main content */
    gap: 30px;
    max-width: 1200px;
    background: #F3F5F7;
    margin: 0 auto;
    align-items: start;
    /* Crucial for sticky behavior */
}

/* --- STICKY SIDEBAR --- */
.blog-sidebar-sticky {
    position: sticky;
    top: 20px;
    /* Distance from top when scrolling */
}

.sidebar-inner-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    margin-bottom: 20px;
    /* font-size: 1.2rem; */
    font-weight: 700;
}

.category-list {
    list-style: none;
}

.mod-tag {
    background: radial-gradient(circle at top left, #fdf3ec, transparent 105%), #fef4ee;
    ;
    color: #f04d0c;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13PX;
    font-weight: 600;
    text-transform: uppercase;
}

.post-categories-badge {

    left: 5% !important;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F7F7F7;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 12px;
    /* font-size: 0.9rem; */
    font-weight: 500;
    transition: transform 0.2s;
    cursor: pointer;
    text-transform: capitalize;
}

.category-item:hover,
.active-category {
    transform: translateX(5px);
    background: radial-gradient(circle at top left, #fdf3ec, transparent 105%), #fef4ee;
}

.category-count {
    background: #e5470e;
    color: white;
    /* font-size: 0.75rem; */
    padding: 2px 8px;
    border-radius: 20px;
}

/* --- BLOG GRID --- */
.blog-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.blog-post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: translateY 0.3s;
}

.blog-post-card:hover {
    transform: translateY(-5px);
}

.card-image-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-content-area {
    padding: 24px;
}

.card-post-title {
    /* font-size: 1.25rem; */
    margin-bottom: 0;
    color: #1e293b;
    line-height: 1.5;
    font-size: 24px;
}

.card-post-excerpt {
    /* font-size: 0.95rem; */
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 20px;
}

.card-read-more-btn {
    display: inline-block;
    background: #e5470e;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    /* font-size: 0.85rem; */
    font-weight: 600;
    transition: background 0.2s;
}

.card-read-more-btn:hover {
    background: #e5470e;
}

/* Responsive Design */
@media (max-width: 900px) {
    .blog-dashboard-wrapper {
        grid-template-columns: 1fr;
    }

    .blog-sidebar-sticky {
        position: relative;
        top: 0;
    }
}


/* blog css */

.ui-blog-card {
    background: #ffffff;
    border-radius: 24px;
    /* overflow: hidden; */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.ui-blog-card:hover {
    transform: translateY(-6px);
}

.ui-blog-card:hover .ui-blog-image-wrap img {
    -webkit-transform: scale(1.01);
    transform: scale(1.01);
    opacity: .8;
    -webkit-transition: all .4s ease;
    transition: all .4s ease;

}

/* Image Wrapper */
.ui-blog-image-wrap {
    position: relative;
    /* overflow: hidden; */
}

.ui-blog-image-wrap img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    border-radius: 24px;
}



/* Date Badge */


.ui-blog-date {
    position: absolute;
    bottom: 30px;
    left: -10px;
    width: 60px;
    height: 50px;
    padding-left: 22px;
    padding-right: 12px;

    background-color: #ff6b4a;
    /* border-radius: 14px; */

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    text-align: center;

    z-index: 3;
}

/* CONNECTOR PANEL BEHIND DATE */
.ui-blog-date::before {
    position: absolute;
    content: "";
    top: -10px;
    left: 0;
    color: #912f3d;
    border-bottom: solid #912f3d;
    border-top: solid transparent;
    border-width: 5px;
    border-width: 5px;
    left: 0%;
    top: -10px;
    /* color: #f00; */
    border-right: solid #912f3d;
    border-left: solid transparent;
    border-width: 5px;
    left: 0%;
    top: -10px;
}

/* DAY */
.ui-blog-date strong {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 3px;
}


/* MONTH */
.ui-blog-date small {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1;
}

/* Content */
.ui-blog-content {
    padding: 30px 24px 28px;
}

.ui-blog-title {
    font-size: 20px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 14px;
    line-height: 1.35;
}

.ui-blog-desc {
    font-size: 15px;
    color: #8a8a8a;
    line-height: 1.7;
    margin-bottom: 18px;
}

/* Read More */
.ui-blog-link {
    font-size: 14px;
    font-weight: 600;
    color: #ff6b4a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ui-blog-link:hover {
    color: #e2553a;
}

/* Pagination Wrapper */
.kt-pagination__links {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 40px 0;
    gap: 8px;
}

/* Pagination Items */
.kt-pagination__links li {
    display: inline-flex;
}

/* Pagination Links */
.kt-pagination__links li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #ff5722;
    /* brand color */
    border: 1px solid #e0e0e0;
    background: #fff;
    text-decoration: none;
    transition: all 0.25s ease;
}

/* Hover */
.kt-pagination__links li a:hover {
    background: #ff5722;
    color: #fff;
    border-color: #ff5722;
}

/* Active Page */
.kt-pagination__link--active a {
    background: #ff5722 !important;
    color: #fff !important;
    border-color: #ff5722 !important;
    cursor: default;
}

/* Disabled State */
.kt-pagination__links li.disabled a {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}

/* Icon Buttons */
.kt-pagination__links i {
    font-size: 16px;
}

/* Ellipsis */
.kt-pagination__links li a[href="#"] {
    border: none;
    background: transparent;
    cursor: default;
    color: #999;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .kt-pagination__links {
        flex-wrap: wrap;
        gap: 6px;
    }

    .kt-pagination__links li a {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
    }
}

li.kt-pagination__link--active {
    pointer-events: none;
}

.blog_clear_filter {
    font-size: 12px;
    color: #ff3d00;
    position: absolute;
    right: 5%;
    top: 5%;
}