/* Blog Specific Styles */

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

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

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

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

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

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

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

.article-image {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.article-image img {
    width: 80px;
    height: 80px;
    filter: brightness(0) invert(1);
}

.article-content {
    padding: 2rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-date {
    color: #666;
    font-size: 0.9rem;
}

.article-category {
    background-color: #e74c3c;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-content h2 {
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-content h2 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content h2 a:hover {
    color: #e74c3c;
}

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

.read-more {
    color: #e74c3c;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Article Page */
.article-page {
    padding: 120px 0 80px;
    background-color: #f8f9fa;
}

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

.breadcrumb {
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

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

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

.article-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.article-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.article-lead {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
    font-weight: 400;
    margin: 0 auto;
    max-width: 700px;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    line-height: 1.8;
}

.article-content .article-image {
    height: 300px;
    margin: 2rem 0 3rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.article-content .article-image img {
    width: 100px;
    height: 100px;
}

.article-content h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 0.5rem;
}

.article-content h3 {
    color: #34495e;
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
}

.article-content h4 {
    color: #34495e;
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: #444;
}

.article-content ul, 
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    color: #444;
}

.article-content strong {
    color: #2c3e50;
    font-weight: 600;
}

.article-content blockquote {
    border-left: 4px solid #e74c3c;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0 10px 10px 0;
}

.article-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #e74c3c;
}

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

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

.article-content th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.article-content tr:hover {
    background-color: #f8f9fa;
}

/* Article Footer */
.article-footer {
    max-width: 800px;
    margin: 3rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.back-to-blog {
    flex-shrink: 0;
}

.share-article {
    text-align: right;
}

.share-article h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1rem;
}

.social-share {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-share a {
    color: #666;
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-share a:hover {
    background-color: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

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

.category-filter {
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    color: #666;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.category-filter:hover,
.category-filter.active {
    background-color: #e74c3c;
    color: white;
}

/* Blog Search */
.blog-search {
    max-width: 400px;
    margin: 0 auto 3rem;
    position: relative;
}

.blog-search input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.blog-search input:focus {
    outline: none;
    border-color: #e74c3c;
}

.blog-search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.blog-search button:hover {
    color: #e74c3c;
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.page-link {
    padding: 0.75rem 1rem;
    background-color: white;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-link:hover,
.page-link.active {
    background-color: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Blog Sidebar */
.blog-sidebar {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: fit-content;
}

.blog-sidebar h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.sidebar-widget {
    margin-bottom: 2rem;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.widget-list {
    list-style: none;
    padding: 0;
}

.widget-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.widget-list a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget-list a:hover {
    color: #e74c3c;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: #f8f9fa;
    color: #666;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #e74c3c;
    color: white;
}

/* Related Articles */
.related-articles {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #f0f0f0;
}

.related-articles h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-article {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.related-article:hover {
    transform: translateY(-3px);
}

.related-article h4 {
    margin-bottom: 0.5rem;
}

.related-article h4 a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1rem;
}

.related-article h4 a:hover {
    color: #e74c3c;
}

.related-article p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Newsletter in Blog */
.blog-newsletter {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    margin: 3rem 0;
}

.blog-newsletter h3 {
    color: white;
    margin-bottom: 1rem;
}

.blog-newsletter p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

.blog-newsletter .newsletter-form {
    max-width: 400px;
    margin: 0 auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-hero p {
        font-size: 1rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-lead {
        font-size: 1.1rem;
    }
    
    .article-content {
        padding: 2rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.3rem;
    }
    
    .article-footer {
        flex-direction: column;
        text-align: center;
    }
    
    .share-article {
        text-align: center;
    }
    
    .social-share {
        justify-content: center;
    }
    
    .blog-categories {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-newsletter {
        padding: 2rem;
    }
    
    .blog-newsletter .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .article-content {
        padding: 1.5rem;
    }
    
    .article-content .article-image {
        height: 200px;
        margin: 1.5rem 0 2rem;
    }
    
    .article-content .article-image img {
        width: 60px;
        height: 60px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .social-share {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .blog-search {
        margin: 0 15px 2rem;
    }
}

/* Print Styles for Blog */
@media print {
    .blog-hero,
    .article-footer,
    .related-articles,
    .blog-newsletter,
    .blog-search,
    .blog-categories,
    .blog-pagination {
        display: none !important;
    }
    
    .article-content {
        box-shadow: none !important;
        padding: 0 !important;
    }
    
    .article-header {
        margin-bottom: 2rem !important;
    }
    
    .article-content .article-image {
        display: none !important;
    }
}
