/* Blog Header */
.blog-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/blog/header-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.blog-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Articles */
.featured-articles {
    padding: 80px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-image {
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.article-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.article-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0056b3;
}

/* Categories */
.blog-categories {
    background: #f8f9fa;
    padding: 80px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.category-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card i {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 1.2rem;
    margin: 0;
}

/* Newsletter Signup */
.newsletter-signup {
    background: #007bff;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.newsletter-signup h2 {
    margin-bottom: 1rem;
}

.newsletter-signup p {
    max-width: 600px;
    margin: 0 auto 30px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 12px 30px;
    background: #0056b3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #003d82;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }
}

/* Blog Post Styles */
.blog-post {
    padding: 40px 0;
}

.post-header {
    background: #f8f9fa;
    padding: 60px 0;
    margin-bottom: 40px;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9rem;
}

.post-category {
    color: #007bff;
    font-weight: 600;
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
}

.post-featured-image {
    max-width: 800px;
    margin: 0 auto;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.main-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.main-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: #222;
}

.main-content h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: #333;
}

.main-content p {
    margin-bottom: 20px;
}

.main-content ul, .main-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.main-content li {
    margin-bottom: 10px;
}

.main-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
}

.main-content code {
    background: #f8f9fa;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
}

.main-content pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
}

/* Sidebar Styles */
.sidebar {
    position: sticky;
    top: 20px;
}

.author-bio {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.author-bio img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.author-bio h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.author-bio p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.related-posts, .post-categories {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.related-posts h3, .post-categories h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
}

.related-posts ul, .post-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-posts li, .post-categories li {
    margin-bottom: 10px;
}

.related-posts a, .post-categories a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-posts a:hover, .post-categories a:hover {
    color: #007bff;
}

/* Responsive Design */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .post-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .post-meta {
        flex-direction: column;
        gap: 10px;
    }

    .post-header {
        padding: 40px 0;
    }

    .post-header h1 {
        font-size: 1.8rem;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumbs ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #6c757d;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: #dee2e6;
}

.breadcrumbs a {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.breadcrumbs li:last-child {
    color: #495057;
    font-weight: 500;
}

/* Responsive Breadcrumbs */
@media (max-width: 768px) {
    .breadcrumbs {
        padding: 0.75rem 0;
    }
    
    .breadcrumbs li {
        font-size: 0.8rem;
    }
    
    .breadcrumbs li:not(:last-child)::after {
        margin: 0 0.25rem;
    }
} 