/*
Theme Name: Optymalizacja Kredytowa
Theme URI: https://optymalizacjakredytowa.pl
Author: Lukasz Turczyn
Author URI: https://optymalizacjakredytowa.pl
Description: Profesjonalny motyw WordPress dla bloga finansowego, idealnie dopasowany do stylu strony optymalizacjakredytowa.pl.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: optymalizacja-kredytowa
Tags: blog, one-column, custom-colors, custom-menu, featured-images, sticky-post, threaded-comments, translation-ready
*/

/* ==========================================================================
   Accessibility Utilities
   ========================================================================== */

/* Screen reader only text - hidden visually but accessible to assistive tech */
.visually-hidden,
.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary, #004A99);
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 8px 0;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Focus styles for better keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--accent, #F37021);
    outline-offset: 2px;
}

/* Remove default focus outline when using mouse */
*:focus:not(:focus-visible) {
    outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .blog-post-card,
    article.single-post,
    .author-box,
    .related-post-card {
        border: 2px solid currentColor;
    }

    .tag-link,
    .pagination .page-numbers {
        border: 1px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .blog-post-card:hover,
    .related-post-card:hover {
        transform: none;
    }

    .blog-post-card:hover .post-thumbnail {
        transform: none;
    }
}

/* ==========================================================================
   Blog-specific Styles (extending main site CSS)
   ========================================================================== */

/* ==========================================================================
   Modern Blog Header
   ========================================================================== */

.blog-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary, #004A99) 0%, var(--accent, #F37021) 100%);
}

.blog-title {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary, #004A99) 0%, #0066CC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.blog-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted, #6c757d);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==========================================================================
   Modern Blog Posts Grid
   ========================================================================== */

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

/* Modern Blog Post Card */
.blog-post-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 74, 153, 0.15);
    border-color: rgba(0, 74, 153, 0.1);
}

.post-thumbnail-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
    position: relative;
}

.post-thumbnail-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.03) 100%);
    pointer-events: none;
}

.post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-post-card:hover .post-thumbnail {
    transform: scale(1.08);
}

.post-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary, #004A99) 0%, #0066CC 50%, var(--accent, #F37021) 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 3.5rem;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.post-card-content {
    padding: 28px;
}

/* Modern Post Meta */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted, #6c757d);
    margin-bottom: 14px;
}

.post-meta > span,
.post-meta > time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #f8fafc;
    border-radius: 6px;
}

.post-meta i {
    color: var(--accent, #F37021);
    font-size: 0.75rem;
}

/* Modern Post Title */
.post-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 14px;
}

