/* ==================== SIDEBAR LIST SERVICE ==================== */

.list-service {
    padding: 32px 32px 37px;
    border-radius: 16px;
    background-color: var(--Color-1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #EEF2FC;
}

.list-service h5 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
    color: #323A61;
    padding-bottom: 14px;
    border-bottom: 2px solid #DCE3F0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.list-service h5 i {
    font-size: 18px;
    color: #A31A1E;
}

.list-service ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-service ul li {
    font-weight: 500;
    margin-bottom: 4px;
}

.list-service ul li a {
    position: relative;
    color: #4B5563;
    background-color: transparent;
    display: block;
    padding: 10px 14px 10px 0;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.list-service ul li a::before {
    position: absolute;
    content: "";
    top: 50%;
    transform: translateY(-50%);
    left: -1px;
    opacity: 0;
    width: 18px;
    height: 2px;
    background-color: #323A61;
    visibility: hidden;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.list-service ul li:hover a {
    padding-left: 28px;
    color: #323A61;
    background-color: rgba(50, 58, 97, 0.04);
}

.list-service ul li:hover a::before {
    opacity: 1;
    visibility: visible;
}

.list-service ul li:not(:last-child) {
    margin-bottom: 2px;
}

/* Active state for current section */
.list-service ul li a.active {
    color: #323A61;
    font-weight: 600;
    background-color: rgba(50, 58, 97, 0.06);
    padding-left: 28px;
}

.list-service ul li a.active::before {
    opacity: 1;
    visibility: visible;
}

/* Scrollable sidebar for many items */
.list-service.terms-nav {
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.list-service.terms-nav::-webkit-scrollbar {
    width: 4px;
}

.list-service.terms-nav::-webkit-scrollbar-track {
    background: transparent;
}

.list-service.terms-nav::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 10px;
}

.list-service.terms-nav::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* Mobile: Horizontal scroll navigation */
@media (max-width: 991px) {
    .list-service.mobile-horizontal {
        padding: 16px;
        margin-bottom: 24px;
        overflow-x: auto;
        white-space: nowrap;
        border-radius: 12px;
    }
    
    .list-service.mobile-horizontal h5 {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    
    .list-service.mobile-horizontal ul {
        display: flex;
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .list-service.mobile-horizontal ul li {
        flex-shrink: 0;
        margin-bottom: 0;
    }
    
    .list-service.mobile-horizontal ul li a {
        padding: 8px 16px;
        font-size: 13px;
        background: #fff;
        border-radius: 20px;
        border: 1px solid #E5E7EB;
        white-space: nowrap;
    }
    
    .list-service.mobile-horizontal ul li a::before {
        display: none;
    }
    
    .list-service.mobile-horizontal ul li:hover a,
    .list-service.mobile-horizontal ul li a.active {
        padding-left: 16px;
        background: #323A61;
        color: #fff;
        border-color: #323A61;
    }
    
    .list-service.mobile-horizontal::-webkit-scrollbar {
        height: 3px;
    }
    
    .list-service.mobile-horizontal::-webkit-scrollbar-thumb {
        background: #D1D5DB;
        border-radius: 10px;
    }
}

@media (max-width: 576px) {
    .list-service {
        padding: 20px 16px;
    }
    
    .list-service h5 {
        font-size: 16px;
    }
    
    .list-service ul li a {
        font-size: 13px;
        padding: 8px 12px 8px 0;
    }
}