/* =========================================
   Blog System Styles - Workbook
   Modern & Motivating Reading Environment
   ========================================= */

:root {
    --blog-primary: #01c82f;
    --blog-primary-hover: #0be73f;
    --blog-primary-light: rgba(1, 200, 47, 0.08);
    --blog-secondary: #9bf090;
    --blog-dark: #1a1a2e;
    --blog-text: #333333;
    --blog-text-dark: #1a1a2e;
    --blog-text-muted: #6c757d;
    --blog-bg: #eefeff;
    --blog-card-bg: #ffffff;
    --blog-border: rgba(1, 200, 47, 0.15);
    --blog-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --blog-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --blog-shadow-lg: 0 10px 15px -3px rgba(1, 200, 47, 0.12), 0 4px 6px -2px rgba(1, 200, 47, 0.08);
    --blog-shadow-xl: 0 20px 25px -5px rgba(1, 200, 47, 0.15), 0 10px 10px -5px rgba(1, 200, 47, 0.1);
}

/* =========================================
   Blog Layout
   ========================================= */
.blog-section {
    padding: 100px 0 80px;
    background: linear-gradient(180deg, #ffffff 0%, var(--blog-bg) 100%);
    min-height: 100vh;
}

.blog-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #01c82f 0%, #00c87a 100%);
    color: white;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></svg>') repeat;
    opacity: 0.3;
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    position: relative;
}

.blog-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    font-weight: 400;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   Post Cards
   ========================================= */
.blog-card {
    background: var(--blog-card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--blog-shadow-sm);
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, transparent 0%, rgba(1, 200, 47, 0.1) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--blog-shadow-xl);
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card-image {
    position: relative;
    padding-top: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(1, 200, 47, 0.1) 0%, rgba(0, 200, 122, 0.1) 100%);
}

.blog-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.08);
}

.blog-card-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--blog-primary);
    opacity: 0.25;
}

.blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--blog-primary-light);
    color: var(--blog-primary);
    border-radius: 24px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    align-self: flex-start;
}

.blog-card-category:hover {
    background: var(--blog-primary);
    color: white;
    transform: translateX(4px);
}

.blog-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--blog-text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.5;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.blog-card:hover .blog-card-title a {
    color: var(--blog-primary);
}

.blog-card-excerpt {
    color: var(--blog-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--blog-text-muted);
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--blog-border);
    flex-wrap: nowrap;
    overflow: hidden;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--blog-text);
    flex-shrink: 0;
    min-width: 0;
}

.blog-card-author span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-card-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--blog-primary-light);
    flex-shrink: 0;
}

.blog-card-meta i {
    color: var(--blog-primary);
    margin-right: 0.25rem;
    font-size: 0.85em;
    flex-shrink: 0;
}

.blog-card-meta > span {
    white-space: nowrap;
    flex-shrink: 0;
}

/* =========================================
   Featured Post Card
   ========================================= */
.blog-featured-card {
    background: var(--blog-card-bg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--blog-shadow-lg);
    margin-bottom: 4rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-featured-card:hover {
    box-shadow: var(--blog-shadow-xl);
}

.blog-featured-slider .blog-featured-card {
    margin-bottom: 0;
}

.blog-featured-slider .blog-featured-card:hover {
    transform: none !important;
}

.blog-featured-card .blog-featured-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.blog-featured-card .blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-featured-card:hover .blog-featured-image img {
    transform: scale(1.05);
}

.blog-featured-card .blog-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 2.5rem 2.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    color: white;
}

.blog-featured-card .blog-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: var(--blog-primary);
    color: white;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(1, 200, 47, 0.4);
}

.blog-featured-card .blog-featured-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.blog-featured-card .blog-featured-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-featured-card .blog-featured-title a:hover {
    color: var(--blog-primary);
}

.blog-featured-card .blog-featured-excerpt {
    font-size: 1.05rem;
    opacity: 0.95;
    margin-bottom: 1.25rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
}

.blog-featured-card .blog-featured-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 500;
}

