/* Blog Page Styles */
/* ================= */

/* Blog Hero Section */
.blog-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-top: 70px;
    text-align: center;
}

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

.blog-hero-content .hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Listing Section */
.blog-listing {
    padding: 80px 0;
    background: #fff;
}

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

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

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

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-content {
    padding: 1.5rem;
}

.blog-category {
    background: #007bff;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.blog-content h3 {
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    line-height: 1.3;
}

.blog-content p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #999;
    flex-wrap: wrap;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.publish-date:before {
    content: "📅";
}

.read-time:before {
    content: "⏱️";
}

.blog-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.blog-link:hover {
    color: #0056b3;
}

/* Blog Article Page */
.blog-article {
    padding: 80px 0;
    background: #fff;
}

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

.article-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.article-header {
    margin-bottom: 3rem;
}

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

.article-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category {
    background: #007bff;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.article-image {
    margin-bottom: 2rem;
}

.article-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.article-content {
    line-height: 1.8;
    color: #333;
}

.article-content h2 {
    font-size: 1.8rem;
    color: #333;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
}

.article-content h3 {
    font-size: 1.4rem;
    color: #333;
    margin: 1.5rem 0 1rem;
}

.article-content h4 {
    font-size: 1.2rem;
    color: #333;
    margin: 1rem 0 0.5rem;
}

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

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

.article-content li {
    margin-bottom: 0.5rem;
    color: #555;
}

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

.table-of-contents {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #007bff;
}

.table-of-contents h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.highlight-box {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border-left: 4px solid #007bff;
}

.highlight-box h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.highlight-box ul {
    margin: 0;
    padding-left: 1.5rem;
}

.highlight-box li {
    color: #555;
    margin-bottom: 0.5rem;
}

.comparison-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.comparison-table td {
    color: #555;
}

.comparison-table tr:hover {
    background: #f8f9fa;
}

.cta-box {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

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

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

.cta-box .btn-primary {
    background: white;
    color: #007bff;
}

.cta-box .btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Sidebar Styles */
.article-sidebar {
    padding-left: 2rem;
}

.related-articles,
.contact-sidebar {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.related-articles h3,
.contact-sidebar h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.related-articles ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-articles li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.related-articles li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-articles a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.related-articles a:hover {
    color: #0056b3;
    text-decoration: underline;
}

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

.contact-sidebar .btn-secondary {
    width: 100%;
    text-align: center;
}

/* Code Blocks */
.article-content pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border-left: 4px solid #007bff;
}

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

/* Blockquotes */
.article-content blockquote {
    border-left: 4px solid #007bff;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
    background: #f8f9fa;
    padding: 1rem 1rem 1rem 2rem;
    border-radius: 0 6px 6px 0;
}

/* Images in Content */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero {
        padding: 100px 0 40px;
    }
    
    .blog-hero-content h1 {
        font-size: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .article-sidebar {
        padding-left: 0;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .comparison-table {
        font-size: 0.8rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }
    
    .highlight-box,
    .cta-box {
        padding: 1rem;
    }
    
    .table-of-contents {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .blog-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .blog-card {
        margin: 0 10px;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.3rem;
    }
}
/* LCD vs OLED Article Specific Styles */
.comparison-table {
    margin: 30px 0;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.comparison-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.comparison-table .winner {
    background: #e8f5e8;
    color: #28a745;
    font-weight: 600;
}

.use-case-box {
    margin: 30px 0;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid;
}

.lcd-box {
    background: #e3f2fd;
    border-left-color: #2196f3;
}

.oled-box {
    background: #f3e5f5;
    border-left-color: #9c27b0;
}

.use-case-box h4 {
    margin-bottom: 15px;
    color: #333;
}

.cost-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.cost-factor {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.cost-factor h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
}

.cost-factor p {
    margin: 10px 0;
    line-height: 1.6;
}

.decision-guide {
    background: #fff;
    border: 2px solid #007bff;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
}

.decision-guide h3 {
    color: #007bff;
    margin-bottom: 15px;
}

.decision-guide ul {
    margin-bottom: 25px;
}

.decision-guide ul:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .comparison-table {
        font-size: 14px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
    }
    
    .cost-comparison {
        grid-template-columns: 1fr;
    }
    
    .decision-guide {
        padding: 20px;
    }
}