/* --- 1. ARTICLE CONTAINER --- */
.post-article {
    background: var(--bg-card);
    border-radius: var(--radius);
    margin-bottom: 40px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* --- 2. HEADER & META --- */
.post-header {
    padding: 30px 40px 20px;
    position: static; 
}

.post-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.trending-badge {
    background: #ff9800;
    color: white;
}

.post-title {
    font-size: 2.2rem;
    line-height: 1.25;
    margin-bottom: 25px;
    color: var(--text-main);
}

.post-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item i { color: var(--primary); }

.author-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 15px;
}

.meta-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.meta-avatar-placeholder {
    width: 36px;
    height: 36px;
    background: var(--accent-pink);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.meta-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.meta-text .by { font-size: 0.75rem; }
.author-link { font-weight: 700; color: var(--text-main); text-decoration: none; }
.author-link:hover { color: var(--primary); }

/* --- 3. FEATURED IMAGE --- */
.post-featured-wrapper {
    width: 100%;
    margin-top: 10px;
}

.post-featured-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

/* --- 4. CONTENT TYPOGRAPHY --- */
.post-content {
    padding: 30px 40px 40px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
}

.post-content p { margin-bottom: 1.5rem; }
.post-content h2, .post-content h3 { 
    margin-top: 2.5rem; 
    margin-bottom: 1rem; 
    color: var(--text-main); 
    font-weight: 800;
}
.post-content h2 { font-size: 1.8rem; }
.post-content h3 { font-size: 1.5rem; }

.post-content ul, .post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 20px;
}
.post-content li { margin-bottom: 0.5rem; }


.post-content a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    
    /* --- FIX FOR LONG URLS --- */
    word-break: break-all;      /* Forces text to break at any character */
    overflow-wrap: break-word;  /* Ensures long words wrap onto the next line */
}
.post-content a:hover { color: var(--accent-pink); }

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

.post-content blockquote {
    border-left: 5px solid var(--accent-pink);
    margin: 30px 0;
    padding: 20px 30px;
    background: var(--bg-body);
    font-style: italic;
    color: var(--text-main);
    font-size: 1.2rem;
    border-radius: 0 8px 8px 0;
}

/* 3. Restore Table Structure & Borders */
.post-content table {
    border-collapse: collapse !important;
    width: 100% !important;
    margin: 1.5rem 0 !important;
    border: 1px solid var(--border) !important; /* Changed to variable */
}

.post-content table td, 
.post-content table th {
    border: 1px solid var(--border) !important; /* Changed to variable */
    padding: 10px 15px !important;
    text-align: left !important;
}

.post-content table th {
    /* Light Mode Default */
    background-color: #f3f4f6 !important; 
    color: #1e293b !important; /* Force Dark Text */
    font-weight: 700 !important;
}

/* --- Dark Mode Override --- */
[data-theme="dark"] .post-content table th {
    background-color: #334155 !important; /* Dark Slate Background */
    color: #f1f5f9 !important; /* Light Text */
    border-color: #475569 !important;
}




/* --- 5. FOOTER (Updated Social Icons) --- */
.post-footer {
    padding: 25px 40px;
    background: var(--bg-body);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link {
    background: white;
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}
.tag-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.share-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--border);
}

.share-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
.share-btn:hover { transform: translateY(-3px); opacity: 0.9; }

