/* ======================================
   Blog Listing & Archive Styles
   Reference: Aava theme (envytheme)
   ====================================== */

/* Section */
.blog-listing-section {
    padding: 3rem 0 4rem;
}

/* Archive Description Box */
.archive-description-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.archive-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--default-color);
    margin: 0 0 0.5rem;
}

.archive-desc p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

/* Blog Grid */
.blog-listing-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Blog Card */
.blog-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Card Image */
.blog-card-image {
    overflow: hidden;
    position: relative;
}

.blog-card-image a {
    display: block;
}

.blog-card-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

/* Card Content */
.blog-card-content {
    padding: 1.5rem 1.75rem 1.75rem;
}

/* Card Meta */
.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 0.85rem;
}

.blog-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #888;
}

.blog-card-meta span i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.blog-card-meta span a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-meta span a:hover {
    color: var(--primary-color);
}

/* Card Title */
.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.45;
    margin: 0 0 0.75rem;
}

.blog-card-title a {
    color: #282828;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Card Excerpt */
.blog-card-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 1rem;
}

/* Card Footer */
.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-card-readmore i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.blog-card-readmore:hover {
    color: var(--default-color);
}

.blog-card-readmore:hover i {
    transform: translateX(4px);
}

/* No Posts Found */
.no-posts-found {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    padding: 3rem 2rem;
    text-align: center;
}

.no-posts-found h3 {
    color: var(--default-color);
    margin-bottom: 0.5rem;
}

.no-posts-found p {
    color: #666;
    margin: 0;
}

/* ======================================
   Sidebar Search Widget
   ====================================== */
.blog-search-form {
    margin: 0;
}

.blog-search-input {
    position: relative;
}

.blog-search-input .form-control {
    height: 48px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 0 50px 0 16px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.blog-search-input .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 174, 0.1);
}

.blog-search-btn {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    width: 42px;
    background: var(--primary-color);
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.blog-search-btn:hover {
    background: var(--default-color);
}

/* ======================================
   Sidebar Tags Widget
   ====================================== */
.blog-sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-sidebar-tags a {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-sidebar-tags a:hover,
.blog-sidebar-tags a.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Active category in sidebar */
.blog-sidebar-categories li.active a {
    color: var(--primary-color);
    font-weight: 600;
}

/* ======================================
   Blog Pagination (the_posts_pagination)
   ====================================== */
.blog-pagination {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.blog-pagination .nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e8e8e8;
    color: #555;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.blog-pagination .page-numbers:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.blog-pagination .page-numbers.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 102, 174, 0.3);
}

.blog-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
    width: auto;
}

.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next {
    font-size: 0.85rem;
}

/* ======================================
   Responsive Styles
   ====================================== */
@media (max-width: 991px) {
    .blog-listing-section {
        padding: 2rem 0 3rem;
    }
    
    .blog-card-image img {
        height: 220px;
    }
}

@media (max-width: 767px) {
    .blog-listing-grid {
        gap: 1.5rem;
    }
    
    .blog-card-content {
        padding: 1.25rem 1.25rem 1.5rem;
    }
    
    .blog-card-title {
        font-size: 1.1rem;
    }
    
    .blog-card-image img {
        height: 200px;
    }
    
    .blog-pagination .page-numbers {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .blog-card-meta {
        gap: 0.75rem;
    }
    
    .blog-card-image img {
        height: 180px;
    }
}
