/* ============================================
   BotLinkd Modern Blog Styles
   ============================================ */

/* Blog Listing Page Styles */
.blog-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 16/10;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-category {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
}

.blog-card-category .badge {
    background: linear-gradient(135deg, #0d6efd 0%, #0099ff 100%);
    padding: 6px 14px;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.blog-card-body {
    padding: 20px 20px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: #6c757d;
}

.blog-card-meta i {
    font-size: 0.85rem;
    margin-right: 4px;
}

.blog-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #1a202c;
    transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
    color: #0d6efd;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
}

.blog-card-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.sidebar-widget:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef2f6;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-title i {
    color: #0d6efd;
    font-size: 1.1rem;
}

/* Categories List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f2f5;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item:hover {
    color: #0d6efd;
    transform: translateX(4px);
}

.category-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.category-count {
    background: #f0f2f5;
    color: #4a5568;
    padding: 2px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Recent Posts */
.recent-post-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    text-decoration: none;
    border-bottom: 1px solid #f0f2f5;
    transition: all 0.2s ease;
}

.recent-post-item:last-child {
    border-bottom: none;
}

.recent-post-item:hover {
    transform: translateX(4px);
}

.recent-post-thumb {
    flex-shrink: 0;
}

.recent-post-thumb img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 12px;
}

.recent-post-content {
    flex: 1;
}

.recent-post-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1a202c;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-item:hover .recent-post-title {
    color: #0d6efd;
}

.recent-post-date {
    font-size: 0.7rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    background: #f8f9fa;
    color: #4a5568;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-item:hover {
    background: #0d6efd;
    color: white;
    transform: translateY(-2px);
}

/* Search Widget */
.search-widget .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-widget .form-control {
    border: 1px solid #e2e8f0;
    border-right: none;
    padding: 12px 18px;
    font-size: 0.9rem;
}

.search-widget .form-control:focus {
    box-shadow: none;
    border-color: #0d6efd;
}

.search-widget .btn {
    background: #0d6efd;
    border: 1px solid #0d6efd;
    padding: 0 20px;
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, #0d6efd 0%, #004e9e 100%);
    color: white;
    text-align: center;
    border-radius: 20px;
    padding: 28px 20px;
}

.cta-widget i {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: inline-block;
}

.cta-widget h5 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-widget p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.cta-widget .btn-light {
    background: white;
    color: #0d6efd;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cta-widget .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Single Blog Page Styles */
.blog-single-hero {
    margin-bottom: 40px;
}

.blog-category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0d6efd 0%, #0099ff 100%);
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.blog-single-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1a202c;
}

@media (max-width: 768px) {
    .blog-single-title {
        font-size: 1.8rem;
    }
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    color: #6c757d;
    font-size: 0.9rem;
}

.blog-meta i {
    margin-right: 6px;
    color: #0d6efd;
}

.blog-featured-image {
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 10px 35px -15px rgba(0, 0, 0, 0.2);
}

.blog-featured-image img {
    width: 100%;
    height: auto;
}

.blog-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2d3748;
}

.blog-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 40px 0 20px;
    color: #1a202c;
}

.blog-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #1a202c;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content img {
    max-width: 100%;
    border-radius: 16px;
    margin: 30px 0;
}

.blog-tags {
    margin: 40px 0 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-tag {
    background: #f8f9fa;
    color: #0d6efd;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-tag:hover {
    background: #0d6efd;
    color: white;
}

.blog-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #e2e8f0;
}

/* Right Sidebar for Single Blog */
.author-card {
    text-align: center;
    background: #f8fafc;
    border-radius: 20px;
    padding: 24px 20px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0d6efd20 0%, #0099ff20 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.author-avatar i {
    font-size: 3rem;
    color: #0d6efd;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.author-role {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Blog share buttons - equal clean layout */
.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.share-btn {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    color: #ffffff !important;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.share-btn i {
    font-size: 15px;
    line-height: 1;
}

.share-btn:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    opacity: 0.94;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.share-btn-whatsapp {
    background: #25D366;
}

.share-btn-facebook {
    background: #1877F2;
}

.share-btn-twitter {
    background: #111827;
}

.share-btn-linkedin {
    background: #0A66C2;
}

.share-btn-copy {
    background: #6B7280;
    grid-column: 1 / -1;
}

@media (max-width: 420px) {
    .share-buttons {
        grid-template-columns: 1fr;
    }
}

/* Sticky Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 100px;
}

@media (max-width: 991px) {
    .sticky-sidebar {
        position: static;
    }
}

/* Hero Section Gradient */
.blog-hero-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    padding: 60px 40px;
    margin-bottom: 50px;
    text-align: center;
    color: white;
}

@media (max-width: 768px) {
    .blog-hero-gradient {
        padding: 40px 20px;
    }
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.filter-badge {
    background: #0d6efd;
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
}

.filter-badge a {
    color: white;
    margin-left: 8px;
    text-decoration: none;
    font-weight: bold;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-card-body {
        padding: 16px;
    }
    
    .blog-card-title {
        font-size: 1rem;
    }
    
    .blog-card-excerpt {
        font-size: 0.8rem;
        -webkit-line-clamp: 3;
    }
    
    .sidebar-widget {
        padding: 16px;
    }
}
/* ============================================
   PAGINATION STYLES
   ============================================ */

.pagination {
    gap: 8px;
    flex-wrap: wrap;
}

.page-link {
    border: none;
    padding: 8px 18px;
    color: #4a5568;
    font-weight: 500;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: #0d6efd;
    color: white;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #0d6efd 0%, #0099ff 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.page-item.disabled .page-link {
    background: #f1f3f5;
    color: #adb5bd;
    cursor: not-allowed;
    transform: none;
}

.page-link.rounded-pill {
    border-radius: 50px !important;
}

/* Pagination responsive */
@media (max-width: 768px) {
    .pagination {
        gap: 5px;
    }
    
    .page-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}