.blog-featured-card .blog-featured-meta img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.blog-empty .btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 12px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .blog-featured-card .blog-featured-image {
        height: 300px;
    }

    .blog-featured-card .blog-featured-overlay {
        padding: 2rem 1.5rem 1.5rem;
    }

    .blog-featured-card .blog-featured-title {
        font-size: 1.75rem;
    }

    .blog-featured-card .blog-featured-excerpt {
        font-size: 0.95rem;
    }

    .blog-featured-card .blog-featured-meta {
        gap: 1.25rem;
        font-size: 0.85rem;
        flex-wrap: wrap;
    }
}

/* =========================================
   Blog Sidebar
   ========================================= */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.blog-sidebar-widget {
    background: var(--blog-card-bg);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--blog-border);
    box-shadow: var(--blog-shadow-sm);
    transition: all 0.3s ease;
}

.blog-sidebar-widget:hover {
    box-shadow: var(--blog-shadow-md);
}

.blog-search-form .input-group {
    border: 2px solid var(--blog-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.blog-search-form .input-group:focus-within {
    border-color: var(--blog-primary);
    box-shadow: 0 0 0 3px var(--blog-primary-light);
}

.blog-search-form .form-control {
    border: none;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    background: transparent;
    color: var(--blog-text-dark);
}

.blog-search-form .form-control:focus {
    box-shadow: none;
}

.blog-search-form .form-control::placeholder {
    color: var(--blog-text-muted);
    opacity: 0.7;
}

.blog-search-form .btn-primary {
    border-radius: 0;
    padding: 0 1.5rem;
    background: var(--blog-primary);
    border: none;
    transition: all 0.3s ease;
}

.blog-search-form .btn-primary:hover {
    background: var(--blog-primary-hover);
}

.blog-sidebar-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--blog-text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--blog-primary);
    display: block;
    letter-spacing: -0.01em;
}

.blog-sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar-categories li {
    margin-bottom: 0.4rem;
}

.blog-sidebar-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    color: var(--blog-text);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.blog-sidebar-categories a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--blog-primary);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-sidebar-categories a:hover {
    background: rgba(1, 200, 47, 0.08);
    color: var(--blog-primary);
    padding-left: 1.5rem;
}

.blog-sidebar-categories a:hover::before {
    transform: scaleY(1);
}

.blog-sidebar-categories .count {
    background: var(--blog-bg);
    padding: 0.3rem 0.7rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--blog-text-muted);
    transition: all 0.3s ease;
}

.blog-sidebar-categories a:hover .count {
    background: var(--blog-primary);
    color: white;
}

/* Popular Posts in Sidebar */
.blog-sidebar-post {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--blog-border);
    transition: all 0.3s ease;
}

.blog-sidebar-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.blog-sidebar-post:hover {
    transform: translateX(4px);
}

.blog-sidebar-post-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--blog-bg);
    position: relative;
}

.blog-sidebar-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-sidebar-post:hover .blog-sidebar-post-image img {
    transform: scale(1.1);
}

.blog-sidebar-post-content {
    flex: 1;
    min-width: 0;
}

.blog-sidebar-post-content h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-sidebar-post-content h6 a {
    color: var(--blog-text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-sidebar-post-content h6 a:hover {
    color: var(--blog-primary);
}

.blog-sidebar-post-content span {
    font-size: 0.75rem;
    color: var(--blog-text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* =========================================
   Single Post Article
   ========================================= */
.blog-article {
    background: var(--blog-card-bg);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--blog-shadow-md);
    transition: box-shadow 0.3s ease;
    border: 1px solid var(--blog-border);
}

.blog-article:hover {
    box-shadow: var(--blog-shadow-lg);
}

.blog-article-header {
    margin-bottom: 3rem;
    text-align: center;
}

.blog-article-categories {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.blog-article-title {
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--blog-text-dark);
    line-height: 1.3;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.blog-article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    color: var(--blog-text-muted);
    font-size: 0.95rem;
}

.blog-article-meta .author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--blog-text);
}

.blog-article-meta .author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--blog-primary-light);
}

.blog-article-meta i {
    color: var(--blog-primary);
    margin-right: 0.4rem;
}

.blog-article-cover {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--blog-shadow-md);
}

.blog-article-cover img {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: cover;
}

