/* =========================================================
   VBLINK HR CONSULTANTS
   SIDEBAR - ALL BLOG POSTS
   ========================================================= */


/* =========================================================
   MAIN BOX
   ========================================================= */

.sidebar-posts-box {

    width: 250px;

    max-width: 100%;

    margin: 18px auto;

    padding: 12px;

    box-sizing: border-box;

    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f3f7ff
        );

    border:
        1px solid rgba(47, 84, 235, 0.20);

    box-shadow:
        0 7px 20px rgba(15, 23, 42, 0.13),
        0 0 12px rgba(47, 84, 235, 0.08);

}


/* =========================================================
   HEADER
   ========================================================= */

.sidebar-posts-header {

    display: flex;

    align-items: center;

    gap: 9px;

    padding-bottom: 9px;

    margin-bottom: 8px;

    border-bottom:
        1px solid #dbeafe;

}


/* =========================================================
   HEADER ICON
   ========================================================= */

.sidebar-posts-icon {

    width: 30px;

    height: 30px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #2f54eb,
            #00a6ff
        );

    color: #ffffff;

    font-size: 12px;

    box-shadow:
        0 4px 9px rgba(47, 84, 235, 0.25);

}


/* =========================================================
   HEADER TEXT
   ========================================================= */

.sidebar-posts-heading {

    min-width: 0;

}


.sidebar-posts-heading h3 {

    margin: 0;

    color: #172554;

    font-family:
        "Poppins",
        Arial,
        sans-serif;

    font-size: 12px;

    font-weight: 800;

    line-height: 1.2;

}


.sidebar-posts-heading span {

    display: block;

    margin-top: 2px;

    color: #64748b;

    font-family:
        "Poppins",
        Arial,
        sans-serif;

    font-size: 10px;

    font-weight: 500;

}


/* =========================================================
   POSTS LIST
   ========================================================= */

.sidebar-posts-list {

    width: 100%;

}


/* =========================================================
   INDIVIDUAL POST LINK
   ========================================================= */

.sidebar-post-link {

    position: relative;

    width: 100%;

    min-height: 27px;

    display: flex;

    align-items: center;

    gap: 6px;

    padding: 3px 5px;

    box-sizing: border-box;

    overflow: hidden;

    text-decoration: none;

    border-bottom:
        1px solid #e5edf9;

    background:
        transparent;

    transition:
        background 0.35s ease;

}


/* =========================================================
   PROGRESS-BAR BACKGROUND
   ========================================================= */

.sidebar-post-link::before {

    content: "";

    position: absolute;

    z-index: 0;

    left: 0;

    top: 0;

    width: 3px;

    height: 100%;

    border-radius: 0 4px 4px 0;

    background:
        linear-gradient(
            180deg,
            #2f54eb,
            #00a6ff
        );

    transition:
        width 0.45s cubic-bezier(
            0.65,
            0,
            0.35,
            1
        );

}


/* =========================================================
   HOVER PROGRESS BAR
   ========================================================= */

.sidebar-post-link:hover::before {

    width: 100%;

}


/* =========================================================
   POST NUMBER
   ========================================================= */

.post-number {

    position: relative;

    z-index: 2;

    width: 22px;

    flex-shrink: 0;

    color: #2f54eb;

    font-family:
        "Poppins",
        Arial,
        sans-serif;

    font-size: 10px;

    font-weight: 800;

    text-align: center;

    transition:
        color 0.35s ease;

}


/* =========================================================
   POST TITLE
   ========================================================= */

.post-title {

    position: relative;

    z-index: 2;

    flex: 1;

    color: #172554;

    font-family:
        "Poppins",
        Arial,
        sans-serif;

    font-size: 10px;

    font-weight: 600;

    line-height: 1.35;

    transition:
        color 0.35s ease,
        transform 0.35s ease;

}


/* =========================================================
   RIGHT ARROW
   ========================================================= */

.post-arrow {

    position: relative;

    z-index: 2;

    flex-shrink: 0;

    color: #94a3b8;

    font-size: 7px;

    transition:
        color 0.3s ease,
        transform 0.3s ease;

}


/* =========================================================
   HOVER CONTENT
   ========================================================= */

.sidebar-post-link:hover .post-number {

    color: #ffffff;

}


.sidebar-post-link:hover .post-title {

    color: #ffffff;

    transform:
        translateX(5px);

}


.sidebar-post-link:hover .post-arrow {

    color: #ffffff;

    transform:
        translateX(3px);

}


/* =========================================================
   MOUSE LEAVE
   ========================================================= */

/*
   No special JavaScript is necessary.

   When the cursor leaves the item,
   the pseudo-element automatically reverses
   from:

       100% → 3px

   giving the backward progress-bar appearance.
*/


/* =========================================================
   LAST ITEM
   ========================================================= */

.sidebar-post-link:last-child {

    border-bottom:
        none;

}


/* =========================================================
   VIEW ALL POSTS
   ========================================================= */

.sidebar-view-all-posts {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    width: 100%;

    height: 30px;

    margin-top: 9px;

    box-sizing: border-box;

    border-radius: 7px;

    text-decoration: none;

    background:
        linear-gradient(
            135deg,
            #2f54eb,
            #00a6ff
        );

    color: #ffffff;

    font-family:
        "Poppins",
        Arial,
        sans-serif;

    font-size: 8px;

    font-weight: 700;

    box-shadow:
        0 4px 10px rgba(47, 84, 235, 0.22);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;

}


.sidebar-view-all-posts:hover {

    transform:
        translateY(-1px);

    filter:
        brightness(1.07);

    box-shadow:
        0 6px 14px rgba(47, 84, 235, 0.35);

}


