/* Article-specific styles */

/* Article page container */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Article typography enhancements */
.article-content h2 {
    position: relative;
    overflow: hidden;
}

.article-content h2::after {
    content: "";
    position: absolute;
    bottom: 15px;
    width: 100%;
    height: 1px;
    margin-left: 20px;
    background-image: linear-gradient(to right, rgba(228, 61, 18, 0.5), transparent);
}

#header {
    position: fixed;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
    background-color: transparent; /* Start transparent */
}

/* Matching product page header style */
#header.scrolled {
    background-color: rgba(234, 177, 35, 0.95) !important;
    backdrop-filter: blur(10px);
}


/* Step-by-step process indicators */
.process-step-block {
    position: relative;
    padding-left: 30px;
    margin-bottom: 40px;
}

.process-step-block::before {
    content: attr(data-step);
    position: absolute;
    left: -10px;
    top: -5px;
    width: 30px;
    height: 30px;
    background-color: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* Image comparisons */
.image-comparison {
    position: relative;
    margin: 40px 0;
}

.image-comparison .before,
.image-comparison .after {
    width: 49%;
    display: inline-block;
    vertical-align: top;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.image-comparison .label {
    position: absolute;
    top: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.image-comparison .before .label {
    left: 10px;
}

.image-comparison .after .label {
    right: 10px;
}

/* Article table styles */
.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.article-table th {
    background-color: var(--primary-red);
    color: white;
    padding: 12px 15px;
    text-align: left;
}

.article-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    background-color: white;
}

.article-table tr:last-child td {
    border-bottom: none;
}

.article-table tr:nth-child(even) td {
    background-color: #f9f9f9;
}

/* Callout boxes */
.article-callout {
    background-color: rgba(228, 61, 18, 0.05);
    border-left: 3px solid var(--primary-red);
    padding: 20px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.article-callout.tip {
    background-color: rgba(28, 161, 61, 0.05);
    border-left-color: #1ca13d;
}

.article-callout.warning {
    background-color: rgba(237, 158, 0, 0.05);
    border-left-color: #ed9e00;
}

.article-callout h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-red);
}

.article-callout.tip h4 {
    color: #1ca13d;
}

.article-callout.warning h4 {
    color: #ed9e00;
}

/* Code blocks */
.article-code {
    background-color: #282c34;
    color: #abb2bf;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 30px 0;
    font-family: 'Courier New', monospace;
}

.article-code code {
    display: block;
    line-height: 1.5;
}

/* Author bio section */
.author-bio {
    display: flex;
    align-items: center;
    margin-top: 60px;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin: 0 0 10px;
    color: #333;
}

.author-info p {
    margin: 0;
    font-size: var(--font-sm);
    color: #666;
    line-height: 1.6;
}

/* Header and mobile menu styling */
@media (max-width: 768px) {
        
    /* Responsive image comparison */
    .image-comparison .before,
    .image-comparison .after {
        width: 100%;
        display: block;
        margin-bottom: 20px;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-image {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .article-table {
        display: block;
        overflow-x: auto;
    }
    
    /* Additional padding for mobile header */
    .blog-article-preview,
    .blog-article {
        padding-top: 90px;
    }
}