/* Article Content Typography - Optimized for Reading */
.blog-article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--blog-text);
    font-weight: 400;
    max-width: 720px;
    margin: 0 auto;
}

.blog-article-content p {
    margin-bottom: 1.75rem;
    text-align: justify;
}

.blog-article-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 3rem 0 1.5rem;
    color: var(--blog-text-dark);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.blog-article-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 2.5rem 0 1.25rem;
    color: var(--blog-text-dark);
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.blog-article-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--blog-text-dark);
    line-height: 1.5;
}

.blog-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: var(--blog-shadow-md);
}

.blog-article-content blockquote {
    border-left: 5px solid var(--blog-primary);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    background: var(--blog-primary-light);
    border-radius: 0 16px 16px 0;
    font-style: italic;
    color: var(--blog-text-dark);
    font-size: 1.1rem;
    position: relative;
}

.blog-article-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--blog-primary);
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: 10px;
    font-weight: 900;
    font-family: Georgia, serif;
}

.blog-article-content ul,
.blog-article-content ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.blog-article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.blog-article-content ul li::marker {
    color: var(--blog-primary);
}

.blog-article-content ol li::marker {
    color: var(--blog-primary);
    font-weight: 700;
}

.blog-article-content code {
    background: var(--blog-bg);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.9em;
    color: var(--blog-primary);
    font-weight: 600;
    border: 1px solid var(--blog-border);
}

.blog-article-content pre {
    background: #1a1a2e;
    color: #f8f8f2;
    padding: 2rem;
    border-radius: 16px;
    overflow-x: auto;
    margin: 2.5rem 0;
    box-shadow: var(--blog-shadow-md);
    line-height: 1.6;
    border: 1px solid var(--blog-border);
}

.blog-article-content pre code {
    background: transparent;
    padding: 0;
    border: none;
    color: inherit;
}

.blog-article-content a {
    color: var(--blog-primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.blog-article-content a:hover {
    border-bottom-color: var(--blog-primary);
}

/* Article Tags */
.blog-article-tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--blog-border);
}

.blog-article-tags .tag {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: var(--blog-bg);
    color: var(--blog-text);
    border-radius: 24px;
    font-size: 0.85rem;
    text-decoration: none;
    margin: 0.4rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    border: 2px solid transparent;
}

.blog-article-tags .tag:hover {
    background: var(--blog-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 200, 47, 0.3);
}

/* Social Share */
.blog-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--blog-primary-light);
    border-radius: 16px;
    margin: 2.5rem 0;
    border: 2px solid var(--blog-border);
}

.blog-share-label {
    font-weight: 700;
    color: var(--blog-text-dark);
    margin-right: 0.5rem;
    font-size: 1rem;
}

.blog-share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.blog-share-btn:hover {
    transform: translateY(-4px) scale(1.1);
    color: white;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.blog-share-btn.facebook {
    background: #1877f2;
}

.blog-share-btn.facebook:hover {
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.4);
}

.blog-share-btn.twitter {
    background: #1da1f2;
}

.blog-share-btn.twitter:hover {
    box-shadow: 0 6px 16px rgba(29, 161, 242, 0.4);
}

.blog-share-btn.linkedin {
    background: #0077b5;
}

.blog-share-btn.linkedin:hover {
    box-shadow: 0 6px 16px rgba(0, 119, 181, 0.4);
}

.blog-share-btn.whatsapp {
    background: #25d366;
}

.blog-share-btn.whatsapp:hover {
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

/* =========================================
   AdSense Placeholder
   ========================================= */
.adsense-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #cbd5e0;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 3rem 0;
    color: #a0aec0;
    transition: all 0.3s ease;
}

.adsense-placeholder:hover {
    border-color: #a0aec0;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.adsense-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    opacity: 0.6;
}

