.blog-page-hero {
    background-color: var(--light-color);
    padding: 40px 0;
    text-align: center;
    margin-bottom: 30px;
}

.blog-page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.blog-page-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.featured-section {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: stretch;
    transition: transform 0.3s ease;
    height: 300px;
    /* Adjusted height per user feedback */
}

.featured-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.featured-img-wrapper {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
}

.featured-img-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.featured-section:hover .featured-img-bg {
    transform: scale(1.05);
}

.featured-content {
    flex: 1;
    padding: 1rem;
    /* Minimal padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-category-badge {
    background: rgba(58, 110, 165, 0.1);
    color: var(--primary-color);
    padding: 3px 8px;
    /* Tiny badge */
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    /* Tiny margin */
    align-self: flex-start;
}

.featured-title {
    color: #1e293b;
    font-size: 1.25rem;
    /* Standard card title size */
    font-weight: 800;
    margin-bottom: 0.25rem;
    /* Tiny margin */
    line-height: 1.2;
}

.featured-excerpt {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    /* Small margin */
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-meta {
    display: flex;
    align-items: center;
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 0;
}

.featured-meta img {
    width: 28px;
    /* Micro avatar */
    height: 28px;
    border-radius: 50%;
    margin-right: 8px;
}

.blog-card {
    border: none;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f5f9;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: #e2e8f0;
}

.blog-img-wrapper {
    height: 220px;
    /* Constrained height */
    overflow: hidden;
    position: relative;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
}

.blog-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.blog-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-meta {
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
}

.search-widget-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-widget-input {
    width: 100%;
    padding: 12px 16px;
    padding-right: 50px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    font-size: 0.95rem;
    transition: all 0.2s;
    height: 48px;
}

.search-widget-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(58, 110, 165, 0.1);
}

.search-widget-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.search-widget-btn:hover {
    color: var(--primary-color);
}

/* Categories */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list li:last-child {
    margin-bottom: 0;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: transparent;
    border: none;
}

.category-link:hover {
    background: #f8fafc;
    color: var(--primary-color);
    padding-left: 18px;
    /* Slide effect */
}

.category-count {
    background: #e2e8f0;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    transition: all 0.2s;
}

.category-link:hover .category-count {
    background: var(--primary-color);
    color: white;
}

/* Popular Posts */
.popular-post-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    padding: 0.5rem;
    border-radius: 8px;
}

.popular-post-item:last-child {
    margin-bottom: 0;
}

.popular-post-item:hover {
    background: #f8fafc;
}

.popular-post-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 12px;
    flex-shrink: 0;
}

.popular-post-info h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.2rem;
    line-height: 1.3;
    transition: color 0.2s;
}

.popular-post-item:hover .popular-post-info h5 {
    color: var(--primary-color);
}

.popular-post-date {
    font-size: 0.75rem;
    color: #94a3b8;
}

.pagination {
    margin-top: 3rem;
    gap: 8px;
}

.page-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-weight: 600;
    background: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.2s;
    font-size: 0.9rem;
    margin: 0 3px;
}

.page-link:hover:not(.active) {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.page-link.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(58, 110, 165, 0.2);
}

.page-link i {
    font-size: 0.8rem;
}

.article-card-wrapper {
    height: 100%;
}

/* Responsive */
@media (max-width: 991px) {
    .featured-section {
        flex-direction: column;
    }

    .featured-img-wrapper {
        min-height: 250px;
        flex: none;
        height: 250px;
    }

    .featured-content {
        padding: 2rem;
    }

    .featured-title {
        font-size: 1.5rem;
    }
}