/* Colors */
.share-btn.fb { background: #1877f2; }
.share-btn.wa { background: #25d366; }

/* NEW: X (Black) */
.share-btn.x { background: #000000; }

/* NEW: Copy Link (Gray -> Green on copy) */
.share-btn.copy { background: #f78b25; }
.share-btn.copy.copied { background: #FFAA52; }

/* --- 6. AUTHOR BOX --- */
.post-author-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.author-avatar-large { flex-shrink: 0; }

.author-avatar-large img,
.author-avatar-large .avatar-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-body);
    box-shadow: 0 0 0 1px var(--border);
}

.author-avatar-large .avatar-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--primary);
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
}

.author-name {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

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

.author-socials a {
    color: var(--text-muted);
    margin-right: 12px;
    font-size: 1.1rem;
    transition: color 0.2s;
}
.author-socials a:hover { color: var(--primary); }

/* --- 7. POST NAVIGATION --- */
.post-navigation {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.nav-card {
    flex: 1;
    min-width: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.nav-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.nav-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 700;
}

.nav-title {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.next-post { text-align: right; align-items: flex-end; }
.prev-post { text-align: left; align-items: flex-start; }

/* --- 8. COMMENTS SECTION --- */
.comments-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.comments-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.comments-header h3 {
    font-size: 1.4rem;
    color: var(--text-main);
}

.comment-form-container {
    background: var(--bg-body);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.logged-in-as {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.mini-avatar { width: 24px; height: 24px; border-radius: 50%; }

.form-group { margin-bottom: 15px; }

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    background: white;
    font-size: 0.95rem;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-submit:hover { background: #1d4ed8; }

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.comment-item { display: flex; gap: 15px; margin-top: 10px; }

.comment-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img,
.comment-avatar span {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--border);
    color: var(--text-muted);
    font-weight: bold;
}

.comment-content { flex: 1; min-width: 0; }

.comment-meta { margin-bottom: 5px; font-size: 0.9rem; }

.comment-author {
    font-weight: 700;
    color: var(--text-main);
    margin-right: 8px;
}

.comment-date { font-size: 0.8rem; color: var(--text-muted); }

.comment-body p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-main);
    margin-bottom: 10px;
    overflow-wrap: break-word;
}

/* --- FIXED: Added .btn-reply to the selector --- */
.btn-reply, .reply-btn, .like-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}
.btn-reply:hover, .reply-btn:hover, .like-btn:hover { color: var(--primary); }

.comment-replies {
    margin-top: 20px;
    padding-left: 20px;
    border-left: 2px solid var(--border);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .post-header { padding: 25px 20px 15px; }
    .post-content { padding: 25px 20px 30px; }
    .post-footer { padding: 20px; }
    
    .post-title { font-size: 1.7rem; }
    
   .post-meta-row {
        gap: 15px;
        flex-direction: row; /* Changed to row */
        align-items: center; /* Center align items */
        flex-wrap: wrap; /* Allow wrapping if screen is very small */
    }
    
    .share-box {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .post-navigation { flex-direction: column; }
    
    .next-post, .prev-post {
        text-align: left;
        align-items: flex-start;
    }
}
/* --- 9. RELATED POSTS GRID (Archive/Category Pages) --- */
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.related-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.related-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-card:hover .related-thumb img {
    transform: scale(1.1);
}

.related-info {
    padding: 20px;
}

.related-info h5 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0;
    font-weight: 700;
}

.related-info h5 a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.related-info h5 a:hover {
    color: var(--primary);
}

/* --- RESPONSIVE GRID --- */
@media (max-width: 992px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 576px) {
    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .related-thumb {
        height: 180px;
    }
}

/* --- 10. RESPONSIVE POST CARD (Grid on Desktop, List on Mobile) --- */

/* Desktop: Card Grid Layout (Already defined above as .related-grid) */

/* Mobile: Horizontal List Layout */
@media (max-width: 768px) {
    /* Override grid to stack vertically */
    .related-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    /* Make each card a horizontal list item */
    .post-card {
        display: flex;
        flex-direction: row;
        gap: 15px;
        padding: 15px 0;
        border-bottom: 1px solid var(--border);
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        transition: none;
    }
    
    .post-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .post-card:last-child {
        border-bottom: none;
    }
    
    /* Thumbnail: Small square on left */
    .post-card-thumb {
        width: 100px;
        min-width: 100px;
        height: 100px;
        border-radius: 8px;
        overflow: hidden;
        flex-shrink: 0;
    }
    
    .post-card-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Content on right */
    .post-card-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 0;
    }
    
    
    .category-badge {
        display: inline-flex;  /* Changed from inline-block */
        align-items: center;   /* Vertically center dot and text */
        gap: 5px;              /* Space between dot and text */
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--accent-pink);
        margin-bottom: 4px;
    }
    
    /* Pink dot using ::before pseudo-element */
    .category-badge::before {
        content: '';
        display: inline-block;
        width: 5px;
        height: 5px;
        background-color: var(--accent-pink);
        border-radius: 50%;
        flex-shrink: 0;
    }
    .post-card-title {
        font-size: 0.95rem;
        line-height: 1.3;
        margin: 0;
        font-weight: 700;
    }
    
    .post-card-title a {
        color: var(--text-main);
        text-decoration: none;
    }
    
    .post-card-meta {
        font-size: 0.8rem;
        color: var(--text-muted);
        margin-top: auto;
    }
}

/* Desktop: Keep existing card styles */
@media (min-width: 769px) {
    .post-card {
        /* Inherits from .related-card styles */
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        overflow: hidden;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-sm);
    }
    
    .post-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary);
    }
    
    .post-card-thumb {
        width: 100%;
        height: 200px;
        overflow: hidden;
    }
    
    .post-card-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }
    
    .post-card:hover .post-card-thumb img {
        transform: scale(1.1);
    }
    
    .post-card-content {
        padding: 20px;
    }
    
    
    .category-badge {
        display: inline-flex;  /* Changed from inline-block */
        align-items: center;   /* Vertically center dot and text */
        gap: 6px;              /* Space between dot and text */
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--accent-pink);
        margin-bottom: 8px;
    }
    
    /* Pink dot using ::before pseudo-element */
    .category-badge::before {
        content: '';
        display: inline-block;
        width: 6px;
        height: 6px;
        background-color: var(--accent-pink);
        border-radius: 50%;
        flex-shrink: 0;
    }
    .post-card-title {
        font-size: 1.1rem;
        line-height: 1.4;
        margin: 0 0 10px 0;
        font-weight: 700;
    }
    
    .post-card-title a {
        color: var(--text-main);
        text-decoration: none;
        transition: color 0.2s;
    }
    
    .post-card-title a:hover {
        color: var(--primary);
    }
    
    .post-card-meta {
        font-size: 0.8rem;
        color: var(--text-muted);
    }
}