.adsense-placeholder span {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================
   Post Navigation
   ========================================= */
.blog-navigation {
    display: flex;
    gap: 2rem;
    margin: 3rem 0;
}

.blog-nav-item {
    flex: 1;
    background: var(--blog-card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid var(--blog-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.blog-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--blog-primary);
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-nav-item.next::before {
    left: auto;
    right: 0;
}

.blog-nav-item:hover {
    border-color: var(--blog-primary);
    box-shadow: var(--blog-shadow-lg);
    transform: translateY(-4px);
}

.blog-nav-item:hover::before {
    transform: scaleY(1);
}

.blog-nav-item a {
    text-decoration: none;
    display: block;
}

.blog-nav-item .label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--blog-text-muted);
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.blog-nav-item .title {
    display: block;
    font-weight: 700;
    color: var(--blog-text-dark);
    line-height: 1.5;
    font-size: 1.05rem;
}

.blog-nav-item:hover .title {
    color: var(--blog-primary);
}

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

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

@media (max-width: 576px) {
    .blog-navigation {
        flex-direction: column;
    }

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

    .blog-nav-item.next .label {
        justify-content: flex-start;
    }
}

/* =========================================
   Related Posts
   ========================================= */
.blog-related {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 3px solid var(--blog-border);
}

.blog-related-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--blog-text-dark);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
    position: relative;
    padding-left: 1.25rem;
}

.blog-related-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 80%;
    background: linear-gradient(135deg, var(--blog-primary) 0%, var(--blog-secondary) 100%);
    border-radius: 3px;
}

/* Compact styling for related post cards */
.blog-related .blog-card {
    border: 2px solid var(--blog-border);
}

.blog-related .blog-card-image {
    padding-top: 60%;
}

.blog-related .blog-card-body {
    padding: 1.25rem;
}

.blog-related .blog-card-category {
    font-size: 0.65rem;
    padding: 0.4rem 0.85rem;
    margin-bottom: 0.75rem;
}

.blog-related .blog-card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    -webkit-line-clamp: 2;
}

.blog-related .blog-card-excerpt {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    -webkit-line-clamp: 2;
}

.blog-related .blog-card-meta {
    font-size: 0.7rem;
    gap: 0.5rem;
    padding-top: 0.75rem;
    flex-wrap: nowrap;
}

.blog-related .blog-card-author {
    gap: 0.4rem;
}

.blog-related .blog-card-author-avatar {
    width: 22px;
    height: 22px;
}

@media (max-width: 991px) {
    .blog-related .blog-card-image {
        padding-top: 65%;
    }
}

/* =========================================
   Section Headers
   ========================================= */
.blog-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--blog-border);
}

.blog-section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--blog-text-dark);
    margin: 0;
    position: relative;
    padding-left: 1.25rem;
    letter-spacing: -0.01em;
}

.blog-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 80%;
    background: linear-gradient(135deg, var(--blog-primary) 0%, var(--blog-secondary) 100%);
    border-radius: 3px;
}

