/* Blog Page Styles */
.blog-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    text-align: center;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

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

/* Featured Article */
.featured-article {
    padding: 80px 0;
    background: #f8fafc;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-8px);
}

.featured-image {
    position: relative;
    padding: 40px;
}

.featured-image svg {
    width: 100%;
    height: 300px;
    border-radius: 12px;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #2563eb;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.featured-content {
    padding: 40px;
    padding-left: 0;
}

.article-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

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

.date {
    color: #64748b;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
}

.reading-time svg {
    width: 16px;
    height: 16px;
}

.featured-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.featured-content h2 a {
    color: #1e293b;
    text-decoration: none;
}

.featured-content h2 a:hover {
    color: #2563eb;
}

.featured-content p {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.featured-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.blog-articles h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #1e293b;
}

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

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

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.article-image {
    position: relative;
}

.article-image svg {
    width: 100%;
    height: 200px;
    display: block;
}

.article-content {
    display: flex;
    padding: 10px;
}

.article-content h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    line-height: 1.4;
}

.article-content h3 a {
    color: #1e293b;
    text-decoration: none;
}

.article-content h3 a:hover {
    color: #2563eb;
}

.article-content p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

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

/* Newsletter CTA */
.newsletter-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cta-text h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.cta-text p {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Article Page Styles */
.article-page {
    padding: 120px 0 80px;
    background: #ffffff;
    min-height: 100vh;
}

.article-header {
    margin-bottom: 60px;
}

.breadcrumb {
    color: #64748b;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

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

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

.article-header h1 {
    font-size: 3rem;
    color: #1e293b;
    margin-bottom: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.article-intro {
    margin-bottom: 40px;
}

.lead {
    font-size: 1.3rem;
    color: #374151;
    line-height: 1.6;
    font-weight: 500;
}

.article-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.article-image svg {
    width: 100%;
    height: 400px;
    display: block;
}

/* Article Content Layout */
.article-content {
    display: grid;
    gap: 5px;
    align-items: start;
}

.content-wrapper {
    max-width: none;
}

.content-section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f1f5f9;
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h2 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 24px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 3px solid #2563eb;
}

.content-section h3 {
    font-size: 1.5rem;
    color: #374151;
    margin-bottom: 16px;
    margin-top: 32px;
    font-weight: 600;
}

.content-section h4 {
    font-size: 1.2rem;
    color: #374151;
    margin-bottom: 16px;
    margin-top: 24px;
    font-weight: 600;
}

.content-section h5 {
    font-size: 1.1rem;
    color: #374151;
    margin-bottom: 12px;
    margin-top: 20px;
    font-weight: 600;
}

.content-section p {
    color: #4b5563;
    margin-bottom: 16px;
    line-height: 1.7;
    text-align: justify;
}

.content-section ul,
.content-section ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.content-section li {
    color: #4b5563;
    margin-bottom: 8px;
    line-height: 1.6;
}

.content-section li strong {
    color: #374151;
    font-weight: 600;
}

/* Special Content Blocks */
.tools-materials,
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 24px 0;
}

.tools-column,
.materials-column,
.pros,
.cons {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
}

.pros {
    border-left: 4px solid #10b981;
}

.cons {
    border-left: 4px solid #ef4444;
}

.step-details,
.technical-data,
.pro-tip,
.warning {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
}

.pro-tip {
    background: #ecfdf5;
    border-left: 4px solid #10b981;
}

.warning {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
}

/* Tables */
.budget-table,
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.budget-table th,
.budget-table td,
.comparison-table th,
.comparison-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.budget-table th,
.comparison-table th {
    background: #2563eb;
    color: white;
    font-weight: 600;
}

.budget-table tr:hover,
.comparison-table tr:hover {
    background: #f8fafc;
}

/* Specialized layouts */
.screed-type-detail,
.decision-matrix,
.common-problems {
    display: grid;
    gap: 24px;
    margin: 24px 0;
}

.use-case,
.problem,
.mistake,
.pitfall {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid #2563eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.timeline {
    display: grid;
    gap: 20px;
    margin: 24px 0;
}

.timeline-phase {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid #2563eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.timeline-phase h5 {
    color: #2563eb;
    margin-top: 0;
}

/* Article Sidebar */
.article-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-section {
    background: #f8fafc;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.sidebar-section h3 {
    color: #1e293b;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.table-of-contents li {
    margin-bottom: 8px;
}

.table-of-contents a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.table-of-contents a:hover {
    text-decoration: underline;
}

.related-articles {
    display: grid;
    gap: 16px;
}

.related-article {
    display: block;
    padding: 16px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

.related-article h4 {
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 1rem;
}

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

.cta-section {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.cta-section h3,
.cta-section p {
    color: white;
}

.cta-section .btn-primary {
    background: white;
    color: #2563eb;
}

.cta-section .btn-primary:hover {
    background: #f1f5f9;
}

/* Article Conclusion */
.article-conclusion {
    background: #f8fafc;
    padding: 40px;
    border-radius: 16px;
    margin-top: 40px;
    border-left: 4px solid #2563eb;
}

.article-conclusion h3 {
    color: #1e293b;
    margin-bottom: 20px;
}

.article-conclusion p {
    margin-bottom: 16px;
    text-align: left;
}

.article-conclusion a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.article-conclusion a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .featured-card {
        grid-template-columns: 1fr;
    }
    
    .featured-content {
        padding: 40px;
    }
    
    .article-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .article-sidebar {
        position: static;
        order: -1;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2.5rem;
    }
    
    .article-header h1 {
        font-size: 2.5rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        padding: 20px;
    }
    
    .featured-content {
        padding: 30px 20px;
    }
    
    .featured-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tools-materials,
    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    .budget-table,
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .budget-table th,
    .budget-table td,
    .comparison-table th,
    .comparison-table td {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 100px 0 60px;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-page {
        padding: 100px 0 60px;
    }
    
    .featured-article,
    .blog-articles,
    .newsletter-cta {
        padding: 60px 0;
    }
    
    .sidebar-section,
    .article-conclusion {
        padding: 20px;
    }
    
    .content-section h2 {
        font-size: 1.75rem;
    }
    
    .content-section h3 {
        font-size: 1.3rem;
    }
    
    .article-image svg {
        height: 250px;
    }
    
    .featured-image svg {
        height: 200px;
    }
}