/* --- Author Profile Card Styles --- */
.author-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--surface-color); /* Assuming you have this variable */
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color); /* Assuming you have this variable */
    margin-bottom: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.author-avatar {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--border-color);
}

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

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--primary-color); /* Fallback or variable */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
}

.author-info h4 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.author-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 600px;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 15px;
    }
    
    .author-info p {
        font-size: 0.9rem;
    }
}

/* --- PORTABLE SHOP WIDGET --- */
.portable-shop-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); /* Light subtle gradient */
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .portable-shop-container {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
}

.portable-shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.portable-shop-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.portable-shop-header h3 i { color: var(--accent-pink); }

.portable-shop-header a {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: 0.2s;
}
.portable-shop-header a:hover { color: var(--accent-pink); }

/* GRID LAYOUT */
.portable-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 2;
}

/* CARD STYLES */
.portable-shop-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

.portable-shop-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.portable-card-thumb {
    height: 180px;
    width: 100%;
    position: relative;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

[data-theme="dark"] .portable-card-thumb { background: #334155; }

.portable-card-thumb img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.portable-shop-card:hover .portable-card-thumb img {
    transform: scale(1.05);
}

.portable-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-pink);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.portable-card-info {
    padding: 15px;
    text-align: center;
    border-top: 1px solid var(--border);
}

.portable-card-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.portable-shop-card:hover .portable-card-info h4 { color: var(--primary); }

.portable-price {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.1rem;
}

/* Responsive Fixes */
@media (max-width: 576px) {
    .portable-shop-grid {
        grid-template-columns: repeat(2, 1fr); /* Force 2 columns on mobile */
        gap: 10px;
    }
    .portable-card-thumb { height: 140px; }
    .portable-shop-container { padding: 20px; }
}

 /* Container for the meta row */
        .custom-meta-row {
            display: flex;
            align-items: center;
            justify-content: flex-start; /* Align to left */
            flex-wrap: wrap; /* Allow wrapping on very small screens */
            gap: 15px; /* Spacing between elements */
            margin-bottom: 20px;
            font-family: 'Plus Jakarta Sans', sans-serif; /* Ensure font consistency */
            font-size: 0.9rem;
            color: #64748b; /* Muted text color */
        }

        /* Author Section */
        .custom-meta-author {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .custom-meta-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .custom-meta-avatar-placeholder {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background-color: #2563eb; /* Primary color */
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 0.8rem;
        }

        .custom-meta-author-text {
            display: flex;
            flex-direction: column;
            line-height: 1.2;
        }
        
        .custom-meta-by {
            font-size: 0.75rem;
            color: #94a3b8;
        }

        .custom-meta-author-link {
            font-weight: 700;
            color: var(--text-main);
            text-decoration: none;
        }
        
        .custom-meta-author-link:hover {
            color: #2563eb;
            text-decoration: underline;
        }

        /* Date Section */
        .custom-meta-date {
            display: flex;
            align-items: center;
            gap: 6px;
            color: #64748b;
            font-weight: 500;
        }

        /* Comments Section */
        .custom-meta-comments {
            display: flex;
            align-items: center;
            gap: 6px;
            color: #64748b;
            font-weight: 500;
        }
        .custom-meta-comments a {
            color: inherit;
            text-decoration: none;
        }
        .custom-meta-comments a:hover {
            color: #2563eb;
        }

        /* Separator (Optional, if you want a dot or pipe between author and date) */
        .custom-meta-separator {
            width: 4px;
            height: 4px;
            background-color: #cbd5e1;
            border-radius: 50%;
        }

        /* Tighter header padding on mobile */
        @media (max-width: 768px) {
            .post-header {
                padding-bottom: 10px !important;
            }
            .post-title {
                margin-bottom: 15px !important;
                font-size: 1.8rem; 
            }
            .custom-meta-row {
                gap: 10px;
                font-size: 0.85rem;
            }
        }

        /* --- Fix for Published Content (List & Table Restore) --- */

/* 1. Restore Bullet Points (Unordered Lists) */
.post-content ul {
    list-style-type: disc !important;
    margin-left: 1.5rem !important;
    margin-bottom: 1.2rem !important;
    display: block !important;
}

/* 2. Restore Numbering (Ordered Lists) */
.post-content ol {
    list-style-type: decimal !important;
    margin-left: 1.5rem !important;
    margin-bottom: 1.2rem !important;
    display: block !important;
}

/* Ensure list items have proper spacing */
.post-content li {
    margin-bottom: 0.5rem !important;
    display: list-item !important;
}

/* 3. Restore Table Structure & Borders + MAKE RESPONSIVE/SLIDING */
.post-content table {
    display: block;                    /* key for scrolling */
    width: 100% !important;
    overflow-x: auto;                  /* enables horizontal sliding */
    -webkit-overflow-scrolling: touch; /* smooth scrolling for iOS */
    border-collapse: collapse !important;
    margin: 1.5rem 0 !important;
    border: 1px solid var(--border) !important;
}

/* Optional: Prevent text from squashing too much on mobile */
.post-content table td, 
.post-content table th {
    border: 1px solid var(--border) !important;
    padding: 10px 15px !important;
    text-align: left !important;
    min-width: 120px; /* Forces minimum width so columns don't collapse */
}

.post-content table th {
    background-color: #f3f4f6 !important; 
    color: #1e293b !important;
    font-weight: 700 !important;
    white-space: nowrap; /* Keeps headers on one line */
}


.comment-actions {
    display: flex;             /* Forces children to sit in a row */
    flex-direction: row;       /* Explicitly sets horizontal direction */
    align-items: center;       /* Vertically centers the heart and text */
    gap: 15px;                 /* Adds space between Like and Reply */
    font-size: 0.85rem;
    margin-top: 10px;          /* Optional: adds spacing above the buttons */
}

/* Ensure the form doesn't take up 100% width or block the row */
.comment-actions form {
    margin: 0;
    display: inline-flex;      /* Keeps the form tight to its content */
    align-items: center;
}

.btn-reply {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;                /* Removes default padding alignment issues */
}

.btn-reply:hover { 
    color: var(--primary); 
}

