/* Owner: pages/blogs. Existing visual rules extracted from style.css. */
.blog-search-wrapper {
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 114, 190, 0.3);
}
.blog-categories-tabs {
    margin-bottom: 3rem;
}

.blog-categories-tabs .nav-pills {
    background: #f8fafc;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.blog-categories-tabs .nav-link {
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    margin: 0 5px;
    font-weight: 500;
    color: #64748b;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog-categories-tabs .nav-link:hover {
    color: var(--primary-color);
    background: rgba(0, 114, 190, 0.1);
}

.blog-categories-tabs .nav-link.active {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 114, 190, 0.3);
}

.blog-categories-tabs .nav-link.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 100%
    );
    border-radius: 25px;
}
.blog-pagination {
    margin-top: 4rem;
}

.blog-pagination .pagination {
    gap: 10px;
}

.blog-pagination .page-link {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 18px;
    color: #64748b;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
}

.blog-pagination .page-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 114, 190, 0.05);
    transform: translateY(-2px);
}

.blog-pagination .page-item.active .page-link {
    background: var(--gradient);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 114, 190, 0.3);
}

.blog-pagination .page-item.disabled .page-link {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}
.popular-articles-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.popular-articles-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23e2e8f0" opacity="0.3"/><circle cx="75" cy="75" r="1" fill="%23e2e8f0" opacity="0.3"/><circle cx="50" cy="10" r="0.5" fill="%23e2e8f0" opacity="0.2"/><circle cx="10" cy="60" r="0.5" fill="%23e2e8f0" opacity="0.2"/><circle cx="90" cy="40" r="0.5" fill="%23e2e8f0" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

.popular-articles-section .blog-card {
    width: 95%;
    margin: 1rem auto;
}

.search-box .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 15px 60px 15px 25px;
    font-size: 1rem;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-box .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 114, 190, 0.25);
    outline: none;
}
