/* ===================================
   Landkhoj.com - Blog Listing Styles
   Performance Optimized
   =================================== */

/* Blog Page Container */
.lk-blog-page {
    padding: 30px 0;
}

/* Page Header */
.lk-page-header {
    margin-bottom: 40px;
    text-align: center
}

.lk-page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px
}

.category-btn {
    padding: 8px 20px;
    background: var(--bg-white);
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    color: var(--text-dark);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm)
}

/* Blog Grid */
.lk-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-bottom: 60px
}

/* Blog Card - GPU Accelerated */
.lk-blog-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    transition: all var(--transition-normal);
    position: relative;
    will-change: transform;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.lk-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(255, 169, 0, .2)
}

/* Image Container - 16:9 Aspect Ratio */
.lk-blog-image {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #f0f0f0;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
}

.lk-blog-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--transition-smooth);
    will-change: transform
}

.lk-blog-card:hover .lk-blog-image img {
    transform: scale(1.1)
}

/* Category Tag - Positioned on Image */
.lk-blog-category {
    position: absolute;
    top: 15px;
    right: -11px;
    padding: 6px 20px 6px 16px;
    background: var(--primary);
    color: var(--bg-white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    border-radius: 10px 0 0 10px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    transition: all var(--transition-fast);

}
.lk-blog-category::after {
    content: '';
    position: absolute;
    right: 0;
    top: 100%;
    border-top: 0px solid transparent;
    border-left: 11px solid var(--primary-dark);
    border-bottom: 15px solid transparent;
}

.lk-blog-card:hover .lk-blog-category {
    background: var(--primary-dark);
}

/* Blog Content */
.lk-blog-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column
}

.lk-blog-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-fast)
}

.lk-blog-card:hover .lk-blog-title {
    color: var(--primary)
}

.lk-blog-description {
    font-size: var(--font-size-sm);
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1
}

/* Blog Meta */
.lk-blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0
}

.lk-blog-date {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px
}

.lk-blog-date svg {
    width: 14px;
    height: 14px;
    fill: var(--text-muted)
}

.lk-blog-stats {
    display: flex;
    align-items: center;
    gap: 15px
}

.lk-stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-muted)
}

.lk-stat-item svg {
    width: 14px;
    height: 14px;
    fill: var(--text-muted);
    transition: fill var(--transition-fast)
}

.lk-blog-card:hover .lk-stat-item svg {
    fill: var(--primary)
}

/* Read More Overlay */
.lk-read-more-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, .8), transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 1;
    border-radius: 0 0 20px 20px;
}

.lk-blog-card:hover .lk-read-more-overlay {
    opacity: 1;
    transform: translateY(0)
}

.lk-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--primary);
    color: var(--bg-white);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    transition: all var(--transition-fast)
}

.lk-read-more-btn:hover {
    background: var(--primary-light);
    transform: translateX(5px)
}

.lk-read-more-btn svg {
    width: 14px;
    height: 14px;
    fill: var(--bg-white)
}

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

/* Each page button */
.page-btn {
    min-width: 40px;
    height: 40px;
    background: var(--bg-white);
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
    overflow: hidden; /* important for full click */
}

/* Anchor + span take full button size */
.page-btn a,
.page-btn span {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-dark);
}

/* Hover state */
.page-btn:hover:not(.active):not(.disabled) {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.page-btn:hover:not(.active):not(.disabled) a {
    color: var(--bg-white);
}

/* Active page */
.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
}

.page-btn.active span {
    color: var(--bg-white);
    cursor: default;
}

/* Disabled state */
.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn.disabled a,
.page-btn.disabled span {
    pointer-events: none;
    cursor: not-allowed;
}


/* Responsive - Tablet */
@media (max-width:992px) {
    .lk-blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px
    }

    .lk-blog-card {
        border-radius: var(--radius-md)
    }

    .lk-page-header h1 {
        font-size: 28px
    }
     .lk-filter-section {
        align-items: stretch;
        gap: var(--spacing-xl);
    }

}

/* Responsive - Mobile */
@media (max-width:768px) {
    .lk-blog-page {
        padding: 70px 0 40px
    }

    .lk-blog-grid {
        grid-template-columns: 1fr;
        gap: 20px
    }

    .lk-page-header h1 {
        font-size: 24px
    }

    .category-btn {
        padding: 6px 16px;
        font-size: 12px
    }

    .lk-blog-title {
        font-size: 16px
    }

    .lk-blog-content {
        padding: 16px
    }

    .lk-read-more-overlay {
        position: static;
        opacity: 1;
        transform: none;
        background: transparent;
        padding: 0 16px 16px
    }

    .lk-read-more-btn {
        width: 100%;
        justify-content: center
    }
    .lk-category-filters {
        width: 550px;
    }
}

/* Very Small Mobile */
@media (max-width:480px) {
    .lk-blog-page {
        padding: 65px 0 30px
    }

    .lk-page-header h1 {
        font-size: 20px
    }

    .category-btn {
        width: 100%;
        text-align: center
    }

    .pagination {
        flex-wrap: wrap;
        gap: 6px
    }

    .page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 12px
    }
    .lk-category-filters {
        width: 320px;
    }
    .lk-filter-section {
        flex-direction: column;
    }

}

/* Performance Optimizations */
.lk-blog-card,
.lk-blog-image img,
.lk-blog-category,
.lk-read-more-overlay {
    will-change: auto
}

.lk-blog-card:hover .lk-blog-image img,
.lk-blog-card:hover .lk-blog-category {
    will-change: transform
}
.lk-blog-card a{
    text-decoration: none;
}

/* Filter Section */
.lk-filter-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
    margin-bottom: 40px;
    flex-wrap: wrap
}

/* Category Filters */
.lk-category-filters {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex: 1;
    overflow: auto;
}

.lk-category-btn {
    padding: 8px 16px;
    background: var(--bg-white);
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    color: var(--text-dark);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    outline: none;
    text-decoration: none;
}

.lk-category-btn:hover {
    background: var(--bg-light);
    border-color: #d0d0d0;
}

.lk-category-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-white);
    box-shadow: 0 4px 12px rgba(255, 169, 0, .3)
}

/* Search Bar */
.lk-search-bar {
    position: relative;
    min-width: 280px;
    max-width: 350px
}

.lk-search-bar input {
    width: 100%;
    padding: 11px 50px 11px var(--spacing-xl);
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: var(--font-size-base);
    color: var(--text-dark);
    background: var(--bg-white);
    transition: all var(--transition-fast);
    outline: none
}

.lk-search-bar input:focus {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(255, 169, 0, .15)
}

.lk-search-bar input::placeholder {
    color: var(--text-muted)
}

.lk-search-bar button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: 50%;
    outline: none;

}

.lk-search-bar button:hover {
    background: var(--bg-light);
    color: var(--primary)
}

.lk-search-bar button svg {
    width: 20px;
    height: 20px
}
/* No Results Container */
.no-results {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

/* Card */
.no-results-box {
    max-width: 520px;
    width: 100%;
    text-align: center;
    background: #ffffff;
    border-radius: 14px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Icon */
.no-results-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* Title */
.no-results-box h2 {
    font-size: 22px;
    color: #222;
    margin-bottom: 10px;
}

/* Description */
.no-results-box p {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Highlight search keyword */
.search-keyword {
    color: #d32f2f;
    font-weight: 600;
}

/* Tips */
.no-results-tips {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.no-results-tips li {
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
}