.post-title a {
    color: var(--text-dark, #1a1a2e);
    text-decoration: none;
    transition: color 0.2s ease;
    background: linear-gradient(to right, var(--accent, #F37021), var(--accent, #F37021)) no-repeat;
    background-size: 0% 2px;
    background-position: 0 100%;
    transition: background-size 0.3s ease, color 0.2s ease;
}

.post-title a:hover {
    color: var(--primary, #004A99);
    background-size: 100% 2px;
}

.post-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted, #6c757d);
    line-height: 1.7;
    margin-bottom: 18px;
}

/* Modern Read More Link - High Specificity Override */
.blog-posts-grid .blog-post-card .post-card-content a.read-more-link,
.blog-post-card a.read-more-link,
a.read-more-link,
.read-more-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 24px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #F37021 0%, #e85d0f 100%) !important;
    background-color: #F37021 !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(243, 112, 33, 0.25) !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: padding-box !important;
    -webkit-background-clip: padding-box !important;
}

.blog-posts-grid .blog-post-card .post-card-content a.read-more-link i,
.blog-post-card a.read-more-link i,
a.read-more-link i,
.read-more-link i {
    transition: transform 0.3s ease !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.blog-posts-grid .blog-post-card .post-card-content a.read-more-link:hover,
.blog-post-card a.read-more-link:hover,
a.read-more-link:hover,
.read-more-link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(243, 112, 33, 0.35) !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #e85d0f 0%, #d54d00 100%) !important;
    background-color: #e85d0f !important;
    -webkit-text-fill-color: #ffffff !important;
}

.read-more-link:hover i {
    transform: translateX(4px) !important;
}

/* ==========================================================================
   Modern Pagination
   ========================================================================== */

.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pagination .page-numbers,
.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 46px;
    padding: 10px 16px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark, #1a1a2e);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pagination .page-numbers:hover,
.nav-links .page-numbers:hover {
    border-color: var(--primary, #004A99);
    color: var(--primary, #004A99);
    background: rgba(0, 74, 153, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 74, 153, 0.15);
}

.pagination .page-numbers.current,
.nav-links .page-numbers.current {
    background: linear-gradient(135deg, var(--primary, #004A99) 0%, #0066CC 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 74, 153, 0.3);
}

.pagination .page-numbers.dots {
    background: transparent;
    border: none;
    box-shadow: none;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next,
.nav-links .page-numbers.prev,
.nav-links .page-numbers.next {
    padding: 10px 20px;
    font-weight: 600;
}

/* ==========================================================================
   Modern No Posts State
   ========================================================================== */

.no-posts {
    text-align: center;
    padding: 100px 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 24px;
    color: var(--text-muted, #6c757d);
}

.no-posts i {
    font-size: 5rem;
    margin-bottom: 25px;
    color: var(--primary, #004A99);
    opacity: 0.2;
}

.no-posts h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark, #1a1a2e);
}

.no-posts p {
    font-size: 1.05rem;
    max-width: 400px;
    margin: 0 auto;
}

/* ==========================================================================
   Modern Single Post Styles
   ========================================================================== */

article.single-post {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
    padding: 50px;
    border: 1px solid #f1f5f9;
}

.single-post .post-header {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
}

/* Post meta row with language switcher */
.post-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.post-meta-row .post-meta {
    flex: 1;
}

.post-meta-row .blog-language-switcher {
    flex-shrink: 0;
}

.single-post .post-meta {
    margin-bottom: 20px;
}

.single-post .post-meta > span,
.single-post .post-meta > time {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 6px 12px;
    border-radius: 8px;
}

.single-post .post-title {
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary, #004A99) 0%, #0066CC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.25;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.single-post .post-lead {
    font-size: 1.2rem;
    color: var(--text-muted, #6c757d);
    line-height: 1.8;
    font-style: italic;
    padding-left: 20px;
    border-left: 3px solid var(--accent, #F37021);
}

/* Featured Image */
.post-featured-image {
    margin: 0 -50px 35px;
    border-radius: 0;
    overflow: hidden;
}

.post-featured-image .featured-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Modern Post Content
   ========================================================================== */

.post-content {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--text-dark, #1a1a2e);
}

.post-content h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary, #004A99);
    margin-top: 50px;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.post-content h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, var(--accent, #F37021) 0%, var(--primary, #004A99) 100%);
    border-radius: 2px;
    flex-shrink: 0;
}

.post-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary, #004A99);
    margin-top: 40px;
    margin-bottom: 18px;
}

.post-content p {
    margin-bottom: 22px;
}

.post-content a {
    color: var(--accent, #F37021);
    text-decoration: none;
    font-weight: 500;
    background: linear-gradient(to right, var(--accent, #F37021), var(--accent, #F37021)) no-repeat;
    background-size: 100% 2px;
    background-position: 0 100%;
    transition: background-size 0.3s ease;
}

.post-content a:hover {
    background-size: 100% 100%;
    color: #fff;
}

.post-content ul,
.post-content ol {
    margin-bottom: 24px;
    padding-left: 0;
    list-style: none;
}

.post-content ul li,
.post-content ol li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

.post-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--accent, #F37021) 0%, #e85d0f 100%);
    border-radius: 50%;
}

.post-content ol {
    counter-reset: item;
}

.post-content ol li::before {
    content: counter(item);
    counter-increment: item;
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary, #004A99) 0%, #0066CC 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-content blockquote {
    position: relative;
    border: none;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 30px 30px 30px 70px;
    margin: 35px 0;
    font-style: italic;
    color: var(--text-dark, #1a1a2e);
    font-size: 1.15rem;
    line-height: 1.8;
}

.post-content blockquote::before {
    content: '"';
    position: absolute;
    left: 20px;
    top: 15px;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--accent, #F37021);
    opacity: 0.3;
    line-height: 1;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 30px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.post-content pre,
.post-content code {
    background: #f4f6f8;
    border-radius: 8px;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
}

.post-content pre {
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
}

.post-content code {
    padding: 2px 6px;
}

/* ==========================================================================
   Modern Post Tags
   ========================================================================== */

.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 45px;
    padding-top: 30px;
    border-top: 2px solid #f1f5f9;
}

.tags-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text-dark, #1a1a2e);
    font-size: 0.95rem;
}

.tags-label i {
    color: var(--accent, #F37021);
}

.tag-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted, #6c757d);
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: linear-gradient(135deg, var(--primary, #004A99) 0%, #0066CC 100%);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 74, 153, 0.25);
}

/* ==========================================================================
   Modern Author Box
   ========================================================================== */

.author-box {
    display: flex;
    gap: 25px;
    margin-top: 50px;
    padding: 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.author-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent, #F37021) 0%, var(--primary, #004A99) 100%);
}

.author-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary, #004A99);
    margin-bottom: 8px;
}

.author-bio {
    font-size: 0.95rem;
    color: var(--text-muted, #6c757d);
    line-height: 1.7;
    margin-bottom: 15px;
}

.author-social {
    display: flex;
    gap: 12px;
}

.author-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary, #004A99) 0%, #0066CC 100%);
    color: #fff;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 74, 153, 0.2);
}

.author-social a:hover {
    background: linear-gradient(135deg, var(--accent, #F37021) 0%, #e85d0f 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(243, 112, 33, 0.3);
}

/* ==========================================================================
   Modern Post Navigation
   ========================================================================== */

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 50px;
    padding-top: 35px;
    border-top: 2px solid #f1f5f9;
}

.post-navigation a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-navigation a:hover {
    background: #fff;
    border-color: var(--primary, #004A99);
    box-shadow: 0 8px 25px rgba(0, 74, 153, 0.1);
    transform: translateY(-3px);
}

.post-navigation .nav-prev:hover {
    transform: translateY(-3px);
}

.nav-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted, #6c757d);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-label i {
    color: var(--accent, #F37021);
    font-size: 0.85rem;
}

.nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary, #004A99);
    line-height: 1.5;
    transition: color 0.2s ease;
}

.post-navigation a:hover .nav-title {
    color: var(--accent, #F37021);
}

.nav-next {
    text-align: right;
}

.nav-next .nav-label {
    justify-content: flex-end;
}

.nav-prev.empty,
.nav-next.empty {
    visibility: hidden;
}

/* ==========================================================================
   Modern Related Posts
   ========================================================================== */

.related-posts {
    margin-top: 50px;
    padding: 35px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.related-posts h2,
.related-posts h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary, #004A99);
    margin-bottom: 25px;
}

.related-posts h2::before,
.related-posts h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--accent, #F37021) 0%, var(--primary, #004A99) 100%);
    border-radius: 2px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-post-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e8eef3;
}

.related-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 74, 153, 0.12);
    border-color: rgba(0, 74, 153, 0.15);
}

.related-post-card .related-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-post-card:hover .related-thumbnail {
    transform: scale(1.05);
}

.related-thumbnail-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--primary, #004A99) 0%, #0066CC 50%, var(--accent, #F37021) 100%);
    background-size: 200% 200%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 2.5rem;
}

.related-post-card h3,
.related-post-card h4 {
    padding: 18px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark, #1a1a2e);
    line-height: 1.5;
    transition: color 0.2s ease;
    margin: 0;
}

.related-post-card h3::before,
.related-post-card h4::before {
    display: none;
}

.related-post-card:hover h3,
.related-post-card:hover h4 {
    color: var(--primary, #004A99);
}

/* ==========================================================================
   Modern Comments Section
   ========================================================================== */

.comments-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color, #e0e0e0);
}

/* Comments Title - Modern Style */
.comments-title,
.comment-reply-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary, #004A99);
    margin-bottom: 30px;
}

.comments-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, var(--accent, #F37021) 0%, var(--primary, #004A99) 100%);
    border-radius: 2px;
}

/* Comment List */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Individual Comment - Card Style */
.comment {
    position: relative;
    background: #fff;
    border: 1px solid #e8eef3;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.comment:hover {
    border-color: var(--primary, #004A99);
    box-shadow: 0 4px 20px rgba(0, 74, 153, 0.08);
}

/* Nested Comments (Replies) */
.comment .children {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    padding-left: 20px;
    border-left: 3px solid var(--accent, #F37021);
}

.comment .children .comment {
    background: #f8fafc;
    margin-bottom: 15px;
}

.comment .children .comment:last-child {
    margin-bottom: 0;
}

/* Comment Header */
.comment-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 0;
}

.comment-author .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #f0f4f8;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-author .fn {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary, #004A99);
    text-decoration: none;
    transition: color 0.2s ease;
}

.comment-author .fn a {
    color: inherit;
    text-decoration: none;
}

.comment-author .fn a:hover {
    color: var(--accent, #F37021);
}

.comment-author .says {
    display: none;
}

/* Comment Meta */
.comment-metadata,
.comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted, #6c757d);
    margin-top: 4px;
}

.comment-metadata a,
.comment-meta a {
    color: inherit;
    text-decoration: none;
}

.comment-metadata a:hover,
.comment-meta a:hover {
    color: var(--primary, #004A99);
}

/* Comment Body/Content */
.comment-content {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f4f8;
}

.comment-content p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-dark, #1a1a2e);
    margin: 0 0 12px 0;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

/* Awaiting Moderation Notice */
.comment-awaiting-moderation {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fed7aa;
    border-radius: 8px;
    font-size: 0.8rem;
    font-style: italic;
    color: #c2410c;
}

.comment-awaiting-moderation::before {
    content: '⏳';
}

/* Reply Button - Modern Style */
.reply {
    margin-top: 16px;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 2px solid var(--primary, #004A99);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary, #004A99);
    text-decoration: none;
    transition: all 0.2s ease;
}

.comment-reply-link::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: '\f3e5';
    font-size: 0.85rem;
    margin-right: 6px;
}

.comment-reply-link:hover {
    background: var(--primary, #004A99);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 74, 153, 0.25);
}

/* ==========================================================================
   Modern Comment Form
   ========================================================================== */

.comment-respond {
    margin-top: 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #e2e8f0;
}

.comment-respond .comment-reply-title {
    margin-bottom: 25px;
}

.comment-respond .comment-reply-title small {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 400;
}

.comment-respond .comment-reply-title small a {
    color: var(--accent, #F37021);
    text-decoration: none;
}

/* Logged In Notice */
.logged-in-as {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-muted, #6c757d);
}

.logged-in-as a {
    color: var(--primary, #004A99);
    font-weight: 500;
    text-decoration: none;
}

.logged-in-as a:hover {
    color: var(--accent, #F37021);
}

/* Form Fields */
.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 20px;
}

.comment-form label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark, #1a1a2e);
    margin-bottom: 8px;
}

.comment-form .required {
    color: var(--accent, #F37021);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark, #1a1a2e);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.comment-form input[type="text"]::placeholder,
.comment-form input[type="email"]::placeholder,
.comment-form input[type="url"]::placeholder,
.comment-form textarea::placeholder {
    color: #94a3b8;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary, #004A99);
    box-shadow: 0 0 0 4px rgba(0, 74, 153, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Form Notes */
.comment-notes,
.comment-form-cookies-consent {
    font-size: 0.85rem;
    color: var(--text-muted, #6c757d);
    margin-bottom: 20px;
    line-height: 1.5;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.comment-form-cookies-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary, #004A99);
    flex-shrink: 0;
}

/* reCAPTCHA Container */
.g-recaptcha {
    margin: 20px 0;
}

/* Submit Button - Modern Style */
.form-submit {
    margin-top: 25px;
}

.comment-form .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--accent, #F37021) 0%, #e85d0f 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 112, 33, 0.3);
}

.comment-form .submit:hover {
    background: linear-gradient(135deg, #e85d0f 0%, #d54d00 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 112, 33, 0.4);
}

.comment-form .submit:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 112, 33, 0.3);
}

/* ==========================================================================
   Comments Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .comment {
        padding: 18px;
        border-radius: 12px;
    }

    .comment .children {
        padding-left: 15px;
    }

    .comment-author .avatar {
        width: 42px;
        height: 42px;
    }

    .comment-respond {
        padding: 20px;
        border-radius: 16px;
    }

    .comment-form .submit {
        width: 100%;
    }

    .comments-title,
    .comment-reply-title {
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 992px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }

    .single-post {
        padding: 25px;
        border-radius: 16px;
    }

    .single-post .post-title {
        font-size: 1.7rem;
    }

    .post-featured-image {
        margin: 0 -25px 25px;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar {
        margin: 0 auto;
    }

    .author-social {
        justify-content: center;
    }

    .post-navigation {
        flex-direction: column;
    }

    .post-navigation a {
        max-width: 100%;
    }

    .nav-next {
        text-align: left;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-title {
        font-size: 1.8rem;
    }

    .post-card-content {
        padding: 20px;
    }
}

/* ==========================================================================
   Post Card Link Style (Archive)
   ========================================================================== */

.post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.post-card-image {
    overflow: hidden;
    aspect-ratio: 16/9;
}

.post-card-image .post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.post-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary, #004A99) 0%, #0066CC 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 4rem;
}

.post-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted, #6c757d);
    margin-bottom: 12px;
}

.post-card-meta i {
    margin-right: 5px;
    color: var(--accent, #F37021);
}

.post-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--primary, #004A99);
    transition: color 0.2s ease;
}

.blog-post-card:hover .post-card-title {
    color: var(--accent, #F37021);
}

.post-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted, #6c757d);
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent, #F37021);
    transition: all 0.2s ease;
}

.blog-post-card:hover .post-card-read-more {
    gap: 12px;
}

/* Archive Header */
.archive-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.archive-header .blog-title i {
    margin-right: 10px;
    color: var(--accent, #F37021);
}

/* Blog Pagination */
.blog-pagination {
    margin-top: 50px;
}

.pagination-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-list li .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark, #1a1a2e);
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-list li .page-numbers:hover {
    border-color: var(--primary, #004A99);
    color: var(--primary, #004A99);
}

.pagination-list li .page-numbers.current {
    background: var(--primary, #004A99);
    border-color: var(--primary, #004A99);
    color: #fff;
}

/* Back to Blog Button */
.btn-back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 24px;
    background: var(--primary, #004A99);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-back-to-blog:hover {
    background: var(--primary-dark, #003870);
    transform: translateY(-2px);
}

/* ==========================================================================
   404 Error Page
   ========================================================================== */

.error-404-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
}

.error-404-content {
    background: #fff;
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
}

.error-404-icon {
    font-size: 5rem;
    color: var(--accent, #F37021);
    margin-bottom: 20px;
}

.error-404-title {
    font-size: 6rem;
    font-weight: 800;
    color: var(--primary, #004A99);
    line-height: 1;
    margin-bottom: 10px;
}

.error-404-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark, #1a1a2e);
    margin-bottom: 15px;
}

.error-404-description {
    font-size: 1.05rem;
    color: var(--text-muted, #6c757d);
    max-width: 400px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.error-404-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.error-404-actions .btn-primary,
.error-404-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.error-404-actions .btn-primary {
    background: var(--accent, #F37021);
    color: #fff;
}

.error-404-actions .btn-primary:hover {
    background: var(--accent-darker, #D95B0E);
    transform: translateY(-2px);
}

.error-404-actions .btn-secondary {
    background: #fff;
    color: var(--primary, #004A99);
    border: 2px solid var(--primary, #004A99);
}

.error-404-actions .btn-secondary:hover {
    background: var(--primary, #004A99);
    color: #fff;
    transform: translateY(-2px);
}

/* 404 Recent Posts */
.error-404-recent {
    text-align: center;
}

.error-404-recent h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark, #1a1a2e);
    margin-bottom: 25px;
}

.recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.recent-post-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.recent-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.recent-post-card .recent-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.recent-thumbnail-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--primary, #004A99) 0%, #0066CC 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 2rem;
}

.recent-post-card h4 {
    padding: 15px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark, #1a1a2e);
    line-height: 1.4;
    text-align: left;
}

@media (max-width: 768px) {
    .error-404-title {
        font-size: 4rem;
    }

    .error-404-subtitle {
        font-size: 1.2rem;
    }

    .error-404-actions {
        flex-direction: column;
    }

    .recent-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Dynamic Calculator Ad Component - Light & Readable Design
   ========================================================================== */

.calculator-ad {
    position: relative;
    display: flex;
    gap: 28px;
    margin: 50px 0;
    padding: 35px;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    border: 2px solid #e2e8f0;
}

.calculator-ad--primary {
    border-left: 5px solid var(--primary, #004A99);
}

.calculator-ad--secondary {
    border-left: 5px solid var(--accent, #F37021);
}

.calculator-ad:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 74, 153, 0.12);
    border-color: var(--primary, #004A99);
}

.calculator-ad__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary, #004A99) 0%, #0066CC 100%);
    border-radius: 16px;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(0, 74, 153, 0.25);
}

.calculator-ad--secondary .calculator-ad__icon {
    background: linear-gradient(135deg, var(--accent, #F37021) 0%, #e85d0f 100%);
    box-shadow: 0 6px 20px rgba(243, 112, 33, 0.25);
}

.calculator-ad__icon i {
    font-size: 1.8rem;
    color: #fff;
}

.calculator-ad__content {
    flex: 1;
}

.calculator-ad__badge {
    display: inline-block;
    padding: 5px 12px;
    background: var(--primary, #004A99);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.calculator-ad--secondary .calculator-ad__badge {
    background: var(--accent, #F37021);
}

.calculator-ad__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark, #1a1a2e);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.calculator-ad__description {
    font-size: 1rem;
    color: var(--text-muted, #6c757d);
    line-height: 1.7;
    margin: 0 0 20px 0;
    max-width: 100%;
}

.calculator-ad__cta,
.post-content .calculator-ad__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent, #F37021) 0%, #e85d0f 100%) !important;
    color: #fff !important;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 112, 33, 0.3);
}

.calculator-ad__cta i {
    transition: transform 0.3s ease;
    color: #fff !important;
}

.calculator-ad__cta:hover,
.post-content .calculator-ad__cta:hover {
    background: linear-gradient(135deg, #e85d0f 0%, #d54d00 100%) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 112, 33, 0.4);
}

.calculator-ad__cta:hover i {
    transform: translateX(4px);
}

/* Calculator Ad Responsive */
@media (max-width: 768px) {
    .calculator-ad {
        flex-direction: column;
        text-align: center;
        padding: 28px;
        gap: 20px;
    }

    .calculator-ad__icon {
        width: 64px;
        height: 64px;
        margin: 0 auto;
    }

    .calculator-ad__icon i {
        font-size: 1.6rem;
    }

    .calculator-ad__title {
        font-size: 1.25rem;
    }

    .calculator-ad__description {
        font-size: 0.95rem;
    }

    .calculator-ad__cta {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Enhanced Readability Styles
   ========================================================================== */

/* Better text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Improved post content readability */
.post-content {
    font-size: 1.125rem;
    line-height: 1.9;
    letter-spacing: 0.01em;
}

.post-content p {
    margin-bottom: 1.75em;
}

/* First paragraph emphasis (drop cap effect alternative) */
.post-content > p:first-of-type {
    font-size: 1.2rem;
    color: var(--text-dark, #1a1a2e);
    line-height: 1.8;
}

/* Better paragraph spacing after headings */
.post-content h2 + p,
.post-content h3 + p {
    margin-top: 0;
}

/* Highlight important text */
.post-content strong {
    color: var(--primary, #004A99);
    font-weight: 700;
}

.post-content em {
    color: var(--text-dark, #1a1a2e);
    font-style: italic;
}

/* Better link styling for readability */
.post-content a:not(.calculator-ad__cta):not(.read-more-link):not(.tag-link) {
    color: var(--accent, #F37021);
    text-decoration: underline;
    text-decoration-color: rgba(243, 112, 33, 0.3);
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    transition: all 0.2s ease;
    background: none;
}

.post-content a:not(.calculator-ad__cta):not(.read-more-link):not(.tag-link):hover {
    text-decoration-color: var(--accent, #F37021);
    background: rgba(243, 112, 33, 0.1);
    border-radius: 2px;
    color: var(--accent, #F37021);
}

/* Better table styling */
.post-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.post-content table thead {
    background: linear-gradient(135deg, var(--primary, #004A99) 0%, #0066CC 100%);
}

.post-content table th {
    padding: 16px 20px;
    font-weight: 700;
    color: #fff;
    text-align: left;
    font-size: 0.95rem;
}

.post-content table td {
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
}

.post-content table tbody tr {
    background: #fff;
    transition: background 0.2s ease;
}

.post-content table tbody tr:hover {
    background: #f8fafc;
}

.post-content table tbody tr:last-child td {
    border-bottom: none;
}

/* Better figure/image captions */
.post-content figure {
    margin: 35px 0;
}

.post-content figcaption {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-muted, #6c757d);
    text-align: center;
    font-style: italic;
}

/* Better horizontal rule */
.post-content hr {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--accent, #F37021) 50%, transparent 100%);
    margin: 50px auto;
    max-width: 200px;
    border-radius: 2px;
}

/* Callout/Note boxes */
.post-content .wp-block-quote.is-style-plain,
.post-content .callout,
.post-content .note {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid var(--primary, #004A99);
    border-radius: 0 12px 12px 0;
    padding: 20px 25px;
    margin: 30px 0;
    font-style: normal;
}

.post-content .callout::before,
.post-content .note::before {
    content: 'ℹ️';
    margin-right: 8px;
}

/* Warning boxes */
.post-content .warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    border-radius: 0 12px 12px 0;
    padding: 20px 25px;
    margin: 30px 0;
}

.post-content .warning::before {
    content: '⚠️';
    margin-right: 8px;
}

/* Success/Tip boxes */
.post-content .tip,
.post-content .success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-left: 4px solid #22c55e;
    border-radius: 0 12px 12px 0;
    padding: 20px 25px;
    margin: 30px 0;
}

.post-content .tip::before,
.post-content .success::before {
    content: '💡';
    margin-right: 8px;
}

/* Better definition lists */
.post-content dl {
    margin: 25px 0;
}

.post-content dt {
    font-weight: 700;
    color: var(--primary, #004A99);
    font-size: 1.05rem;
    margin-top: 20px;
}

.post-content dt:first-child {
    margin-top: 0;
}

.post-content dd {
    margin-left: 0;
    padding-left: 20px;
    border-left: 3px solid #f1f5f9;
    color: var(--text-muted, #6c757d);
    margin-top: 8px;
}

/* Keyboard keys styling */
.post-content kbd {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.85rem;
    font-family: 'Fira Code', monospace;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: 0 2px 0 #cbd5e1;
}

/* Mark/highlight */
.post-content mark {
    background: linear-gradient(120deg, rgba(243, 112, 33, 0.2) 0%, rgba(243, 112, 33, 0.3) 100%);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Better abbreviations */
.post-content abbr {
    text-decoration: underline dotted;
    text-underline-offset: 3px;
    cursor: help;
}

/* ==========================================================================
   SEO Optimized Breadcrumbs (Enhanced)
   ========================================================================== */

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 16px 0;
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: var(--text-muted, #6c757d);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 14px 20px;
}

.breadcrumbs a {
    color: var(--primary, #004A99);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.breadcrumbs a:hover {
    color: var(--accent, #F37021);
    text-decoration: underline;
}

.breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    margin: 0 10px;
    color: #cbd5e1;
    font-size: 0.65rem;
}

.breadcrumb-current {
    color: var(--text-dark, #1a1a2e);
    font-weight: 600;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .breadcrumbs {
        font-size: 0.8rem;
        padding: 12px 16px;
        margin-bottom: 16px;
    }

    .breadcrumb-separator {
        margin: 0 8px;
    }

    .breadcrumb-current {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .breadcrumbs {
        font-size: 0.75rem;
        padding: 10px 14px;
    }

    .breadcrumb-current {
        max-width: 150px;
    }
}

/* Legacy breadcrumbs support */
.breadcrumbs.legacy {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0;
    font-size: 0.9rem;
    color: var(--text-muted, #6c757d);
}

.breadcrumbs a {
    color: var(--primary, #004A99);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--accent, #F37021);
}

.breadcrumbs .separator {
    color: #cbd5e1;
    font-size: 0.75rem;
}

.breadcrumbs .current {
    color: var(--text-dark, #1a1a2e);
    font-weight: 500;
}

/* ==========================================================================
   Table of Contents (for long posts)
   ========================================================================== */

.table-of-contents {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px 30px;
    margin: 30px 0;
}

.table-of-contents__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary, #004A99);
    margin-bottom: 18px;
}

.table-of-contents__title i {
    color: var(--accent, #F37021);
}

.table-of-contents__list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-item;
}

.table-of-contents__list li {
    counter-increment: toc-item;
    margin-bottom: 10px;
}

.table-of-contents__list li::before {
    content: counter(toc-item) ".";
    display: inline-block;
    width: 24px;
    color: var(--accent, #F37021);
    font-weight: 600;
}

.table-of-contents__list a {
    color: var(--text-dark, #1a1a2e);
    text-decoration: none;
    transition: all 0.2s ease;
}

.table-of-contents__list a:hover {
    color: var(--accent, #F37021);
    padding-left: 4px;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .calculator-ad,
    .author-social,
    .post-navigation,
    .related-posts,
    .comments-section,
    .site-header,
    .site-footer {
        display: none !important;
    }

    article.single-post {
        box-shadow: none;
        border: none;
        padding: 0;
        max-width: 100%;
    }

    .post-content a {
        color: #000;
        text-decoration: underline;
    }

    .post-content a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* ==========================================================================
   Blog Language Switcher (Polylang Integration)
   ========================================================================== */

.blog-language-switcher {
    position: relative;
    display: inline-flex;
}

.blog-lang-current {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark, #1a1a2e);
    transition: all 0.2s ease;
}

.blog-lang-current:hover {
    border-color: var(--primary, #004A99);
    box-shadow: 0 4px 12px rgba(0, 74, 153, 0.1);
}

.blog-lang-current .lang-flag {
    width: 22px;
    height: 16px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.blog-lang-current .lang-chevron {
    font-size: 0.7rem;
    color: var(--text-muted, #6c757d);
    transition: transform 0.2s ease;
}

.blog-lang-options.open + .blog-lang-current .lang-chevron,
.blog-language-switcher:has(.blog-lang-options.open) .lang-chevron {
    transform: rotate(180deg);
    color: var(--primary, #004A99);
}

.blog-lang-options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 8px;
    list-style: none;
    margin: 0;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.blog-lang-options.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.blog-lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--text-dark, #1a1a2e);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.blog-lang-option:hover {
    background: rgba(0, 74, 153, 0.06);
    color: var(--primary, #004A99);
}

.blog-lang-option.active {
    background: linear-gradient(135deg, rgba(0, 74, 153, 0.08) 0%, rgba(0, 74, 153, 0.04) 100%);
    color: var(--primary, #004A99);
    font-weight: 600;
}

.blog-lang-option.active::after {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--primary, #004A99);
    margin-left: auto;
}

.blog-lang-option .lang-flag {
    width: 22px;
    height: 16px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.blog-lang-option.no-translation {
    opacity: 0.5;
    cursor: not-allowed;
}

.blog-lang-option.no-translation:hover {
    background: transparent;
    color: var(--text-muted, #6c757d);
}

.no-trans-badge {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted, #6c757d);
}

/* ==========================================================================
   Language Suggestion Banner
   ========================================================================== */

.lang-suggestion-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    max-width: 600px;
    width: calc(100% - 40px);
    animation: slideUpBanner 0.4s ease;
}

@keyframes slideUpBanner {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.lang-suggestion-content {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border: 2px solid var(--primary, #004A99);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 74, 153, 0.2);
}

.lang-suggestion-content > i.fa-globe {
    font-size: 1.4rem;
    color: var(--primary, #004A99);
    flex-shrink: 0;
}

.lang-suggestion-text {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark, #1a1a2e);
}

.lang-suggestion-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--accent, #F37021) 0%, #e85d0f 100%);
    color: #fff !important;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 10px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lang-suggestion-switch:hover {
    background: linear-gradient(135deg, #e85d0f 0%, #d54d00 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 112, 33, 0.35);
}

.lang-suggestion-switch i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.lang-suggestion-switch:hover i {
    transform: translateX(3px);
}

.lang-suggestion-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-muted, #6c757d);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.lang-suggestion-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark, #1a1a2e);
}

/* Responsive */
@media (max-width: 600px) {
    .lang-suggestion-banner {
        bottom: 10px;
        width: calc(100% - 20px);
    }

    .lang-suggestion-content {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px 16px;
    }

    .lang-suggestion-content > i.fa-globe {
        display: none;
    }

    .lang-suggestion-text {
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
    }

    .lang-suggestion-switch {
        flex: 1;
        justify-content: center;
    }

    .lang-suggestion-close {
        position: absolute;
        top: 8px;
        right: 8px;
    }
}

/* RTL support for Hebrew */
[dir="rtl"] .lang-suggestion-content,
html[lang="he"] .lang-suggestion-content,
.lang-suggestion-banner[data-lang="he"] .lang-suggestion-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .blog-lang-options,
html[lang="he"] .blog-lang-options {
    right: auto;
    left: 0;
}

[dir="rtl"] .blog-lang-option,
html[lang="he"] .blog-lang-option {
    flex-direction: row-reverse;
}

/* ==========================================================================
   Language Badges on Post Cards
   ========================================================================== */

.post-thumbnail-wrapper {
    position: relative;
}

.language-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 10;
}

.lang-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 24px;
    padding: 0 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Default badge style (inactive/link) */
.lang-badge {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-muted, #6c757d);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.lang-badge:hover {
    background: var(--primary, #004A99);
    color: #fff;
    border-color: var(--primary, #004A99);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 74, 153, 0.3);
}

/* Current language badge */
.lang-badge--current {
    background: linear-gradient(135deg, var(--primary, #004A99) 0%, #0066CC 100%);
    color: #fff;
    border-color: transparent;
    cursor: default;
}

.lang-badge--current:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Language-specific colors */
.lang-badge--pl {
    /* Polish - red/white theme hint */
}

.lang-badge--pl.lang-badge--current {
    background: linear-gradient(135deg, #dc143c 0%, #b91030 100%);
}

.lang-badge--en {
    /* English - blue theme hint */
}

.lang-badge--en.lang-badge--current {
    background: linear-gradient(135deg, #012169 0%, #1a3a7a 100%);
}

.lang-badge--ru {
    /* Russian - tricolor hint */
}

.lang-badge--ru.lang-badge--current {
    background: linear-gradient(135deg, #0039a6 0%, #004fc4 100%);
}

.lang-badge--uk {
    /* Ukrainian - blue/yellow hint */
}

.lang-badge--uk.lang-badge--current {
    background: linear-gradient(135deg, #005BBB 0%, #0073e6 100%);
}

.lang-badge--he {
    /* Hebrew - Israel blue hint */
}

.lang-badge--he.lang-badge--current {
    background: linear-gradient(135deg, #0038b8 0%, #0050e0 100%);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .language-badges {
        top: 8px;
        right: 8px;
        gap: 4px;
    }

    .lang-badge {
        min-width: 28px;
        height: 20px;
        padding: 0 6px;
        font-size: 0.65rem;
        border-radius: 4px;
    }
}

/* =============================================================================
   BLOG FILTER BAR - Category & Language Filters
   ============================================================================= */

.blog-filter-bar {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid rgba(0, 74, 153, 0.1);
    padding: 1rem 0;
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.filter-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-categories {
    flex: 1;
    min-width: 0;
}

.filter-languages {
    flex-shrink: 0;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label i {
    color: var(--primary, #004A99);
    opacity: 0.7;
}

/* Category Chips */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    background: #fff;
    border: 1px solid rgba(0, 74, 153, 0.15);
    border-radius: 20px;
    color: var(--text-dark, #334155);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    white-space: nowrap;
}

.filter-chip:hover {
    background: rgba(0, 74, 153, 0.08);
    border-color: var(--primary, #004A99);
    color: var(--primary, #004A99);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 74, 153, 0.15);
}

.filter-chip--active {
    background: linear-gradient(135deg, var(--primary, #004A99) 0%, #0066CC 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 74, 153, 0.3);
}

.filter-chip--active:hover {
    background: linear-gradient(135deg, #003d80 0%, #0055aa 100%);
    color: #fff;
    transform: none;
}

.filter-chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.25rem;
    padding: 0 0.4rem;
    background: rgba(0, 74, 153, 0.1);
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary, #004A99);
}

.filter-chip--active .filter-chip-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Language Filter Chips */
.filter-lang-chips {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.filter-lang-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    height: 2rem;
    padding: 0 0.6rem;
    background: #fff;
    border: 1.5px solid rgba(0, 74, 153, 0.2);
    border-radius: 6px;
    color: var(--text-dark, #334155);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.filter-lang-chip:hover {
    border-color: var(--primary, #004A99);
    color: var(--primary, #004A99);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 74, 153, 0.2);
}

.filter-lang-chip--active {
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.filter-lang-chip--active:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Language-specific active colors */
.filter-lang-chip--pl.filter-lang-chip--active {
    background: linear-gradient(135deg, #dc143c 0%, #b91030 100%);
}

.filter-lang-chip--en.filter-lang-chip--active {
    background: linear-gradient(135deg, #012169 0%, #1a3a7a 100%);
}

.filter-lang-chip--ru.filter-lang-chip--active {
    background: linear-gradient(135deg, #0039a6 0%, #004fc4 100%);
}

.filter-lang-chip--uk.filter-lang-chip--active {
    background: linear-gradient(135deg, #005BBB 0%, #0073e6 100%);
}

.filter-lang-chip--he.filter-lang-chip--active {
    background: linear-gradient(135deg, #0038b8 0%, #0050e0 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-filter-bar {
        padding: 0.75rem 0;
    }

    .filter-bar-inner {
        padding: 0 1rem;
        gap: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-group {
        width: 100%;
    }

    .filter-categories {
        order: 1;
    }

    .filter-languages {
        order: 0;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid rgba(0, 74, 153, 0.1);
    }

    .filter-chips {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .filter-chips::-webkit-scrollbar {
        display: none;
    }

    .filter-chip {
        flex-shrink: 0;
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .filter-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .filter-bar-inner {
        padding: 0 0.75rem;
    }

    .filter-chip {
        padding: 0.35rem 0.65rem;
        font-size: 0.75rem;
        border-radius: 16px;
    }

    .filter-chip-count {
        min-width: 1.2rem;
        height: 1.1rem;
        padding: 0 0.3rem;
        font-size: 0.65rem;
    }

    .filter-lang-chip {
        min-width: 2rem;
        height: 1.8rem;
        font-size: 0.7rem;
    }
}
