/* Blog Styles */

.blog-hero {
    padding: 180px 0 80px;
    background: linear-gradient(135deg, rgba(0, 194, 216, 0.1) 0%, rgba(255, 46, 136, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(0,194,216,0.1)"/></svg>');
    opacity: 0.3;
}

.blog-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.blog-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--black);
}

.blog-hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.blog-content-section {
    padding: 60px 0;
    background: #f8f9fa;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.blog-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, #00C2D8 0%, #FF2E88 100%);
}

.blog-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-category {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: white;
    background: var(--primary-cyan);
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--black);
    line-height: 1.3;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--primary-cyan);
}

.blog-card-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    color: #999;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.blog-card-meta i {
    margin-right: 5px;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-widget-title i {
    color: var(--primary-cyan);
}

/* Categories */
.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-categories li {
    margin-bottom: 8px;
}

.sidebar-categories a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 10px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-categories a:hover {
    background: #f0f0f0;
    color: var(--primary-cyan);
    transform: translateX(5px);
}

.sidebar-categories a.active {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-pink) 100%);
    color: white;
}

.sidebar-categories a.active i {
    color: white;
}

.sidebar-categories a i {
    color: var(--category-color, var(--primary-cyan));
    font-size: 1.1rem;
}

/* Recent/Popular Posts */
.sidebar-recent-posts,
.sidebar-popular-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-post-item {
    display: flex;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-post-item:hover {
    transform: translateX(5px);
}

.sidebar-post-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: linear-gradient(135deg, #00C2D8 0%, #FF2E88 100%);
}

.sidebar-post-content {
    flex: 1;
}

.sidebar-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-post-date {
    font-size: 0.8rem;
    color: #999;
}

/* Pagination */
.pagination {
    justify-content: center;
    gap: 8px;
}

.page-link {
    border-radius: 10px;
    border: 1px solid #ddd;
    color: #666;
    padding: 10px 18px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--primary-cyan);
    color: white;
    border-color: var(--primary-cyan);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-pink) 100%);
    border-color: transparent;
    color: white;
}

/* Responsive */
@media (max-width: 991px) {
    .blog-sidebar {
        position: static;
        margin-top: 40px;
    }
    
    .blog-hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 150px 0 60px;
    }
    
    .blog-hero-title {
        font-size: 2rem;
    }
    
    .blog-card-image {
        height: 200px;
    }
    
    .blog-card-title {
        font-size: 1.3rem;
    }
}
