/* Blog Styles */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.blog-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.blog-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Layout */
.blog-content {
    padding: 60px 0;
    background: #f8f9fa;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-main {
    min-height: 600px;
}

/* Blog Posts */
.blog-posts {
    display: grid;
    gap: 30px;
}

.blog-post {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.blog-post.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 40px;
}

.blog-post.featured .post-image {
    height: 100%;
}

.blog-post.featured .post-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-post.featured .post-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* Post Image */
.post-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

/* Post Content */
.post-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.post-category {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.post-date {
    color: #666;
    font-weight: 500;
}

.post-title {
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #667eea;
}

.blog-post h2.post-title {
    font-size: 1.6rem;
}

.blog-post h3.post-title {
    font-size: 1.3rem;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #764ba2;
}

.read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(3px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination-btn {
    padding: 10px 16px;
    border: 2px solid #e9ecef;
    background: white;
    color: #666;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: #667eea;
    border-radius: 2px;
}

/* Search Widget */
.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
}

.search-box button {
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: #764ba2;
}

/* Categories Widget */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.category-list a:hover,
.category-list a.active {
    color: #667eea;
}

.category-list span {
    color: #999;
    font-size: 0.9rem;
}

/* Popular Posts Widget */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-post {
    display: flex;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.popular-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.popular-post-content h4 {
    margin: 0 0 5px;
    font-size: 0.9rem;
    line-height: 1.3;
}

.popular-post-content a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-post-content a:hover {
    color: #667eea;
}

.popular-post-date {
    font-size: 0.8rem;
    color: #999;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.newsletter-widget .widget-title::after {
    background: rgba(255,255,255,0.3);
}

.newsletter-widget p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.7);
}

.newsletter-form input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.15);
}

.newsletter-form button {
    padding: 12px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-sidebar {
        order: -1;
    }
    
    .sidebar-widget {
        display: inline-block;
        width: calc(50% - 15px);
        margin-right: 30px;
        vertical-align: top;
    }
    
    .sidebar-widget:nth-child(even) {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .blog-title {
        font-size: 2.2rem;
    }
    
    .blog-hero {
        padding: 60px 0 40px;
    }
    
    .blog-content {
        padding: 40px 0;
    }
    
    .blog-post.featured {
        grid-template-columns: 1fr;
    }
    
    .blog-post.featured .post-content {
        padding: 25px;
    }
    
    .blog-post.featured .post-title {
        font-size: 1.4rem;
    }
    
    .sidebar-widget {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .pagination {
        margin-top: 30px;
    }
    
    .pagination-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .blog-title {
        font-size: 1.8rem;
    }
    
    .blog-subtitle {
        font-size: 1rem;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .newsletter-form {
        gap: 8px;
    }
}