/* Animated Gradient Menu Background */
.navbar {
    background: linear-gradient(270deg, #ff7e5f, #feb47b, #86a8e7, #91eae4);
    background-size: 800% 800%;
    animation: gradientShift 15s ease infinite;
    border: none;
}

/* Smooth Animated Gradient Keyframes */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Menu Items Style */
.navbar-nav > li > a {
    color: white !important;
    font-weight: bold;
    padding: 12px 18px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.navbar-nav > li > a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    transform: scale(1.05);
}

/* Sidebar Box Styling */
.pkp_block, .sidebar .block {
    background: linear-gradient(135deg, #fffaf0, #ffe4e1);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: glowPulse 5s infinite ease-in-out;
}

/* Hover Lift Effect */
.pkp_block:hover, .sidebar .block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Animated Border Glow */
@keyframes glowPulse {
    0% { box-shadow: 0 0 8px rgba(255, 126, 95, 0.4); }
    50% { box-shadow: 0 0 15px rgba(255, 182, 193, 0.6); }
    100% { box-shadow: 0 0 8px rgba(255, 126, 95, 0.4); }
}

/* Sidebar Titles */
.pkp_block .title, .sidebar .block .title {
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    color: white !important;
    padding: 8px 12px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 6px 6px 0 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* =====================================
   JACS ANIMATED INDEXING SIDEBAR
===================================== */

.jacs-indexing-sidebar {
    width: 250px;
    height: 560px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    padding: 14px 10px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

/* fade top and bottom */
.jacs-indexing-sidebar::before,
.jacs-indexing-sidebar::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 5;
    pointer-events: none;
}

.jacs-indexing-sidebar::before {
    top: 0;
    background: linear-gradient(to bottom, #ffffff, transparent);
}

.jacs-indexing-sidebar::after {
    bottom: 0;
    background: linear-gradient(to top, #ffffff, transparent);
}

/* moving vertical track */
.jacs-indexing-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    animation: jacsIndexScroll 34s linear infinite;
}

/* pause on hover */
.jacs-indexing-sidebar:hover .jacs-indexing-track {
    animation-play-state: paused;
}

/* duplicated sets */
.jacs-indexing-set {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding-bottom: 18px;
}

/* card */
.jacs-indexing-card {
    width: 215px;
    height: 125px;
    flex: 0 0 125px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    text-decoration: none;
    color: #111827;

    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.08);
    transition: all 0.35s ease;
}

/* equal logo image size */
.jacs-indexing-card img {
    width: 160px !important;
    height: 65px !important;
    max-width: 160px !important;
    max-height: 65px !important;
    min-width: 160px !important;
    min-height: 65px !important;

    object-fit: contain !important;
    object-position: center !important;
    display: block;
    border-radius: 8px;
    transition: all 0.35s ease;
}

/* label */
.jacs-indexing-card span {
    margin-top: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #111827;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.25;
}

/* hover animation */
.jacs-indexing-card:hover {
    transform: scale(1.04);
    border-color: #2563eb;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.20);
}

.jacs-indexing-card:hover img {
    transform: scale(1.07);
}

.jacs-indexing-card:hover span {
    color: #2563eb;
}

/* scrolling upward sidebar animation */
@keyframes jacsIndexScroll {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

/* mobile responsive */
@media (max-width: 600px) {
    .jacs-indexing-sidebar {
        width: 220px;
        height: 480px;
        padding: 12px 8px;
    }

    .jacs-indexing-set {
        gap: 14px;
        padding-bottom: 14px;
    }

    .jacs-indexing-card {
        width: 190px;
        height: 110px;
        flex-basis: 110px;
        border-radius: 14px;
    }

    .jacs-indexing-card img {
        width: 140px !important;
        height: 55px !important;
        max-width: 140px !important;
        max-height: 55px !important;
        min-width: 140px !important;
        min-height: 55px !important;
    }

    .jacs-indexing-card span {
        font-size: 10px;
    }

    .jacs-indexing-track {
        animation-duration: 30s;
    }
}