.sidebar-view-all-posts i {

    font-size: 7px;

    transition:
        transform 0.25s ease;

}


.sidebar-view-all-posts:hover i {

    transform:
        translateX(4px);

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .sidebar-posts-box {

        width: 250px;

        max-width: 100%;

    }

}




/* =========================================================
   VBLINK SIDEBAR MESSAGE NOTIFICATION
   PREMIUM SUCCESS / ERROR ALERT
========================================================= */

.vblink-sidebar-notification {

    position: relative;

    display: flex;

    align-items: center;

    gap: 14px;

    width: 100%;

    min-height: 72px;

    margin: 18px 0;

    padding: 14px 42px 14px 14px;

    box-sizing: border-box;

    overflow: hidden;

    border-radius: 16px;

    font-family:
        "Poppins",
        Arial,
        sans-serif;

    box-shadow:
        0 12px 30px
        rgba(0, 0, 0, 0.12);

    animation:
        vblinkNotificationIn
        0.55s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        )
        both;

    z-index: 20;

}


/* =========================================================
   SUCCESS
========================================================= */

.vblink-sidebar-success {

    background:
        linear-gradient(
            135deg,
            #ecfdf5 0%,
            #d1fae5 100%
        );

    border:
        1px solid
        rgba(16, 185, 129, 0.35);

}


/* =========================================================
   ERROR
========================================================= */

.vblink-sidebar-error {

    background:
        linear-gradient(
            135deg,
            #fff1f2 0%,
            #ffe4e6 100%
        );

    border:
        1px solid
        rgba(239, 68, 68, 0.35);

}


/* =========================================================
   ICON CIRCLE
========================================================= */

.vblink-notification-icon {

    position: relative;

    flex:
        0 0 42px;

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    font-size: 17px;

    box-shadow:
        0 6px 15px
        rgba(0, 0, 0, 0.10);

}


/* =========================================================
   SUCCESS ICON
========================================================= */

.vblink-sidebar-success
.vblink-notification-icon {

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #10b981,
            #059669
        );

}


/* =========================================================
   ERROR ICON
========================================================= */

.vblink-sidebar-error
.vblink-notification-icon {

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #ef4444,
            #dc2626
        );

}


/* =========================================================
   CONTENT
========================================================= */

.vblink-notification-content {

    flex: 1;

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 4px;

}


/* =========================================================
   TITLE
========================================================= */

.vblink-notification-title {

    font-size: 13px;

    font-weight: 700;

    line-height: 1.3;

}


/* =========================================================
   SUCCESS TITLE
========================================================= */

.vblink-sidebar-success
.vblink-notification-title {

    color: #047857;

}


/* =========================================================
   ERROR TITLE
========================================================= */

.vblink-sidebar-error
.vblink-notification-title {

    color: #b91c1c;

}


/* =========================================================
   MESSAGE
========================================================= */

.vblink-notification-text {

    font-size: 11px;

    line-height: 1.55;

    color: #475569;

}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.vblink-notification-close {

    position: absolute;

    top: 8px;

    right: 8px;

    width: 27px;

    height: 27px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: none;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.55);

    color: #64748b;

    cursor: pointer;

    font-size: 11px;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;

}


.vblink-notification-close:hover {

    transform:
        rotate(90deg)
        scale(1.08);

    background:
        rgba(255, 255, 255, 0.9);

    color: #1e293b;

}


/* =========================================================
   PROGRESS BAR
========================================================= */

.vblink-notification-progress {

    position: absolute;

    left: 0;

    bottom: 0;

    height: 3px;

    width: 100%;

    transform-origin: left;

    animation:
        vblinkNotificationProgress
        8s
        linear
        forwards;

}


/* =========================================================
   SUCCESS PROGRESS
========================================================= */

.vblink-sidebar-success
.vblink-notification-progress {

    background:
        linear-gradient(
            90deg,
            #10b981,
            #059669
        );

}


/* =========================================================
   ERROR PROGRESS
========================================================= */

.vblink-sidebar-error
.vblink-notification-progress {

    background:
        linear-gradient(
            90deg,
            #ef4444,
            #dc2626
        );

}


/* =========================================================
   ENTRY ANIMATION
========================================================= */

@keyframes vblinkNotificationIn {

    0% {

        opacity: 0;

        transform:
            translateY(-20px)
            scale(0.94);

    }

    60% {

        opacity: 1;

        transform:
            translateY(4px)
            scale(1.01);

    }

    100% {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }

}


/* =========================================================
   PROGRESS ANIMATION
========================================================= */

@keyframes vblinkNotificationProgress {

    from {

        transform:
            scaleX(1);

    }

    to {

        transform:
            scaleX(0);

    }

}


/* =========================================================
   EXIT ANIMATION
========================================================= */

.vblink-sidebar-notification.vblink-notification-hide {

    animation:
        vblinkNotificationOut
        0.4s
        ease
        forwards;

}


@keyframes vblinkNotificationOut {

    from {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }

    to {

        opacity: 0;

        transform:
            translateY(-10px)
            scale(0.96);

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .vblink-sidebar-notification {

        gap: 10px;

        min-height: 65px;

        padding:
            12px
            38px
            12px
            12px;

        border-radius: 14px;

    }


    .vblink-notification-icon {

        flex:
            0 0 36px;

        width: 36px;

        height: 36px;

        font-size: 14px;

    }


    .vblink-notification-title {

        font-size: 12px;

    }


    .vblink-notification-text {

        font-size: 10px;

    }

}