/* Blog Detail Page - Complete Renovation */
/* Import Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables matching site theme */
:root {
    --primary-color: #003366;
    --primary-light: #004080;
    --secondary-color: #2E8B57;
    --accent-color: #4fc3f7;
    --success-color: #28a745;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e9ecef;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* Global Blog Detail Styles */
body.blog-page {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
}

/* Breadcrumb Section */
.uknc-blog-breadcrumb {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--border-color) 100%);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.uknc-blog-breadcrumb .breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
    font-weight: 500;
}

.uknc-blog-breadcrumb .breadcrumb-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.uknc-blog-breadcrumb .breadcrumb-item a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.uknc-blog-breadcrumb .breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 600;
}

/* HERO HEADER SECTION - Dark Blue Background with White Text */
.uknc-blog-post-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: var(--bg-white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.uknc-blog-post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.uknc-blog-post-header .container {
    position: relative;
    z-index: 2;
}

/* Category Badge */
.uknc-blog-post-category-badge {
    margin-bottom: 24px;
}

.uknc-blog-category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: var(--bg-white) !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.uknc-blog-category-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: var(--bg-white) !important;
    text-decoration: none;
}

.uknc-blog-category-link i {
    font-size: 12px;
}

/* Post Title */
.uknc-blog-post-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--bg-white);
    margin: 24px 0; /* Updated margin for better spacing when meta is above */
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Post Excerpt */
.uknc-blog-post-excerpt {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 400;
    max-width: 800px;
}

/* POST META INFO - Raw background styling without container */
.uknc-blog-post-meta-info {
    /* Removed all box styling - now displays on raw background */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin: 1.5rem 0;
    position: relative;
}

/* Author Section */
.uknc-blog-author-section {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.uknc-blog-author-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #29b6f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 20px rgba(79, 195, 247, 0.3);
    position: relative;
}

.uknc-blog-author-avatar::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
    z-index: -1;
}

