/* Blog specific styles */
.blog-header {
    background: linear-gradient(135deg, #87ceeb 0%, #ffffff 50%, #87ceeb 100%);
    padding: 120px 0 80px;
    text-align: center;
}

.blog-header h1 {
    font-size: 3rem;
    color: #1976d2;
    margin-bottom: 1rem;
    font-weight: 700;
}

.blog-header p {
    font-size: 1.3rem;
    color: #666;
}

.blog-content {
    padding: 80px 0;
    background: #f8f9fa;
}

.blog-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.blog-main {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.blog-posts {
    margin-bottom: 3rem;
}

.blog-post {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.blog-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.blog-post-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.blog-post-meta i {
    color: #1976d2;
}

.blog-post h2 {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.5rem;
}

.blog-post p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.read-more {
    color: #1976d2;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #1565c0;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.sidebar-widget h3 {
    color: #1976d2;
    margin-bottom: 1.5rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e3f2fd;
}

.search-box {
    display: flex;
    gap: 0.5rem;
}

.search-box input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

.search-box input:focus {
    outline: none;
    border-color: #1976d2;
}

.search-box button {
    background: #1976d2;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: #1565c0;
}

.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-post {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.recent-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.recent-post-content h4 {
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.recent-post-content h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-post-content h4 a:hover {
    color: #1976d2;
}

.recent-post-date {
    color: #999;
    font-size: 0.8rem;
}

.sidebar-widget .social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-widget .social-links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.sidebar-widget .social-links a:hover {
    background: #1976d2;
    color: white;
    transform: translateX(-5px);
}

.sidebar-widget .social-links a i {
    font-size: 1.2rem;
    width: 20px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination button {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.pagination button:hover,
.pagination button.active {
    background: #1976d2;
    color: white;
    border-color: #1976d2;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* No posts message */
.no-posts {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-posts i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-posts h3 {
    margin-bottom: 1rem;
    color: #999;
}

/* Active nav link */
.nav-link.active {
    color: #1976d2;
    background: rgba(25, 118, 210, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-header p {
        font-size: 1.1rem;
    }
    
    .blog-main,
    .sidebar-widget {
        padding: 1.5rem;
    }
    
    .blog-post-image {
        height: 200px;
    }
    
    .blog-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .recent-post {
        flex-direction: column;
    }
    
    .recent-post-image {
        width: 100%;
        height: 150px;
    }
}

/* Loading animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.loading::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1976d2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
