/* Blog-specific styles */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 72px;
    text-align: center;
}

.blog-hero h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.blog-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Articles Section */
.blog-articles {
    padding: 80px 0;
    background-color: #f8fafc;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

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

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.article-meta {
    padding: 1.5rem 2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.category {
    background-color: #2563eb;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.date {
    color: #64748b;
    font-size: 0.875rem;
}

.article-card h2 {
    padding: 0 2rem;
    margin: 1rem 0;
}

.article-card h2 a {
    color: #1a365d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card h2 a:hover {
    color: #2563eb;
}

.article-card > p {
    padding: 0 2rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-block;
    padding: 0 2rem 2rem;
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #1d4ed8;
}

/* Blog Post Styles */
.blog-post {
    padding: 120px 0 80px;
    margin-top: 72px;
}

.post-header {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 3rem;
}

.breadcrumb {
    margin-bottom: 1rem;
    color: #64748b;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.post-meta .category {
    background-color: #2563eb;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.post-meta .date,
.post-meta .read-time {
    color: #64748b;
    font-size: 0.875rem;
}

.post-header h1 {
    font-size: 2.5rem;
    color: #1a365d;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-header .lead {
    font-size: 1.25rem;
    color: #4a5568;
    margin-bottom: 0;
    line-height: 1.6;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.post-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #1a365d;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.post-content h2:first-child {
    margin-top: 0;
}

.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2563eb;
}

.post-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #374151;
}

.post-content p {
    margin-bottom: 1.5rem;
    color: #4a5568;
    line-height: 1.7;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    color: #4a5568;
    line-height: 1.6;
}

.post-content ul li {
    position: relative;
}

.post-content ul li::before {
    content: '•';
    color: #2563eb;
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

.post-content strong {
    color: #1a365d;
    font-weight: 600;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.post-content th,
.post-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.post-content th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #1a365d;
}

.post-content tbody tr:hover {
    background-color: #f8fafc;
}

.post-cta {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
}

.post-cta h3 {
    color: white;
    margin-bottom: 1rem;
}

.post-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.post-cta .btn {
    background-color: white;
    color: #2563eb;
    border-color: white;
}

.post-cta .btn:hover {
    background-color: #f8fafc;
    border-color: #f8fafc;
    color: #2563eb;
}

.post-footer {
    max-width: 800px;
    margin: 3rem auto 0;
}

.author-info {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.author-info h4 {
    color: #1a365d;
    margin-bottom: 1rem;
}

.author-info p {
    color: #4a5568;
    margin: 0;
    line-height: 1.6;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-navigation .btn {
    flex: 1;
    min-width: 200px;
}

/* Blog Categories */
.blog-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-filter {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    background: white;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-filter:hover,
.category-filter.active {
    border-color: #2563eb;
    background-color: #2563eb;
    color: white;
}

/* Featured Article */
.featured-article {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.featured-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.featured-content {
    position: relative;
    z-index: 1;
}

.featured-article .category {
    background-color: rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
    display: inline-block;
}

.featured-article h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.featured-article h2 a {
    color: white;
    text-decoration: none;
}

.featured-article h2 a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.featured-article p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.featured-article .read-more {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.featured-article .read-more:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Article Search */
.blog-search {
    text-align: center;
    margin-bottom: 3rem;
}

.search-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    gap: 1rem;
}

.search-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
}

.search-form input:focus {
    outline: none;
    border-color: #2563eb;
}

.search-form button {
    padding: 12px 20px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: #1d4ed8;
}

/* Responsive Design for Blog */
@media (max-width: 768px) {
    .blog-hero {
        padding: 100px 0 60px;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .post-meta {
        gap: 1rem;
    }
    
    .post-content {
        padding: 2rem;
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    .post-navigation .btn {
        min-width: auto;
    }
    
    .blog-categories {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .category-filter {
        white-space: nowrap;
    }
    
    .featured-article {
        padding: 2rem;
    }
    
    .featured-article h2 {
        font-size: 1.5rem;
    }
    
    .search-form {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 1.75rem;
    }
    
    .post-header h1 {
        font-size: 1.75rem;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }
    
    .article-meta {
        padding: 1rem 1.5rem 0.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .article-card h2 {
        padding: 0 1.5rem;
    }
    
    .article-card > p {
        padding: 0 1.5rem;
    }
    
    .read-more {
        padding: 0 1.5rem 1.5rem;
    }
    
    .featured-article {
        padding: 1.5rem;
    }
    
    .post-content table {
        font-size: 0.875rem;
    }
    
    .post-content th,
    .post-content td {
        padding: 8px 12px;
    }
}

/* Print Styles for Blog Posts */
@media print {
    .header,
    .footer,
    .post-navigation,
    .post-cta,
    .newsletter-cta {
        display: none;
    }
    
    .blog-post {
        padding: 0;
        margin: 0;
    }
    
    .post-content {
        box-shadow: none;
        padding: 0;
    }
    
    .post-header {
        margin-bottom: 2rem;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1 {
        font-size: 18pt;
    }
    
    h2 {
        font-size: 16pt;
    }
    
    h3 {
        font-size: 14pt;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
    }
}