.uknc-blog-author-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.uknc-blog-author-name {
    font-weight: 600;
    color: var(--bg-white);
    font-size: 1.1rem;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.uknc-blog-author-title {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    font-style: italic;
}

/* Post Stats - Enhanced Design */
.uknc-blog-post-stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.uknc-blog-post-stats span {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.uknc-blog-post-stats span:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.uknc-blog-post-stats i {
    color: var(--accent-color);
    font-size: 0.85rem;
    filter: drop-shadow(0 0 4px rgba(79, 195, 247, 0.4));
}

/* Responsive Design for Header */
@media (min-width: 1400px) {
    .uknc-blog-post-featured-image img {
        max-height: 600px; /* Allow taller images on very large screens */
        min-height: 400px;
    }
}

@media (max-width: 992px) {
    .uknc-blog-post-title {
        font-size: 2.8rem;
    }
    
    .uknc-blog-post-excerpt {
        font-size: 1.2rem;
    }
    
    .uknc-blog-post-meta-info {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .uknc-blog-post-header {
        padding: 60px 0;
    }
    
    .uknc-blog-post-title {
        font-size: 2.2rem;
    }
    
    .uknc-blog-post-excerpt {
        font-size: 1.1rem;
    }
    
    .uknc-blog-post-meta-info {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 30px 20px;
    }
    
    .uknc-blog-post-stats {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Featured image responsive styles */
    .uknc-blog-featured-image-section {
        padding: 30px 0 15px 0;
    }
    
    .uknc-blog-post-featured-image img {
        max-height: 280px; /* Maximum height on tablet */
        min-height: 200px; /* Minimum height on tablet */
        object-fit: cover; /* Fill width on tablet */
        object-position: center top; /* Focus on important content */
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    }
}

@media (max-width: 576px) {
    .uknc-blog-post-title {
        font-size: 1.9rem;
    }
    
    /* Mobile featured image styles */
    .uknc-blog-featured-image-section {
        padding: 20px 0 10px 0;
    }
    
    .uknc-blog-post-featured-image img {
        max-height: 220px; /* Better proportions on mobile */
        min-height: 150px; /* Minimum height on mobile */
        object-fit: cover; /* Fill width on mobile */
        object-position: center top; /* Focus on important content */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .uknc-blog-post-featured-image:hover img {
        transform: translateY(-4px); /* Reduced hover effect on mobile */
    }
    
    .uknc-blog-post-excerpt {
        font-size: 1rem;
    }
    
    .uknc-blog-author-section {
        gap: 15px;
    }
    
    .uknc-blog-author-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .uknc-blog-post-stats {
        gap: 15px;
    }
}

/* Content Section - Clean White Background */
.uknc-blog-post-content-section {
    background: var(--bg-white);
    padding: 80px 0;
}

.uknc-blog-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
}

.uknc-blog-post-content h1,
.uknc-blog-post-content h2,
.uknc-blog-post-content h3 {
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.uknc-blog-post-content h4,
.uknc-blog-post-content h5,
.uknc-blog-post-content h6 {
    color: var(--accent-color);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.uknc-blog-post-content h2 {
    font-size: 2.2rem;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 15px;
    margin-top: 3rem;
}

.uknc-blog-post-content h3 {
    font-size: 1.7rem;
}

.uknc-blog-post-content h4 {
    font-size: 1.4rem;
}

.uknc-blog-post-content p {
    margin-bottom: 1.8rem;
}

.uknc-blog-post-content a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.uknc-blog-post-content a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.uknc-blog-post-content ul,
.uknc-blog-post-content ol {
    margin: 2rem 0;
    padding-left: 2.5rem;
}

.uknc-blog-post-content li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.uknc-blog-post-content blockquote {
    background: var(--bg-light);
    border-left: 5px solid var(--accent-color);
    padding: 30px;
    margin: 3rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
    font-size: 1.2rem;
    position: relative;
    box-shadow: var(--shadow-light);
}

.uknc-blog-post-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-color);
    position: absolute;
    top: 10px;
    left: 25px;
    opacity: 0.3;
    font-weight: 800;
}

/* Featured Image Section - NY Times Style Positioning */
.uknc-blog-featured-image-section {
    background: var(--bg-white);
    padding: 40px 0 20px 0;
    border-bottom: 1px solid var(--border-color);
}

/* Featured Image - Professional Clean Implementation */
.uknc-blog-post-featured-image {
    margin: 0;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.uknc-blog-post-featured-image img {
    width: 100%;
    max-height: 500px; /* Maximum height to prevent excessive size */
    min-height: 300px; /* Minimum height for consistency */
    object-fit: cover; /* Fill width, allow minimal vertical cropping if needed */
    object-position: center top; /* Focus on center-top area to preserve important content */
    display: block;
    border-radius: 0; /* Clean rectangular look */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); /* Subtle professional shadow */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.uknc-blog-post-featured-image:hover img {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

/* Tags Section */
.uknc-blog-post-tags-section {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    margin: 50px 0;
    border: 1px solid var(--border-color);
}

.uknc-blog-post-tags-section h4 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 1.2rem;
}

.uknc-blog-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.uknc-blog-tag {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.uknc-blog-tag:hover {
    background: var(--accent-color);
    color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
}

/* Content Section */
.uknc-blog-post-content-section {
    padding: 3rem 0;
    background: white;
}

.uknc-blog-post-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.uknc-blog-post-content h1,
.uknc-blog-post-content h2,
.uknc-blog-post-content h3,
.uknc-blog-post-content h4,
.uknc-blog-post-content h5,
.uknc-blog-post-content h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
}

.uknc-blog-post-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.uknc-blog-post-content h3 {
    font-size: 1.5rem;
}

.uknc-blog-post-content p {
    margin-bottom: 1.5rem;
}

.uknc-blog-post-content ul,
.uknc-blog-post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.uknc-blog-post-content li {
    margin-bottom: 0.5rem;
}

.uknc-blog-post-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.uknc-blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.uknc-blog-post-content code {
    background: #f1f3f4;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.uknc-blog-post-content pre {
    background: #f1f3f4;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.uknc-blog-post-content a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.uknc-blog-post-content a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Tags and Sharing Styles */
.uknc-blog-post-tags {
    margin: 3rem 0 2rem 0;
    padding: 2.5rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.uknc-blog-post-tags::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.uknc-blog-tags-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.uknc-blog-tags-title i {
    color: var(--accent-color);
    font-size: 1rem;
}

.uknc-blog-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.uknc-blog-tag-item {
    background: white;
    color: #495057;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    border: 1px solid #d0d7de;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.uknc-blog-tag-item:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.3);
    text-decoration: none;
}

/* Enhanced Tags and Share Sections */
.uknc-blog-post-tags,
.uknc-blog-post-share {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.uknc-blog-post-share {
    margin-bottom: 3rem;
}

.uknc-blog-tags-title,
.uknc-blog-share-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.uknc-blog-tags-title i,
.uknc-blog-share-title i {
    color: var(--accent-color);
    font-size: 1rem;
}

.uknc-blog-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.uknc-blog-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    cursor: pointer;
    color: white;
    min-height: auto;
    position: relative;
}

.uknc-blog-share-btn i {
    font-size: 0.9rem;
}

.uknc-blog-twitter {
    background: #1da1f2;
    border: 1px solid #1da1f2;
}

.uknc-blog-twitter:hover {
    background: #0d8bf0;
    border-color: #0d8bf0;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(29, 161, 242, 0.4);
}

.uknc-blog-facebook {
    background: #4267b2;
    border: 1px solid #4267b2;
}

.uknc-blog-facebook:hover {
    background: #365899;
    border-color: #365899;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(66, 103, 178, 0.4);
}

.uknc-blog-linkedin {
    background: #0077b5;
    border: 1px solid #0077b5;
}

.uknc-blog-linkedin:hover {
    background: #005885;
    border-color: #005885;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0, 119, 181, 0.4);
}

.uknc-blog-copy-link {
    background: #6c757d;
    border: 1px solid #6c757d;
}

.uknc-blog-copy-link:hover {
    background: #5a6268;
    border-color: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(108, 117, 125, 0.4);
}

.uknc-blog-share-btn:hover {
    text-decoration: none;
    color: white;
}

/* Sidebar Styles - Complete Renovation */
.post-sidebar {
    padding-left: 1.5rem;
    position: sticky;
    top: 2rem;
    align-self: flex-start;
    /* Removed max-height and overflow-y to prevent scrollbar */
}

.sidebar-widget {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 0;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    width: 100%;
    overflow: hidden;
    transition: var(--transition);
}

.sidebar-widget:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.widget-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    color: white;
    margin: 0;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.widget-title::before {
    content: '';
    position: absolute;
    top: 0;
    right: -20px;
    width: 40px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: skewX(-20deg);
}

.widget-title i {
    color: var(--accent-color);
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.6rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.widget-content {
    padding: 2rem;
}

/* Table of Contents Widget */
.toc-widget .widget-content {
    padding: 2rem;
}

.toc-widget #table-of-contents {
    font-size: 0.9rem;
}

.toc-widget #table-of-contents .toc-message {
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

/* Table of Contents List */
.toc-widget #table-of-contents .toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
}

.toc-widget #table-of-contents .toc-list li {
    margin-bottom: 0.75rem;
}

.toc-widget #table-of-contents .toc-list li:last-child {
    margin-bottom: 0;
}

.toc-widget #table-of-contents a {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    border-radius: 0;
    background: transparent;
    border: none;
    font-weight: 500;
    min-height: 48px;
}

.toc-widget #table-of-contents a::before {
    content: counter(toc-counter, decimal);
    counter-increment: toc-counter;
    background: var(--accent-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.75rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.toc-widget #table-of-contents {
    counter-reset: toc-counter;
}

.toc-widget #table-of-contents a:hover {
    background: transparent;
    border-color: transparent;
    color: var(--accent-color);
    transform: none;
    box-shadow: none;
}

.toc-widget #table-of-contents a:hover::before {
    background: #0288d1;
    transform: scale(1.1);
}

/* Services Widget - Professional Cards */
.services-widget .widget-content {
    padding: 2rem;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-item {
    display: block;
    text-decoration: none;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-light);
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
    text-decoration: none;
}

.service-item-content {
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.service-item:hover .service-icon {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    transition: var(--transition);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    min-width: 50px;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0%, #29b6f6 100%);
    transition: left 0.3s ease;
}

.service-item:hover .service-icon::before {
    left: 0;
}

.service-icon i {
    position: relative;
    z-index: 2;
    color: white;
}

.service-item:hover .service-icon {
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.service-content {
    flex: 1;
}

.service-content h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    transition: var(--transition);
    line-height: 1.3;
}

.service-content p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: var(--transition);
}

.service-item:hover .service-content h6 {
    color: var(--accent-color);
}

.service-item:hover .service-content p {
    color: var(--text-dark);
}

/* Newsletter Widget - Professional Design */
.newsletter-widget .widget-content {
    padding: 2rem;
}

.newsletter-widget p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
    text-align: center;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-form input {
    border-radius: 6px !important;
    border: 1px solid #ddd !important;
    padding: 0.75rem !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    background: white !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
    color: var(--text-dark) !important;
    height: auto !important;
    line-height: 1.4 !important;
    outline: none !important;
}

.newsletter-form input::placeholder {
    color: #999;
    font-style: normal;
    opacity: 1;
}

.newsletter-form input:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.15) !important;
    outline: none !important;
    background: white !important;
}

