<style>
/* 1. MAIN LAYOUT: Desktop side-by-side */
#blog-area .row {
    display: flex !important;
    flex-wrap: wrap !important;
}

@media (min-width: 992px) {
    .col-lg-8, .col-md-8 {
        flex: 0 0 66.666667% !important;
        max-width: 66.666667% !important;
    }
    .col-lg-4, .col-md-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        padding-left: 30px !important;
    }
}

/* 2. SIDEBAR FIX */
.sidebar-wrapper {
    width: 100% !important;
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    min-width: 250px !important;
}

.nav-categories li a {
    display: flex !important;
    justify-content: space-between !important;
    white-space: nowrap !important;
}

/* 3. SOCIAL SHARE & EMOJIS: Horizontal Fix */
.tag-social-share-box {
    display: flex !important;
    flex-direction: row !important; /* Forces side-by-side */
    flex-wrap: wrap !important;     /* Allows wrapping if screen is tiny */
    justify-content: space-between !important;
    align-items: center !important;
    gap: 15px;
    margin-top: 30px !important;
    padding: 20px 0 !important;
    border-top: 1px solid #eee !important;
}

.emoji-table {
    width: auto !important;
    border-collapse: collapse !important;
}

.emoji-table td {
    padding: 0 5px !important;
}

.emogi-icon img {
    width: 32px !important;
    display: block;
}

/* 4. VIDEO RESPONSIVENESS */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 25px;
    border-radius: 8px;
}
.video-container iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* 5. MOBILE OVERRIDES: STOP VERTICAL STACKING */
/* 5. MOBILE OVERRIDES: STOP VERTICAL STACKING */
@media (max-width: 991px) {
    #blog-area .row { display: block !important; }
    .col-lg-8, .col-lg-4 { width: 100% !important; max-width: 100% !important; }
    
    /* 1. Main container - Horizontal Row */
    .tag-social-share-box { 
        display: flex !important;
        flex-direction: row !important; 
        flex-wrap: wrap !important;
        justify-content: center !important; 
        gap: 10px !important;
        width: 100% !important;
    }

    /* 2. NEW: Force Numbers OVER Emojis */
    .tag-social-share-box table td {
        display: inline-flex !important;
        flex-direction: column !important; /* This stacks number over emoji */
        align-items: center !important;
        padding: 0 8px !important;
        width: auto !important;
    }

    /* 3. Force inner containers to be horizontal */
    .tag-social-share-box div, 
    .tag-social-share-box .wrapper,
    .tag-social-share-box ul {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        width: auto !important;
        margin: 0 !important;
    }

    /* 4. Force individual circle buttons */
    .tag-social-share-box .button,
    .tag-social-share-box a,
    .tag-social-share-box li {
        display: inline-flex !important;
        width: 50px !important;
        height: 50px !important;
        margin: 5px !important;
        float: none !important;
    }
}
</style>