.blog-section-link {
    color: var(--blog-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.blog-section-link:hover {
    color: var(--blog-primary-hover);
    background: var(--blog-primary-light);
    gap: 0.75rem;
}

.blog-section-link i {
    transition: transform 0.3s ease;
}

.blog-section-link:hover i {
    transform: translateX(4px);
}

/* =========================================
   Archive Page Header
   ========================================= */
.blog-archive-header {
    background: var(--blog-card-bg);
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    border: 2px solid var(--blog-border);
    box-shadow: var(--blog-shadow-md);
}

.blog-archive-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--blog-text-dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.blog-archive-header p {
    color: var(--blog-text-muted);
    margin: 0;
    font-size: 1.05rem;
}

/* =========================================
   Pagination
   ========================================= */
.blog-pagination {
    margin-top: 3rem;
}

.blog-pagination .pagination {
    justify-content: center;
    gap: 0.5rem;
}

.blog-pagination .page-link {
    border: 2px solid var(--blog-border);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    color: var(--blog-text);
    background: var(--blog-card-bg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
}

.blog-pagination .page-link:hover {
    background: var(--blog-primary);
    color: white;
    border-color: var(--blog-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 200, 47, 0.3);
}

.blog-pagination .page-item.active .page-link {
    background: var(--blog-primary);
    color: white;
    border-color: var(--blog-primary);
    box-shadow: 0 4px 12px rgba(1, 200, 47, 0.3);
}

.blog-pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =========================================
   Empty State
   ========================================= */
.blog-empty {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--blog-card-bg);
    border-radius: 20px;
    box-shadow: var(--blog-shadow-md);
    border: 1px solid var(--blog-border);
}

.blog-empty i {
    font-size: 5rem;
    color: var(--blog-primary);
    opacity: 0.3;
    margin-bottom: 1.5rem;
    display: block;
}

.blog-empty h3 {
    color: var(--blog-text-dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
}

.blog-empty p {
    color: var(--blog-text-muted);
    font-size: 1.05rem;
}

/* =========================================
   Responsive Adjustments
   ========================================= */
@media (max-width: 991px) {
    .blog-sidebar {
        position: static;
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .blog-section {
        padding: 80px 0 50px;
    }

    .blog-hero h1 {
        font-size: 2.25rem;
    }

    .blog-hero p {
        font-size: 1.05rem;
    }

    .blog-article {
        padding: 2rem 1.5rem;
    }

    .blog-article-title {
        font-size: 2rem;
    }

    .blog-article-content {
        font-size: 1.05rem;
    }

    .blog-article-content h2 {
        font-size: 1.65rem;
    }

    .blog-article-content h3 {
        font-size: 1.4rem;
    }

    .blog-card-body {
        padding: 1.5rem;
    }

    .blog-card-title {
        font-size: 1.2rem;
    }

    .blog-card-meta {
        font-size: 0.72rem;
        gap: 0.6rem;
    }

    .blog-featured-card .blog-featured-title {
        font-size: 1.65rem;
    }

    .blog-section-title {
        font-size: 1.5rem;
    }

    .blog-related-title {
        font-size: 1.5rem;
    }

    .blog-share {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .blog-archive-header {
        padding: 2rem 1.5rem;
    }

    .blog-archive-header h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .blog-hero h1 {
        font-size: 1.85rem;
    }

    .blog-article-title {
        font-size: 1.65rem;
    }

    .blog-article-content {
        font-size: 1rem;
        line-height: 1.8;
    }

    .blog-card-meta {
        font-size: 0.7rem;
        gap: 0.5rem;
    }

    .blog-card-author {
        gap: 0.4rem;
    }

    .blog-card-author-avatar {
        width: 22px;
        height: 22px;
    }

    .blog-featured-card .blog-featured-meta {
        font-size: 0.8rem;
    }
}

/* =========================================
   Modern Enhancements
   ========================================= */

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Selection Styling */
::selection {
    background: var(--blog-primary);
    color: white;
}

::-moz-selection {
    background: var(--blog-primary);
    color: white;
}

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--blog-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reading Progress Indicator */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--blog-primary) 0%, var(--blog-secondary) 100%);
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 2px 8px rgba(1, 200, 47, 0.4);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--blog-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(1, 200, 47, 0.4);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--blog-primary-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(1, 200, 47, 0.5);
}

/* Modern Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--blog-bg) 25%, #e0e7ed 50%, var(--blog-bg) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Enhanced Typography for Better Readability */
.blog-article-content {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Table Styling */
.blog-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--blog-shadow-md);
}

.blog-article-content table thead {
    background: linear-gradient(135deg, var(--blog-primary) 0%, var(--blog-primary-hover) 100%);
    color: white;
}

.blog-article-content table th,
.blog-article-content table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--blog-border);
}

.blog-article-content table tbody tr {
    transition: background 0.2s ease;
}

.blog-article-content table tbody tr:hover {
    background: var(--blog-primary-light);
}

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

/* Highlight Box */
.blog-article-content .highlight {
    background: var(--blog-primary-light);
    border-left: 5px solid var(--blog-primary);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
}

/* Tooltip Styling */
[data-tooltip] {
    position: relative;
    cursor: help;
    border-bottom: 2px dotted var(--blog-primary);
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: var(--blog-dark);
    color: white;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Badge Styles */
.badge-primary {
    background: var(--blog-primary);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.badge-secondary {
    background: var(--blog-secondary);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

/* Print Styles */
@media print {
    .blog-sidebar,
    .blog-share,
    .blog-navigation,
    .adsense-placeholder,
    .scroll-to-top {
        display: none !important;
    }

    .blog-article {
        box-shadow: none;
        padding: 0;
    }

    .blog-article-content {
        font-size: 12pt;
        line-height: 1.6;
    }
}