/* --- Custom Share Ribbon Styles --- */
.custom-meta-share-ribbon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f5f5f5; /* Light gray background */
    padding: 10px 20px;
    margin: 20px 0; /* Space above and below */
    border-radius: 4px;
    font-family: sans-serif;
    font-size: 14px;
    flex-wrap: wrap; /* Allows stacking on mobile */
    gap: 10px;
}

/* Left Side (Meta) */
.ribbon-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ribbon-meta-item {
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-label {
    font-weight: 700;
    color: #666;
}

.meta-value {
    background: #e0e0e0; /* Optional: pill background for tag look */
    padding: 2px 8px;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

/* Right Side (Socials) */
.ribbon-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-label {
    font-weight: 700;
    color: #333;
    margin-right: 5px;
}

.ribbon-share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ccc;
    color: #555;
    transition: all 0.2s ease;
    background: #fff;
}

.ribbon-share-icon svg {
    width: 16px;
    height: 16px;
}

/* Hover Colors for Icons */
.ribbon-share-icon:hover {
    color: #fff;
    border-color: transparent;
}

.ribbon-share-icon.fb:hover { background-color: #1877F2; } /* Facebook Blue */
.ribbon-share-icon.x:hover { background-color: #000000; } /* X Black */
.ribbon-share-icon.ig:hover { 
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); 
} 
.ribbon-share-icon.in:hover { background-color: #0077b5; } /* LinkedIn Blue */

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .custom-meta-share-ribbon {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ribbon-right {
        width: 100%;
        justify-content: flex-start;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #ddd;
    }
}
h4.elespare-post-title {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* max 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.promotionspace.enable-promotionspace {
    display: none;
}
aside#secondary {
    width: 400px !important;
}
.related-thumb img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
    object-fit: cover;
}
/* Change Related Posts hover color to black */
h4.jp-relatedposts-post-title a.jp-relatedposts-post-a:hover {
    color: #000000 !important;
    text-decoration: none; 
}
/* Make Related Posts text always dark and fully opaque */
h4.jp-relatedposts-post-title a.jp-relatedposts-post-a {
    color: #000000 !important;  /* Forces text to be black */
    opacity: 1 !important;      /* Removes any see-through effect */
}