.newsletter-form button {
    background: var(--accent-color) !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 0.75rem 1rem !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    color: white !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    cursor: pointer !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    position: relative !important;
    overflow: hidden !important;
    height: auto !important;
    line-height: 1.4 !important;
    min-height: auto !important;
}

.newsletter-form button:hover {
    background: #29b6f6 !important;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(79, 195, 247, 0.3) !important;
}

.newsletter-form button span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Post Navigation */
.post-navigation {
    background: var(--bg-light);
    padding: 4rem 0;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.post-navigation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.nav-post {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    height: 100%;
    box-shadow: var(--shadow-medium);
    border: 2px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transition: left 0.4s ease;
    z-index: 1;
    opacity: 0.05;
}

.nav-post:hover::before {
    left: 0;
}

.nav-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-color);
}

.nav-post-content {
    position: relative;
    z-index: 2;
}

.nav-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.nav-label i {
    color: var(--accent-color);
}

.nav-title {
    margin-top: 0.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
}

.nav-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.nav-title a:hover {
    color: var(--accent-color);
}

.prev-post .nav-post-content {
    text-align: left;
}

.next-post .nav-post-content {
    text-align: right;
}

.next-post .nav-post-content {
    text-align: right;
}

/* Related Posts */
.related-posts {
    padding: 5rem 0;
    background: var(--bg-light);
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.related-posts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.section-header {
    margin-bottom: 5rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.section-title {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.4rem;
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Related Posts Grid */
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.related-post-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    position: relative;
    backdrop-filter: blur(10px);
}

.related-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 2;
}

.related-post-card:hover::before {
    transform: scaleX(1);
}

.related-post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-color);
}

