/* Blog Page Styles */
.blog-page {
    padding: 60px 0;
    background-color: #f9fafb;
}

.blog-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-page .page-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-page .page-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: #6b7280;
}

.post-meta svg {
    margin-right: 5px;
    vertical-align: middle;
}

.post-meta a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-meta a:hover {
    color: #10b981;
}

.post-title {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
}

.post-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-title a:hover {
    color: #10b981;
}

.post-excerpt {
    color: #4b5563;
    margin: 0 0 20px 0;
    line-height: 1.6;
    flex: 1;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f3f4f6;
}

.read-more {
    color: #10b981;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.read-more svg {
    transition: transform 0.2s ease;
}

.read-more:hover {
    color: #059669;
}

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

.reading-time {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Blog Article Styles */
.blog-article {
    background-color: #ffffff;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-header {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    padding: 60px 0 40px;
    border-bottom: 1px solid #e5e7eb;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.2;
    margin: 0 0 20px 0;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #6b7280;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-item svg {
    opacity: 0.7;
}

.article-featured-image {
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    padding: 60px 0;
    background-color: #ffffff;
}

.article-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 40px 0 20px 0;
    line-height: 1.3;
}

.article-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin: 35px 0 18px 0;
    line-height: 1.3;
    padding-bottom: 10px;
    border-bottom: 2px solid #10b981;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin: 30px 0 15px 0;
    line-height: 1.4;
}

.article-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
    margin: 0 0 20px 0;
}

.article-content strong {
    color: #1f2937;
    font-weight: 600;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 10px;
}

.article-content a {
    color: #10b981;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.article-content a:hover {
    border-bottom-color: #10b981;
}

.article-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background-color: #f9fafb;
    border-left: 4px solid #10b981;
    font-style: italic;
    color: #4b5563;
}

.article-content code {
    background-color: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #dc2626;
}

.article-content pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.article-footer {
    background-color: #f9fafb;
    padding: 50px 0;
    border-top: 1px solid #e5e7eb;
}

.article-cta {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.3);
}

.article-cta h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.article-cta p {
    font-size: 1.125rem;
    margin: 0 0 25px 0;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: #10b981;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.article-back {
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-link svg {
    transition: transform 0.2s ease;
}

.back-link:hover {
    color: #10b981;
}

.back-link:hover svg {
    transform: translateX(-3px);
}

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

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 4px;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background-color: #f3f4f6;
    color: #10b981;
}

.pagination .active {
    background-color: #10b981;
    color: white;
    font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-page {
        padding: 60px 0;
    }
    
    .blog-page .page-header h1 {
        font-size: 2.2rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-content h1 {
        font-size: 1.875rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
    
    .article-content p,
    .article-content li {
        font-size: 1rem;
    }
    
    .article-cta {
        padding: 30px 20px;
    }
    
    .article-cta h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-page .page-header h1 {
        font-size: 1.8rem;
    }
    
    .blog-card {
        max-width: 100%;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-header {
        padding: 40px 0 30px;
    }
    
    .article-content {
        padding: 40px 0;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
}
