/* ==========================================================================
   OMEGA AUTOMATICS - COMMERCIAL BLOG & TECHNICAL PUBLICATION STYLES
   Engineered for Architectural Specifiers, Contractors & Facilities Engineers
   ========================================================================== */

/* Typography & Root Reset for Blog Pages */
.blog-article-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    color: #334155;
    background-color: #ffffff;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

/* Ensure sticky header background is solid/frosted on blog pages */
.site-header.blog-header,
.site-header.product-header {
    background-color: rgba(11, 19, 32, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Article Hero Banner (Full-Bleed Dark Architectural Gradient) */
.article-hero {
    position: relative;
    padding: calc(var(--header-height) + 55px) 2rem 4.5rem 2rem;
    background: linear-gradient(135deg, #09101d 0%, #0f1d33 60%, #152238 100%);
    color: #ffffff;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
    z-index: 1;
    filter: saturate(1.2) contrast(1.1);
}

.article-hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.article-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.article-breadcrumbs a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-breadcrumbs a:hover {
    color: var(--accent-gold);
}

.article-breadcrumbs .separator {
    color: #64748b;
    font-size: 0.75rem;
}

.article-breadcrumbs .current {
    color: var(--accent-gold);
    font-weight: 600;
}

.article-badge-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.article-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.badge-gold {
    background: rgba(197, 160, 89, 0.18);
    color: #f1cf87;
    border: 1px solid rgba(197, 160, 89, 0.35);
}

.badge-blue {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.badge-red {
    background: rgba(217, 32, 18, 0.18);
    color: #fca5a5;
    border: 1px solid rgba(217, 32, 18, 0.35);
}

.article-hero-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: clamp(2.1rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    max-width: 1050px;
}

.article-hero-subtitle {
    font-size: 1.15rem;
    color: #cbd5e1;
    line-height: 1.65;
    max-width: 900px;
    margin-bottom: 2rem;
    font-weight: 400;
}

.article-hero-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.875rem;
    color: #94a3b8;
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #f1f5f9;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-red), #991b1b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.meta-divider {
    color: #475569;
}

/* 2-Column Article Layout */
.article-layout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 6rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 3.5rem;
    align-items: start;
}

/* Main Content Column */
.article-main-col {
    min-width: 0;
}

/* Featured Media Wrapper */
.article-featured-media {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.12);
    border: 1px solid #e2e8f0;
}

.article-featured-media img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.article-featured-caption {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 0.875rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Key Takeaways Card */
.takeaways-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #cbd5e1;
    border-left: 5px solid var(--accent-gold);
    border-radius: 8px;
    padding: 1.75rem 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.takeaways-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.takeaways-title span.icon {
    color: var(--accent-gold);
    font-size: 1.25rem;
}

.takeaways-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.takeaways-list li {
    position: relative;
    padding-left: 1.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #334155;
}

.takeaways-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #16a34a;
    font-weight: 800;
}

/* Article Prose Typography */
.article-prose {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: #334155;
}

.article-prose p {
    margin-bottom: 1.5rem;
}

.article-prose h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin: 3rem 0 1.25rem;
    letter-spacing: -0.015em;
    scroll-margin-top: 130px;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.article-prose h3 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    margin: 2rem 0 0.85rem;
    scroll-margin-top: 130px;
}

.article-prose strong {
    color: #0f172a;
    font-weight: 700;
}

.article-prose ul, 
.article-prose ol {
    margin: 1.25rem 0 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.article-prose li {
    line-height: 1.75;
}

/* Callout Alert Boxes */
.callout-box {
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    margin: 2.25rem 0;
    font-size: 0.975rem;
    line-height: 1.7;
}

.callout-info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 5px solid #2563eb;
    color: #1e3a8a;
}

.callout-warning {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 5px solid #d97706;
    color: #78350f;
}

.callout-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Technical Tables */
.table-responsive {
    overflow-x: auto;
    margin: 2.5rem 0;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: left;
}

.spec-table th {
    background-color: #0f172a;
    color: #ffffff;
    padding: 1rem 1.25rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.spec-table td {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

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

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

/* Bottom Lead Article CTA Box */
.article-cta-box {
    background: linear-gradient(135deg, #09101d 0%, #0f172a 100%);
    color: #ffffff;
    border-radius: 12px;
    padding: 2.75rem 2.5rem;
    margin-top: 4rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-cta-box h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.article-cta-box p {
    color: #94a3b8;
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
    max-width: 650px;
    line-height: 1.6;
}

.article-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-cta-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--accent-red);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.875rem 1.75rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-cta-gold:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 32, 18, 0.35);
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-cta-outline:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Author Profile Box */
.author-profile-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3.5rem;
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.author-profile-img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-red), #881337);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(217, 32, 18, 0.25);
}

.author-profile-info h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.author-profile-role {
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.65rem;
}

.author-profile-bio {
    font-size: 0.925rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* Related Articles Grid */
.related-articles-section {
    margin-top: 4.5rem;
    padding-top: 3rem;
    border-top: 1px solid #e2e8f0;
}

.related-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1.75rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.related-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.related-card-img {
    height: 170px;
    width: 100%;
    object-fit: cover;
}

.related-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.related-card-tag {
    font-size: 0.725rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-gold);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.related-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a;
    margin-bottom: 0.75rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Sticky Sidebar Styles */
.article-sidebar {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.sidebar-widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Table of Contents */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.toc-link {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #475569;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.toc-link::before {
    content: "•";
    color: var(--accent-gold);
    font-weight: bold;
}

.toc-link:hover {
    color: var(--accent-red);
    font-weight: 600;
}

/* Sidebar Spec Download Card */
.sidebar-spec-box {
    background: linear-gradient(135deg, #09101d 0%, #1e293b 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-spec-box .sidebar-widget-title {
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-spec-box p {
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.btn-sidebar-download {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--accent-red);
    color: #ffffff;
    font-size: 0.825rem;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.25s ease;
}

.btn-sidebar-download:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(217, 32, 18, 0.35);
}

/* Sidebar Contact Card */
.sidebar-contact-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.sidebar-contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 600;
}

.sidebar-contact-value {
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
}

.sidebar-contact-value:hover {
    color: var(--accent-red);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .article-layout-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .article-hero {
        padding: calc(var(--header-height) + 40px) 1.25rem 3.5rem 1.25rem;
    }
    
    .article-layout-container {
        padding: 2.5rem 1rem 4rem;
    }
    
    .article-featured-media img {
        height: 250px;
    }
    
    .article-sidebar {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .author-profile-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .article-cta-box {
        padding: 2rem 1.5rem;
    }
    
    .article-cta-actions {
        flex-direction: column;
    }
    
    .btn-cta-gold, .btn-cta-outline {
        width: 100%;
        justify-content: center;
    }
}