.related-post-card .post-image {
    height: 240px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--bg-light) 0%, #f0f4f8 100%);
}

.related-post-card .post-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.15) 0%, rgba(79, 195, 247, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.related-post-card:hover .post-image::after {
    opacity: 1;
}

.related-post-card .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-post-card:hover .post-image img {
    transform: scale(1.05);
}

.related-post-card .post-content {
    padding: 2.5rem 2rem;
    background: var(--bg-white);
    position: relative;
}

.related-post-card .post-title {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    line-height: 1.3;
    color: var(--primary-color);
}

.related-post-card .post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.related-post-card .post-title a:hover {
    color: var(--accent-color);
}

.related-post-card .post-excerpt {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-card .post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-weight: 500;
}

.related-post-card .post-meta .read-time {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Back to Blog */
.back-to-blog {
    padding: 4rem 0;
    background: var(--bg-white);
    text-align: center;
    border-top: 2px solid var(--border-color);
}

.back-to-blog .btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border: none;
    color: white;
    padding: 1.25rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.back-to-blog .btn:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, #29b6f6 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
    color: white;
    text-decoration: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .post-sidebar {
        padding-left: 0;
        margin-top: 3rem;
        position: static; /* Remove sticky positioning on mobile */
    }
    
    .sidebar-widget {
        margin-bottom: 2rem;
    }
    
    .widget-title {
        font-size: 1.2rem;
        padding: 1.75rem 2rem;
    }
    
    .widget-title i {
        font-size: 1.2rem;
        padding: 0.6rem;
    }
    
    .widget-content {
        padding: 2rem;
    }
    
    .service-item-content {
        padding: 1.25rem;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        min-width: 45px;
        flex-shrink: 0;
    }
    
    .service-content h6 {
        font-size: 1.2rem;
    }
    
    .newsletter-widget .widget-content {
        padding: 1.5rem;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .uknc-blog-share-buttons {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .uknc-blog-share-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .uknc-blog-tags-list {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-post {
        margin-bottom: 1rem;
    }
    
    .next-post .nav-post-content {
        text-align: left;
    }
}

/* Medium screens - prevent text squishing */
@media (max-width: 992px) and (min-width: 769px) {
    .service-item-content {
        padding: 2rem 1.25rem;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        min-width: 45px;
        flex-shrink: 0;
    }
    
    .service-content h6 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .service-content p {
        font-size: 0.85rem;
    }
    
    /* Related Posts - Medium screens */
    .related-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .section-subtitle {
        font-size: 1.2rem;
    }
}

/* Responsive Design */
@media (max-width: 576px) {
    .uknc-blog-post-header {
        padding: 2rem 0;
    }
    
    .uknc-blog-post-title {
        font-size: 2rem;
    }
    
    .widget-title {
        font-size: 1.1rem;
        padding: 1.5rem;
    }
    
    .widget-content {
        padding: 1.5rem;
    }
    
    .service-item-content {
        padding: 1.25rem;
        gap: 1rem;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin: 0 auto 0.75rem auto;
        flex-shrink: 0;
    }
    
    .service-content {
        text-align: center;
    }
    
    .service-content h6 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .newsletter-widget .widget-content {
        padding: 1.5rem;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    /* Related Posts - Mobile */
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .related-post-card .post-content {
        padding: 2rem 1.5rem;
    }
    
    .related-post-card .post-image {
        height: 200px;
    }
}