/* Blog Specific Styles */

/* Blog Header */
.blog-header {
    background: var(--brand-gradient);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

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

.blog-content .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Blog Post Cards */
.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);
}

/* Featured Post */
.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;
}

.blog-post.featured h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.3;
}

/* Regular Posts */
.blog-post:not(.featured) {
    display: block;
}

.blog-post:not(.featured) .post-content {
    padding: 25px;
}

.blog-post:not(.featured) h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #333;
    line-height: 1.4;
}

/* Post Images */
.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post.featured .post-image {
    height: auto;
    min-height: 300px;
}

/* Post Content */
.post-category {
    display: inline-block;
    background: var(--secondary-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.post-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #888;
}

.read-more-btn {
    display: inline-block;
    background: var(--secondary-blue);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.read-more-btn:hover {
    background: #4f46e5;
    text-decoration: none;
    color: white;
}

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

.sidebar-widget {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid var(--secondary-blue);
    padding-bottom: 0.5rem;
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 0.8rem;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: var(--secondary-blue);
    text-decoration: none;
}

.category-list span {
    background: #f0f0f0;
    color: #666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Quote Widget */
.quote-widget {
    text-align: center;
    background: var(--brand-gradient);
    color: white;
    padding: 25px;
    border-radius: 8px;
    margin: -30px -30px 0 -30px;
}

.quote-widget p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.quote-widget .cta-button {
    background: white;
    color: var(--secondary-blue);
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.quote-widget .cta-button:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--secondary-blue);
}

/* Recent Posts */
.recent-posts {
    list-style: none;
    padding: 0;
}

.recent-posts li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.recent-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-posts a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.recent-posts a:hover {
    color: #667eea;
    text-decoration: none;
}

.recent-posts .post-date {
    display: block;
    color: #888;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

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

.newsletter-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
}

.newsletter-form button {
    background: #333;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #555;
}

/* Navigation Active State */
.nav-link.active {
    color: #667eea !important;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-content .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-post.featured {
        grid-template-columns: 1fr;
    }
    
    .blog-post.featured .post-content {
        padding: 25px;
    }
    
    .blog-header h1 {
        font-size: 2.2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .blog-header {
        padding: 60px 0 40px;
    }
    
    .blog-header h1 {
        font-size: 1.8rem;
    }
    
    .blog-content {
        padding: 40px 0;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
    
    .quote-widget {
        margin: -20px -20px 0 -20px;
        padding: 20px;
    }
}